UNPKG

5.21 kBJSONView Raw
1{
2 "name": "@microsoft/microsoft-graph-client",
3 "version": "3.0.7",
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 "authProviderOptions"
31 ],
32 "scripts": {
33 "build": "npm run pre-build && npm run build:sub_cjs && npm run build:sub_es && rollup --bundleConfigAsCjs -c",
34 "build:cjs": "tsc --p tsconfig-cjs.json",
35 "build:es": "tsc --p tsconfig-es.json",
36 "build:sub_cjs": "tsc -b tsconfig-sub-cjs.json",
37 "build:sub_es": "tsc -b tsconfig-sub-es.json",
38 "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",
39 "format:css": "prettier --write \"**/*.css\"",
40 "format:html": "prettier --write \"**/*.html\"",
41 "format:js": "prettier --write \"**/*.js\"",
42 "format:json": "prettier --write \"**/*.json\"",
43 "format:md": "prettier --write \"**/*.md\"",
44 "format:rc": "prettier --write --parser json \"**/.*rc\"",
45 "format:ts": "prettier --write \"**/*.ts\"",
46 "karma": "karma start --single-run --browsers ChromeHeadless karma.conf.js",
47 "lint": "eslint . --ext .ts",
48 "lint:fix": "eslint . --ext .ts --fix",
49 "prepack": "npm install && npm run build && npm run test",
50 "pre-build": "npm run setVersion",
51 "setVersion": "gulp setVersion",
52 "test": "npm run test:cjs && npm run karma",
53 "test:cjs": "npm run build:sub_cjs && mocha",
54 "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",
55 "test:development": "tsc --p test/tsconfig-test-development.json && mocha 'lib/test/development/**/*.js' --require isomorphic-fetch"
56 },
57 "mocha": {
58 "reporter": [
59 "mocha-junit-reporter"
60 ],
61 "reporterOptions": {
62 "mochaFile": "./testResult.xml"
63 },
64 "spec": [
65 "lib/test/common/**/*.js",
66 "lib/test/node/**/*.js"
67 ],
68 "require": [
69 "isomorphic-fetch"
70 ]
71 },
72 "nyc": {
73 "all": true,
74 "cache": false,
75 "exclude": [
76 "samples/",
77 "*.js",
78 "lib/"
79 ],
80 "include": [
81 "src/"
82 ]
83 },
84 "dependencies": {
85 "@babel/runtime": "^7.12.5",
86 "tslib": "^2.2.0"
87 },
88 "devDependencies": {
89 "@azure/identity": "^3.0.0",
90 "@azure/msal-browser": "^2.15.0",
91 "@babel/core": "^7.12.10",
92 "@babel/plugin-transform-runtime": "^7.12.10",
93 "@babel/preset-env": "^7.12.11",
94 "@istanbuljs/nyc-config-typescript": "^1.0.1",
95 "@microsoft/microsoft-graph-types": "^2.11.0",
96 "@rollup/plugin-babel": "^6.0.0",
97 "@rollup/plugin-commonjs": "^25.0.0",
98 "@rollup/plugin-node-resolve": "^15.0.0",
99 "@rollup/plugin-terser": "^0.4.0",
100 "@types/chai": "^4.2.14",
101 "@types/mocha": "^10.0.1",
102 "@types/node": "^20.1.4",
103 "@types/sinon": "^10.0.8",
104 "@typescript-eslint/eslint-plugin": "^5.12.1",
105 "@typescript-eslint/parser": "^5.12.1",
106 "chai": "^4.2.0",
107 "eslint": "^8.9.0",
108 "eslint-config-prettier": "^9.0.0",
109 "eslint-plugin-prettier": "^5.0.0",
110 "eslint-plugin-simple-import-sort": "^10.0.0",
111 "form-data": "^4.0.0",
112 "gulp": "^4.0.2",
113 "husky": "^8.0.0",
114 "isomorphic-fetch": "^3.0.0",
115 "karma": "^6.3.2",
116 "karma-chai": "^0.1.0",
117 "karma-chrome-launcher": "^3.1.0",
118 "karma-firefox-launcher": "^2.1.0",
119 "karma-mocha": "^2.0.1",
120 "karma-typescript": "^5.2.0",
121 "lint-staged": "^14.0.0",
122 "mocha": "^10.2.0",
123 "mocha-junit-reporter": "^2.1.1",
124 "nyc": "^15.1.0",
125 "prettier": "^3.0.0",
126 "rollup": "^3.9.1",
127 "sinon": "^15.0.0",
128 "source-map-support": "^0.5.19",
129 "stream-browserify": "^3.0.0",
130 "ts-node": "^10.4.0",
131 "typescript": "^5.1.6",
132 "uglify-es": "^3.3.9"
133 },
134 "peerDependenciesMeta": {
135 "@azure/identity": {
136 "optional": true
137 },
138 "buffer": {
139 "optional": true
140 },
141 "stream-browserify": {
142 "optional": true
143 },
144 "@azure/msal-browser": {
145 "optional": true
146 }
147 },
148 "engines": {
149 "node": ">=12.0.0"
150 }
151}