ziggylott commited on
Commit
4278447
·
1 Parent(s): 89f06fe

Deploy Trendscout v1 — trend intelligence tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitignore +1 -0
  2. Dockerfile +7 -0
  3. README.md +22 -0
  4. node_modules/.bin/mime +0 -1
  5. node_modules/.package-lock.json +0 -1043
  6. node_modules/accepts/HISTORY.md +0 -243
  7. node_modules/accepts/LICENSE +0 -23
  8. node_modules/accepts/README.md +0 -140
  9. node_modules/accepts/index.js +0 -238
  10. node_modules/accepts/package.json +0 -47
  11. node_modules/agent-base/README.md +0 -145
  12. node_modules/agent-base/dist/src/index.d.ts +0 -78
  13. node_modules/agent-base/dist/src/index.js +0 -203
  14. node_modules/agent-base/dist/src/index.js.map +0 -1
  15. node_modules/agent-base/dist/src/promisify.d.ts +0 -4
  16. node_modules/agent-base/dist/src/promisify.js +0 -18
  17. node_modules/agent-base/dist/src/promisify.js.map +0 -1
  18. node_modules/agent-base/node_modules/debug/LICENSE +0 -20
  19. node_modules/agent-base/node_modules/debug/README.md +0 -481
  20. node_modules/agent-base/node_modules/debug/package.json +0 -64
  21. node_modules/agent-base/node_modules/debug/src/browser.js +0 -272
  22. node_modules/agent-base/node_modules/debug/src/common.js +0 -292
  23. node_modules/agent-base/node_modules/debug/src/index.js +0 -10
  24. node_modules/agent-base/node_modules/debug/src/node.js +0 -263
  25. node_modules/agent-base/node_modules/ms/index.js +0 -162
  26. node_modules/agent-base/node_modules/ms/license.md +0 -21
  27. node_modules/agent-base/node_modules/ms/package.json +0 -38
  28. node_modules/agent-base/node_modules/ms/readme.md +0 -59
  29. node_modules/agent-base/package.json +0 -64
  30. node_modules/agent-base/src/index.ts +0 -345
  31. node_modules/agent-base/src/promisify.ts +0 -33
  32. node_modules/array-flatten/LICENSE +0 -21
  33. node_modules/array-flatten/README.md +0 -43
  34. node_modules/array-flatten/array-flatten.js +0 -64
  35. node_modules/array-flatten/package.json +0 -39
  36. node_modules/asynckit/LICENSE +0 -21
  37. node_modules/asynckit/README.md +0 -233
  38. node_modules/asynckit/bench.js +0 -76
  39. node_modules/asynckit/index.js +0 -6
  40. node_modules/asynckit/lib/abort.js +0 -29
  41. node_modules/asynckit/lib/async.js +0 -34
  42. node_modules/asynckit/lib/defer.js +0 -26
  43. node_modules/asynckit/lib/iterate.js +0 -75
  44. node_modules/asynckit/lib/readable_asynckit.js +0 -91
  45. node_modules/asynckit/lib/readable_parallel.js +0 -25
  46. node_modules/asynckit/lib/readable_serial.js +0 -25
  47. node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
  48. node_modules/asynckit/lib/state.js +0 -37
  49. node_modules/asynckit/lib/streamify.js +0 -141
  50. node_modules/asynckit/lib/terminator.js +0 -29
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ node_modules/
Dockerfile ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ FROM node:20-slim
2
+ WORKDIR /app
3
+ COPY package*.json ./
4
+ RUN npm install --production
5
+ COPY server.js .
6
+ EXPOSE 7860
7
+ CMD ["node", "server.js"]
README.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Trendscout
3
+ emoji: 🔭
4
+ colorFrom: purple
5
+ colorTo: pink
6
+ sdk: docker
7
+ pinned: false
8
+ app_port: 7860
9
+ ---
10
+
11
+ # 🔭 Trendscout
12
+
13
+ **Find profitable digital product ideas — live from GitHub, HuggingFace & Reddit**
14
+
15
+ Enter any niche keyword and instantly see what's trending across three major platforms. Built for digital creators, coaches, and online entrepreneurs.
16
+
17
+ ## Features
18
+ - Real-time GitHub trending repositories
19
+ - HuggingFace model trends
20
+ - Reddit entrepreneur discussions
21
+ - Filter by source
22
+ - Direct links to every result
node_modules/.bin/mime DELETED
@@ -1 +0,0 @@
1
- ../mime/cli.js
 
 
node_modules/.package-lock.json DELETED
@@ -1,1043 +0,0 @@
1
- {
2
- "name": "trendscout",
3
- "version": "1.0.0",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "node_modules/accepts": {
8
- "version": "1.3.8",
9
- "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
10
- "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
11
- "license": "MIT",
12
- "dependencies": {
13
- "mime-types": "~2.1.34",
14
- "negotiator": "0.6.3"
15
- },
16
- "engines": {
17
- "node": ">= 0.6"
18
- }
19
- },
20
- "node_modules/agent-base": {
21
- "version": "6.0.2",
22
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
23
- "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
24
- "license": "MIT",
25
- "dependencies": {
26
- "debug": "4"
27
- },
28
- "engines": {
29
- "node": ">= 6.0.0"
30
- }
31
- },
32
- "node_modules/agent-base/node_modules/debug": {
33
- "version": "4.4.3",
34
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
35
- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
36
- "license": "MIT",
37
- "dependencies": {
38
- "ms": "^2.1.3"
39
- },
40
- "engines": {
41
- "node": ">=6.0"
42
- },
43
- "peerDependenciesMeta": {
44
- "supports-color": {
45
- "optional": true
46
- }
47
- }
48
- },
49
- "node_modules/agent-base/node_modules/ms": {
50
- "version": "2.1.3",
51
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
52
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
53
- "license": "MIT"
54
- },
55
- "node_modules/array-flatten": {
56
- "version": "1.1.1",
57
- "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
58
- "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
59
- "license": "MIT"
60
- },
61
- "node_modules/asynckit": {
62
- "version": "0.4.0",
63
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
64
- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
65
- "license": "MIT"
66
- },
67
- "node_modules/axios": {
68
- "version": "1.18.1",
69
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.18.1.tgz",
70
- "integrity": "sha512-3nTvFlvpn9Zu/RkHUqtc7/+al4UpRW5az71ap5zccp6e8RAYEzhMTecX8Dz1wWDYrPpUoB1HAQEGEAEvUr7S9g==",
71
- "license": "MIT",
72
- "dependencies": {
73
- "follow-redirects": "^1.16.0",
74
- "form-data": "^4.0.5",
75
- "https-proxy-agent": "^5.0.1",
76
- "proxy-from-env": "^2.1.0"
77
- }
78
- },
79
- "node_modules/body-parser": {
80
- "version": "1.20.5",
81
- "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz",
82
- "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==",
83
- "license": "MIT",
84
- "dependencies": {
85
- "bytes": "~3.1.2",
86
- "content-type": "~1.0.5",
87
- "debug": "2.6.9",
88
- "depd": "2.0.0",
89
- "destroy": "~1.2.0",
90
- "http-errors": "~2.0.1",
91
- "iconv-lite": "~0.4.24",
92
- "on-finished": "~2.4.1",
93
- "qs": "~6.15.1",
94
- "raw-body": "~2.5.3",
95
- "type-is": "~1.6.18",
96
- "unpipe": "~1.0.0"
97
- },
98
- "engines": {
99
- "node": ">= 0.8",
100
- "npm": "1.2.8000 || >= 1.4.16"
101
- }
102
- },
103
- "node_modules/bytes": {
104
- "version": "3.1.2",
105
- "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
106
- "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
107
- "license": "MIT",
108
- "engines": {
109
- "node": ">= 0.8"
110
- }
111
- },
112
- "node_modules/call-bind-apply-helpers": {
113
- "version": "1.0.2",
114
- "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
115
- "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
116
- "license": "MIT",
117
- "dependencies": {
118
- "es-errors": "^1.3.0",
119
- "function-bind": "^1.1.2"
120
- },
121
- "engines": {
122
- "node": ">= 0.4"
123
- }
124
- },
125
- "node_modules/call-bound": {
126
- "version": "1.0.4",
127
- "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
128
- "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
129
- "license": "MIT",
130
- "dependencies": {
131
- "call-bind-apply-helpers": "^1.0.2",
132
- "get-intrinsic": "^1.3.0"
133
- },
134
- "engines": {
135
- "node": ">= 0.4"
136
- },
137
- "funding": {
138
- "url": "https://github.com/sponsors/ljharb"
139
- }
140
- },
141
- "node_modules/combined-stream": {
142
- "version": "1.0.8",
143
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
144
- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
145
- "license": "MIT",
146
- "dependencies": {
147
- "delayed-stream": "~1.0.0"
148
- },
149
- "engines": {
150
- "node": ">= 0.8"
151
- }
152
- },
153
- "node_modules/content-disposition": {
154
- "version": "0.5.4",
155
- "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
156
- "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
157
- "license": "MIT",
158
- "dependencies": {
159
- "safe-buffer": "5.2.1"
160
- },
161
- "engines": {
162
- "node": ">= 0.6"
163
- }
164
- },
165
- "node_modules/content-type": {
166
- "version": "1.0.5",
167
- "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
168
- "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
169
- "license": "MIT",
170
- "engines": {
171
- "node": ">= 0.6"
172
- }
173
- },
174
- "node_modules/cookie": {
175
- "version": "0.7.2",
176
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
177
- "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
178
- "license": "MIT",
179
- "engines": {
180
- "node": ">= 0.6"
181
- }
182
- },
183
- "node_modules/cookie-signature": {
184
- "version": "1.0.7",
185
- "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",
186
- "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
187
- "license": "MIT"
188
- },
189
- "node_modules/cors": {
190
- "version": "2.8.6",
191
- "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz",
192
- "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==",
193
- "license": "MIT",
194
- "dependencies": {
195
- "object-assign": "^4",
196
- "vary": "^1"
197
- },
198
- "engines": {
199
- "node": ">= 0.10"
200
- },
201
- "funding": {
202
- "type": "opencollective",
203
- "url": "https://opencollective.com/express"
204
- }
205
- },
206
- "node_modules/debug": {
207
- "version": "2.6.9",
208
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
209
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
210
- "license": "MIT",
211
- "dependencies": {
212
- "ms": "2.0.0"
213
- }
214
- },
215
- "node_modules/delayed-stream": {
216
- "version": "1.0.0",
217
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
218
- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
219
- "license": "MIT",
220
- "engines": {
221
- "node": ">=0.4.0"
222
- }
223
- },
224
- "node_modules/depd": {
225
- "version": "2.0.0",
226
- "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
227
- "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
228
- "license": "MIT",
229
- "engines": {
230
- "node": ">= 0.8"
231
- }
232
- },
233
- "node_modules/destroy": {
234
- "version": "1.2.0",
235
- "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
236
- "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
237
- "license": "MIT",
238
- "engines": {
239
- "node": ">= 0.8",
240
- "npm": "1.2.8000 || >= 1.4.16"
241
- }
242
- },
243
- "node_modules/dotenv": {
244
- "version": "16.6.1",
245
- "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
246
- "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
247
- "license": "BSD-2-Clause",
248
- "engines": {
249
- "node": ">=12"
250
- },
251
- "funding": {
252
- "url": "https://dotenvx.com"
253
- }
254
- },
255
- "node_modules/dunder-proto": {
256
- "version": "1.0.1",
257
- "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
258
- "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
259
- "license": "MIT",
260
- "dependencies": {
261
- "call-bind-apply-helpers": "^1.0.1",
262
- "es-errors": "^1.3.0",
263
- "gopd": "^1.2.0"
264
- },
265
- "engines": {
266
- "node": ">= 0.4"
267
- }
268
- },
269
- "node_modules/ee-first": {
270
- "version": "1.1.1",
271
- "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
272
- "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
273
- "license": "MIT"
274
- },
275
- "node_modules/encodeurl": {
276
- "version": "2.0.0",
277
- "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
278
- "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
279
- "license": "MIT",
280
- "engines": {
281
- "node": ">= 0.8"
282
- }
283
- },
284
- "node_modules/es-define-property": {
285
- "version": "1.0.1",
286
- "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
287
- "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
288
- "license": "MIT",
289
- "engines": {
290
- "node": ">= 0.4"
291
- }
292
- },
293
- "node_modules/es-errors": {
294
- "version": "1.3.0",
295
- "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
296
- "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
297
- "license": "MIT",
298
- "engines": {
299
- "node": ">= 0.4"
300
- }
301
- },
302
- "node_modules/es-object-atoms": {
303
- "version": "1.1.2",
304
- "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
305
- "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
306
- "license": "MIT",
307
- "dependencies": {
308
- "es-errors": "^1.3.0"
309
- },
310
- "engines": {
311
- "node": ">= 0.4"
312
- }
313
- },
314
- "node_modules/es-set-tostringtag": {
315
- "version": "2.1.0",
316
- "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
317
- "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
318
- "license": "MIT",
319
- "dependencies": {
320
- "es-errors": "^1.3.0",
321
- "get-intrinsic": "^1.2.6",
322
- "has-tostringtag": "^1.0.2",
323
- "hasown": "^2.0.2"
324
- },
325
- "engines": {
326
- "node": ">= 0.4"
327
- }
328
- },
329
- "node_modules/escape-html": {
330
- "version": "1.0.3",
331
- "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
332
- "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
333
- "license": "MIT"
334
- },
335
- "node_modules/etag": {
336
- "version": "1.8.1",
337
- "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
338
- "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
339
- "license": "MIT",
340
- "engines": {
341
- "node": ">= 0.6"
342
- }
343
- },
344
- "node_modules/express": {
345
- "version": "4.22.2",
346
- "resolved": "https://registry.npmjs.org/express/-/express-4.22.2.tgz",
347
- "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==",
348
- "license": "MIT",
349
- "dependencies": {
350
- "accepts": "~1.3.8",
351
- "array-flatten": "1.1.1",
352
- "body-parser": "~1.20.5",
353
- "content-disposition": "~0.5.4",
354
- "content-type": "~1.0.4",
355
- "cookie": "~0.7.1",
356
- "cookie-signature": "~1.0.6",
357
- "debug": "2.6.9",
358
- "depd": "2.0.0",
359
- "encodeurl": "~2.0.0",
360
- "escape-html": "~1.0.3",
361
- "etag": "~1.8.1",
362
- "finalhandler": "~1.3.1",
363
- "fresh": "~0.5.2",
364
- "http-errors": "~2.0.0",
365
- "merge-descriptors": "1.0.3",
366
- "methods": "~1.1.2",
367
- "on-finished": "~2.4.1",
368
- "parseurl": "~1.3.3",
369
- "path-to-regexp": "~0.1.12",
370
- "proxy-addr": "~2.0.7",
371
- "qs": "~6.15.1",
372
- "range-parser": "~1.2.1",
373
- "safe-buffer": "5.2.1",
374
- "send": "~0.19.0",
375
- "serve-static": "~1.16.2",
376
- "setprototypeof": "1.2.0",
377
- "statuses": "~2.0.1",
378
- "type-is": "~1.6.18",
379
- "utils-merge": "1.0.1",
380
- "vary": "~1.1.2"
381
- },
382
- "engines": {
383
- "node": ">= 0.10.0"
384
- },
385
- "funding": {
386
- "type": "opencollective",
387
- "url": "https://opencollective.com/express"
388
- }
389
- },
390
- "node_modules/finalhandler": {
391
- "version": "1.3.2",
392
- "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
393
- "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==",
394
- "license": "MIT",
395
- "dependencies": {
396
- "debug": "2.6.9",
397
- "encodeurl": "~2.0.0",
398
- "escape-html": "~1.0.3",
399
- "on-finished": "~2.4.1",
400
- "parseurl": "~1.3.3",
401
- "statuses": "~2.0.2",
402
- "unpipe": "~1.0.0"
403
- },
404
- "engines": {
405
- "node": ">= 0.8"
406
- }
407
- },
408
- "node_modules/follow-redirects": {
409
- "version": "1.16.0",
410
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz",
411
- "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==",
412
- "funding": [
413
- {
414
- "type": "individual",
415
- "url": "https://github.com/sponsors/RubenVerborgh"
416
- }
417
- ],
418
- "license": "MIT",
419
- "engines": {
420
- "node": ">=4.0"
421
- },
422
- "peerDependenciesMeta": {
423
- "debug": {
424
- "optional": true
425
- }
426
- }
427
- },
428
- "node_modules/form-data": {
429
- "version": "4.0.6",
430
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz",
431
- "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==",
432
- "license": "MIT",
433
- "dependencies": {
434
- "asynckit": "^0.4.0",
435
- "combined-stream": "^1.0.8",
436
- "es-set-tostringtag": "^2.1.0",
437
- "hasown": "^2.0.4",
438
- "mime-types": "^2.1.35"
439
- },
440
- "engines": {
441
- "node": ">= 6"
442
- }
443
- },
444
- "node_modules/forwarded": {
445
- "version": "0.2.0",
446
- "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
447
- "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
448
- "license": "MIT",
449
- "engines": {
450
- "node": ">= 0.6"
451
- }
452
- },
453
- "node_modules/fresh": {
454
- "version": "0.5.2",
455
- "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
456
- "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
457
- "license": "MIT",
458
- "engines": {
459
- "node": ">= 0.6"
460
- }
461
- },
462
- "node_modules/function-bind": {
463
- "version": "1.1.2",
464
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
465
- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
466
- "license": "MIT",
467
- "funding": {
468
- "url": "https://github.com/sponsors/ljharb"
469
- }
470
- },
471
- "node_modules/get-intrinsic": {
472
- "version": "1.3.0",
473
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
474
- "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
475
- "license": "MIT",
476
- "dependencies": {
477
- "call-bind-apply-helpers": "^1.0.2",
478
- "es-define-property": "^1.0.1",
479
- "es-errors": "^1.3.0",
480
- "es-object-atoms": "^1.1.1",
481
- "function-bind": "^1.1.2",
482
- "get-proto": "^1.0.1",
483
- "gopd": "^1.2.0",
484
- "has-symbols": "^1.1.0",
485
- "hasown": "^2.0.2",
486
- "math-intrinsics": "^1.1.0"
487
- },
488
- "engines": {
489
- "node": ">= 0.4"
490
- },
491
- "funding": {
492
- "url": "https://github.com/sponsors/ljharb"
493
- }
494
- },
495
- "node_modules/get-proto": {
496
- "version": "1.0.1",
497
- "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
498
- "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
499
- "license": "MIT",
500
- "dependencies": {
501
- "dunder-proto": "^1.0.1",
502
- "es-object-atoms": "^1.0.0"
503
- },
504
- "engines": {
505
- "node": ">= 0.4"
506
- }
507
- },
508
- "node_modules/gopd": {
509
- "version": "1.2.0",
510
- "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
511
- "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
512
- "license": "MIT",
513
- "engines": {
514
- "node": ">= 0.4"
515
- },
516
- "funding": {
517
- "url": "https://github.com/sponsors/ljharb"
518
- }
519
- },
520
- "node_modules/has-symbols": {
521
- "version": "1.1.0",
522
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
523
- "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
524
- "license": "MIT",
525
- "engines": {
526
- "node": ">= 0.4"
527
- },
528
- "funding": {
529
- "url": "https://github.com/sponsors/ljharb"
530
- }
531
- },
532
- "node_modules/has-tostringtag": {
533
- "version": "1.0.2",
534
- "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
535
- "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
536
- "license": "MIT",
537
- "dependencies": {
538
- "has-symbols": "^1.0.3"
539
- },
540
- "engines": {
541
- "node": ">= 0.4"
542
- },
543
- "funding": {
544
- "url": "https://github.com/sponsors/ljharb"
545
- }
546
- },
547
- "node_modules/hasown": {
548
- "version": "2.0.4",
549
- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
550
- "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
551
- "license": "MIT",
552
- "dependencies": {
553
- "function-bind": "^1.1.2"
554
- },
555
- "engines": {
556
- "node": ">= 0.4"
557
- }
558
- },
559
- "node_modules/http-errors": {
560
- "version": "2.0.1",
561
- "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
562
- "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
563
- "license": "MIT",
564
- "dependencies": {
565
- "depd": "~2.0.0",
566
- "inherits": "~2.0.4",
567
- "setprototypeof": "~1.2.0",
568
- "statuses": "~2.0.2",
569
- "toidentifier": "~1.0.1"
570
- },
571
- "engines": {
572
- "node": ">= 0.8"
573
- },
574
- "funding": {
575
- "type": "opencollective",
576
- "url": "https://opencollective.com/express"
577
- }
578
- },
579
- "node_modules/https-proxy-agent": {
580
- "version": "5.0.1",
581
- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
582
- "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
583
- "license": "MIT",
584
- "dependencies": {
585
- "agent-base": "6",
586
- "debug": "4"
587
- },
588
- "engines": {
589
- "node": ">= 6"
590
- }
591
- },
592
- "node_modules/https-proxy-agent/node_modules/debug": {
593
- "version": "4.4.3",
594
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
595
- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
596
- "license": "MIT",
597
- "dependencies": {
598
- "ms": "^2.1.3"
599
- },
600
- "engines": {
601
- "node": ">=6.0"
602
- },
603
- "peerDependenciesMeta": {
604
- "supports-color": {
605
- "optional": true
606
- }
607
- }
608
- },
609
- "node_modules/https-proxy-agent/node_modules/ms": {
610
- "version": "2.1.3",
611
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
612
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
613
- "license": "MIT"
614
- },
615
- "node_modules/iconv-lite": {
616
- "version": "0.4.24",
617
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
618
- "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
619
- "license": "MIT",
620
- "dependencies": {
621
- "safer-buffer": ">= 2.1.2 < 3"
622
- },
623
- "engines": {
624
- "node": ">=0.10.0"
625
- }
626
- },
627
- "node_modules/inherits": {
628
- "version": "2.0.4",
629
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
630
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
631
- "license": "ISC"
632
- },
633
- "node_modules/ipaddr.js": {
634
- "version": "1.9.1",
635
- "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
636
- "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
637
- "license": "MIT",
638
- "engines": {
639
- "node": ">= 0.10"
640
- }
641
- },
642
- "node_modules/math-intrinsics": {
643
- "version": "1.1.0",
644
- "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
645
- "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
646
- "license": "MIT",
647
- "engines": {
648
- "node": ">= 0.4"
649
- }
650
- },
651
- "node_modules/media-typer": {
652
- "version": "0.3.0",
653
- "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
654
- "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
655
- "license": "MIT",
656
- "engines": {
657
- "node": ">= 0.6"
658
- }
659
- },
660
- "node_modules/merge-descriptors": {
661
- "version": "1.0.3",
662
- "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
663
- "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
664
- "license": "MIT",
665
- "funding": {
666
- "url": "https://github.com/sponsors/sindresorhus"
667
- }
668
- },
669
- "node_modules/methods": {
670
- "version": "1.1.2",
671
- "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
672
- "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
673
- "license": "MIT",
674
- "engines": {
675
- "node": ">= 0.6"
676
- }
677
- },
678
- "node_modules/mime": {
679
- "version": "1.6.0",
680
- "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
681
- "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
682
- "license": "MIT",
683
- "bin": {
684
- "mime": "cli.js"
685
- },
686
- "engines": {
687
- "node": ">=4"
688
- }
689
- },
690
- "node_modules/mime-db": {
691
- "version": "1.52.0",
692
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
693
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
694
- "license": "MIT",
695
- "engines": {
696
- "node": ">= 0.6"
697
- }
698
- },
699
- "node_modules/mime-types": {
700
- "version": "2.1.35",
701
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
702
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
703
- "license": "MIT",
704
- "dependencies": {
705
- "mime-db": "1.52.0"
706
- },
707
- "engines": {
708
- "node": ">= 0.6"
709
- }
710
- },
711
- "node_modules/ms": {
712
- "version": "2.0.0",
713
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
714
- "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
715
- "license": "MIT"
716
- },
717
- "node_modules/negotiator": {
718
- "version": "0.6.3",
719
- "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
720
- "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
721
- "license": "MIT",
722
- "engines": {
723
- "node": ">= 0.6"
724
- }
725
- },
726
- "node_modules/object-assign": {
727
- "version": "4.1.1",
728
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
729
- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
730
- "license": "MIT",
731
- "engines": {
732
- "node": ">=0.10.0"
733
- }
734
- },
735
- "node_modules/object-inspect": {
736
- "version": "1.13.4",
737
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
738
- "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
739
- "license": "MIT",
740
- "engines": {
741
- "node": ">= 0.4"
742
- },
743
- "funding": {
744
- "url": "https://github.com/sponsors/ljharb"
745
- }
746
- },
747
- "node_modules/on-finished": {
748
- "version": "2.4.1",
749
- "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
750
- "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
751
- "license": "MIT",
752
- "dependencies": {
753
- "ee-first": "1.1.1"
754
- },
755
- "engines": {
756
- "node": ">= 0.8"
757
- }
758
- },
759
- "node_modules/parseurl": {
760
- "version": "1.3.3",
761
- "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
762
- "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
763
- "license": "MIT",
764
- "engines": {
765
- "node": ">= 0.8"
766
- }
767
- },
768
- "node_modules/path-to-regexp": {
769
- "version": "0.1.13",
770
- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
771
- "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==",
772
- "license": "MIT"
773
- },
774
- "node_modules/proxy-addr": {
775
- "version": "2.0.7",
776
- "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
777
- "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
778
- "license": "MIT",
779
- "dependencies": {
780
- "forwarded": "0.2.0",
781
- "ipaddr.js": "1.9.1"
782
- },
783
- "engines": {
784
- "node": ">= 0.10"
785
- }
786
- },
787
- "node_modules/proxy-from-env": {
788
- "version": "2.1.0",
789
- "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz",
790
- "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==",
791
- "license": "MIT",
792
- "engines": {
793
- "node": ">=10"
794
- }
795
- },
796
- "node_modules/qs": {
797
- "version": "6.15.2",
798
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.2.tgz",
799
- "integrity": "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw==",
800
- "license": "BSD-3-Clause",
801
- "dependencies": {
802
- "side-channel": "^1.1.0"
803
- },
804
- "engines": {
805
- "node": ">=0.6"
806
- },
807
- "funding": {
808
- "url": "https://github.com/sponsors/ljharb"
809
- }
810
- },
811
- "node_modules/range-parser": {
812
- "version": "1.2.1",
813
- "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
814
- "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
815
- "license": "MIT",
816
- "engines": {
817
- "node": ">= 0.6"
818
- }
819
- },
820
- "node_modules/raw-body": {
821
- "version": "2.5.3",
822
- "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
823
- "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
824
- "license": "MIT",
825
- "dependencies": {
826
- "bytes": "~3.1.2",
827
- "http-errors": "~2.0.1",
828
- "iconv-lite": "~0.4.24",
829
- "unpipe": "~1.0.0"
830
- },
831
- "engines": {
832
- "node": ">= 0.8"
833
- }
834
- },
835
- "node_modules/safe-buffer": {
836
- "version": "5.2.1",
837
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
838
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
839
- "funding": [
840
- {
841
- "type": "github",
842
- "url": "https://github.com/sponsors/feross"
843
- },
844
- {
845
- "type": "patreon",
846
- "url": "https://www.patreon.com/feross"
847
- },
848
- {
849
- "type": "consulting",
850
- "url": "https://feross.org/support"
851
- }
852
- ],
853
- "license": "MIT"
854
- },
855
- "node_modules/safer-buffer": {
856
- "version": "2.1.2",
857
- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
858
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
859
- "license": "MIT"
860
- },
861
- "node_modules/send": {
862
- "version": "0.19.2",
863
- "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz",
864
- "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==",
865
- "license": "MIT",
866
- "dependencies": {
867
- "debug": "2.6.9",
868
- "depd": "2.0.0",
869
- "destroy": "1.2.0",
870
- "encodeurl": "~2.0.0",
871
- "escape-html": "~1.0.3",
872
- "etag": "~1.8.1",
873
- "fresh": "~0.5.2",
874
- "http-errors": "~2.0.1",
875
- "mime": "1.6.0",
876
- "ms": "2.1.3",
877
- "on-finished": "~2.4.1",
878
- "range-parser": "~1.2.1",
879
- "statuses": "~2.0.2"
880
- },
881
- "engines": {
882
- "node": ">= 0.8.0"
883
- }
884
- },
885
- "node_modules/send/node_modules/ms": {
886
- "version": "2.1.3",
887
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
888
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
889
- "license": "MIT"
890
- },
891
- "node_modules/serve-static": {
892
- "version": "1.16.3",
893
- "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz",
894
- "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==",
895
- "license": "MIT",
896
- "dependencies": {
897
- "encodeurl": "~2.0.0",
898
- "escape-html": "~1.0.3",
899
- "parseurl": "~1.3.3",
900
- "send": "~0.19.1"
901
- },
902
- "engines": {
903
- "node": ">= 0.8.0"
904
- }
905
- },
906
- "node_modules/setprototypeof": {
907
- "version": "1.2.0",
908
- "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
909
- "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
910
- "license": "ISC"
911
- },
912
- "node_modules/side-channel": {
913
- "version": "1.1.1",
914
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",
915
- "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",
916
- "license": "MIT",
917
- "dependencies": {
918
- "es-errors": "^1.3.0",
919
- "object-inspect": "^1.13.4",
920
- "side-channel-list": "^1.0.1",
921
- "side-channel-map": "^1.0.1",
922
- "side-channel-weakmap": "^1.0.2"
923
- },
924
- "engines": {
925
- "node": ">= 0.4"
926
- },
927
- "funding": {
928
- "url": "https://github.com/sponsors/ljharb"
929
- }
930
- },
931
- "node_modules/side-channel-list": {
932
- "version": "1.0.1",
933
- "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
934
- "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
935
- "license": "MIT",
936
- "dependencies": {
937
- "es-errors": "^1.3.0",
938
- "object-inspect": "^1.13.4"
939
- },
940
- "engines": {
941
- "node": ">= 0.4"
942
- },
943
- "funding": {
944
- "url": "https://github.com/sponsors/ljharb"
945
- }
946
- },
947
- "node_modules/side-channel-map": {
948
- "version": "1.0.1",
949
- "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
950
- "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
951
- "license": "MIT",
952
- "dependencies": {
953
- "call-bound": "^1.0.2",
954
- "es-errors": "^1.3.0",
955
- "get-intrinsic": "^1.2.5",
956
- "object-inspect": "^1.13.3"
957
- },
958
- "engines": {
959
- "node": ">= 0.4"
960
- },
961
- "funding": {
962
- "url": "https://github.com/sponsors/ljharb"
963
- }
964
- },
965
- "node_modules/side-channel-weakmap": {
966
- "version": "1.0.2",
967
- "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
968
- "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
969
- "license": "MIT",
970
- "dependencies": {
971
- "call-bound": "^1.0.2",
972
- "es-errors": "^1.3.0",
973
- "get-intrinsic": "^1.2.5",
974
- "object-inspect": "^1.13.3",
975
- "side-channel-map": "^1.0.1"
976
- },
977
- "engines": {
978
- "node": ">= 0.4"
979
- },
980
- "funding": {
981
- "url": "https://github.com/sponsors/ljharb"
982
- }
983
- },
984
- "node_modules/statuses": {
985
- "version": "2.0.2",
986
- "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
987
- "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
988
- "license": "MIT",
989
- "engines": {
990
- "node": ">= 0.8"
991
- }
992
- },
993
- "node_modules/toidentifier": {
994
- "version": "1.0.1",
995
- "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
996
- "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
997
- "license": "MIT",
998
- "engines": {
999
- "node": ">=0.6"
1000
- }
1001
- },
1002
- "node_modules/type-is": {
1003
- "version": "1.6.18",
1004
- "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
1005
- "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
1006
- "license": "MIT",
1007
- "dependencies": {
1008
- "media-typer": "0.3.0",
1009
- "mime-types": "~2.1.24"
1010
- },
1011
- "engines": {
1012
- "node": ">= 0.6"
1013
- }
1014
- },
1015
- "node_modules/unpipe": {
1016
- "version": "1.0.0",
1017
- "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
1018
- "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
1019
- "license": "MIT",
1020
- "engines": {
1021
- "node": ">= 0.8"
1022
- }
1023
- },
1024
- "node_modules/utils-merge": {
1025
- "version": "1.0.1",
1026
- "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
1027
- "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
1028
- "license": "MIT",
1029
- "engines": {
1030
- "node": ">= 0.4.0"
1031
- }
1032
- },
1033
- "node_modules/vary": {
1034
- "version": "1.1.2",
1035
- "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
1036
- "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
1037
- "license": "MIT",
1038
- "engines": {
1039
- "node": ">= 0.8"
1040
- }
1041
- }
1042
- }
1043
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/accepts/HISTORY.md DELETED
@@ -1,243 +0,0 @@
1
- 1.3.8 / 2022-02-02
2
- ==================
3
-
4
- * deps: mime-types@~2.1.34
5
- - deps: mime-db@~1.51.0
6
- * deps: negotiator@0.6.3
7
-
8
- 1.3.7 / 2019-04-29
9
- ==================
10
-
11
- * deps: negotiator@0.6.2
12
- - Fix sorting charset, encoding, and language with extra parameters
13
-
14
- 1.3.6 / 2019-04-28
15
- ==================
16
-
17
- * deps: mime-types@~2.1.24
18
- - deps: mime-db@~1.40.0
19
-
20
- 1.3.5 / 2018-02-28
21
- ==================
22
-
23
- * deps: mime-types@~2.1.18
24
- - deps: mime-db@~1.33.0
25
-
26
- 1.3.4 / 2017-08-22
27
- ==================
28
-
29
- * deps: mime-types@~2.1.16
30
- - deps: mime-db@~1.29.0
31
-
32
- 1.3.3 / 2016-05-02
33
- ==================
34
-
35
- * deps: mime-types@~2.1.11
36
- - deps: mime-db@~1.23.0
37
- * deps: negotiator@0.6.1
38
- - perf: improve `Accept` parsing speed
39
- - perf: improve `Accept-Charset` parsing speed
40
- - perf: improve `Accept-Encoding` parsing speed
41
- - perf: improve `Accept-Language` parsing speed
42
-
43
- 1.3.2 / 2016-03-08
44
- ==================
45
-
46
- * deps: mime-types@~2.1.10
47
- - Fix extension of `application/dash+xml`
48
- - Update primary extension for `audio/mp4`
49
- - deps: mime-db@~1.22.0
50
-
51
- 1.3.1 / 2016-01-19
52
- ==================
53
-
54
- * deps: mime-types@~2.1.9
55
- - deps: mime-db@~1.21.0
56
-
57
- 1.3.0 / 2015-09-29
58
- ==================
59
-
60
- * deps: mime-types@~2.1.7
61
- - deps: mime-db@~1.19.0
62
- * deps: negotiator@0.6.0
63
- - Fix including type extensions in parameters in `Accept` parsing
64
- - Fix parsing `Accept` parameters with quoted equals
65
- - Fix parsing `Accept` parameters with quoted semicolons
66
- - Lazy-load modules from main entry point
67
- - perf: delay type concatenation until needed
68
- - perf: enable strict mode
69
- - perf: hoist regular expressions
70
- - perf: remove closures getting spec properties
71
- - perf: remove a closure from media type parsing
72
- - perf: remove property delete from media type parsing
73
-
74
- 1.2.13 / 2015-09-06
75
- ===================
76
-
77
- * deps: mime-types@~2.1.6
78
- - deps: mime-db@~1.18.0
79
-
80
- 1.2.12 / 2015-07-30
81
- ===================
82
-
83
- * deps: mime-types@~2.1.4
84
- - deps: mime-db@~1.16.0
85
-
86
- 1.2.11 / 2015-07-16
87
- ===================
88
-
89
- * deps: mime-types@~2.1.3
90
- - deps: mime-db@~1.15.0
91
-
92
- 1.2.10 / 2015-07-01
93
- ===================
94
-
95
- * deps: mime-types@~2.1.2
96
- - deps: mime-db@~1.14.0
97
-
98
- 1.2.9 / 2015-06-08
99
- ==================
100
-
101
- * deps: mime-types@~2.1.1
102
- - perf: fix deopt during mapping
103
-
104
- 1.2.8 / 2015-06-07
105
- ==================
106
-
107
- * deps: mime-types@~2.1.0
108
- - deps: mime-db@~1.13.0
109
- * perf: avoid argument reassignment & argument slice
110
- * perf: avoid negotiator recursive construction
111
- * perf: enable strict mode
112
- * perf: remove unnecessary bitwise operator
113
-
114
- 1.2.7 / 2015-05-10
115
- ==================
116
-
117
- * deps: negotiator@0.5.3
118
- - Fix media type parameter matching to be case-insensitive
119
-
120
- 1.2.6 / 2015-05-07
121
- ==================
122
-
123
- * deps: mime-types@~2.0.11
124
- - deps: mime-db@~1.9.1
125
- * deps: negotiator@0.5.2
126
- - Fix comparing media types with quoted values
127
- - Fix splitting media types with quoted commas
128
-
129
- 1.2.5 / 2015-03-13
130
- ==================
131
-
132
- * deps: mime-types@~2.0.10
133
- - deps: mime-db@~1.8.0
134
-
135
- 1.2.4 / 2015-02-14
136
- ==================
137
-
138
- * Support Node.js 0.6
139
- * deps: mime-types@~2.0.9
140
- - deps: mime-db@~1.7.0
141
- * deps: negotiator@0.5.1
142
- - Fix preference sorting to be stable for long acceptable lists
143
-
144
- 1.2.3 / 2015-01-31
145
- ==================
146
-
147
- * deps: mime-types@~2.0.8
148
- - deps: mime-db@~1.6.0
149
-
150
- 1.2.2 / 2014-12-30
151
- ==================
152
-
153
- * deps: mime-types@~2.0.7
154
- - deps: mime-db@~1.5.0
155
-
156
- 1.2.1 / 2014-12-30
157
- ==================
158
-
159
- * deps: mime-types@~2.0.5
160
- - deps: mime-db@~1.3.1
161
-
162
- 1.2.0 / 2014-12-19
163
- ==================
164
-
165
- * deps: negotiator@0.5.0
166
- - Fix list return order when large accepted list
167
- - Fix missing identity encoding when q=0 exists
168
- - Remove dynamic building of Negotiator class
169
-
170
- 1.1.4 / 2014-12-10
171
- ==================
172
-
173
- * deps: mime-types@~2.0.4
174
- - deps: mime-db@~1.3.0
175
-
176
- 1.1.3 / 2014-11-09
177
- ==================
178
-
179
- * deps: mime-types@~2.0.3
180
- - deps: mime-db@~1.2.0
181
-
182
- 1.1.2 / 2014-10-14
183
- ==================
184
-
185
- * deps: negotiator@0.4.9
186
- - Fix error when media type has invalid parameter
187
-
188
- 1.1.1 / 2014-09-28
189
- ==================
190
-
191
- * deps: mime-types@~2.0.2
192
- - deps: mime-db@~1.1.0
193
- * deps: negotiator@0.4.8
194
- - Fix all negotiations to be case-insensitive
195
- - Stable sort preferences of same quality according to client order
196
-
197
- 1.1.0 / 2014-09-02
198
- ==================
199
-
200
- * update `mime-types`
201
-
202
- 1.0.7 / 2014-07-04
203
- ==================
204
-
205
- * Fix wrong type returned from `type` when match after unknown extension
206
-
207
- 1.0.6 / 2014-06-24
208
- ==================
209
-
210
- * deps: negotiator@0.4.7
211
-
212
- 1.0.5 / 2014-06-20
213
- ==================
214
-
215
- * fix crash when unknown extension given
216
-
217
- 1.0.4 / 2014-06-19
218
- ==================
219
-
220
- * use `mime-types`
221
-
222
- 1.0.3 / 2014-06-11
223
- ==================
224
-
225
- * deps: negotiator@0.4.6
226
- - Order by specificity when quality is the same
227
-
228
- 1.0.2 / 2014-05-29
229
- ==================
230
-
231
- * Fix interpretation when header not in request
232
- * deps: pin negotiator@0.4.5
233
-
234
- 1.0.1 / 2014-01-18
235
- ==================
236
-
237
- * Identity encoding isn't always acceptable
238
- * deps: negotiator@~0.4.0
239
-
240
- 1.0.0 / 2013-12-27
241
- ==================
242
-
243
- * Genesis
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/accepts/LICENSE DELETED
@@ -1,23 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
4
- Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining
7
- a copy of this software and associated documentation files (the
8
- 'Software'), to deal in the Software without restriction, including
9
- without limitation the rights to use, copy, modify, merge, publish,
10
- distribute, sublicense, and/or sell copies of the Software, and to
11
- permit persons to whom the Software is furnished to do so, subject to
12
- the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be
15
- included in all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/accepts/README.md DELETED
@@ -1,140 +0,0 @@
1
- # accepts
2
-
3
- [![NPM Version][npm-version-image]][npm-url]
4
- [![NPM Downloads][npm-downloads-image]][npm-url]
5
- [![Node.js Version][node-version-image]][node-version-url]
6
- [![Build Status][github-actions-ci-image]][github-actions-ci-url]
7
- [![Test Coverage][coveralls-image]][coveralls-url]
8
-
9
- Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator).
10
- Extracted from [koa](https://www.npmjs.com/package/koa) for general use.
11
-
12
- In addition to negotiator, it allows:
13
-
14
- - Allows types as an array or arguments list, ie `(['text/html', 'application/json'])`
15
- as well as `('text/html', 'application/json')`.
16
- - Allows type shorthands such as `json`.
17
- - Returns `false` when no types match
18
- - Treats non-existent headers as `*`
19
-
20
- ## Installation
21
-
22
- This is a [Node.js](https://nodejs.org/en/) module available through the
23
- [npm registry](https://www.npmjs.com/). Installation is done using the
24
- [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
25
-
26
- ```sh
27
- $ npm install accepts
28
- ```
29
-
30
- ## API
31
-
32
- ```js
33
- var accepts = require('accepts')
34
- ```
35
-
36
- ### accepts(req)
37
-
38
- Create a new `Accepts` object for the given `req`.
39
-
40
- #### .charset(charsets)
41
-
42
- Return the first accepted charset. If nothing in `charsets` is accepted,
43
- then `false` is returned.
44
-
45
- #### .charsets()
46
-
47
- Return the charsets that the request accepts, in the order of the client's
48
- preference (most preferred first).
49
-
50
- #### .encoding(encodings)
51
-
52
- Return the first accepted encoding. If nothing in `encodings` is accepted,
53
- then `false` is returned.
54
-
55
- #### .encodings()
56
-
57
- Return the encodings that the request accepts, in the order of the client's
58
- preference (most preferred first).
59
-
60
- #### .language(languages)
61
-
62
- Return the first accepted language. If nothing in `languages` is accepted,
63
- then `false` is returned.
64
-
65
- #### .languages()
66
-
67
- Return the languages that the request accepts, in the order of the client's
68
- preference (most preferred first).
69
-
70
- #### .type(types)
71
-
72
- Return the first accepted type (and it is returned as the same text as what
73
- appears in the `types` array). If nothing in `types` is accepted, then `false`
74
- is returned.
75
-
76
- The `types` array can contain full MIME types or file extensions. Any value
77
- that is not a full MIME types is passed to `require('mime-types').lookup`.
78
-
79
- #### .types()
80
-
81
- Return the types that the request accepts, in the order of the client's
82
- preference (most preferred first).
83
-
84
- ## Examples
85
-
86
- ### Simple type negotiation
87
-
88
- This simple example shows how to use `accepts` to return a different typed
89
- respond body based on what the client wants to accept. The server lists it's
90
- preferences in order and will get back the best match between the client and
91
- server.
92
-
93
- ```js
94
- var accepts = require('accepts')
95
- var http = require('http')
96
-
97
- function app (req, res) {
98
- var accept = accepts(req)
99
-
100
- // the order of this list is significant; should be server preferred order
101
- switch (accept.type(['json', 'html'])) {
102
- case 'json':
103
- res.setHeader('Content-Type', 'application/json')
104
- res.write('{"hello":"world!"}')
105
- break
106
- case 'html':
107
- res.setHeader('Content-Type', 'text/html')
108
- res.write('<b>hello, world!</b>')
109
- break
110
- default:
111
- // the fallback is text/plain, so no need to specify it above
112
- res.setHeader('Content-Type', 'text/plain')
113
- res.write('hello, world!')
114
- break
115
- }
116
-
117
- res.end()
118
- }
119
-
120
- http.createServer(app).listen(3000)
121
- ```
122
-
123
- You can test this out with the cURL program:
124
- ```sh
125
- curl -I -H'Accept: text/html' http://localhost:3000/
126
- ```
127
-
128
- ## License
129
-
130
- [MIT](LICENSE)
131
-
132
- [coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/accepts/master
133
- [coveralls-url]: https://coveralls.io/r/jshttp/accepts?branch=master
134
- [github-actions-ci-image]: https://badgen.net/github/checks/jshttp/accepts/master?label=ci
135
- [github-actions-ci-url]: https://github.com/jshttp/accepts/actions/workflows/ci.yml
136
- [node-version-image]: https://badgen.net/npm/node/accepts
137
- [node-version-url]: https://nodejs.org/en/download
138
- [npm-downloads-image]: https://badgen.net/npm/dm/accepts
139
- [npm-url]: https://npmjs.org/package/accepts
140
- [npm-version-image]: https://badgen.net/npm/v/accepts
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/accepts/index.js DELETED
@@ -1,238 +0,0 @@
1
- /*!
2
- * accepts
3
- * Copyright(c) 2014 Jonathan Ong
4
- * Copyright(c) 2015 Douglas Christopher Wilson
5
- * MIT Licensed
6
- */
7
-
8
- 'use strict'
9
-
10
- /**
11
- * Module dependencies.
12
- * @private
13
- */
14
-
15
- var Negotiator = require('negotiator')
16
- var mime = require('mime-types')
17
-
18
- /**
19
- * Module exports.
20
- * @public
21
- */
22
-
23
- module.exports = Accepts
24
-
25
- /**
26
- * Create a new Accepts object for the given req.
27
- *
28
- * @param {object} req
29
- * @public
30
- */
31
-
32
- function Accepts (req) {
33
- if (!(this instanceof Accepts)) {
34
- return new Accepts(req)
35
- }
36
-
37
- this.headers = req.headers
38
- this.negotiator = new Negotiator(req)
39
- }
40
-
41
- /**
42
- * Check if the given `type(s)` is acceptable, returning
43
- * the best match when true, otherwise `undefined`, in which
44
- * case you should respond with 406 "Not Acceptable".
45
- *
46
- * The `type` value may be a single mime type string
47
- * such as "application/json", the extension name
48
- * such as "json" or an array `["json", "html", "text/plain"]`. When a list
49
- * or array is given the _best_ match, if any is returned.
50
- *
51
- * Examples:
52
- *
53
- * // Accept: text/html
54
- * this.types('html');
55
- * // => "html"
56
- *
57
- * // Accept: text/*, application/json
58
- * this.types('html');
59
- * // => "html"
60
- * this.types('text/html');
61
- * // => "text/html"
62
- * this.types('json', 'text');
63
- * // => "json"
64
- * this.types('application/json');
65
- * // => "application/json"
66
- *
67
- * // Accept: text/*, application/json
68
- * this.types('image/png');
69
- * this.types('png');
70
- * // => undefined
71
- *
72
- * // Accept: text/*;q=.5, application/json
73
- * this.types(['html', 'json']);
74
- * this.types('html', 'json');
75
- * // => "json"
76
- *
77
- * @param {String|Array} types...
78
- * @return {String|Array|Boolean}
79
- * @public
80
- */
81
-
82
- Accepts.prototype.type =
83
- Accepts.prototype.types = function (types_) {
84
- var types = types_
85
-
86
- // support flattened arguments
87
- if (types && !Array.isArray(types)) {
88
- types = new Array(arguments.length)
89
- for (var i = 0; i < types.length; i++) {
90
- types[i] = arguments[i]
91
- }
92
- }
93
-
94
- // no types, return all requested types
95
- if (!types || types.length === 0) {
96
- return this.negotiator.mediaTypes()
97
- }
98
-
99
- // no accept header, return first given type
100
- if (!this.headers.accept) {
101
- return types[0]
102
- }
103
-
104
- var mimes = types.map(extToMime)
105
- var accepts = this.negotiator.mediaTypes(mimes.filter(validMime))
106
- var first = accepts[0]
107
-
108
- return first
109
- ? types[mimes.indexOf(first)]
110
- : false
111
- }
112
-
113
- /**
114
- * Return accepted encodings or best fit based on `encodings`.
115
- *
116
- * Given `Accept-Encoding: gzip, deflate`
117
- * an array sorted by quality is returned:
118
- *
119
- * ['gzip', 'deflate']
120
- *
121
- * @param {String|Array} encodings...
122
- * @return {String|Array}
123
- * @public
124
- */
125
-
126
- Accepts.prototype.encoding =
127
- Accepts.prototype.encodings = function (encodings_) {
128
- var encodings = encodings_
129
-
130
- // support flattened arguments
131
- if (encodings && !Array.isArray(encodings)) {
132
- encodings = new Array(arguments.length)
133
- for (var i = 0; i < encodings.length; i++) {
134
- encodings[i] = arguments[i]
135
- }
136
- }
137
-
138
- // no encodings, return all requested encodings
139
- if (!encodings || encodings.length === 0) {
140
- return this.negotiator.encodings()
141
- }
142
-
143
- return this.negotiator.encodings(encodings)[0] || false
144
- }
145
-
146
- /**
147
- * Return accepted charsets or best fit based on `charsets`.
148
- *
149
- * Given `Accept-Charset: utf-8, iso-8859-1;q=0.2, utf-7;q=0.5`
150
- * an array sorted by quality is returned:
151
- *
152
- * ['utf-8', 'utf-7', 'iso-8859-1']
153
- *
154
- * @param {String|Array} charsets...
155
- * @return {String|Array}
156
- * @public
157
- */
158
-
159
- Accepts.prototype.charset =
160
- Accepts.prototype.charsets = function (charsets_) {
161
- var charsets = charsets_
162
-
163
- // support flattened arguments
164
- if (charsets && !Array.isArray(charsets)) {
165
- charsets = new Array(arguments.length)
166
- for (var i = 0; i < charsets.length; i++) {
167
- charsets[i] = arguments[i]
168
- }
169
- }
170
-
171
- // no charsets, return all requested charsets
172
- if (!charsets || charsets.length === 0) {
173
- return this.negotiator.charsets()
174
- }
175
-
176
- return this.negotiator.charsets(charsets)[0] || false
177
- }
178
-
179
- /**
180
- * Return accepted languages or best fit based on `langs`.
181
- *
182
- * Given `Accept-Language: en;q=0.8, es, pt`
183
- * an array sorted by quality is returned:
184
- *
185
- * ['es', 'pt', 'en']
186
- *
187
- * @param {String|Array} langs...
188
- * @return {Array|String}
189
- * @public
190
- */
191
-
192
- Accepts.prototype.lang =
193
- Accepts.prototype.langs =
194
- Accepts.prototype.language =
195
- Accepts.prototype.languages = function (languages_) {
196
- var languages = languages_
197
-
198
- // support flattened arguments
199
- if (languages && !Array.isArray(languages)) {
200
- languages = new Array(arguments.length)
201
- for (var i = 0; i < languages.length; i++) {
202
- languages[i] = arguments[i]
203
- }
204
- }
205
-
206
- // no languages, return all requested languages
207
- if (!languages || languages.length === 0) {
208
- return this.negotiator.languages()
209
- }
210
-
211
- return this.negotiator.languages(languages)[0] || false
212
- }
213
-
214
- /**
215
- * Convert extnames to mime.
216
- *
217
- * @param {String} type
218
- * @return {String}
219
- * @private
220
- */
221
-
222
- function extToMime (type) {
223
- return type.indexOf('/') === -1
224
- ? mime.lookup(type)
225
- : type
226
- }
227
-
228
- /**
229
- * Check if mime is valid.
230
- *
231
- * @param {String} type
232
- * @return {String}
233
- * @private
234
- */
235
-
236
- function validMime (type) {
237
- return typeof type === 'string'
238
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/accepts/package.json DELETED
@@ -1,47 +0,0 @@
1
- {
2
- "name": "accepts",
3
- "description": "Higher-level content negotiation",
4
- "version": "1.3.8",
5
- "contributors": [
6
- "Douglas Christopher Wilson <doug@somethingdoug.com>",
7
- "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
8
- ],
9
- "license": "MIT",
10
- "repository": "jshttp/accepts",
11
- "dependencies": {
12
- "mime-types": "~2.1.34",
13
- "negotiator": "0.6.3"
14
- },
15
- "devDependencies": {
16
- "deep-equal": "1.0.1",
17
- "eslint": "7.32.0",
18
- "eslint-config-standard": "14.1.1",
19
- "eslint-plugin-import": "2.25.4",
20
- "eslint-plugin-markdown": "2.2.1",
21
- "eslint-plugin-node": "11.1.0",
22
- "eslint-plugin-promise": "4.3.1",
23
- "eslint-plugin-standard": "4.1.0",
24
- "mocha": "9.2.0",
25
- "nyc": "15.1.0"
26
- },
27
- "files": [
28
- "LICENSE",
29
- "HISTORY.md",
30
- "index.js"
31
- ],
32
- "engines": {
33
- "node": ">= 0.6"
34
- },
35
- "scripts": {
36
- "lint": "eslint .",
37
- "test": "mocha --reporter spec --check-leaks --bail test/",
38
- "test-ci": "nyc --reporter=lcov --reporter=text npm test",
39
- "test-cov": "nyc --reporter=html --reporter=text npm test"
40
- },
41
- "keywords": [
42
- "content",
43
- "negotiation",
44
- "accept",
45
- "accepts"
46
- ]
47
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/README.md DELETED
@@ -1,145 +0,0 @@
1
- agent-base
2
- ==========
3
- ### Turn a function into an [`http.Agent`][http.Agent] instance
4
- [![Build Status](https://github.com/TooTallNate/node-agent-base/workflows/Node%20CI/badge.svg)](https://github.com/TooTallNate/node-agent-base/actions?workflow=Node+CI)
5
-
6
- This module provides an `http.Agent` generator. That is, you pass it an async
7
- callback function, and it returns a new `http.Agent` instance that will invoke the
8
- given callback function when sending outbound HTTP requests.
9
-
10
- #### Some subclasses:
11
-
12
- Here's some more interesting uses of `agent-base`.
13
- Send a pull request to list yours!
14
-
15
- * [`http-proxy-agent`][http-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTP endpoints
16
- * [`https-proxy-agent`][https-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTPS endpoints
17
- * [`pac-proxy-agent`][pac-proxy-agent]: A PAC file proxy `http.Agent` implementation for HTTP and HTTPS
18
- * [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS
19
-
20
-
21
- Installation
22
- ------------
23
-
24
- Install with `npm`:
25
-
26
- ``` bash
27
- $ npm install agent-base
28
- ```
29
-
30
-
31
- Example
32
- -------
33
-
34
- Here's a minimal example that creates a new `net.Socket` connection to the server
35
- for every HTTP request (i.e. the equivalent of `agent: false` option):
36
-
37
- ```js
38
- var net = require('net');
39
- var tls = require('tls');
40
- var url = require('url');
41
- var http = require('http');
42
- var agent = require('agent-base');
43
-
44
- var endpoint = 'http://nodejs.org/api/';
45
- var parsed = url.parse(endpoint);
46
-
47
- // This is the important part!
48
- parsed.agent = agent(function (req, opts) {
49
- var socket;
50
- // `secureEndpoint` is true when using the https module
51
- if (opts.secureEndpoint) {
52
- socket = tls.connect(opts);
53
- } else {
54
- socket = net.connect(opts);
55
- }
56
- return socket;
57
- });
58
-
59
- // Everything else works just like normal...
60
- http.get(parsed, function (res) {
61
- console.log('"response" event!', res.headers);
62
- res.pipe(process.stdout);
63
- });
64
- ```
65
-
66
- Returning a Promise or using an `async` function is also supported:
67
-
68
- ```js
69
- agent(async function (req, opts) {
70
- await sleep(1000);
71
- // etc…
72
- });
73
- ```
74
-
75
- Return another `http.Agent` instance to "pass through" the responsibility
76
- for that HTTP request to that agent:
77
-
78
- ```js
79
- agent(function (req, opts) {
80
- return opts.secureEndpoint ? https.globalAgent : http.globalAgent;
81
- });
82
- ```
83
-
84
-
85
- API
86
- ---
87
-
88
- ## Agent(Function callback[, Object options]) → [http.Agent][]
89
-
90
- Creates a base `http.Agent` that will execute the callback function `callback`
91
- for every HTTP request that it is used as the `agent` for. The callback function
92
- is responsible for creating a `stream.Duplex` instance of some kind that will be
93
- used as the underlying socket in the HTTP request.
94
-
95
- The `options` object accepts the following properties:
96
-
97
- * `timeout` - Number - Timeout for the `callback()` function in milliseconds. Defaults to Infinity (optional).
98
-
99
- The callback function should have the following signature:
100
-
101
- ### callback(http.ClientRequest req, Object options, Function cb) → undefined
102
-
103
- The ClientRequest `req` can be accessed to read request headers and
104
- and the path, etc. The `options` object contains the options passed
105
- to the `http.request()`/`https.request()` function call, and is formatted
106
- to be directly passed to `net.connect()`/`tls.connect()`, or however
107
- else you want a Socket to be created. Pass the created socket to
108
- the callback function `cb` once created, and the HTTP request will
109
- continue to proceed.
110
-
111
- If the `https` module is used to invoke the HTTP request, then the
112
- `secureEndpoint` property on `options` _will be set to `true`_.
113
-
114
-
115
- License
116
- -------
117
-
118
- (The MIT License)
119
-
120
- Copyright (c) 2013 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
121
-
122
- Permission is hereby granted, free of charge, to any person obtaining
123
- a copy of this software and associated documentation files (the
124
- 'Software'), to deal in the Software without restriction, including
125
- without limitation the rights to use, copy, modify, merge, publish,
126
- distribute, sublicense, and/or sell copies of the Software, and to
127
- permit persons to whom the Software is furnished to do so, subject to
128
- the following conditions:
129
-
130
- The above copyright notice and this permission notice shall be
131
- included in all copies or substantial portions of the Software.
132
-
133
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
134
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
135
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
136
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
137
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
138
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
139
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
140
-
141
- [http-proxy-agent]: https://github.com/TooTallNate/node-http-proxy-agent
142
- [https-proxy-agent]: https://github.com/TooTallNate/node-https-proxy-agent
143
- [pac-proxy-agent]: https://github.com/TooTallNate/node-pac-proxy-agent
144
- [socks-proxy-agent]: https://github.com/TooTallNate/node-socks-proxy-agent
145
- [http.Agent]: https://nodejs.org/api/http.html#http_class_http_agent
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/dist/src/index.d.ts DELETED
@@ -1,78 +0,0 @@
1
- /// <reference types="node" />
2
- import net from 'net';
3
- import http from 'http';
4
- import https from 'https';
5
- import { Duplex } from 'stream';
6
- import { EventEmitter } from 'events';
7
- declare function createAgent(opts?: createAgent.AgentOptions): createAgent.Agent;
8
- declare function createAgent(callback: createAgent.AgentCallback, opts?: createAgent.AgentOptions): createAgent.Agent;
9
- declare namespace createAgent {
10
- interface ClientRequest extends http.ClientRequest {
11
- _last?: boolean;
12
- _hadError?: boolean;
13
- method: string;
14
- }
15
- interface AgentRequestOptions {
16
- host?: string;
17
- path?: string;
18
- port: number;
19
- }
20
- interface HttpRequestOptions extends AgentRequestOptions, Omit<http.RequestOptions, keyof AgentRequestOptions> {
21
- secureEndpoint: false;
22
- }
23
- interface HttpsRequestOptions extends AgentRequestOptions, Omit<https.RequestOptions, keyof AgentRequestOptions> {
24
- secureEndpoint: true;
25
- }
26
- type RequestOptions = HttpRequestOptions | HttpsRequestOptions;
27
- type AgentLike = Pick<createAgent.Agent, 'addRequest'> | http.Agent;
28
- type AgentCallbackReturn = Duplex | AgentLike;
29
- type AgentCallbackCallback = (err?: Error | null, socket?: createAgent.AgentCallbackReturn) => void;
30
- type AgentCallbackPromise = (req: createAgent.ClientRequest, opts: createAgent.RequestOptions) => createAgent.AgentCallbackReturn | Promise<createAgent.AgentCallbackReturn>;
31
- type AgentCallback = typeof Agent.prototype.callback;
32
- type AgentOptions = {
33
- timeout?: number;
34
- };
35
- /**
36
- * Base `http.Agent` implementation.
37
- * No pooling/keep-alive is implemented by default.
38
- *
39
- * @param {Function} callback
40
- * @api public
41
- */
42
- class Agent extends EventEmitter {
43
- timeout: number | null;
44
- maxFreeSockets: number;
45
- maxTotalSockets: number;
46
- maxSockets: number;
47
- sockets: {
48
- [key: string]: net.Socket[];
49
- };
50
- freeSockets: {
51
- [key: string]: net.Socket[];
52
- };
53
- requests: {
54
- [key: string]: http.IncomingMessage[];
55
- };
56
- options: https.AgentOptions;
57
- private promisifiedCallback?;
58
- private explicitDefaultPort?;
59
- private explicitProtocol?;
60
- constructor(callback?: createAgent.AgentCallback | createAgent.AgentOptions, _opts?: createAgent.AgentOptions);
61
- get defaultPort(): number;
62
- set defaultPort(v: number);
63
- get protocol(): string;
64
- set protocol(v: string);
65
- callback(req: createAgent.ClientRequest, opts: createAgent.RequestOptions, fn: createAgent.AgentCallbackCallback): void;
66
- callback(req: createAgent.ClientRequest, opts: createAgent.RequestOptions): createAgent.AgentCallbackReturn | Promise<createAgent.AgentCallbackReturn>;
67
- /**
68
- * Called by node-core's "_http_client.js" module when creating
69
- * a new HTTP request with this Agent instance.
70
- *
71
- * @api public
72
- */
73
- addRequest(req: ClientRequest, _opts: RequestOptions): void;
74
- freeSocket(socket: net.Socket, opts: AgentOptions): void;
75
- destroy(): void;
76
- }
77
- }
78
- export = createAgent;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/dist/src/index.js DELETED
@@ -1,203 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- const events_1 = require("events");
6
- const debug_1 = __importDefault(require("debug"));
7
- const promisify_1 = __importDefault(require("./promisify"));
8
- const debug = debug_1.default('agent-base');
9
- function isAgent(v) {
10
- return Boolean(v) && typeof v.addRequest === 'function';
11
- }
12
- function isSecureEndpoint() {
13
- const { stack } = new Error();
14
- if (typeof stack !== 'string')
15
- return false;
16
- return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);
17
- }
18
- function createAgent(callback, opts) {
19
- return new createAgent.Agent(callback, opts);
20
- }
21
- (function (createAgent) {
22
- /**
23
- * Base `http.Agent` implementation.
24
- * No pooling/keep-alive is implemented by default.
25
- *
26
- * @param {Function} callback
27
- * @api public
28
- */
29
- class Agent extends events_1.EventEmitter {
30
- constructor(callback, _opts) {
31
- super();
32
- let opts = _opts;
33
- if (typeof callback === 'function') {
34
- this.callback = callback;
35
- }
36
- else if (callback) {
37
- opts = callback;
38
- }
39
- // Timeout for the socket to be returned from the callback
40
- this.timeout = null;
41
- if (opts && typeof opts.timeout === 'number') {
42
- this.timeout = opts.timeout;
43
- }
44
- // These aren't actually used by `agent-base`, but are required
45
- // for the TypeScript definition files in `@types/node` :/
46
- this.maxFreeSockets = 1;
47
- this.maxSockets = 1;
48
- this.maxTotalSockets = Infinity;
49
- this.sockets = {};
50
- this.freeSockets = {};
51
- this.requests = {};
52
- this.options = {};
53
- }
54
- get defaultPort() {
55
- if (typeof this.explicitDefaultPort === 'number') {
56
- return this.explicitDefaultPort;
57
- }
58
- return isSecureEndpoint() ? 443 : 80;
59
- }
60
- set defaultPort(v) {
61
- this.explicitDefaultPort = v;
62
- }
63
- get protocol() {
64
- if (typeof this.explicitProtocol === 'string') {
65
- return this.explicitProtocol;
66
- }
67
- return isSecureEndpoint() ? 'https:' : 'http:';
68
- }
69
- set protocol(v) {
70
- this.explicitProtocol = v;
71
- }
72
- callback(req, opts, fn) {
73
- throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
74
- }
75
- /**
76
- * Called by node-core's "_http_client.js" module when creating
77
- * a new HTTP request with this Agent instance.
78
- *
79
- * @api public
80
- */
81
- addRequest(req, _opts) {
82
- const opts = Object.assign({}, _opts);
83
- if (typeof opts.secureEndpoint !== 'boolean') {
84
- opts.secureEndpoint = isSecureEndpoint();
85
- }
86
- if (opts.host == null) {
87
- opts.host = 'localhost';
88
- }
89
- if (opts.port == null) {
90
- opts.port = opts.secureEndpoint ? 443 : 80;
91
- }
92
- if (opts.protocol == null) {
93
- opts.protocol = opts.secureEndpoint ? 'https:' : 'http:';
94
- }
95
- if (opts.host && opts.path) {
96
- // If both a `host` and `path` are specified then it's most
97
- // likely the result of a `url.parse()` call... we need to
98
- // remove the `path` portion so that `net.connect()` doesn't
99
- // attempt to open that as a unix socket file.
100
- delete opts.path;
101
- }
102
- delete opts.agent;
103
- delete opts.hostname;
104
- delete opts._defaultAgent;
105
- delete opts.defaultPort;
106
- delete opts.createConnection;
107
- // Hint to use "Connection: close"
108
- // XXX: non-documented `http` module API :(
109
- req._last = true;
110
- req.shouldKeepAlive = false;
111
- let timedOut = false;
112
- let timeoutId = null;
113
- const timeoutMs = opts.timeout || this.timeout;
114
- const onerror = (err) => {
115
- if (req._hadError)
116
- return;
117
- req.emit('error', err);
118
- // For Safety. Some additional errors might fire later on
119
- // and we need to make sure we don't double-fire the error event.
120
- req._hadError = true;
121
- };
122
- const ontimeout = () => {
123
- timeoutId = null;
124
- timedOut = true;
125
- const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`);
126
- err.code = 'ETIMEOUT';
127
- onerror(err);
128
- };
129
- const callbackError = (err) => {
130
- if (timedOut)
131
- return;
132
- if (timeoutId !== null) {
133
- clearTimeout(timeoutId);
134
- timeoutId = null;
135
- }
136
- onerror(err);
137
- };
138
- const onsocket = (socket) => {
139
- if (timedOut)
140
- return;
141
- if (timeoutId != null) {
142
- clearTimeout(timeoutId);
143
- timeoutId = null;
144
- }
145
- if (isAgent(socket)) {
146
- // `socket` is actually an `http.Agent` instance, so
147
- // relinquish responsibility for this `req` to the Agent
148
- // from here on
149
- debug('Callback returned another Agent instance %o', socket.constructor.name);
150
- socket.addRequest(req, opts);
151
- return;
152
- }
153
- if (socket) {
154
- socket.once('free', () => {
155
- this.freeSocket(socket, opts);
156
- });
157
- req.onSocket(socket);
158
- return;
159
- }
160
- const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``);
161
- onerror(err);
162
- };
163
- if (typeof this.callback !== 'function') {
164
- onerror(new Error('`callback` is not defined'));
165
- return;
166
- }
167
- if (!this.promisifiedCallback) {
168
- if (this.callback.length >= 3) {
169
- debug('Converting legacy callback function to promise');
170
- this.promisifiedCallback = promisify_1.default(this.callback);
171
- }
172
- else {
173
- this.promisifiedCallback = this.callback;
174
- }
175
- }
176
- if (typeof timeoutMs === 'number' && timeoutMs > 0) {
177
- timeoutId = setTimeout(ontimeout, timeoutMs);
178
- }
179
- if ('port' in opts && typeof opts.port !== 'number') {
180
- opts.port = Number(opts.port);
181
- }
182
- try {
183
- debug('Resolving socket for %o request: %o', opts.protocol, `${req.method} ${req.path}`);
184
- Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError);
185
- }
186
- catch (err) {
187
- Promise.reject(err).catch(callbackError);
188
- }
189
- }
190
- freeSocket(socket, opts) {
191
- debug('Freeing socket %o %o', socket.constructor.name, opts);
192
- socket.destroy();
193
- }
194
- destroy() {
195
- debug('Destroying agent %o', this.constructor.name);
196
- }
197
- }
198
- createAgent.Agent = Agent;
199
- // So that `instanceof` works correctly
200
- createAgent.prototype = createAgent.Agent.prototype;
201
- })(createAgent || (createAgent = {}));
202
- module.exports = createAgent;
203
- //# sourceMappingURL=index.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/dist/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAIA,mCAAsC;AACtC,kDAAgC;AAChC,4DAAoC;AAEpC,MAAM,KAAK,GAAG,eAAW,CAAC,YAAY,CAAC,CAAC;AAExC,SAAS,OAAO,CAAC,CAAM;IACtB,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC;AACzD,CAAC;AAED,SAAS,gBAAgB;IACxB,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,KAAK,EAAE,CAAC;IAC9B,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,IAAK,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACxG,CAAC;AAOD,SAAS,WAAW,CACnB,QAA+D,EAC/D,IAA+B;IAE/B,OAAO,IAAI,WAAW,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAC9C,CAAC;AAED,WAAU,WAAW;IAmDpB;;;;;;OAMG;IACH,MAAa,KAAM,SAAQ,qBAAY;QAmBtC,YACC,QAA+D,EAC/D,KAAgC;YAEhC,KAAK,EAAE,CAAC;YAER,IAAI,IAAI,GAAG,KAAK,CAAC;YACjB,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;gBACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;aACzB;iBAAM,IAAI,QAAQ,EAAE;gBACpB,IAAI,GAAG,QAAQ,CAAC;aAChB;YAED,0DAA0D;YAC1D,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACpB,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE;gBAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;aAC5B;YAED,+DAA+D;YAC/D,0DAA0D;YAC1D,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC;YACxB,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;YACpB,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC;YAChC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;YAClB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;YACtB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;YACnB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QACnB,CAAC;QAED,IAAI,WAAW;YACd,IAAI,OAAO,IAAI,CAAC,mBAAmB,KAAK,QAAQ,EAAE;gBACjD,OAAO,IAAI,CAAC,mBAAmB,CAAC;aAChC;YACD,OAAO,gBAAgB,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QACtC,CAAC;QAED,IAAI,WAAW,CAAC,CAAS;YACxB,IAAI,CAAC,mBAAmB,GAAG,CAAC,CAAC;QAC9B,CAAC;QAED,IAAI,QAAQ;YACX,IAAI,OAAO,IAAI,CAAC,gBAAgB,KAAK,QAAQ,EAAE;gBAC9C,OAAO,IAAI,CAAC,gBAAgB,CAAC;aAC7B;YACD,OAAO,gBAAgB,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;QAChD,CAAC;QAED,IAAI,QAAQ,CAAC,CAAS;YACrB,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC;QAC3B,CAAC;QAaD,QAAQ,CACP,GAA8B,EAC9B,IAA8B,EAC9B,EAAsC;YAKtC,MAAM,IAAI,KAAK,CACd,yFAAyF,CACzF,CAAC;QACH,CAAC;QAED;;;;;WAKG;QACH,UAAU,CAAC,GAAkB,EAAE,KAAqB;YACnD,MAAM,IAAI,qBAAwB,KAAK,CAAE,CAAC;YAE1C,IAAI,OAAO,IAAI,CAAC,cAAc,KAAK,SAAS,EAAE;gBAC7C,IAAI,CAAC,cAAc,GAAG,gBAAgB,EAAE,CAAC;aACzC;YAED,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;gBACtB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;aACxB;YAED,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;gBACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;aAC3C;YAED,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE;gBAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;aACzD;YAED,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE;gBAC3B,2DAA2D;gBAC3D,0DAA0D;gBAC1D,4DAA4D;gBAC5D,8CAA8C;gBAC9C,OAAO,IAAI,CAAC,IAAI,CAAC;aACjB;YAED,OAAO,IAAI,CAAC,KAAK,CAAC;YAClB,OAAO,IAAI,CAAC,QAAQ,CAAC;YACrB,OAAO,IAAI,CAAC,aAAa,CAAC;YAC1B,OAAO,IAAI,CAAC,WAAW,CAAC;YACxB,OAAO,IAAI,CAAC,gBAAgB,CAAC;YAE7B,kCAAkC;YAClC,2CAA2C;YAC3C,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC;YACjB,GAAG,CAAC,eAAe,GAAG,KAAK,CAAC;YAE5B,IAAI,QAAQ,GAAG,KAAK,CAAC;YACrB,IAAI,SAAS,GAAyC,IAAI,CAAC;YAC3D,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC;YAE/C,MAAM,OAAO,GAAG,CAAC,GAA0B,EAAE,EAAE;gBAC9C,IAAI,GAAG,CAAC,SAAS;oBAAE,OAAO;gBAC1B,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;gBACvB,yDAAyD;gBACzD,iEAAiE;gBACjE,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC;YACtB,CAAC,CAAC;YAEF,MAAM,SAAS,GAAG,GAAG,EAAE;gBACtB,SAAS,GAAG,IAAI,CAAC;gBACjB,QAAQ,GAAG,IAAI,CAAC;gBAChB,MAAM,GAAG,GAA0B,IAAI,KAAK,CAC3C,sDAAsD,SAAS,IAAI,CACnE,CAAC;gBACF,GAAG,CAAC,IAAI,GAAG,UAAU,CAAC;gBACtB,OAAO,CAAC,GAAG,CAAC,CAAC;YACd,CAAC,CAAC;YAEF,MAAM,aAAa,GAAG,CAAC,GAA0B,EAAE,EAAE;gBACpD,IAAI,QAAQ;oBAAE,OAAO;gBACrB,IAAI,SAAS,KAAK,IAAI,EAAE;oBACvB,YAAY,CAAC,SAAS,CAAC,CAAC;oBACxB,SAAS,GAAG,IAAI,CAAC;iBACjB;gBACD,OAAO,CAAC,GAAG,CAAC,CAAC;YACd,CAAC,CAAC;YAEF,MAAM,QAAQ,GAAG,CAAC,MAA2B,EAAE,EAAE;gBAChD,IAAI,QAAQ;oBAAE,OAAO;gBACrB,IAAI,SAAS,IAAI,IAAI,EAAE;oBACtB,YAAY,CAAC,SAAS,CAAC,CAAC;oBACxB,SAAS,GAAG,IAAI,CAAC;iBACjB;gBAED,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;oBACpB,oDAAoD;oBACpD,wDAAwD;oBACxD,eAAe;oBACf,KAAK,CACJ,6CAA6C,EAC7C,MAAM,CAAC,WAAW,CAAC,IAAI,CACvB,CAAC;oBACD,MAA4B,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;oBACpD,OAAO;iBACP;gBAED,IAAI,MAAM,EAAE;oBACX,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE;wBACxB,IAAI,CAAC,UAAU,CAAC,MAAoB,EAAE,IAAI,CAAC,CAAC;oBAC7C,CAAC,CAAC,CAAC;oBACH,GAAG,CAAC,QAAQ,CAAC,MAAoB,CAAC,CAAC;oBACnC,OAAO;iBACP;gBAED,MAAM,GAAG,GAAG,IAAI,KAAK,CACpB,qDAAqD,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,IAAI,IAAI,CAC/E,CAAC;gBACF,OAAO,CAAC,GAAG,CAAC,CAAC;YACd,CAAC,CAAC;YAEF,IAAI,OAAO,IAAI,CAAC,QAAQ,KAAK,UAAU,EAAE;gBACxC,OAAO,CAAC,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC,CAAC;gBAChD,OAAO;aACP;YAED,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE;gBAC9B,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,EAAE;oBAC9B,KAAK,CAAC,gDAAgD,CAAC,CAAC;oBACxD,IAAI,CAAC,mBAAmB,GAAG,mBAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBACpD;qBAAM;oBACN,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,QAAQ,CAAC;iBACzC;aACD;YAED,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,GAAG,CAAC,EAAE;gBACnD,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;aAC7C;YAED,IAAI,MAAM,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;gBACpD,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aAC9B;YAED,IAAI;gBACH,KAAK,CACJ,qCAAqC,EACrC,IAAI,CAAC,QAAQ,EACb,GAAG,GAAG,CAAC,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,CAC3B,CAAC;gBACF,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CACxD,QAAQ,EACR,aAAa,CACb,CAAC;aACF;YAAC,OAAO,GAAG,EAAE;gBACb,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;aACzC;QACF,CAAC;QAED,UAAU,CAAC,MAAkB,EAAE,IAAkB;YAChD,KAAK,CAAC,sBAAsB,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAC7D,MAAM,CAAC,OAAO,EAAE,CAAC;QAClB,CAAC;QAED,OAAO;YACN,KAAK,CAAC,qBAAqB,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACrD,CAAC;KACD;IAxPY,iBAAK,QAwPjB,CAAA;IAED,uCAAuC;IACvC,WAAW,CAAC,SAAS,GAAG,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC;AACrD,CAAC,EAtTS,WAAW,KAAX,WAAW,QAsTpB;AAED,iBAAS,WAAW,CAAC"}
 
 
node_modules/agent-base/dist/src/promisify.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { ClientRequest, RequestOptions, AgentCallbackCallback, AgentCallbackPromise } from './index';
2
- declare type LegacyCallback = (req: ClientRequest, opts: RequestOptions, fn: AgentCallbackCallback) => void;
3
- export default function promisify(fn: LegacyCallback): AgentCallbackPromise;
4
- export {};
 
 
 
 
 
node_modules/agent-base/dist/src/promisify.js DELETED
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function promisify(fn) {
4
- return function (req, opts) {
5
- return new Promise((resolve, reject) => {
6
- fn.call(this, req, opts, (err, rtn) => {
7
- if (err) {
8
- reject(err);
9
- }
10
- else {
11
- resolve(rtn);
12
- }
13
- });
14
- });
15
- };
16
- }
17
- exports.default = promisify;
18
- //# sourceMappingURL=promisify.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/dist/src/promisify.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"promisify.js","sourceRoot":"","sources":["../../src/promisify.ts"],"names":[],"mappings":";;AAeA,SAAwB,SAAS,CAAC,EAAkB;IACnD,OAAO,UAAsB,GAAkB,EAAE,IAAoB;QACpE,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACtC,EAAE,CAAC,IAAI,CACN,IAAI,EACJ,GAAG,EACH,IAAI,EACJ,CAAC,GAA6B,EAAE,GAAyB,EAAE,EAAE;gBAC5D,IAAI,GAAG,EAAE;oBACR,MAAM,CAAC,GAAG,CAAC,CAAC;iBACZ;qBAAM;oBACN,OAAO,CAAC,GAAG,CAAC,CAAC;iBACb;YACF,CAAC,CACD,CAAC;QACH,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC;AAjBD,4BAiBC"}
 
 
node_modules/agent-base/node_modules/debug/LICENSE DELETED
@@ -1,20 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
4
- Copyright (c) 2018-2021 Josh Junon
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software
7
- and associated documentation files (the 'Software'), to deal in the Software without restriction,
8
- including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
9
- and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all copies or substantial
13
- portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
16
- LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/node_modules/debug/README.md DELETED
@@ -1,481 +0,0 @@
1
- # debug
2
- [![OpenCollective](https://opencollective.com/debug/backers/badge.svg)](#backers)
3
- [![OpenCollective](https://opencollective.com/debug/sponsors/badge.svg)](#sponsors)
4
-
5
- <img width="647" src="https://user-images.githubusercontent.com/71256/29091486-fa38524c-7c37-11e7-895f-e7ec8e1039b6.png">
6
-
7
- A tiny JavaScript debugging utility modelled after Node.js core's debugging
8
- technique. Works in Node.js and web browsers.
9
-
10
- ## Installation
11
-
12
- ```bash
13
- $ npm install debug
14
- ```
15
-
16
- ## Usage
17
-
18
- `debug` exposes a function; simply pass this function the name of your module, and it will return a decorated version of `console.error` for you to pass debug statements to. This will allow you to toggle the debug output for different parts of your module as well as the module as a whole.
19
-
20
- Example [_app.js_](./examples/node/app.js):
21
-
22
- ```js
23
- var debug = require('debug')('http')
24
- , http = require('http')
25
- , name = 'My App';
26
-
27
- // fake app
28
-
29
- debug('booting %o', name);
30
-
31
- http.createServer(function(req, res){
32
- debug(req.method + ' ' + req.url);
33
- res.end('hello\n');
34
- }).listen(3000, function(){
35
- debug('listening');
36
- });
37
-
38
- // fake worker of some kind
39
-
40
- require('./worker');
41
- ```
42
-
43
- Example [_worker.js_](./examples/node/worker.js):
44
-
45
- ```js
46
- var a = require('debug')('worker:a')
47
- , b = require('debug')('worker:b');
48
-
49
- function work() {
50
- a('doing lots of uninteresting work');
51
- setTimeout(work, Math.random() * 1000);
52
- }
53
-
54
- work();
55
-
56
- function workb() {
57
- b('doing some work');
58
- setTimeout(workb, Math.random() * 2000);
59
- }
60
-
61
- workb();
62
- ```
63
-
64
- The `DEBUG` environment variable is then used to enable these based on space or
65
- comma-delimited names.
66
-
67
- Here are some examples:
68
-
69
- <img width="647" alt="screen shot 2017-08-08 at 12 53 04 pm" src="https://user-images.githubusercontent.com/71256/29091703-a6302cdc-7c38-11e7-8304-7c0b3bc600cd.png">
70
- <img width="647" alt="screen shot 2017-08-08 at 12 53 38 pm" src="https://user-images.githubusercontent.com/71256/29091700-a62a6888-7c38-11e7-800b-db911291ca2b.png">
71
- <img width="647" alt="screen shot 2017-08-08 at 12 53 25 pm" src="https://user-images.githubusercontent.com/71256/29091701-a62ea114-7c38-11e7-826a-2692bedca740.png">
72
-
73
- #### Windows command prompt notes
74
-
75
- ##### CMD
76
-
77
- On Windows the environment variable is set using the `set` command.
78
-
79
- ```cmd
80
- set DEBUG=*,-not_this
81
- ```
82
-
83
- Example:
84
-
85
- ```cmd
86
- set DEBUG=* & node app.js
87
- ```
88
-
89
- ##### PowerShell (VS Code default)
90
-
91
- PowerShell uses different syntax to set environment variables.
92
-
93
- ```cmd
94
- $env:DEBUG = "*,-not_this"
95
- ```
96
-
97
- Example:
98
-
99
- ```cmd
100
- $env:DEBUG='app';node app.js
101
- ```
102
-
103
- Then, run the program to be debugged as usual.
104
-
105
- npm script example:
106
- ```js
107
- "windowsDebug": "@powershell -Command $env:DEBUG='*';node app.js",
108
- ```
109
-
110
- ## Namespace Colors
111
-
112
- Every debug instance has a color generated for it based on its namespace name.
113
- This helps when visually parsing the debug output to identify which debug instance
114
- a debug line belongs to.
115
-
116
- #### Node.js
117
-
118
- In Node.js, colors are enabled when stderr is a TTY. You also _should_ install
119
- the [`supports-color`](https://npmjs.org/supports-color) module alongside debug,
120
- otherwise debug will only use a small handful of basic colors.
121
-
122
- <img width="521" src="https://user-images.githubusercontent.com/71256/29092181-47f6a9e6-7c3a-11e7-9a14-1928d8a711cd.png">
123
-
124
- #### Web Browser
125
-
126
- Colors are also enabled on "Web Inspectors" that understand the `%c` formatting
127
- option. These are WebKit web inspectors, Firefox ([since version
128
- 31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/))
129
- and the Firebug plugin for Firefox (any version).
130
-
131
- <img width="524" src="https://user-images.githubusercontent.com/71256/29092033-b65f9f2e-7c39-11e7-8e32-f6f0d8e865c1.png">
132
-
133
-
134
- ## Millisecond diff
135
-
136
- When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the "+NNNms" will show you how much time was spent between calls.
137
-
138
- <img width="647" src="https://user-images.githubusercontent.com/71256/29091486-fa38524c-7c37-11e7-895f-e7ec8e1039b6.png">
139
-
140
- When stdout is not a TTY, `Date#toISOString()` is used, making it more useful for logging the debug information as shown below:
141
-
142
- <img width="647" src="https://user-images.githubusercontent.com/71256/29091956-6bd78372-7c39-11e7-8c55-c948396d6edd.png">
143
-
144
-
145
- ## Conventions
146
-
147
- If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser". If you append a "*" to the end of your name, it will always be enabled regardless of the setting of the DEBUG environment variable. You can then use it for normal output as well as debug output.
148
-
149
- ## Wildcards
150
-
151
- The `*` character may be used as a wildcard. Suppose for example your library has
152
- debuggers named "connect:bodyParser", "connect:compress", "connect:session",
153
- instead of listing all three with
154
- `DEBUG=connect:bodyParser,connect:compress,connect:session`, you may simply do
155
- `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.
156
-
157
- You can also exclude specific debuggers by prefixing them with a "-" character.
158
- For example, `DEBUG=*,-connect:*` would include all debuggers except those
159
- starting with "connect:".
160
-
161
- ## Environment Variables
162
-
163
- When running through Node.js, you can set a few environment variables that will
164
- change the behavior of the debug logging:
165
-
166
- | Name | Purpose |
167
- |-----------|-------------------------------------------------|
168
- | `DEBUG` | Enables/disables specific debugging namespaces. |
169
- | `DEBUG_HIDE_DATE` | Hide date from debug output (non-TTY). |
170
- | `DEBUG_COLORS`| Whether or not to use colors in the debug output. |
171
- | `DEBUG_DEPTH` | Object inspection depth. |
172
- | `DEBUG_SHOW_HIDDEN` | Shows hidden properties on inspected objects. |
173
-
174
-
175
- __Note:__ The environment variables beginning with `DEBUG_` end up being
176
- converted into an Options object that gets used with `%o`/`%O` formatters.
177
- See the Node.js documentation for
178
- [`util.inspect()`](https://nodejs.org/api/util.html#util_util_inspect_object_options)
179
- for the complete list.
180
-
181
- ## Formatters
182
-
183
- Debug uses [printf-style](https://wikipedia.org/wiki/Printf_format_string) formatting.
184
- Below are the officially supported formatters:
185
-
186
- | Formatter | Representation |
187
- |-----------|----------------|
188
- | `%O` | Pretty-print an Object on multiple lines. |
189
- | `%o` | Pretty-print an Object all on a single line. |
190
- | `%s` | String. |
191
- | `%d` | Number (both integer and float). |
192
- | `%j` | JSON. Replaced with the string '[Circular]' if the argument contains circular references. |
193
- | `%%` | Single percent sign ('%'). This does not consume an argument. |
194
-
195
-
196
- ### Custom formatters
197
-
198
- You can add custom formatters by extending the `debug.formatters` object.
199
- For example, if you wanted to add support for rendering a Buffer as hex with
200
- `%h`, you could do something like:
201
-
202
- ```js
203
- const createDebug = require('debug')
204
- createDebug.formatters.h = (v) => {
205
- return v.toString('hex')
206
- }
207
-
208
- // …elsewhere
209
- const debug = createDebug('foo')
210
- debug('this is hex: %h', new Buffer('hello world'))
211
- // foo this is hex: 68656c6c6f20776f726c6421 +0ms
212
- ```
213
-
214
-
215
- ## Browser Support
216
-
217
- You can build a browser-ready script using [browserify](https://github.com/substack/node-browserify),
218
- or just use the [browserify-as-a-service](https://wzrd.in/) [build](https://wzrd.in/standalone/debug@latest),
219
- if you don't want to build it yourself.
220
-
221
- Debug's enable state is currently persisted by `localStorage`.
222
- Consider the situation shown below where you have `worker:a` and `worker:b`,
223
- and wish to debug both. You can enable this using `localStorage.debug`:
224
-
225
- ```js
226
- localStorage.debug = 'worker:*'
227
- ```
228
-
229
- And then refresh the page.
230
-
231
- ```js
232
- a = debug('worker:a');
233
- b = debug('worker:b');
234
-
235
- setInterval(function(){
236
- a('doing some work');
237
- }, 1000);
238
-
239
- setInterval(function(){
240
- b('doing some work');
241
- }, 1200);
242
- ```
243
-
244
- In Chromium-based web browsers (e.g. Brave, Chrome, and Electron), the JavaScript console will—by default—only show messages logged by `debug` if the "Verbose" log level is _enabled_.
245
-
246
- <img width="647" src="https://user-images.githubusercontent.com/7143133/152083257-29034707-c42c-4959-8add-3cee850e6fcf.png">
247
-
248
- ## Output streams
249
-
250
- By default `debug` will log to stderr, however this can be configured per-namespace by overriding the `log` method:
251
-
252
- Example [_stdout.js_](./examples/node/stdout.js):
253
-
254
- ```js
255
- var debug = require('debug');
256
- var error = debug('app:error');
257
-
258
- // by default stderr is used
259
- error('goes to stderr!');
260
-
261
- var log = debug('app:log');
262
- // set this namespace to log via console.log
263
- log.log = console.log.bind(console); // don't forget to bind to console!
264
- log('goes to stdout');
265
- error('still goes to stderr!');
266
-
267
- // set all output to go via console.info
268
- // overrides all per-namespace log settings
269
- debug.log = console.info.bind(console);
270
- error('now goes to stdout via console.info');
271
- log('still goes to stdout, but via console.info now');
272
- ```
273
-
274
- ## Extend
275
- You can simply extend debugger
276
- ```js
277
- const log = require('debug')('auth');
278
-
279
- //creates new debug instance with extended namespace
280
- const logSign = log.extend('sign');
281
- const logLogin = log.extend('login');
282
-
283
- log('hello'); // auth hello
284
- logSign('hello'); //auth:sign hello
285
- logLogin('hello'); //auth:login hello
286
- ```
287
-
288
- ## Set dynamically
289
-
290
- You can also enable debug dynamically by calling the `enable()` method :
291
-
292
- ```js
293
- let debug = require('debug');
294
-
295
- console.log(1, debug.enabled('test'));
296
-
297
- debug.enable('test');
298
- console.log(2, debug.enabled('test'));
299
-
300
- debug.disable();
301
- console.log(3, debug.enabled('test'));
302
-
303
- ```
304
-
305
- print :
306
- ```
307
- 1 false
308
- 2 true
309
- 3 false
310
- ```
311
-
312
- Usage :
313
- `enable(namespaces)`
314
- `namespaces` can include modes separated by a colon and wildcards.
315
-
316
- Note that calling `enable()` completely overrides previously set DEBUG variable :
317
-
318
- ```
319
- $ DEBUG=foo node -e 'var dbg = require("debug"); dbg.enable("bar"); console.log(dbg.enabled("foo"))'
320
- => false
321
- ```
322
-
323
- `disable()`
324
-
325
- Will disable all namespaces. The functions returns the namespaces currently
326
- enabled (and skipped). This can be useful if you want to disable debugging
327
- temporarily without knowing what was enabled to begin with.
328
-
329
- For example:
330
-
331
- ```js
332
- let debug = require('debug');
333
- debug.enable('foo:*,-foo:bar');
334
- let namespaces = debug.disable();
335
- debug.enable(namespaces);
336
- ```
337
-
338
- Note: There is no guarantee that the string will be identical to the initial
339
- enable string, but semantically they will be identical.
340
-
341
- ## Checking whether a debug target is enabled
342
-
343
- After you've created a debug instance, you can determine whether or not it is
344
- enabled by checking the `enabled` property:
345
-
346
- ```javascript
347
- const debug = require('debug')('http');
348
-
349
- if (debug.enabled) {
350
- // do stuff...
351
- }
352
- ```
353
-
354
- You can also manually toggle this property to force the debug instance to be
355
- enabled or disabled.
356
-
357
- ## Usage in child processes
358
-
359
- Due to the way `debug` detects if the output is a TTY or not, colors are not shown in child processes when `stderr` is piped. A solution is to pass the `DEBUG_COLORS=1` environment variable to the child process.
360
- For example:
361
-
362
- ```javascript
363
- worker = fork(WORKER_WRAP_PATH, [workerPath], {
364
- stdio: [
365
- /* stdin: */ 0,
366
- /* stdout: */ 'pipe',
367
- /* stderr: */ 'pipe',
368
- 'ipc',
369
- ],
370
- env: Object.assign({}, process.env, {
371
- DEBUG_COLORS: 1 // without this settings, colors won't be shown
372
- }),
373
- });
374
-
375
- worker.stderr.pipe(process.stderr, { end: false });
376
- ```
377
-
378
-
379
- ## Authors
380
-
381
- - TJ Holowaychuk
382
- - Nathan Rajlich
383
- - Andrew Rhyne
384
- - Josh Junon
385
-
386
- ## Backers
387
-
388
- Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/debug#backer)]
389
-
390
- <a href="https://opencollective.com/debug/backer/0/website" target="_blank"><img src="https://opencollective.com/debug/backer/0/avatar.svg"></a>
391
- <a href="https://opencollective.com/debug/backer/1/website" target="_blank"><img src="https://opencollective.com/debug/backer/1/avatar.svg"></a>
392
- <a href="https://opencollective.com/debug/backer/2/website" target="_blank"><img src="https://opencollective.com/debug/backer/2/avatar.svg"></a>
393
- <a href="https://opencollective.com/debug/backer/3/website" target="_blank"><img src="https://opencollective.com/debug/backer/3/avatar.svg"></a>
394
- <a href="https://opencollective.com/debug/backer/4/website" target="_blank"><img src="https://opencollective.com/debug/backer/4/avatar.svg"></a>
395
- <a href="https://opencollective.com/debug/backer/5/website" target="_blank"><img src="https://opencollective.com/debug/backer/5/avatar.svg"></a>
396
- <a href="https://opencollective.com/debug/backer/6/website" target="_blank"><img src="https://opencollective.com/debug/backer/6/avatar.svg"></a>
397
- <a href="https://opencollective.com/debug/backer/7/website" target="_blank"><img src="https://opencollective.com/debug/backer/7/avatar.svg"></a>
398
- <a href="https://opencollective.com/debug/backer/8/website" target="_blank"><img src="https://opencollective.com/debug/backer/8/avatar.svg"></a>
399
- <a href="https://opencollective.com/debug/backer/9/website" target="_blank"><img src="https://opencollective.com/debug/backer/9/avatar.svg"></a>
400
- <a href="https://opencollective.com/debug/backer/10/website" target="_blank"><img src="https://opencollective.com/debug/backer/10/avatar.svg"></a>
401
- <a href="https://opencollective.com/debug/backer/11/website" target="_blank"><img src="https://opencollective.com/debug/backer/11/avatar.svg"></a>
402
- <a href="https://opencollective.com/debug/backer/12/website" target="_blank"><img src="https://opencollective.com/debug/backer/12/avatar.svg"></a>
403
- <a href="https://opencollective.com/debug/backer/13/website" target="_blank"><img src="https://opencollective.com/debug/backer/13/avatar.svg"></a>
404
- <a href="https://opencollective.com/debug/backer/14/website" target="_blank"><img src="https://opencollective.com/debug/backer/14/avatar.svg"></a>
405
- <a href="https://opencollective.com/debug/backer/15/website" target="_blank"><img src="https://opencollective.com/debug/backer/15/avatar.svg"></a>
406
- <a href="https://opencollective.com/debug/backer/16/website" target="_blank"><img src="https://opencollective.com/debug/backer/16/avatar.svg"></a>
407
- <a href="https://opencollective.com/debug/backer/17/website" target="_blank"><img src="https://opencollective.com/debug/backer/17/avatar.svg"></a>
408
- <a href="https://opencollective.com/debug/backer/18/website" target="_blank"><img src="https://opencollective.com/debug/backer/18/avatar.svg"></a>
409
- <a href="https://opencollective.com/debug/backer/19/website" target="_blank"><img src="https://opencollective.com/debug/backer/19/avatar.svg"></a>
410
- <a href="https://opencollective.com/debug/backer/20/website" target="_blank"><img src="https://opencollective.com/debug/backer/20/avatar.svg"></a>
411
- <a href="https://opencollective.com/debug/backer/21/website" target="_blank"><img src="https://opencollective.com/debug/backer/21/avatar.svg"></a>
412
- <a href="https://opencollective.com/debug/backer/22/website" target="_blank"><img src="https://opencollective.com/debug/backer/22/avatar.svg"></a>
413
- <a href="https://opencollective.com/debug/backer/23/website" target="_blank"><img src="https://opencollective.com/debug/backer/23/avatar.svg"></a>
414
- <a href="https://opencollective.com/debug/backer/24/website" target="_blank"><img src="https://opencollective.com/debug/backer/24/avatar.svg"></a>
415
- <a href="https://opencollective.com/debug/backer/25/website" target="_blank"><img src="https://opencollective.com/debug/backer/25/avatar.svg"></a>
416
- <a href="https://opencollective.com/debug/backer/26/website" target="_blank"><img src="https://opencollective.com/debug/backer/26/avatar.svg"></a>
417
- <a href="https://opencollective.com/debug/backer/27/website" target="_blank"><img src="https://opencollective.com/debug/backer/27/avatar.svg"></a>
418
- <a href="https://opencollective.com/debug/backer/28/website" target="_blank"><img src="https://opencollective.com/debug/backer/28/avatar.svg"></a>
419
- <a href="https://opencollective.com/debug/backer/29/website" target="_blank"><img src="https://opencollective.com/debug/backer/29/avatar.svg"></a>
420
-
421
-
422
- ## Sponsors
423
-
424
- Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/debug#sponsor)]
425
-
426
- <a href="https://opencollective.com/debug/sponsor/0/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/0/avatar.svg"></a>
427
- <a href="https://opencollective.com/debug/sponsor/1/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/1/avatar.svg"></a>
428
- <a href="https://opencollective.com/debug/sponsor/2/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/2/avatar.svg"></a>
429
- <a href="https://opencollective.com/debug/sponsor/3/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/3/avatar.svg"></a>
430
- <a href="https://opencollective.com/debug/sponsor/4/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/4/avatar.svg"></a>
431
- <a href="https://opencollective.com/debug/sponsor/5/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/5/avatar.svg"></a>
432
- <a href="https://opencollective.com/debug/sponsor/6/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/6/avatar.svg"></a>
433
- <a href="https://opencollective.com/debug/sponsor/7/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/7/avatar.svg"></a>
434
- <a href="https://opencollective.com/debug/sponsor/8/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/8/avatar.svg"></a>
435
- <a href="https://opencollective.com/debug/sponsor/9/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/9/avatar.svg"></a>
436
- <a href="https://opencollective.com/debug/sponsor/10/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/10/avatar.svg"></a>
437
- <a href="https://opencollective.com/debug/sponsor/11/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/11/avatar.svg"></a>
438
- <a href="https://opencollective.com/debug/sponsor/12/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/12/avatar.svg"></a>
439
- <a href="https://opencollective.com/debug/sponsor/13/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/13/avatar.svg"></a>
440
- <a href="https://opencollective.com/debug/sponsor/14/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/14/avatar.svg"></a>
441
- <a href="https://opencollective.com/debug/sponsor/15/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/15/avatar.svg"></a>
442
- <a href="https://opencollective.com/debug/sponsor/16/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/16/avatar.svg"></a>
443
- <a href="https://opencollective.com/debug/sponsor/17/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/17/avatar.svg"></a>
444
- <a href="https://opencollective.com/debug/sponsor/18/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/18/avatar.svg"></a>
445
- <a href="https://opencollective.com/debug/sponsor/19/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/19/avatar.svg"></a>
446
- <a href="https://opencollective.com/debug/sponsor/20/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/20/avatar.svg"></a>
447
- <a href="https://opencollective.com/debug/sponsor/21/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/21/avatar.svg"></a>
448
- <a href="https://opencollective.com/debug/sponsor/22/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/22/avatar.svg"></a>
449
- <a href="https://opencollective.com/debug/sponsor/23/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/23/avatar.svg"></a>
450
- <a href="https://opencollective.com/debug/sponsor/24/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/24/avatar.svg"></a>
451
- <a href="https://opencollective.com/debug/sponsor/25/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/25/avatar.svg"></a>
452
- <a href="https://opencollective.com/debug/sponsor/26/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/26/avatar.svg"></a>
453
- <a href="https://opencollective.com/debug/sponsor/27/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/27/avatar.svg"></a>
454
- <a href="https://opencollective.com/debug/sponsor/28/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/28/avatar.svg"></a>
455
- <a href="https://opencollective.com/debug/sponsor/29/website" target="_blank"><img src="https://opencollective.com/debug/sponsor/29/avatar.svg"></a>
456
-
457
- ## License
458
-
459
- (The MIT License)
460
-
461
- Copyright (c) 2014-2017 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
462
- Copyright (c) 2018-2021 Josh Junon
463
-
464
- Permission is hereby granted, free of charge, to any person obtaining
465
- a copy of this software and associated documentation files (the
466
- 'Software'), to deal in the Software without restriction, including
467
- without limitation the rights to use, copy, modify, merge, publish,
468
- distribute, sublicense, and/or sell copies of the Software, and to
469
- permit persons to whom the Software is furnished to do so, subject to
470
- the following conditions:
471
-
472
- The above copyright notice and this permission notice shall be
473
- included in all copies or substantial portions of the Software.
474
-
475
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
476
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
477
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
478
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
479
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
480
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
481
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/node_modules/debug/package.json DELETED
@@ -1,64 +0,0 @@
1
- {
2
- "name": "debug",
3
- "version": "4.4.3",
4
- "repository": {
5
- "type": "git",
6
- "url": "git://github.com/debug-js/debug.git"
7
- },
8
- "description": "Lightweight debugging utility for Node.js and the browser",
9
- "keywords": [
10
- "debug",
11
- "log",
12
- "debugger"
13
- ],
14
- "files": [
15
- "src",
16
- "LICENSE",
17
- "README.md"
18
- ],
19
- "author": "Josh Junon (https://github.com/qix-)",
20
- "contributors": [
21
- "TJ Holowaychuk <tj@vision-media.ca>",
22
- "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io)",
23
- "Andrew Rhyne <rhyneandrew@gmail.com>"
24
- ],
25
- "license": "MIT",
26
- "scripts": {
27
- "lint": "xo",
28
- "test": "npm run test:node && npm run test:browser && npm run lint",
29
- "test:node": "mocha test.js test.node.js",
30
- "test:browser": "karma start --single-run",
31
- "test:coverage": "cat ./coverage/lcov.info | coveralls"
32
- },
33
- "dependencies": {
34
- "ms": "^2.1.3"
35
- },
36
- "devDependencies": {
37
- "brfs": "^2.0.1",
38
- "browserify": "^16.2.3",
39
- "coveralls": "^3.0.2",
40
- "karma": "^3.1.4",
41
- "karma-browserify": "^6.0.0",
42
- "karma-chrome-launcher": "^2.2.0",
43
- "karma-mocha": "^1.3.0",
44
- "mocha": "^5.2.0",
45
- "mocha-lcov-reporter": "^1.2.0",
46
- "sinon": "^14.0.0",
47
- "xo": "^0.23.0"
48
- },
49
- "peerDependenciesMeta": {
50
- "supports-color": {
51
- "optional": true
52
- }
53
- },
54
- "main": "./src/index.js",
55
- "browser": "./src/browser.js",
56
- "engines": {
57
- "node": ">=6.0"
58
- },
59
- "xo": {
60
- "rules": {
61
- "import/extensions": "off"
62
- }
63
- }
64
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/node_modules/debug/src/browser.js DELETED
@@ -1,272 +0,0 @@
1
- /* eslint-env browser */
2
-
3
- /**
4
- * This is the web browser implementation of `debug()`.
5
- */
6
-
7
- exports.formatArgs = formatArgs;
8
- exports.save = save;
9
- exports.load = load;
10
- exports.useColors = useColors;
11
- exports.storage = localstorage();
12
- exports.destroy = (() => {
13
- let warned = false;
14
-
15
- return () => {
16
- if (!warned) {
17
- warned = true;
18
- console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
19
- }
20
- };
21
- })();
22
-
23
- /**
24
- * Colors.
25
- */
26
-
27
- exports.colors = [
28
- '#0000CC',
29
- '#0000FF',
30
- '#0033CC',
31
- '#0033FF',
32
- '#0066CC',
33
- '#0066FF',
34
- '#0099CC',
35
- '#0099FF',
36
- '#00CC00',
37
- '#00CC33',
38
- '#00CC66',
39
- '#00CC99',
40
- '#00CCCC',
41
- '#00CCFF',
42
- '#3300CC',
43
- '#3300FF',
44
- '#3333CC',
45
- '#3333FF',
46
- '#3366CC',
47
- '#3366FF',
48
- '#3399CC',
49
- '#3399FF',
50
- '#33CC00',
51
- '#33CC33',
52
- '#33CC66',
53
- '#33CC99',
54
- '#33CCCC',
55
- '#33CCFF',
56
- '#6600CC',
57
- '#6600FF',
58
- '#6633CC',
59
- '#6633FF',
60
- '#66CC00',
61
- '#66CC33',
62
- '#9900CC',
63
- '#9900FF',
64
- '#9933CC',
65
- '#9933FF',
66
- '#99CC00',
67
- '#99CC33',
68
- '#CC0000',
69
- '#CC0033',
70
- '#CC0066',
71
- '#CC0099',
72
- '#CC00CC',
73
- '#CC00FF',
74
- '#CC3300',
75
- '#CC3333',
76
- '#CC3366',
77
- '#CC3399',
78
- '#CC33CC',
79
- '#CC33FF',
80
- '#CC6600',
81
- '#CC6633',
82
- '#CC9900',
83
- '#CC9933',
84
- '#CCCC00',
85
- '#CCCC33',
86
- '#FF0000',
87
- '#FF0033',
88
- '#FF0066',
89
- '#FF0099',
90
- '#FF00CC',
91
- '#FF00FF',
92
- '#FF3300',
93
- '#FF3333',
94
- '#FF3366',
95
- '#FF3399',
96
- '#FF33CC',
97
- '#FF33FF',
98
- '#FF6600',
99
- '#FF6633',
100
- '#FF9900',
101
- '#FF9933',
102
- '#FFCC00',
103
- '#FFCC33'
104
- ];
105
-
106
- /**
107
- * Currently only WebKit-based Web Inspectors, Firefox >= v31,
108
- * and the Firebug extension (any Firefox version) are known
109
- * to support "%c" CSS customizations.
110
- *
111
- * TODO: add a `localStorage` variable to explicitly enable/disable colors
112
- */
113
-
114
- // eslint-disable-next-line complexity
115
- function useColors() {
116
- // NB: In an Electron preload script, document will be defined but not fully
117
- // initialized. Since we know we're in Chrome, we'll just detect this case
118
- // explicitly
119
- if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
120
- return true;
121
- }
122
-
123
- // Internet Explorer and Edge do not support colors.
124
- if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
125
- return false;
126
- }
127
-
128
- let m;
129
-
130
- // Is webkit? http://stackoverflow.com/a/16459606/376773
131
- // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
132
- // eslint-disable-next-line no-return-assign
133
- return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
134
- // Is firebug? http://stackoverflow.com/a/398120/376773
135
- (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
136
- // Is firefox >= v31?
137
- // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
138
- (typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
139
- // Double check webkit in userAgent just in case we are in a worker
140
- (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
141
- }
142
-
143
- /**
144
- * Colorize log arguments if enabled.
145
- *
146
- * @api public
147
- */
148
-
149
- function formatArgs(args) {
150
- args[0] = (this.useColors ? '%c' : '') +
151
- this.namespace +
152
- (this.useColors ? ' %c' : ' ') +
153
- args[0] +
154
- (this.useColors ? '%c ' : ' ') +
155
- '+' + module.exports.humanize(this.diff);
156
-
157
- if (!this.useColors) {
158
- return;
159
- }
160
-
161
- const c = 'color: ' + this.color;
162
- args.splice(1, 0, c, 'color: inherit');
163
-
164
- // The final "%c" is somewhat tricky, because there could be other
165
- // arguments passed either before or after the %c, so we need to
166
- // figure out the correct index to insert the CSS into
167
- let index = 0;
168
- let lastC = 0;
169
- args[0].replace(/%[a-zA-Z%]/g, match => {
170
- if (match === '%%') {
171
- return;
172
- }
173
- index++;
174
- if (match === '%c') {
175
- // We only are interested in the *last* %c
176
- // (the user may have provided their own)
177
- lastC = index;
178
- }
179
- });
180
-
181
- args.splice(lastC, 0, c);
182
- }
183
-
184
- /**
185
- * Invokes `console.debug()` when available.
186
- * No-op when `console.debug` is not a "function".
187
- * If `console.debug` is not available, falls back
188
- * to `console.log`.
189
- *
190
- * @api public
191
- */
192
- exports.log = console.debug || console.log || (() => {});
193
-
194
- /**
195
- * Save `namespaces`.
196
- *
197
- * @param {String} namespaces
198
- * @api private
199
- */
200
- function save(namespaces) {
201
- try {
202
- if (namespaces) {
203
- exports.storage.setItem('debug', namespaces);
204
- } else {
205
- exports.storage.removeItem('debug');
206
- }
207
- } catch (error) {
208
- // Swallow
209
- // XXX (@Qix-) should we be logging these?
210
- }
211
- }
212
-
213
- /**
214
- * Load `namespaces`.
215
- *
216
- * @return {String} returns the previously persisted debug modes
217
- * @api private
218
- */
219
- function load() {
220
- let r;
221
- try {
222
- r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
223
- } catch (error) {
224
- // Swallow
225
- // XXX (@Qix-) should we be logging these?
226
- }
227
-
228
- // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
229
- if (!r && typeof process !== 'undefined' && 'env' in process) {
230
- r = process.env.DEBUG;
231
- }
232
-
233
- return r;
234
- }
235
-
236
- /**
237
- * Localstorage attempts to return the localstorage.
238
- *
239
- * This is necessary because safari throws
240
- * when a user disables cookies/localstorage
241
- * and you attempt to access it.
242
- *
243
- * @return {LocalStorage}
244
- * @api private
245
- */
246
-
247
- function localstorage() {
248
- try {
249
- // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
250
- // The Browser also has localStorage in the global context.
251
- return localStorage;
252
- } catch (error) {
253
- // Swallow
254
- // XXX (@Qix-) should we be logging these?
255
- }
256
- }
257
-
258
- module.exports = require('./common')(exports);
259
-
260
- const {formatters} = module.exports;
261
-
262
- /**
263
- * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
264
- */
265
-
266
- formatters.j = function (v) {
267
- try {
268
- return JSON.stringify(v);
269
- } catch (error) {
270
- return '[UnexpectedJSONParseError]: ' + error.message;
271
- }
272
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/node_modules/debug/src/common.js DELETED
@@ -1,292 +0,0 @@
1
-
2
- /**
3
- * This is the common logic for both the Node.js and web browser
4
- * implementations of `debug()`.
5
- */
6
-
7
- function setup(env) {
8
- createDebug.debug = createDebug;
9
- createDebug.default = createDebug;
10
- createDebug.coerce = coerce;
11
- createDebug.disable = disable;
12
- createDebug.enable = enable;
13
- createDebug.enabled = enabled;
14
- createDebug.humanize = require('ms');
15
- createDebug.destroy = destroy;
16
-
17
- Object.keys(env).forEach(key => {
18
- createDebug[key] = env[key];
19
- });
20
-
21
- /**
22
- * The currently active debug mode names, and names to skip.
23
- */
24
-
25
- createDebug.names = [];
26
- createDebug.skips = [];
27
-
28
- /**
29
- * Map of special "%n" handling functions, for the debug "format" argument.
30
- *
31
- * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
32
- */
33
- createDebug.formatters = {};
34
-
35
- /**
36
- * Selects a color for a debug namespace
37
- * @param {String} namespace The namespace string for the debug instance to be colored
38
- * @return {Number|String} An ANSI color code for the given namespace
39
- * @api private
40
- */
41
- function selectColor(namespace) {
42
- let hash = 0;
43
-
44
- for (let i = 0; i < namespace.length; i++) {
45
- hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
46
- hash |= 0; // Convert to 32bit integer
47
- }
48
-
49
- return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
50
- }
51
- createDebug.selectColor = selectColor;
52
-
53
- /**
54
- * Create a debugger with the given `namespace`.
55
- *
56
- * @param {String} namespace
57
- * @return {Function}
58
- * @api public
59
- */
60
- function createDebug(namespace) {
61
- let prevTime;
62
- let enableOverride = null;
63
- let namespacesCache;
64
- let enabledCache;
65
-
66
- function debug(...args) {
67
- // Disabled?
68
- if (!debug.enabled) {
69
- return;
70
- }
71
-
72
- const self = debug;
73
-
74
- // Set `diff` timestamp
75
- const curr = Number(new Date());
76
- const ms = curr - (prevTime || curr);
77
- self.diff = ms;
78
- self.prev = prevTime;
79
- self.curr = curr;
80
- prevTime = curr;
81
-
82
- args[0] = createDebug.coerce(args[0]);
83
-
84
- if (typeof args[0] !== 'string') {
85
- // Anything else let's inspect with %O
86
- args.unshift('%O');
87
- }
88
-
89
- // Apply any `formatters` transformations
90
- let index = 0;
91
- args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
92
- // If we encounter an escaped % then don't increase the array index
93
- if (match === '%%') {
94
- return '%';
95
- }
96
- index++;
97
- const formatter = createDebug.formatters[format];
98
- if (typeof formatter === 'function') {
99
- const val = args[index];
100
- match = formatter.call(self, val);
101
-
102
- // Now we need to remove `args[index]` since it's inlined in the `format`
103
- args.splice(index, 1);
104
- index--;
105
- }
106
- return match;
107
- });
108
-
109
- // Apply env-specific formatting (colors, etc.)
110
- createDebug.formatArgs.call(self, args);
111
-
112
- const logFn = self.log || createDebug.log;
113
- logFn.apply(self, args);
114
- }
115
-
116
- debug.namespace = namespace;
117
- debug.useColors = createDebug.useColors();
118
- debug.color = createDebug.selectColor(namespace);
119
- debug.extend = extend;
120
- debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
121
-
122
- Object.defineProperty(debug, 'enabled', {
123
- enumerable: true,
124
- configurable: false,
125
- get: () => {
126
- if (enableOverride !== null) {
127
- return enableOverride;
128
- }
129
- if (namespacesCache !== createDebug.namespaces) {
130
- namespacesCache = createDebug.namespaces;
131
- enabledCache = createDebug.enabled(namespace);
132
- }
133
-
134
- return enabledCache;
135
- },
136
- set: v => {
137
- enableOverride = v;
138
- }
139
- });
140
-
141
- // Env-specific initialization logic for debug instances
142
- if (typeof createDebug.init === 'function') {
143
- createDebug.init(debug);
144
- }
145
-
146
- return debug;
147
- }
148
-
149
- function extend(namespace, delimiter) {
150
- const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
151
- newDebug.log = this.log;
152
- return newDebug;
153
- }
154
-
155
- /**
156
- * Enables a debug mode by namespaces. This can include modes
157
- * separated by a colon and wildcards.
158
- *
159
- * @param {String} namespaces
160
- * @api public
161
- */
162
- function enable(namespaces) {
163
- createDebug.save(namespaces);
164
- createDebug.namespaces = namespaces;
165
-
166
- createDebug.names = [];
167
- createDebug.skips = [];
168
-
169
- const split = (typeof namespaces === 'string' ? namespaces : '')
170
- .trim()
171
- .replace(/\s+/g, ',')
172
- .split(',')
173
- .filter(Boolean);
174
-
175
- for (const ns of split) {
176
- if (ns[0] === '-') {
177
- createDebug.skips.push(ns.slice(1));
178
- } else {
179
- createDebug.names.push(ns);
180
- }
181
- }
182
- }
183
-
184
- /**
185
- * Checks if the given string matches a namespace template, honoring
186
- * asterisks as wildcards.
187
- *
188
- * @param {String} search
189
- * @param {String} template
190
- * @return {Boolean}
191
- */
192
- function matchesTemplate(search, template) {
193
- let searchIndex = 0;
194
- let templateIndex = 0;
195
- let starIndex = -1;
196
- let matchIndex = 0;
197
-
198
- while (searchIndex < search.length) {
199
- if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
200
- // Match character or proceed with wildcard
201
- if (template[templateIndex] === '*') {
202
- starIndex = templateIndex;
203
- matchIndex = searchIndex;
204
- templateIndex++; // Skip the '*'
205
- } else {
206
- searchIndex++;
207
- templateIndex++;
208
- }
209
- } else if (starIndex !== -1) { // eslint-disable-line no-negated-condition
210
- // Backtrack to the last '*' and try to match more characters
211
- templateIndex = starIndex + 1;
212
- matchIndex++;
213
- searchIndex = matchIndex;
214
- } else {
215
- return false; // No match
216
- }
217
- }
218
-
219
- // Handle trailing '*' in template
220
- while (templateIndex < template.length && template[templateIndex] === '*') {
221
- templateIndex++;
222
- }
223
-
224
- return templateIndex === template.length;
225
- }
226
-
227
- /**
228
- * Disable debug output.
229
- *
230
- * @return {String} namespaces
231
- * @api public
232
- */
233
- function disable() {
234
- const namespaces = [
235
- ...createDebug.names,
236
- ...createDebug.skips.map(namespace => '-' + namespace)
237
- ].join(',');
238
- createDebug.enable('');
239
- return namespaces;
240
- }
241
-
242
- /**
243
- * Returns true if the given mode name is enabled, false otherwise.
244
- *
245
- * @param {String} name
246
- * @return {Boolean}
247
- * @api public
248
- */
249
- function enabled(name) {
250
- for (const skip of createDebug.skips) {
251
- if (matchesTemplate(name, skip)) {
252
- return false;
253
- }
254
- }
255
-
256
- for (const ns of createDebug.names) {
257
- if (matchesTemplate(name, ns)) {
258
- return true;
259
- }
260
- }
261
-
262
- return false;
263
- }
264
-
265
- /**
266
- * Coerce `val`.
267
- *
268
- * @param {Mixed} val
269
- * @return {Mixed}
270
- * @api private
271
- */
272
- function coerce(val) {
273
- if (val instanceof Error) {
274
- return val.stack || val.message;
275
- }
276
- return val;
277
- }
278
-
279
- /**
280
- * XXX DO NOT USE. This is a temporary stub function.
281
- * XXX It WILL be removed in the next major release.
282
- */
283
- function destroy() {
284
- console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
285
- }
286
-
287
- createDebug.enable(createDebug.load());
288
-
289
- return createDebug;
290
- }
291
-
292
- module.exports = setup;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/node_modules/debug/src/index.js DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * Detect Electron renderer / nwjs process, which is node, but we should
3
- * treat as a browser.
4
- */
5
-
6
- if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
7
- module.exports = require('./browser.js');
8
- } else {
9
- module.exports = require('./node.js');
10
- }
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/node_modules/debug/src/node.js DELETED
@@ -1,263 +0,0 @@
1
- /**
2
- * Module dependencies.
3
- */
4
-
5
- const tty = require('tty');
6
- const util = require('util');
7
-
8
- /**
9
- * This is the Node.js implementation of `debug()`.
10
- */
11
-
12
- exports.init = init;
13
- exports.log = log;
14
- exports.formatArgs = formatArgs;
15
- exports.save = save;
16
- exports.load = load;
17
- exports.useColors = useColors;
18
- exports.destroy = util.deprecate(
19
- () => {},
20
- 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'
21
- );
22
-
23
- /**
24
- * Colors.
25
- */
26
-
27
- exports.colors = [6, 2, 3, 4, 5, 1];
28
-
29
- try {
30
- // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
31
- // eslint-disable-next-line import/no-extraneous-dependencies
32
- const supportsColor = require('supports-color');
33
-
34
- if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
35
- exports.colors = [
36
- 20,
37
- 21,
38
- 26,
39
- 27,
40
- 32,
41
- 33,
42
- 38,
43
- 39,
44
- 40,
45
- 41,
46
- 42,
47
- 43,
48
- 44,
49
- 45,
50
- 56,
51
- 57,
52
- 62,
53
- 63,
54
- 68,
55
- 69,
56
- 74,
57
- 75,
58
- 76,
59
- 77,
60
- 78,
61
- 79,
62
- 80,
63
- 81,
64
- 92,
65
- 93,
66
- 98,
67
- 99,
68
- 112,
69
- 113,
70
- 128,
71
- 129,
72
- 134,
73
- 135,
74
- 148,
75
- 149,
76
- 160,
77
- 161,
78
- 162,
79
- 163,
80
- 164,
81
- 165,
82
- 166,
83
- 167,
84
- 168,
85
- 169,
86
- 170,
87
- 171,
88
- 172,
89
- 173,
90
- 178,
91
- 179,
92
- 184,
93
- 185,
94
- 196,
95
- 197,
96
- 198,
97
- 199,
98
- 200,
99
- 201,
100
- 202,
101
- 203,
102
- 204,
103
- 205,
104
- 206,
105
- 207,
106
- 208,
107
- 209,
108
- 214,
109
- 215,
110
- 220,
111
- 221
112
- ];
113
- }
114
- } catch (error) {
115
- // Swallow - we only care if `supports-color` is available; it doesn't have to be.
116
- }
117
-
118
- /**
119
- * Build up the default `inspectOpts` object from the environment variables.
120
- *
121
- * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
122
- */
123
-
124
- exports.inspectOpts = Object.keys(process.env).filter(key => {
125
- return /^debug_/i.test(key);
126
- }).reduce((obj, key) => {
127
- // Camel-case
128
- const prop = key
129
- .substring(6)
130
- .toLowerCase()
131
- .replace(/_([a-z])/g, (_, k) => {
132
- return k.toUpperCase();
133
- });
134
-
135
- // Coerce string value into JS value
136
- let val = process.env[key];
137
- if (/^(yes|on|true|enabled)$/i.test(val)) {
138
- val = true;
139
- } else if (/^(no|off|false|disabled)$/i.test(val)) {
140
- val = false;
141
- } else if (val === 'null') {
142
- val = null;
143
- } else {
144
- val = Number(val);
145
- }
146
-
147
- obj[prop] = val;
148
- return obj;
149
- }, {});
150
-
151
- /**
152
- * Is stdout a TTY? Colored output is enabled when `true`.
153
- */
154
-
155
- function useColors() {
156
- return 'colors' in exports.inspectOpts ?
157
- Boolean(exports.inspectOpts.colors) :
158
- tty.isatty(process.stderr.fd);
159
- }
160
-
161
- /**
162
- * Adds ANSI color escape codes if enabled.
163
- *
164
- * @api public
165
- */
166
-
167
- function formatArgs(args) {
168
- const {namespace: name, useColors} = this;
169
-
170
- if (useColors) {
171
- const c = this.color;
172
- const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
173
- const prefix = ` ${colorCode};1m${name} \u001B[0m`;
174
-
175
- args[0] = prefix + args[0].split('\n').join('\n' + prefix);
176
- args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
177
- } else {
178
- args[0] = getDate() + name + ' ' + args[0];
179
- }
180
- }
181
-
182
- function getDate() {
183
- if (exports.inspectOpts.hideDate) {
184
- return '';
185
- }
186
- return new Date().toISOString() + ' ';
187
- }
188
-
189
- /**
190
- * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
191
- */
192
-
193
- function log(...args) {
194
- return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
195
- }
196
-
197
- /**
198
- * Save `namespaces`.
199
- *
200
- * @param {String} namespaces
201
- * @api private
202
- */
203
- function save(namespaces) {
204
- if (namespaces) {
205
- process.env.DEBUG = namespaces;
206
- } else {
207
- // If you set a process.env field to null or undefined, it gets cast to the
208
- // string 'null' or 'undefined'. Just delete instead.
209
- delete process.env.DEBUG;
210
- }
211
- }
212
-
213
- /**
214
- * Load `namespaces`.
215
- *
216
- * @return {String} returns the previously persisted debug modes
217
- * @api private
218
- */
219
-
220
- function load() {
221
- return process.env.DEBUG;
222
- }
223
-
224
- /**
225
- * Init logic for `debug` instances.
226
- *
227
- * Create a new `inspectOpts` object in case `useColors` is set
228
- * differently for a particular `debug` instance.
229
- */
230
-
231
- function init(debug) {
232
- debug.inspectOpts = {};
233
-
234
- const keys = Object.keys(exports.inspectOpts);
235
- for (let i = 0; i < keys.length; i++) {
236
- debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
237
- }
238
- }
239
-
240
- module.exports = require('./common')(exports);
241
-
242
- const {formatters} = module.exports;
243
-
244
- /**
245
- * Map %o to `util.inspect()`, all on a single line.
246
- */
247
-
248
- formatters.o = function (v) {
249
- this.inspectOpts.colors = this.useColors;
250
- return util.inspect(v, this.inspectOpts)
251
- .split('\n')
252
- .map(str => str.trim())
253
- .join(' ');
254
- };
255
-
256
- /**
257
- * Map %O to `util.inspect()`, allowing multiple lines if needed.
258
- */
259
-
260
- formatters.O = function (v) {
261
- this.inspectOpts.colors = this.useColors;
262
- return util.inspect(v, this.inspectOpts);
263
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/node_modules/ms/index.js DELETED
@@ -1,162 +0,0 @@
1
- /**
2
- * Helpers.
3
- */
4
-
5
- var s = 1000;
6
- var m = s * 60;
7
- var h = m * 60;
8
- var d = h * 24;
9
- var w = d * 7;
10
- var y = d * 365.25;
11
-
12
- /**
13
- * Parse or format the given `val`.
14
- *
15
- * Options:
16
- *
17
- * - `long` verbose formatting [false]
18
- *
19
- * @param {String|Number} val
20
- * @param {Object} [options]
21
- * @throws {Error} throw an error if val is not a non-empty string or a number
22
- * @return {String|Number}
23
- * @api public
24
- */
25
-
26
- module.exports = function (val, options) {
27
- options = options || {};
28
- var type = typeof val;
29
- if (type === 'string' && val.length > 0) {
30
- return parse(val);
31
- } else if (type === 'number' && isFinite(val)) {
32
- return options.long ? fmtLong(val) : fmtShort(val);
33
- }
34
- throw new Error(
35
- 'val is not a non-empty string or a valid number. val=' +
36
- JSON.stringify(val)
37
- );
38
- };
39
-
40
- /**
41
- * Parse the given `str` and return milliseconds.
42
- *
43
- * @param {String} str
44
- * @return {Number}
45
- * @api private
46
- */
47
-
48
- function parse(str) {
49
- str = String(str);
50
- if (str.length > 100) {
51
- return;
52
- }
53
- var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
54
- str
55
- );
56
- if (!match) {
57
- return;
58
- }
59
- var n = parseFloat(match[1]);
60
- var type = (match[2] || 'ms').toLowerCase();
61
- switch (type) {
62
- case 'years':
63
- case 'year':
64
- case 'yrs':
65
- case 'yr':
66
- case 'y':
67
- return n * y;
68
- case 'weeks':
69
- case 'week':
70
- case 'w':
71
- return n * w;
72
- case 'days':
73
- case 'day':
74
- case 'd':
75
- return n * d;
76
- case 'hours':
77
- case 'hour':
78
- case 'hrs':
79
- case 'hr':
80
- case 'h':
81
- return n * h;
82
- case 'minutes':
83
- case 'minute':
84
- case 'mins':
85
- case 'min':
86
- case 'm':
87
- return n * m;
88
- case 'seconds':
89
- case 'second':
90
- case 'secs':
91
- case 'sec':
92
- case 's':
93
- return n * s;
94
- case 'milliseconds':
95
- case 'millisecond':
96
- case 'msecs':
97
- case 'msec':
98
- case 'ms':
99
- return n;
100
- default:
101
- return undefined;
102
- }
103
- }
104
-
105
- /**
106
- * Short format for `ms`.
107
- *
108
- * @param {Number} ms
109
- * @return {String}
110
- * @api private
111
- */
112
-
113
- function fmtShort(ms) {
114
- var msAbs = Math.abs(ms);
115
- if (msAbs >= d) {
116
- return Math.round(ms / d) + 'd';
117
- }
118
- if (msAbs >= h) {
119
- return Math.round(ms / h) + 'h';
120
- }
121
- if (msAbs >= m) {
122
- return Math.round(ms / m) + 'm';
123
- }
124
- if (msAbs >= s) {
125
- return Math.round(ms / s) + 's';
126
- }
127
- return ms + 'ms';
128
- }
129
-
130
- /**
131
- * Long format for `ms`.
132
- *
133
- * @param {Number} ms
134
- * @return {String}
135
- * @api private
136
- */
137
-
138
- function fmtLong(ms) {
139
- var msAbs = Math.abs(ms);
140
- if (msAbs >= d) {
141
- return plural(ms, msAbs, d, 'day');
142
- }
143
- if (msAbs >= h) {
144
- return plural(ms, msAbs, h, 'hour');
145
- }
146
- if (msAbs >= m) {
147
- return plural(ms, msAbs, m, 'minute');
148
- }
149
- if (msAbs >= s) {
150
- return plural(ms, msAbs, s, 'second');
151
- }
152
- return ms + ' ms';
153
- }
154
-
155
- /**
156
- * Pluralization helper.
157
- */
158
-
159
- function plural(ms, msAbs, n, name) {
160
- var isPlural = msAbs >= n * 1.5;
161
- return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
162
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/node_modules/ms/license.md DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2020 Vercel, Inc.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/node_modules/ms/package.json DELETED
@@ -1,38 +0,0 @@
1
- {
2
- "name": "ms",
3
- "version": "2.1.3",
4
- "description": "Tiny millisecond conversion utility",
5
- "repository": "vercel/ms",
6
- "main": "./index",
7
- "files": [
8
- "index.js"
9
- ],
10
- "scripts": {
11
- "precommit": "lint-staged",
12
- "lint": "eslint lib/* bin/*",
13
- "test": "mocha tests.js"
14
- },
15
- "eslintConfig": {
16
- "extends": "eslint:recommended",
17
- "env": {
18
- "node": true,
19
- "es6": true
20
- }
21
- },
22
- "lint-staged": {
23
- "*.js": [
24
- "npm run lint",
25
- "prettier --single-quote --write",
26
- "git add"
27
- ]
28
- },
29
- "license": "MIT",
30
- "devDependencies": {
31
- "eslint": "4.18.2",
32
- "expect.js": "0.3.1",
33
- "husky": "0.14.3",
34
- "lint-staged": "5.0.0",
35
- "mocha": "4.0.1",
36
- "prettier": "2.0.5"
37
- }
38
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/node_modules/ms/readme.md DELETED
@@ -1,59 +0,0 @@
1
- # ms
2
-
3
- ![CI](https://github.com/vercel/ms/workflows/CI/badge.svg)
4
-
5
- Use this package to easily convert various time formats to milliseconds.
6
-
7
- ## Examples
8
-
9
- ```js
10
- ms('2 days') // 172800000
11
- ms('1d') // 86400000
12
- ms('10h') // 36000000
13
- ms('2.5 hrs') // 9000000
14
- ms('2h') // 7200000
15
- ms('1m') // 60000
16
- ms('5s') // 5000
17
- ms('1y') // 31557600000
18
- ms('100') // 100
19
- ms('-3 days') // -259200000
20
- ms('-1h') // -3600000
21
- ms('-200') // -200
22
- ```
23
-
24
- ### Convert from Milliseconds
25
-
26
- ```js
27
- ms(60000) // "1m"
28
- ms(2 * 60000) // "2m"
29
- ms(-3 * 60000) // "-3m"
30
- ms(ms('10 hours')) // "10h"
31
- ```
32
-
33
- ### Time Format Written-Out
34
-
35
- ```js
36
- ms(60000, { long: true }) // "1 minute"
37
- ms(2 * 60000, { long: true }) // "2 minutes"
38
- ms(-3 * 60000, { long: true }) // "-3 minutes"
39
- ms(ms('10 hours'), { long: true }) // "10 hours"
40
- ```
41
-
42
- ## Features
43
-
44
- - Works both in [Node.js](https://nodejs.org) and in the browser
45
- - If a number is supplied to `ms`, a string with a unit is returned
46
- - If a string that contains the number is supplied, it returns it as a number (e.g.: it returns `100` for `'100'`)
47
- - If you pass a string with a number and a valid unit, the number of equivalent milliseconds is returned
48
-
49
- ## Related Packages
50
-
51
- - [ms.macro](https://github.com/knpwrs/ms.macro) - Run `ms` as a macro at build-time.
52
-
53
- ## Caught a Bug?
54
-
55
- 1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device
56
- 2. Link the package to the global module directory: `npm link`
57
- 3. Within the module you want to test your local development instance of ms, just link it to the dependencies: `npm link ms`. Instead of the default one from npm, Node.js will now use your clone of ms!
58
-
59
- As always, you can run the tests using: `npm test`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/package.json DELETED
@@ -1,64 +0,0 @@
1
- {
2
- "name": "agent-base",
3
- "version": "6.0.2",
4
- "description": "Turn a function into an `http.Agent` instance",
5
- "main": "dist/src/index",
6
- "typings": "dist/src/index",
7
- "files": [
8
- "dist/src",
9
- "src"
10
- ],
11
- "scripts": {
12
- "prebuild": "rimraf dist",
13
- "build": "tsc",
14
- "postbuild": "cpy --parents src test '!**/*.ts' dist",
15
- "test": "mocha --reporter spec dist/test/*.js",
16
- "test-lint": "eslint src --ext .js,.ts",
17
- "prepublishOnly": "npm run build"
18
- },
19
- "repository": {
20
- "type": "git",
21
- "url": "git://github.com/TooTallNate/node-agent-base.git"
22
- },
23
- "keywords": [
24
- "http",
25
- "agent",
26
- "base",
27
- "barebones",
28
- "https"
29
- ],
30
- "author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
31
- "license": "MIT",
32
- "bugs": {
33
- "url": "https://github.com/TooTallNate/node-agent-base/issues"
34
- },
35
- "dependencies": {
36
- "debug": "4"
37
- },
38
- "devDependencies": {
39
- "@types/debug": "4",
40
- "@types/mocha": "^5.2.7",
41
- "@types/node": "^14.0.20",
42
- "@types/semver": "^7.1.0",
43
- "@types/ws": "^6.0.3",
44
- "@typescript-eslint/eslint-plugin": "1.6.0",
45
- "@typescript-eslint/parser": "1.1.0",
46
- "async-listen": "^1.2.0",
47
- "cpy-cli": "^2.0.0",
48
- "eslint": "5.16.0",
49
- "eslint-config-airbnb": "17.1.0",
50
- "eslint-config-prettier": "4.1.0",
51
- "eslint-import-resolver-typescript": "1.1.1",
52
- "eslint-plugin-import": "2.16.0",
53
- "eslint-plugin-jsx-a11y": "6.2.1",
54
- "eslint-plugin-react": "7.12.4",
55
- "mocha": "^6.2.0",
56
- "rimraf": "^3.0.0",
57
- "semver": "^7.1.2",
58
- "typescript": "^3.5.3",
59
- "ws": "^3.0.0"
60
- },
61
- "engines": {
62
- "node": ">= 6.0.0"
63
- }
64
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/src/index.ts DELETED
@@ -1,345 +0,0 @@
1
- import net from 'net';
2
- import http from 'http';
3
- import https from 'https';
4
- import { Duplex } from 'stream';
5
- import { EventEmitter } from 'events';
6
- import createDebug from 'debug';
7
- import promisify from './promisify';
8
-
9
- const debug = createDebug('agent-base');
10
-
11
- function isAgent(v: any): v is createAgent.AgentLike {
12
- return Boolean(v) && typeof v.addRequest === 'function';
13
- }
14
-
15
- function isSecureEndpoint(): boolean {
16
- const { stack } = new Error();
17
- if (typeof stack !== 'string') return false;
18
- return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);
19
- }
20
-
21
- function createAgent(opts?: createAgent.AgentOptions): createAgent.Agent;
22
- function createAgent(
23
- callback: createAgent.AgentCallback,
24
- opts?: createAgent.AgentOptions
25
- ): createAgent.Agent;
26
- function createAgent(
27
- callback?: createAgent.AgentCallback | createAgent.AgentOptions,
28
- opts?: createAgent.AgentOptions
29
- ) {
30
- return new createAgent.Agent(callback, opts);
31
- }
32
-
33
- namespace createAgent {
34
- export interface ClientRequest extends http.ClientRequest {
35
- _last?: boolean;
36
- _hadError?: boolean;
37
- method: string;
38
- }
39
-
40
- export interface AgentRequestOptions {
41
- host?: string;
42
- path?: string;
43
- // `port` on `http.RequestOptions` can be a string or undefined,
44
- // but `net.TcpNetConnectOpts` expects only a number
45
- port: number;
46
- }
47
-
48
- export interface HttpRequestOptions
49
- extends AgentRequestOptions,
50
- Omit<http.RequestOptions, keyof AgentRequestOptions> {
51
- secureEndpoint: false;
52
- }
53
-
54
- export interface HttpsRequestOptions
55
- extends AgentRequestOptions,
56
- Omit<https.RequestOptions, keyof AgentRequestOptions> {
57
- secureEndpoint: true;
58
- }
59
-
60
- export type RequestOptions = HttpRequestOptions | HttpsRequestOptions;
61
-
62
- export type AgentLike = Pick<createAgent.Agent, 'addRequest'> | http.Agent;
63
-
64
- export type AgentCallbackReturn = Duplex | AgentLike;
65
-
66
- export type AgentCallbackCallback = (
67
- err?: Error | null,
68
- socket?: createAgent.AgentCallbackReturn
69
- ) => void;
70
-
71
- export type AgentCallbackPromise = (
72
- req: createAgent.ClientRequest,
73
- opts: createAgent.RequestOptions
74
- ) =>
75
- | createAgent.AgentCallbackReturn
76
- | Promise<createAgent.AgentCallbackReturn>;
77
-
78
- export type AgentCallback = typeof Agent.prototype.callback;
79
-
80
- export type AgentOptions = {
81
- timeout?: number;
82
- };
83
-
84
- /**
85
- * Base `http.Agent` implementation.
86
- * No pooling/keep-alive is implemented by default.
87
- *
88
- * @param {Function} callback
89
- * @api public
90
- */
91
- export class Agent extends EventEmitter {
92
- public timeout: number | null;
93
- public maxFreeSockets: number;
94
- public maxTotalSockets: number;
95
- public maxSockets: number;
96
- public sockets: {
97
- [key: string]: net.Socket[];
98
- };
99
- public freeSockets: {
100
- [key: string]: net.Socket[];
101
- };
102
- public requests: {
103
- [key: string]: http.IncomingMessage[];
104
- };
105
- public options: https.AgentOptions;
106
- private promisifiedCallback?: createAgent.AgentCallbackPromise;
107
- private explicitDefaultPort?: number;
108
- private explicitProtocol?: string;
109
-
110
- constructor(
111
- callback?: createAgent.AgentCallback | createAgent.AgentOptions,
112
- _opts?: createAgent.AgentOptions
113
- ) {
114
- super();
115
-
116
- let opts = _opts;
117
- if (typeof callback === 'function') {
118
- this.callback = callback;
119
- } else if (callback) {
120
- opts = callback;
121
- }
122
-
123
- // Timeout for the socket to be returned from the callback
124
- this.timeout = null;
125
- if (opts && typeof opts.timeout === 'number') {
126
- this.timeout = opts.timeout;
127
- }
128
-
129
- // These aren't actually used by `agent-base`, but are required
130
- // for the TypeScript definition files in `@types/node` :/
131
- this.maxFreeSockets = 1;
132
- this.maxSockets = 1;
133
- this.maxTotalSockets = Infinity;
134
- this.sockets = {};
135
- this.freeSockets = {};
136
- this.requests = {};
137
- this.options = {};
138
- }
139
-
140
- get defaultPort(): number {
141
- if (typeof this.explicitDefaultPort === 'number') {
142
- return this.explicitDefaultPort;
143
- }
144
- return isSecureEndpoint() ? 443 : 80;
145
- }
146
-
147
- set defaultPort(v: number) {
148
- this.explicitDefaultPort = v;
149
- }
150
-
151
- get protocol(): string {
152
- if (typeof this.explicitProtocol === 'string') {
153
- return this.explicitProtocol;
154
- }
155
- return isSecureEndpoint() ? 'https:' : 'http:';
156
- }
157
-
158
- set protocol(v: string) {
159
- this.explicitProtocol = v;
160
- }
161
-
162
- callback(
163
- req: createAgent.ClientRequest,
164
- opts: createAgent.RequestOptions,
165
- fn: createAgent.AgentCallbackCallback
166
- ): void;
167
- callback(
168
- req: createAgent.ClientRequest,
169
- opts: createAgent.RequestOptions
170
- ):
171
- | createAgent.AgentCallbackReturn
172
- | Promise<createAgent.AgentCallbackReturn>;
173
- callback(
174
- req: createAgent.ClientRequest,
175
- opts: createAgent.AgentOptions,
176
- fn?: createAgent.AgentCallbackCallback
177
- ):
178
- | createAgent.AgentCallbackReturn
179
- | Promise<createAgent.AgentCallbackReturn>
180
- | void {
181
- throw new Error(
182
- '"agent-base" has no default implementation, you must subclass and override `callback()`'
183
- );
184
- }
185
-
186
- /**
187
- * Called by node-core's "_http_client.js" module when creating
188
- * a new HTTP request with this Agent instance.
189
- *
190
- * @api public
191
- */
192
- addRequest(req: ClientRequest, _opts: RequestOptions): void {
193
- const opts: RequestOptions = { ..._opts };
194
-
195
- if (typeof opts.secureEndpoint !== 'boolean') {
196
- opts.secureEndpoint = isSecureEndpoint();
197
- }
198
-
199
- if (opts.host == null) {
200
- opts.host = 'localhost';
201
- }
202
-
203
- if (opts.port == null) {
204
- opts.port = opts.secureEndpoint ? 443 : 80;
205
- }
206
-
207
- if (opts.protocol == null) {
208
- opts.protocol = opts.secureEndpoint ? 'https:' : 'http:';
209
- }
210
-
211
- if (opts.host && opts.path) {
212
- // If both a `host` and `path` are specified then it's most
213
- // likely the result of a `url.parse()` call... we need to
214
- // remove the `path` portion so that `net.connect()` doesn't
215
- // attempt to open that as a unix socket file.
216
- delete opts.path;
217
- }
218
-
219
- delete opts.agent;
220
- delete opts.hostname;
221
- delete opts._defaultAgent;
222
- delete opts.defaultPort;
223
- delete opts.createConnection;
224
-
225
- // Hint to use "Connection: close"
226
- // XXX: non-documented `http` module API :(
227
- req._last = true;
228
- req.shouldKeepAlive = false;
229
-
230
- let timedOut = false;
231
- let timeoutId: ReturnType<typeof setTimeout> | null = null;
232
- const timeoutMs = opts.timeout || this.timeout;
233
-
234
- const onerror = (err: NodeJS.ErrnoException) => {
235
- if (req._hadError) return;
236
- req.emit('error', err);
237
- // For Safety. Some additional errors might fire later on
238
- // and we need to make sure we don't double-fire the error event.
239
- req._hadError = true;
240
- };
241
-
242
- const ontimeout = () => {
243
- timeoutId = null;
244
- timedOut = true;
245
- const err: NodeJS.ErrnoException = new Error(
246
- `A "socket" was not created for HTTP request before ${timeoutMs}ms`
247
- );
248
- err.code = 'ETIMEOUT';
249
- onerror(err);
250
- };
251
-
252
- const callbackError = (err: NodeJS.ErrnoException) => {
253
- if (timedOut) return;
254
- if (timeoutId !== null) {
255
- clearTimeout(timeoutId);
256
- timeoutId = null;
257
- }
258
- onerror(err);
259
- };
260
-
261
- const onsocket = (socket: AgentCallbackReturn) => {
262
- if (timedOut) return;
263
- if (timeoutId != null) {
264
- clearTimeout(timeoutId);
265
- timeoutId = null;
266
- }
267
-
268
- if (isAgent(socket)) {
269
- // `socket` is actually an `http.Agent` instance, so
270
- // relinquish responsibility for this `req` to the Agent
271
- // from here on
272
- debug(
273
- 'Callback returned another Agent instance %o',
274
- socket.constructor.name
275
- );
276
- (socket as createAgent.Agent).addRequest(req, opts);
277
- return;
278
- }
279
-
280
- if (socket) {
281
- socket.once('free', () => {
282
- this.freeSocket(socket as net.Socket, opts);
283
- });
284
- req.onSocket(socket as net.Socket);
285
- return;
286
- }
287
-
288
- const err = new Error(
289
- `no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``
290
- );
291
- onerror(err);
292
- };
293
-
294
- if (typeof this.callback !== 'function') {
295
- onerror(new Error('`callback` is not defined'));
296
- return;
297
- }
298
-
299
- if (!this.promisifiedCallback) {
300
- if (this.callback.length >= 3) {
301
- debug('Converting legacy callback function to promise');
302
- this.promisifiedCallback = promisify(this.callback);
303
- } else {
304
- this.promisifiedCallback = this.callback;
305
- }
306
- }
307
-
308
- if (typeof timeoutMs === 'number' && timeoutMs > 0) {
309
- timeoutId = setTimeout(ontimeout, timeoutMs);
310
- }
311
-
312
- if ('port' in opts && typeof opts.port !== 'number') {
313
- opts.port = Number(opts.port);
314
- }
315
-
316
- try {
317
- debug(
318
- 'Resolving socket for %o request: %o',
319
- opts.protocol,
320
- `${req.method} ${req.path}`
321
- );
322
- Promise.resolve(this.promisifiedCallback(req, opts)).then(
323
- onsocket,
324
- callbackError
325
- );
326
- } catch (err) {
327
- Promise.reject(err).catch(callbackError);
328
- }
329
- }
330
-
331
- freeSocket(socket: net.Socket, opts: AgentOptions) {
332
- debug('Freeing socket %o %o', socket.constructor.name, opts);
333
- socket.destroy();
334
- }
335
-
336
- destroy() {
337
- debug('Destroying agent %o', this.constructor.name);
338
- }
339
- }
340
-
341
- // So that `instanceof` works correctly
342
- createAgent.prototype = createAgent.Agent.prototype;
343
- }
344
-
345
- export = createAgent;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/agent-base/src/promisify.ts DELETED
@@ -1,33 +0,0 @@
1
- import {
2
- Agent,
3
- ClientRequest,
4
- RequestOptions,
5
- AgentCallbackCallback,
6
- AgentCallbackPromise,
7
- AgentCallbackReturn
8
- } from './index';
9
-
10
- type LegacyCallback = (
11
- req: ClientRequest,
12
- opts: RequestOptions,
13
- fn: AgentCallbackCallback
14
- ) => void;
15
-
16
- export default function promisify(fn: LegacyCallback): AgentCallbackPromise {
17
- return function(this: Agent, req: ClientRequest, opts: RequestOptions) {
18
- return new Promise((resolve, reject) => {
19
- fn.call(
20
- this,
21
- req,
22
- opts,
23
- (err: Error | null | undefined, rtn?: AgentCallbackReturn) => {
24
- if (err) {
25
- reject(err);
26
- } else {
27
- resolve(rtn);
28
- }
29
- }
30
- );
31
- });
32
- };
33
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/array-flatten/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/array-flatten/README.md DELETED
@@ -1,43 +0,0 @@
1
- # Array Flatten
2
-
3
- [![NPM version][npm-image]][npm-url]
4
- [![NPM downloads][downloads-image]][downloads-url]
5
- [![Build status][travis-image]][travis-url]
6
- [![Test coverage][coveralls-image]][coveralls-url]
7
-
8
- > Flatten an array of nested arrays into a single flat array. Accepts an optional depth.
9
-
10
- ## Installation
11
-
12
- ```
13
- npm install array-flatten --save
14
- ```
15
-
16
- ## Usage
17
-
18
- ```javascript
19
- var flatten = require('array-flatten')
20
-
21
- flatten([1, [2, [3, [4, [5], 6], 7], 8], 9])
22
- //=> [1, 2, 3, 4, 5, 6, 7, 8, 9]
23
-
24
- flatten([1, [2, [3, [4, [5], 6], 7], 8], 9], 2)
25
- //=> [1, 2, 3, [4, [5], 6], 7, 8, 9]
26
-
27
- (function () {
28
- flatten(arguments) //=> [1, 2, 3]
29
- })(1, [2, 3])
30
- ```
31
-
32
- ## License
33
-
34
- MIT
35
-
36
- [npm-image]: https://img.shields.io/npm/v/array-flatten.svg?style=flat
37
- [npm-url]: https://npmjs.org/package/array-flatten
38
- [downloads-image]: https://img.shields.io/npm/dm/array-flatten.svg?style=flat
39
- [downloads-url]: https://npmjs.org/package/array-flatten
40
- [travis-image]: https://img.shields.io/travis/blakeembrey/array-flatten.svg?style=flat
41
- [travis-url]: https://travis-ci.org/blakeembrey/array-flatten
42
- [coveralls-image]: https://img.shields.io/coveralls/blakeembrey/array-flatten.svg?style=flat
43
- [coveralls-url]: https://coveralls.io/r/blakeembrey/array-flatten?branch=master
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/array-flatten/array-flatten.js DELETED
@@ -1,64 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * Expose `arrayFlatten`.
5
- */
6
- module.exports = arrayFlatten
7
-
8
- /**
9
- * Recursive flatten function with depth.
10
- *
11
- * @param {Array} array
12
- * @param {Array} result
13
- * @param {Number} depth
14
- * @return {Array}
15
- */
16
- function flattenWithDepth (array, result, depth) {
17
- for (var i = 0; i < array.length; i++) {
18
- var value = array[i]
19
-
20
- if (depth > 0 && Array.isArray(value)) {
21
- flattenWithDepth(value, result, depth - 1)
22
- } else {
23
- result.push(value)
24
- }
25
- }
26
-
27
- return result
28
- }
29
-
30
- /**
31
- * Recursive flatten function. Omitting depth is slightly faster.
32
- *
33
- * @param {Array} array
34
- * @param {Array} result
35
- * @return {Array}
36
- */
37
- function flattenForever (array, result) {
38
- for (var i = 0; i < array.length; i++) {
39
- var value = array[i]
40
-
41
- if (Array.isArray(value)) {
42
- flattenForever(value, result)
43
- } else {
44
- result.push(value)
45
- }
46
- }
47
-
48
- return result
49
- }
50
-
51
- /**
52
- * Flatten an array, with the ability to define a depth.
53
- *
54
- * @param {Array} array
55
- * @param {Number} depth
56
- * @return {Array}
57
- */
58
- function arrayFlatten (array, depth) {
59
- if (depth == null) {
60
- return flattenForever(array, [])
61
- }
62
-
63
- return flattenWithDepth(array, [], depth)
64
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/array-flatten/package.json DELETED
@@ -1,39 +0,0 @@
1
- {
2
- "name": "array-flatten",
3
- "version": "1.1.1",
4
- "description": "Flatten an array of nested arrays into a single flat array",
5
- "main": "array-flatten.js",
6
- "files": [
7
- "array-flatten.js",
8
- "LICENSE"
9
- ],
10
- "scripts": {
11
- "test": "istanbul cover _mocha -- -R spec"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "git://github.com/blakeembrey/array-flatten.git"
16
- },
17
- "keywords": [
18
- "array",
19
- "flatten",
20
- "arguments",
21
- "depth"
22
- ],
23
- "author": {
24
- "name": "Blake Embrey",
25
- "email": "hello@blakeembrey.com",
26
- "url": "http://blakeembrey.me"
27
- },
28
- "license": "MIT",
29
- "bugs": {
30
- "url": "https://github.com/blakeembrey/array-flatten/issues"
31
- },
32
- "homepage": "https://github.com/blakeembrey/array-flatten",
33
- "devDependencies": {
34
- "istanbul": "^0.3.13",
35
- "mocha": "^2.2.4",
36
- "pre-commit": "^1.0.7",
37
- "standard": "^3.7.3"
38
- }
39
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 Alex Indigo
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/README.md DELETED
@@ -1,233 +0,0 @@
1
- # asynckit [![NPM Module](https://img.shields.io/npm/v/asynckit.svg?style=flat)](https://www.npmjs.com/package/asynckit)
2
-
3
- Minimal async jobs utility library, with streams support.
4
-
5
- [![PhantomJS Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=browser&style=flat)](https://travis-ci.org/alexindigo/asynckit)
6
- [![Linux Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=linux:0.12-6.x&style=flat)](https://travis-ci.org/alexindigo/asynckit)
7
- [![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/asynckit/v0.4.0.svg?label=windows:0.12-6.x&style=flat)](https://ci.appveyor.com/project/alexindigo/asynckit)
8
-
9
- [![Coverage Status](https://img.shields.io/coveralls/alexindigo/asynckit/v0.4.0.svg?label=code+coverage&style=flat)](https://coveralls.io/github/alexindigo/asynckit?branch=master)
10
- [![Dependency Status](https://img.shields.io/david/alexindigo/asynckit/v0.4.0.svg?style=flat)](https://david-dm.org/alexindigo/asynckit)
11
- [![bitHound Overall Score](https://www.bithound.io/github/alexindigo/asynckit/badges/score.svg)](https://www.bithound.io/github/alexindigo/asynckit)
12
-
13
- <!-- [![Readme](https://img.shields.io/badge/readme-tested-brightgreen.svg?style=flat)](https://www.npmjs.com/package/reamde) -->
14
-
15
- AsyncKit provides harness for `parallel` and `serial` iterators over list of items represented by arrays or objects.
16
- Optionally it accepts abort function (should be synchronously return by iterator for each item), and terminates left over jobs upon an error event. For specific iteration order built-in (`ascending` and `descending`) and custom sort helpers also supported, via `asynckit.serialOrdered` method.
17
-
18
- It ensures async operations to keep behavior more stable and prevent `Maximum call stack size exceeded` errors, from sync iterators.
19
-
20
- | compression | size |
21
- | :----------------- | -------: |
22
- | asynckit.js | 12.34 kB |
23
- | asynckit.min.js | 4.11 kB |
24
- | asynckit.min.js.gz | 1.47 kB |
25
-
26
-
27
- ## Install
28
-
29
- ```sh
30
- $ npm install --save asynckit
31
- ```
32
-
33
- ## Examples
34
-
35
- ### Parallel Jobs
36
-
37
- Runs iterator over provided array in parallel. Stores output in the `result` array,
38
- on the matching positions. In unlikely event of an error from one of the jobs,
39
- will terminate rest of the active jobs (if abort function is provided)
40
- and return error along with salvaged data to the main callback function.
41
-
42
- #### Input Array
43
-
44
- ```javascript
45
- var parallel = require('asynckit').parallel
46
- , assert = require('assert')
47
- ;
48
-
49
- var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
50
- , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ]
51
- , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ]
52
- , target = []
53
- ;
54
-
55
- parallel(source, asyncJob, function(err, result)
56
- {
57
- assert.deepEqual(result, expectedResult);
58
- assert.deepEqual(target, expectedTarget);
59
- });
60
-
61
- // async job accepts one element from the array
62
- // and a callback function
63
- function asyncJob(item, cb)
64
- {
65
- // different delays (in ms) per item
66
- var delay = item * 25;
67
-
68
- // pretend different jobs take different time to finish
69
- // and not in consequential order
70
- var timeoutId = setTimeout(function() {
71
- target.push(item);
72
- cb(null, item * 2);
73
- }, delay);
74
-
75
- // allow to cancel "leftover" jobs upon error
76
- // return function, invoking of which will abort this job
77
- return clearTimeout.bind(null, timeoutId);
78
- }
79
- ```
80
-
81
- More examples could be found in [test/test-parallel-array.js](test/test-parallel-array.js).
82
-
83
- #### Input Object
84
-
85
- Also it supports named jobs, listed via object.
86
-
87
- ```javascript
88
- var parallel = require('asynckit/parallel')
89
- , assert = require('assert')
90
- ;
91
-
92
- var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 }
93
- , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 }
94
- , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ]
95
- , expectedKeys = [ 'first', 'one', 'two', 'four', 'eight', 'sixteen', 'thirtyTwo', 'sixtyFour' ]
96
- , target = []
97
- , keys = []
98
- ;
99
-
100
- parallel(source, asyncJob, function(err, result)
101
- {
102
- assert.deepEqual(result, expectedResult);
103
- assert.deepEqual(target, expectedTarget);
104
- assert.deepEqual(keys, expectedKeys);
105
- });
106
-
107
- // supports full value, key, callback (shortcut) interface
108
- function asyncJob(item, key, cb)
109
- {
110
- // different delays (in ms) per item
111
- var delay = item * 25;
112
-
113
- // pretend different jobs take different time to finish
114
- // and not in consequential order
115
- var timeoutId = setTimeout(function() {
116
- keys.push(key);
117
- target.push(item);
118
- cb(null, item * 2);
119
- }, delay);
120
-
121
- // allow to cancel "leftover" jobs upon error
122
- // return function, invoking of which will abort this job
123
- return clearTimeout.bind(null, timeoutId);
124
- }
125
- ```
126
-
127
- More examples could be found in [test/test-parallel-object.js](test/test-parallel-object.js).
128
-
129
- ### Serial Jobs
130
-
131
- Runs iterator over provided array sequentially. Stores output in the `result` array,
132
- on the matching positions. In unlikely event of an error from one of the jobs,
133
- will not proceed to the rest of the items in the list
134
- and return error along with salvaged data to the main callback function.
135
-
136
- #### Input Array
137
-
138
- ```javascript
139
- var serial = require('asynckit/serial')
140
- , assert = require('assert')
141
- ;
142
-
143
- var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
144
- , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ]
145
- , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ]
146
- , target = []
147
- ;
148
-
149
- serial(source, asyncJob, function(err, result)
150
- {
151
- assert.deepEqual(result, expectedResult);
152
- assert.deepEqual(target, expectedTarget);
153
- });
154
-
155
- // extended interface (item, key, callback)
156
- // also supported for arrays
157
- function asyncJob(item, key, cb)
158
- {
159
- target.push(key);
160
-
161
- // it will be automatically made async
162
- // even it iterator "returns" in the same event loop
163
- cb(null, item * 2);
164
- }
165
- ```
166
-
167
- More examples could be found in [test/test-serial-array.js](test/test-serial-array.js).
168
-
169
- #### Input Object
170
-
171
- Also it supports named jobs, listed via object.
172
-
173
- ```javascript
174
- var serial = require('asynckit').serial
175
- , assert = require('assert')
176
- ;
177
-
178
- var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
179
- , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ]
180
- , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ]
181
- , target = []
182
- ;
183
-
184
- var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 }
185
- , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 }
186
- , expectedTarget = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
187
- , target = []
188
- ;
189
-
190
-
191
- serial(source, asyncJob, function(err, result)
192
- {
193
- assert.deepEqual(result, expectedResult);
194
- assert.deepEqual(target, expectedTarget);
195
- });
196
-
197
- // shortcut interface (item, callback)
198
- // works for object as well as for the arrays
199
- function asyncJob(item, cb)
200
- {
201
- target.push(item);
202
-
203
- // it will be automatically made async
204
- // even it iterator "returns" in the same event loop
205
- cb(null, item * 2);
206
- }
207
- ```
208
-
209
- More examples could be found in [test/test-serial-object.js](test/test-serial-object.js).
210
-
211
- _Note: Since _object_ is an _unordered_ collection of properties,
212
- it may produce unexpected results with sequential iterations.
213
- Whenever order of the jobs' execution is important please use `serialOrdered` method._
214
-
215
- ### Ordered Serial Iterations
216
-
217
- TBD
218
-
219
- For example [compare-property](compare-property) package.
220
-
221
- ### Streaming interface
222
-
223
- TBD
224
-
225
- ## Want to Know More?
226
-
227
- More examples can be found in [test folder](test/).
228
-
229
- Or open an [issue](https://github.com/alexindigo/asynckit/issues) with questions and/or suggestions.
230
-
231
- ## License
232
-
233
- AsyncKit is licensed under the MIT license.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/bench.js DELETED
@@ -1,76 +0,0 @@
1
- /* eslint no-console: "off" */
2
-
3
- var asynckit = require('./')
4
- , async = require('async')
5
- , assert = require('assert')
6
- , expected = 0
7
- ;
8
-
9
- var Benchmark = require('benchmark');
10
- var suite = new Benchmark.Suite;
11
-
12
- var source = [];
13
- for (var z = 1; z < 100; z++)
14
- {
15
- source.push(z);
16
- expected += z;
17
- }
18
-
19
- suite
20
- // add tests
21
-
22
- .add('async.map', function(deferred)
23
- {
24
- var total = 0;
25
-
26
- async.map(source,
27
- function(i, cb)
28
- {
29
- setImmediate(function()
30
- {
31
- total += i;
32
- cb(null, total);
33
- });
34
- },
35
- function(err, result)
36
- {
37
- assert.ifError(err);
38
- assert.equal(result[result.length - 1], expected);
39
- deferred.resolve();
40
- });
41
- }, {'defer': true})
42
-
43
-
44
- .add('asynckit.parallel', function(deferred)
45
- {
46
- var total = 0;
47
-
48
- asynckit.parallel(source,
49
- function(i, cb)
50
- {
51
- setImmediate(function()
52
- {
53
- total += i;
54
- cb(null, total);
55
- });
56
- },
57
- function(err, result)
58
- {
59
- assert.ifError(err);
60
- assert.equal(result[result.length - 1], expected);
61
- deferred.resolve();
62
- });
63
- }, {'defer': true})
64
-
65
-
66
- // add listeners
67
- .on('cycle', function(ev)
68
- {
69
- console.log(String(ev.target));
70
- })
71
- .on('complete', function()
72
- {
73
- console.log('Fastest is ' + this.filter('fastest').map('name'));
74
- })
75
- // run async
76
- .run({ 'async': true });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/index.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports =
2
- {
3
- parallel : require('./parallel.js'),
4
- serial : require('./serial.js'),
5
- serialOrdered : require('./serialOrdered.js')
6
- };
 
 
 
 
 
 
 
node_modules/asynckit/lib/abort.js DELETED
@@ -1,29 +0,0 @@
1
- // API
2
- module.exports = abort;
3
-
4
- /**
5
- * Aborts leftover active jobs
6
- *
7
- * @param {object} state - current state object
8
- */
9
- function abort(state)
10
- {
11
- Object.keys(state.jobs).forEach(clean.bind(state));
12
-
13
- // reset leftover jobs
14
- state.jobs = {};
15
- }
16
-
17
- /**
18
- * Cleans up leftover job by invoking abort function for the provided job id
19
- *
20
- * @this state
21
- * @param {string|number} key - job id to abort
22
- */
23
- function clean(key)
24
- {
25
- if (typeof this.jobs[key] == 'function')
26
- {
27
- this.jobs[key]();
28
- }
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/lib/async.js DELETED
@@ -1,34 +0,0 @@
1
- var defer = require('./defer.js');
2
-
3
- // API
4
- module.exports = async;
5
-
6
- /**
7
- * Runs provided callback asynchronously
8
- * even if callback itself is not
9
- *
10
- * @param {function} callback - callback to invoke
11
- * @returns {function} - augmented callback
12
- */
13
- function async(callback)
14
- {
15
- var isAsync = false;
16
-
17
- // check if async happened
18
- defer(function() { isAsync = true; });
19
-
20
- return function async_callback(err, result)
21
- {
22
- if (isAsync)
23
- {
24
- callback(err, result);
25
- }
26
- else
27
- {
28
- defer(function nextTick_callback()
29
- {
30
- callback(err, result);
31
- });
32
- }
33
- };
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/lib/defer.js DELETED
@@ -1,26 +0,0 @@
1
- module.exports = defer;
2
-
3
- /**
4
- * Runs provided function on next iteration of the event loop
5
- *
6
- * @param {function} fn - function to run
7
- */
8
- function defer(fn)
9
- {
10
- var nextTick = typeof setImmediate == 'function'
11
- ? setImmediate
12
- : (
13
- typeof process == 'object' && typeof process.nextTick == 'function'
14
- ? process.nextTick
15
- : null
16
- );
17
-
18
- if (nextTick)
19
- {
20
- nextTick(fn);
21
- }
22
- else
23
- {
24
- setTimeout(fn, 0);
25
- }
26
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/lib/iterate.js DELETED
@@ -1,75 +0,0 @@
1
- var async = require('./async.js')
2
- , abort = require('./abort.js')
3
- ;
4
-
5
- // API
6
- module.exports = iterate;
7
-
8
- /**
9
- * Iterates over each job object
10
- *
11
- * @param {array|object} list - array or object (named list) to iterate over
12
- * @param {function} iterator - iterator to run
13
- * @param {object} state - current job status
14
- * @param {function} callback - invoked when all elements processed
15
- */
16
- function iterate(list, iterator, state, callback)
17
- {
18
- // store current index
19
- var key = state['keyedList'] ? state['keyedList'][state.index] : state.index;
20
-
21
- state.jobs[key] = runJob(iterator, key, list[key], function(error, output)
22
- {
23
- // don't repeat yourself
24
- // skip secondary callbacks
25
- if (!(key in state.jobs))
26
- {
27
- return;
28
- }
29
-
30
- // clean up jobs
31
- delete state.jobs[key];
32
-
33
- if (error)
34
- {
35
- // don't process rest of the results
36
- // stop still active jobs
37
- // and reset the list
38
- abort(state);
39
- }
40
- else
41
- {
42
- state.results[key] = output;
43
- }
44
-
45
- // return salvaged results
46
- callback(error, state.results);
47
- });
48
- }
49
-
50
- /**
51
- * Runs iterator over provided job element
52
- *
53
- * @param {function} iterator - iterator to invoke
54
- * @param {string|number} key - key/index of the element in the list of jobs
55
- * @param {mixed} item - job description
56
- * @param {function} callback - invoked after iterator is done with the job
57
- * @returns {function|mixed} - job abort function or something else
58
- */
59
- function runJob(iterator, key, item, callback)
60
- {
61
- var aborter;
62
-
63
- // allow shortcut if iterator expects only two arguments
64
- if (iterator.length == 2)
65
- {
66
- aborter = iterator(item, async(callback));
67
- }
68
- // otherwise go with full three arguments
69
- else
70
- {
71
- aborter = iterator(item, key, async(callback));
72
- }
73
-
74
- return aborter;
75
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/lib/readable_asynckit.js DELETED
@@ -1,91 +0,0 @@
1
- var streamify = require('./streamify.js')
2
- , defer = require('./defer.js')
3
- ;
4
-
5
- // API
6
- module.exports = ReadableAsyncKit;
7
-
8
- /**
9
- * Base constructor for all streams
10
- * used to hold properties/methods
11
- */
12
- function ReadableAsyncKit()
13
- {
14
- ReadableAsyncKit.super_.apply(this, arguments);
15
-
16
- // list of active jobs
17
- this.jobs = {};
18
-
19
- // add stream methods
20
- this.destroy = destroy;
21
- this._start = _start;
22
- this._read = _read;
23
- }
24
-
25
- /**
26
- * Destroys readable stream,
27
- * by aborting outstanding jobs
28
- *
29
- * @returns {void}
30
- */
31
- function destroy()
32
- {
33
- if (this.destroyed)
34
- {
35
- return;
36
- }
37
-
38
- this.destroyed = true;
39
-
40
- if (typeof this.terminator == 'function')
41
- {
42
- this.terminator();
43
- }
44
- }
45
-
46
- /**
47
- * Starts provided jobs in async manner
48
- *
49
- * @private
50
- */
51
- function _start()
52
- {
53
- // first argument – runner function
54
- var runner = arguments[0]
55
- // take away first argument
56
- , args = Array.prototype.slice.call(arguments, 1)
57
- // second argument - input data
58
- , input = args[0]
59
- // last argument - result callback
60
- , endCb = streamify.callback.call(this, args[args.length - 1])
61
- ;
62
-
63
- args[args.length - 1] = endCb;
64
- // third argument - iterator
65
- args[1] = streamify.iterator.call(this, args[1]);
66
-
67
- // allow time for proper setup
68
- defer(function()
69
- {
70
- if (!this.destroyed)
71
- {
72
- this.terminator = runner.apply(null, args);
73
- }
74
- else
75
- {
76
- endCb(null, Array.isArray(input) ? [] : {});
77
- }
78
- }.bind(this));
79
- }
80
-
81
-
82
- /**
83
- * Implement _read to comply with Readable streams
84
- * Doesn't really make sense for flowing object mode
85
- *
86
- * @private
87
- */
88
- function _read()
89
- {
90
-
91
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/lib/readable_parallel.js DELETED
@@ -1,25 +0,0 @@
1
- var parallel = require('../parallel.js');
2
-
3
- // API
4
- module.exports = ReadableParallel;
5
-
6
- /**
7
- * Streaming wrapper to `asynckit.parallel`
8
- *
9
- * @param {array|object} list - array or object (named list) to iterate over
10
- * @param {function} iterator - iterator to run
11
- * @param {function} callback - invoked when all elements processed
12
- * @returns {stream.Readable#}
13
- */
14
- function ReadableParallel(list, iterator, callback)
15
- {
16
- if (!(this instanceof ReadableParallel))
17
- {
18
- return new ReadableParallel(list, iterator, callback);
19
- }
20
-
21
- // turn on object mode
22
- ReadableParallel.super_.call(this, {objectMode: true});
23
-
24
- this._start(parallel, list, iterator, callback);
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/lib/readable_serial.js DELETED
@@ -1,25 +0,0 @@
1
- var serial = require('../serial.js');
2
-
3
- // API
4
- module.exports = ReadableSerial;
5
-
6
- /**
7
- * Streaming wrapper to `asynckit.serial`
8
- *
9
- * @param {array|object} list - array or object (named list) to iterate over
10
- * @param {function} iterator - iterator to run
11
- * @param {function} callback - invoked when all elements processed
12
- * @returns {stream.Readable#}
13
- */
14
- function ReadableSerial(list, iterator, callback)
15
- {
16
- if (!(this instanceof ReadableSerial))
17
- {
18
- return new ReadableSerial(list, iterator, callback);
19
- }
20
-
21
- // turn on object mode
22
- ReadableSerial.super_.call(this, {objectMode: true});
23
-
24
- this._start(serial, list, iterator, callback);
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/lib/readable_serial_ordered.js DELETED
@@ -1,29 +0,0 @@
1
- var serialOrdered = require('../serialOrdered.js');
2
-
3
- // API
4
- module.exports = ReadableSerialOrdered;
5
- // expose sort helpers
6
- module.exports.ascending = serialOrdered.ascending;
7
- module.exports.descending = serialOrdered.descending;
8
-
9
- /**
10
- * Streaming wrapper to `asynckit.serialOrdered`
11
- *
12
- * @param {array|object} list - array or object (named list) to iterate over
13
- * @param {function} iterator - iterator to run
14
- * @param {function} sortMethod - custom sort function
15
- * @param {function} callback - invoked when all elements processed
16
- * @returns {stream.Readable#}
17
- */
18
- function ReadableSerialOrdered(list, iterator, sortMethod, callback)
19
- {
20
- if (!(this instanceof ReadableSerialOrdered))
21
- {
22
- return new ReadableSerialOrdered(list, iterator, sortMethod, callback);
23
- }
24
-
25
- // turn on object mode
26
- ReadableSerialOrdered.super_.call(this, {objectMode: true});
27
-
28
- this._start(serialOrdered, list, iterator, sortMethod, callback);
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/lib/state.js DELETED
@@ -1,37 +0,0 @@
1
- // API
2
- module.exports = state;
3
-
4
- /**
5
- * Creates initial state object
6
- * for iteration over list
7
- *
8
- * @param {array|object} list - list to iterate over
9
- * @param {function|null} sortMethod - function to use for keys sort,
10
- * or `null` to keep them as is
11
- * @returns {object} - initial state object
12
- */
13
- function state(list, sortMethod)
14
- {
15
- var isNamedList = !Array.isArray(list)
16
- , initState =
17
- {
18
- index : 0,
19
- keyedList: isNamedList || sortMethod ? Object.keys(list) : null,
20
- jobs : {},
21
- results : isNamedList ? {} : [],
22
- size : isNamedList ? Object.keys(list).length : list.length
23
- }
24
- ;
25
-
26
- if (sortMethod)
27
- {
28
- // sort array keys based on it's values
29
- // sort object's keys just on own merit
30
- initState.keyedList.sort(isNamedList ? sortMethod : function(a, b)
31
- {
32
- return sortMethod(list[a], list[b]);
33
- });
34
- }
35
-
36
- return initState;
37
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/lib/streamify.js DELETED
@@ -1,141 +0,0 @@
1
- var async = require('./async.js');
2
-
3
- // API
4
- module.exports = {
5
- iterator: wrapIterator,
6
- callback: wrapCallback
7
- };
8
-
9
- /**
10
- * Wraps iterators with long signature
11
- *
12
- * @this ReadableAsyncKit#
13
- * @param {function} iterator - function to wrap
14
- * @returns {function} - wrapped function
15
- */
16
- function wrapIterator(iterator)
17
- {
18
- var stream = this;
19
-
20
- return function(item, key, cb)
21
- {
22
- var aborter
23
- , wrappedCb = async(wrapIteratorCallback.call(stream, cb, key))
24
- ;
25
-
26
- stream.jobs[key] = wrappedCb;
27
-
28
- // it's either shortcut (item, cb)
29
- if (iterator.length == 2)
30
- {
31
- aborter = iterator(item, wrappedCb);
32
- }
33
- // or long format (item, key, cb)
34
- else
35
- {
36
- aborter = iterator(item, key, wrappedCb);
37
- }
38
-
39
- return aborter;
40
- };
41
- }
42
-
43
- /**
44
- * Wraps provided callback function
45
- * allowing to execute snitch function before
46
- * real callback
47
- *
48
- * @this ReadableAsyncKit#
49
- * @param {function} callback - function to wrap
50
- * @returns {function} - wrapped function
51
- */
52
- function wrapCallback(callback)
53
- {
54
- var stream = this;
55
-
56
- var wrapped = function(error, result)
57
- {
58
- return finisher.call(stream, error, result, callback);
59
- };
60
-
61
- return wrapped;
62
- }
63
-
64
- /**
65
- * Wraps provided iterator callback function
66
- * makes sure snitch only called once,
67
- * but passes secondary calls to the original callback
68
- *
69
- * @this ReadableAsyncKit#
70
- * @param {function} callback - callback to wrap
71
- * @param {number|string} key - iteration key
72
- * @returns {function} wrapped callback
73
- */
74
- function wrapIteratorCallback(callback, key)
75
- {
76
- var stream = this;
77
-
78
- return function(error, output)
79
- {
80
- // don't repeat yourself
81
- if (!(key in stream.jobs))
82
- {
83
- callback(error, output);
84
- return;
85
- }
86
-
87
- // clean up jobs
88
- delete stream.jobs[key];
89
-
90
- return streamer.call(stream, error, {key: key, value: output}, callback);
91
- };
92
- }
93
-
94
- /**
95
- * Stream wrapper for iterator callback
96
- *
97
- * @this ReadableAsyncKit#
98
- * @param {mixed} error - error response
99
- * @param {mixed} output - iterator output
100
- * @param {function} callback - callback that expects iterator results
101
- */
102
- function streamer(error, output, callback)
103
- {
104
- if (error && !this.error)
105
- {
106
- this.error = error;
107
- this.pause();
108
- this.emit('error', error);
109
- // send back value only, as expected
110
- callback(error, output && output.value);
111
- return;
112
- }
113
-
114
- // stream stuff
115
- this.push(output);
116
-
117
- // back to original track
118
- // send back value only, as expected
119
- callback(error, output && output.value);
120
- }
121
-
122
- /**
123
- * Stream wrapper for finishing callback
124
- *
125
- * @this ReadableAsyncKit#
126
- * @param {mixed} error - error response
127
- * @param {mixed} output - iterator output
128
- * @param {function} callback - callback that expects final results
129
- */
130
- function finisher(error, output, callback)
131
- {
132
- // signal end of the stream
133
- // only for successfully finished streams
134
- if (!error)
135
- {
136
- this.push(null);
137
- }
138
-
139
- // back to original track
140
- callback(error, output);
141
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
node_modules/asynckit/lib/terminator.js DELETED
@@ -1,29 +0,0 @@
1
- var abort = require('./abort.js')
2
- , async = require('./async.js')
3
- ;
4
-
5
- // API
6
- module.exports = terminator;
7
-
8
- /**
9
- * Terminates jobs in the attached state context
10
- *
11
- * @this AsyncKitState#
12
- * @param {function} callback - final callback to invoke after termination
13
- */
14
- function terminator(callback)
15
- {
16
- if (!Object.keys(this.jobs).length)
17
- {
18
- return;
19
- }
20
-
21
- // fast forward iteration index
22
- this.index = this.size;
23
-
24
- // abort jobs
25
- abort(this);
26
-
27
- // send back results we have so far
28
- async(callback)(null, this.results);
29
- }