forked from tulios/mappersmith
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
198 lines (198 loc) · 7.34 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
{
"name": "mappersmith",
"version": "2.43.0-beta.1",
"description": "It is a lightweight rest client for node.js and the browser",
"author": "Tulio Ornelas <[email protected]>",
"contributors": [
"Daniel Alves <[email protected]>",
"Roberto Soares <[email protected]>",
"Mathias Klippinge <[email protected]>"
],
"private": true,
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.mjs",
"require": "./dist/index.js"
},
"./test": {
"import": "./dist/esm/test/index.mjs",
"require": "./dist/test/index.js"
},
"./gateway": {
"import": "./dist/esm/gateway/index.mjs",
"require": "./dist/gateway/index.js"
},
"./gateway/fetch": {
"import": "./dist/esm/gateway/fetch.mjs",
"require": "./dist/gateway/fetch.js"
},
"./gateway/http": {
"import": "./dist/esm/gateway/http.mjs",
"require": "./dist/gateway/http.js"
},
"./gateway/xhr": {
"import": "./dist/esm/gateway/xhr.mjs",
"require": "./dist/gateway/xhr.js"
},
"./gateway/mock": {
"import": "./dist/esm/gateway/mock.mjs",
"require": "./dist/gateway/mock.js"
},
"./gateway/timeout-error": {
"import": "./dist/esm/gateway/timeout-error.mjs",
"require": "./dist/gateway/timeout-error.js"
},
"./middleware": {
"import": "./dist/esm/middleware/index.mjs",
"require": "./dist/middleware/index.js"
},
"./middleware/basic-auth": {
"import": "./dist/esm/middleware/basic-auth.mjs",
"require": "./dist/middleware/basic-auth.js"
},
"./middleware/csrf": {
"import": "./dist/esm/middleware/csrf.mjs",
"require": "./dist/middleware/csrf.js"
},
"./middleware/duration": {
"import": "./dist/esm/middleware/duration.mjs",
"require": "./dist/middleware/duration.js"
},
"./middleware/encode-json": {
"import": "./dist/esm/middleware/encode-json.mjs",
"require": "./dist/middleware/encode-json.js"
},
"./middleware/global-error-handler": {
"import": "./dist/esm/middleware/global-error-handler.mjs",
"require": "./dist/middleware/global-error-handler.js"
},
"./middleware/log": {
"import": "./dist/esm/middleware/log.mjs",
"require": "./dist/middleware/log.js"
},
"./middleware/retry": {
"import": "./dist/esm/middleware/retry/index.mjs",
"require": "./dist/middleware/retry/index.js"
},
"./middleware/retry/v1": {
"import": "./dist/esm/middleware/retry/v1/index.mjs",
"require": "./dist/middleware/retry/v1/index.js"
},
"./middleware/retry/v2": {
"import": "./dist/esm/middleware/retry/v2/index.mjs",
"require": "./dist/middleware/retry/v2/index.js"
},
"./middleware/timeout": {
"import": "./dist/esm/middleware/timeout.mjs",
"require": "./dist/middleware/timeout.js"
}
},
"scripts": {
"integration-server": "node spec/integration/server.js",
"test:browser": "jest --config jestSetup/configs/config.web.json",
"test:browser:integration:cmd": "cross-env NODE_ENV=test yarn karma start spec/integration/browser/karma.conf.ts",
"test:browser:integration": "concurrently --success first --names \"test,server\" --kill-others \"yarn wait-on http://localhost:9090/ping --log && cross-env yarn test:browser:integration:cmd\" \"yarn integration-server\"",
"test:browser:watch": "yarn jest --config jestSetup/configs/config.web.json --watchAll",
"test:node": "yarn jest --config jestSetup/configs/config.node.json",
"test:node:integration:cmd": "cross-env NODE_ENV=test cross-env NODE_PATH=. cross-env JASMINE_CONFIG_PATH=spec/integration/node/support/jasmine.json jasmine",
"test:node:integration": "concurrently --success first --names \"test,server\" --kill-others \"yarn wait-on http://localhost:9090/ping --log && cross-env yarn test:node:integration:cmd\" \"yarn integration-server\"",
"test:node:watch": "yarn jest --config jestSetup/configs/config.node.json --watchAll",
"test:service-worker": "yarn jest --config jestSetup/configs/config.sw.json",
"test:service-worker:watch": "yarn jest --config jestSetup/configs/config.sw.json --watchAll",
"test:types": "yarn tsc --noEmit",
"test:types:watch": "yarn test:types --watch",
"test:integration": "yarn test:node:integration && yarn test:browser:integration",
"test:unit": "yarn test:browser && yarn test:node && yarn test:service-worker && yarn test:integration",
"test": "yarn test:types && yarn prettier --check . && yarn lint && yarn test:unit",
"build:typings": "yarn tsc --project tsconfig.typings.json && yarn copy:dts",
"build": "yarn copy:version:src && yarn tsup && yarn build:typings",
"build:clean": "rm -rf dist/ && yarn build",
"build:project": "NODE_ENV=production yarn build:clean",
"copy:dts": "copyfiles -u 1 \"src/**/*.d.ts\" dist/",
"copy:version:src": "echo export const version = \\'$npm_package_version\\' > src/version.ts",
"lint": "yarn eslint \"{src,spec}/**/*.[j|t]s\"",
"publish:prepare": "./scripts/publish-prepare.sh"
},
"repository": {
"type": "git",
"url": "https://github.com/tulios/mappersmith.git"
},
"keywords": [
"rest",
"client",
"rest-client",
"isomorphic",
"browser",
"server",
"data-mapper",
"mappersmith"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/tulios/mappersmith/issues"
},
"homepage": "https://github.com/tulios/mappersmith",
"browser": {
"./gateway/http.js": false,
"./lib/gateway/http.js": false,
"./src/gateway/http.js": false
},
"devDependencies": {
"@babel/preset-env": "^7.22.14",
"@babel/preset-typescript": "^7.22.11",
"@babel/register": "^7.22.5",
"@changesets/cli": "^2.26.2",
"@chiragrupani/karma-chromium-edge-launcher": "^2.3.1",
"@types/jest": "^29.5.4",
"@types/karma": "^6.3.4",
"@types/node": "^20.5.7",
"@types/webpack": "^5.28.2",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"babel-jest": "^29.6.4",
"babel-loader": "^9.1.3",
"babel-plugin-minify-replace": "^0.5.0",
"body-parser": "^1.20.2",
"browser-resolve": "^2.0.0",
"concurrently": "^8.2.1",
"cookie-parser": "^1.4.5",
"copyfiles": "^2.4.1",
"core-js": "^3.32.1",
"cross-env": "^7.0.3",
"eslint": "^8.48.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-n": "^16.0.2",
"eslint-plugin-promise": "^6.1.1",
"express": "^4.18.2",
"faux-jax-tulios": "^5.0.9",
"jasmine": "^5.1.0",
"jasmine-core": "^5.1.1",
"jest": "^29.6.4",
"jest-environment-jsdom": "^29.6.4",
"js-md5": "^0.7.3",
"karma": "^6.4.2",
"karma-chrome-launcher": "^3.2.0",
"karma-jasmine": "^5.1.0",
"karma-sourcemap-loader": "^0.4.0",
"karma-spec-reporter": "^0.0.36",
"karma-webpack": "^5.0.0",
"mockdate": "^3.0.5",
"multer": "^1.4.5-lts.1",
"node-fetch": "<3.0.0",
"prettier": "^3.0.3",
"puppeteer": "^21.1.1",
"regenerator-runtime": "^0.14.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"wait-on": "^7.0.1",
"webpack": "^5.88.2",
"whatwg-fetch": "^3.6.18"
},
"packageManager": "[email protected]"
}