UNPKG

5.17 kBJSONView Raw
1{
2 "name": "@microsoft/microsoft-graph-client",
3 "version": "3.0.5",
4 "description": "Microsoft Graph Client Library",
5 "keywords": [
6 "Microsoft",
7 "Graph",
8 "SDK",
9 "JavaScript",
10 "Client"
11 ],
12 "repository": {
13 "type": "git",
14 "url": "https://github.com/microsoftgraph/msgraph-sdk-javascript.git"
15 },
16 "license": "MIT",
17 "main": "lib/src/index.js",
18 "module": "lib/es/src/index.js",
19 "browser": {
20 "./lib/es/src/index.js": "./lib/es/src/browser/index.js",
21 "stream": "stream-browserify"
22 },
23 "types": "./lib/src/index.d.ts",
24 "typings": "lib/src/index",
25 "files": [
26 "lib/",
27 "src/",
28 "authProviders/",
29 "shims.d.ts"
30 ],
31 "scripts": {
32 "build": "npm run pre-build && npm run build:sub_cjs && npm run build:sub_es && rollup --bundleConfigAsCjs -c",
33 "build:cjs": "tsc --p tsconfig-cjs.json",
34 "build:es": "tsc --p tsconfig-es.json",
35 "build:sub_cjs": "tsc -b tsconfig-sub-cjs.json",
36 "build:sub_es": "tsc -b tsconfig-sub-es.json",
37 "format": "npm run format:css && npm run format:html && npm run format:js && npm run format:json && npm run format:md && npm run format:rc && npm run format:ts",
38 "format:css": "prettier --write \"**/*.css\"",
39 "format:html": "prettier --write \"**/*.html\"",
40 "format:js": "prettier --write \"**/*.js\"",
41 "format:json": "prettier --write \"**/*.json\"",
42 "format:md": "prettier --write \"**/*.md\"",
43 "format:rc": "prettier --write --parser json \"**/.*rc\"",
44 "format:ts": "prettier --write \"**/*.ts\"",
45 "karma": "karma start --single-run --browsers ChromeHeadless karma.conf.js",
46 "lint": "eslint . --ext .ts",
47 "lint:fix": "eslint . --ext .ts --fix",
48 "prepack": "npm install && npm run build && npm run test",
49 "pre-build": "npm run setVersion",
50 "setVersion": "gulp setVersion",
51 "test": "npm run test:cjs && npm run karma",
52 "test:cjs": "npm run build:sub_cjs && mocha",
53 "test:coverage": "TS_NODE_PROJECT='./tsconfig-cjs.json' nyc mocha --require isomorphic-fetch -r ts-node/register test/common/**/*.ts && mocha --require isomorphic-fetch -r ts-node/register test/common/**/*.ts",
54 "test:development": "tsc --p test/tsconfig-test-development.json && mocha 'lib/test/development/**/*.js' --require isomorphic-fetch"
55 },
56 "mocha": {
57 "reporter": [
58 "mocha-junit-reporter"
59 ],
60 "reporterOptions": {
61 "mochaFile": "./testResult.xml"
62 },
63 "spec": [
64 "lib/test/common/**/*.js",
65 "lib/test/node/**/*.js"
66 ],
67 "require": [
68 "isomorphic-fetch"
69 ]
70 },
71 "nyc": {
72 "all": true,
73 "cache": false,
74 "exclude": [
75 "samples/",
76 "*.js",
77 "lib/"
78 ],
79 "include": [
80 "src/"
81 ]
82 },
83 "dependencies": {
84 "@babel/runtime": "^7.12.5",
85 "tslib": "^2.2.0"
86 },
87 "devDependencies": {
88 "@azure/identity": "^3.0.0",
89 "@azure/msal-browser": "^2.15.0",
90 "@babel/core": "^7.12.10",
91 "@babel/plugin-transform-runtime": "^7.12.10",
92 "@babel/preset-env": "^7.12.11",
93 "@istanbuljs/nyc-config-typescript": "^1.0.1",
94 "@microsoft/microsoft-graph-types": "^2.11.0",
95 "@rollup/plugin-babel": "^6.0.0",
96 "@rollup/plugin-commonjs": "^24.0.0",
97 "@rollup/plugin-node-resolve": "^15.0.0",
98 "@rollup/plugin-terser": "^0.3.0",
99 "@types/chai": "^4.2.14",
100 "@types/mocha": "^10.0.1",
101 "@types/node": "^18.0.0",
102 "@types/sinon": "^10.0.8",
103 "@typescript-eslint/eslint-plugin": "^5.12.1",
104 "@typescript-eslint/parser": "^5.12.1",
105 "chai": "^4.2.0",
106 "eslint": "^8.9.0",
107 "eslint-config-prettier": "^8.3.0",
108 "eslint-plugin-prettier": "^4.0.0",
109 "eslint-plugin-simple-import-sort": "^8.0.0",
110 "form-data": "^4.0.0",
111 "gulp": "^4.0.2",
112 "husky": "^8.0.0",
113 "isomorphic-fetch": "^3.0.0",
114 "karma": "^6.3.2",
115 "karma-chai": "^0.1.0",
116 "karma-chrome-launcher": "^3.1.0",
117 "karma-firefox-launcher": "^2.1.0",
118 "karma-mocha": "^2.0.1",
119 "karma-typescript": "^5.2.0",
120 "lint-staged": "^13.0.0",
121 "mocha": "^10.2.0",
122 "mocha-junit-reporter": "^2.1.1",
123 "nyc": "^15.1.0",
124 "prettier": "^2.5.1",
125 "rollup": "^3.9.1",
126 "sinon": "^15.0.0",
127 "source-map-support": "^0.5.19",
128 "stream-browserify": "^3.0.0",
129 "ts-node": "^10.4.0",
130 "typescript": "^4.2.4",
131 "uglify-es": "^3.3.9"
132 },
133 "peerDependenciesMeta": {
134 "@azure/identity": {
135 "optional": true
136 },
137 "buffer": {
138 "optional": true
139 },
140 "stream-browserify": {
141 "optional": true
142 },
143 "@azure/msal-browser": {
144 "optional": true
145 }
146 },
147 "engines": {
148 "node": ">=12.0.0"
149 }
150}