-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
package.json
206 lines (206 loc) · 5.91 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
199
200
201
202
203
204
205
206
{
"name": "wretch",
"version": "2.11.0",
"type": "module",
"description": "A tiny wrapper built around fetch with an intuitive syntax.",
"keywords": [
"wretch",
"fetch",
"ajax",
"request"
],
"engines": {
"node": ">=14"
},
"homepage": "https://elbywan.github.io/wretch",
"repository": {
"type": "git",
"url": "https://github.com/elbywan/wretch"
},
"bugs": {
"url": "https://github.com/elbywan/wretch/issues"
},
"main": "./dist/bundle/wretch.min.cjs",
"unpkg": "./dist/bundle/wretch.min.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
"dist/*",
"dist/*/index.d.ts",
"dist/index.d.ts"
]
}
},
"exports": {
".": {
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.cjs"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./all": {
"require": {
"types": "./dist/cjs/index.all.d.ts",
"default": "./dist/cjs/index.all.js"
},
"import": {
"types": "./dist/index.all.d.ts",
"default:": "./dist/index.all.js"
}
},
"./addons": {
"require": {
"types": "./dist/cjs/addons/index.d.ts",
"default": "./dist/cjs/addons/index.js"
},
"import": {
"types": "./dist/addons/index.d.ts",
"default": "./dist/addons/index.js"
}
},
"./addons/*": {
"require": {
"types": "./dist/cjs/addons/*.d.ts",
"default": "./dist/cjs/addons/*.js"
},
"import": {
"types": "./dist/addons/*.d.ts",
"default": "./dist/addons/*.js"
}
},
"./middlewares": {
"require": {
"types": "./dist/cjs/middlewares/index.d.ts",
"default": "./dist/cjs/middlewares/index.js"
},
"import": {
"types": "./dist/middlewares/index.d.ts",
"default": "./dist/middlewares/index.js"
}
},
"./middlewares/*": {
"require": {
"types": "./dist/cjs/middlewares/*.d.ts",
"default": "./dist/cjs/middlewares/*.js"
},
"import": {
"types": "./dist/middlewares/*.d.ts",
"default": "./dist/middlewares/*.js"
}
},
"./package.json": "./package.json",
"./*.mjs": {
"default": "./dist/*.mjs"
},
"./*.cjs": {
"default": "./dist/*.cjs"
},
"./*": {
"default": "./dist/*.js"
}
},
"files": [
"dist"
],
"sideEffects": false,
"scripts": {
"start": "npm run build && npm run test",
"lint": "eslint '{src,test}/**/*.{js,ts}'",
"lint:fix": "eslint '{src,test}/**/*.{js,ts}' --fix",
"prebuild": "rimraf dist && rimraf coverage && npm run lint",
"build": "tsc && tsc --project tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > ./dist/cjs/package.json && rollup -c",
"mock": "node scripts/mockServer.js",
"mock:wait": "wait-on -t 10000 http://localhost:9876/ping",
"test": "concurrently --success first -k 'npm run mock:wait && jest' 'npm run mock'",
"test:karma": "concurrently --success first -k 'npm run mock:wait && karma start --single-run --browsers ChromeHeadless,FirefoxHeadless,SafariNative karma.conf.cjs' 'npm run mock'",
"test:karma:watch": "concurrently --success first -k 'npm run mock:wait && karma start --auto-watch --browsers ChromeHeadless karma.conf.cjs' 'npm run mock'",
"test:deno": "concurrently --success first -k 'npm run mock:wait && deno test --allow-net ./test/deno/wretch_test.ts' 'npm run mock'",
"changelog": "conventional-changelog -p wretch -i CHANGELOG.md -s -r 0",
"doc": "typedoc --out docs/api --readme none --excludeInternal src/index.ts 'src/addons/*.ts' 'src/middlewares/*.ts'",
"prepare": "npm run build",
"prepare:release": "npm run start && npm run doc && npm run changelog"
},
"author": "Julien Elbaz",
"license": "MIT",
"devDependencies": {
"@eslint/js": "^9.4.0",
"@fastify/basic-auth": "^5.1.0",
"@fastify/cors": "^8.4.1",
"@fastify/formbody": "^7.4.0",
"@fastify/multipart": "^8.0.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@types/eslint__js": "^8.42.3",
"@types/form-data": "^2.5.0",
"@types/jest": "^29.5.8",
"@types/lodash-es": "^4.17.11",
"@types/node": "^20.9.2",
"abortcontroller-polyfill": "^1.7.5",
"concurrently": "^8.2.2",
"conventional-changelog-cli": "^2.2.2",
"conventional-changelog-wretch": "file:scripts/conventional-changelog-wretch",
"dtrace-provider": "^0.8.8",
"eslint": "^8.57.0",
"fastify": "^4.24.3",
"form-data": "^4.0.0",
"jasmine-core": "^5.1.1",
"jest": "^29.7.0",
"karma": "^6.4.2",
"karma-chrome-launcher": "^3.2.0",
"karma-firefox-launcher": "^2.1.2",
"karma-jasmine": "^5.1.0",
"karma-safari-launcher": "^1.0.0",
"karma-safarinative-launcher": "^1.1.0",
"lodash-es": "^4.17.21",
"node-fetch": "^2",
"querystring": "^0.2.1",
"rimraf": "^5.0.5",
"rollup": "^4.5.0",
"ts-jest": "^29.1.1",
"tslib": "^2.6.2",
"typedoc": "^0.26.6",
"typescript": "^5.4.5",
"typescript-eslint": "^7.11.0",
"wait-on": "^7.2.0",
"whatwg-url": "^14.0.0"
},
"jest": {
"testPathIgnorePatterns": [
"/node_modules/",
"/test/browser/",
"/test/deno"
],
"transform": {
"^.+\\.tsx?$": [
"ts-jest",
{
"tsconfig": "test/tsconfig.json"
}
]
},
"resolver": "<rootDir>/test/resolver.cjs",
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{js,ts}"
],
"coveragePathIgnorePatterns": [
"src/index.all.ts",
"src/addons/index.ts"
]
}
}