cloudstructs 0.9.37 → 0.9.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/assets/slack-app/provider.lambda/index.js +26 -26
- package/assets/slack-textract/detect.lambda/index.js +140 -122
- package/assets/ssl-server-test/analyze.lambda/index.js +26 -26
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +7 -9
- package/node_modules/@babel/runtime/helpers/regeneratorDefine.js +7 -9
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +3 -0
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +4 -19
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +4 -89
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +120 -1
- package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@slack/logger/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@slack/logger/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@slack/logger/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@slack/logger/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts +5 -1
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/index.d.ts +3 -3
- package/node_modules/@slack/types/dist/events/index.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/index.js +1 -1
- package/node_modules/@slack/types/dist/events/index.js.map +1 -1
- package/node_modules/@slack/types/dist/events/message.d.ts +1 -0
- package/node_modules/@slack/types/dist/events/message.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/team.d.ts +2 -2
- package/node_modules/@slack/types/dist/events/team.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/index.d.ts +5 -5
- package/node_modules/@slack/types/dist/index.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/index.js +5 -5
- package/node_modules/@slack/types/dist/index.js.map +1 -1
- package/node_modules/@slack/types/package.json +16 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +3 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +4 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +4 -89
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +120 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@slack/web-api/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +3 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +4 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +4 -89
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +120 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +3 -0
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +4 -19
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +4 -89
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +120 -1
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +3 -0
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +25 -121
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +17 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +18 -19
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +26 -29
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +26 -32
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +4 -19
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +13 -11
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +219 -6
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +24 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +4 -89
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +14 -0
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +11 -1
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +4 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +17 -6
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +120 -1
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +0 -2
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +12 -1
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +6 -2
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +8 -2
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +4 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +6 -3
- package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +3 -0
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +2 -0
- package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +1 -0
- package/node_modules/axios/CHANGELOG.md +17 -0
- package/node_modules/axios/README.md +1 -4
- package/node_modules/axios/dist/axios.js +39 -5
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +46 -9
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +46 -9
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +46 -9
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +13 -2
- package/node_modules/axios/lib/core/Axios.js +2 -2
- package/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/throttle.js +1 -1
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
- package/node_modules/axios/lib/utils.js +36 -0
- package/node_modules/axios/package.json +5 -5
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/form-data/CHANGELOG.md +601 -0
- package/node_modules/form-data/{README.md.bak → README.md} +4 -4
- package/node_modules/form-data/lib/form_data.js +2 -6
- package/node_modules/form-data/package.json +22 -6
- package/package.json +18 -18
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/index.d.ts +0 -98
- package/node_modules/form-data/Readme.md +0 -355
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "24.0
|
|
3
|
+
"version": "24.3.0",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,11 +15,6 @@
|
|
|
15
15
|
"githubUsername": "jkomyno",
|
|
16
16
|
"url": "https://github.com/jkomyno"
|
|
17
17
|
},
|
|
18
|
-
{
|
|
19
|
-
"name": "Alvis HT Tang",
|
|
20
|
-
"githubUsername": "alvis",
|
|
21
|
-
"url": "https://github.com/alvis"
|
|
22
|
-
},
|
|
23
18
|
{
|
|
24
19
|
"name": "Andrew Makarov",
|
|
25
20
|
"githubUsername": "r3nya",
|
|
@@ -30,56 +25,11 @@
|
|
|
30
25
|
"githubUsername": "btoueg",
|
|
31
26
|
"url": "https://github.com/btoueg"
|
|
32
27
|
},
|
|
33
|
-
{
|
|
34
|
-
"name": "Chigozirim C.",
|
|
35
|
-
"githubUsername": "smac89",
|
|
36
|
-
"url": "https://github.com/smac89"
|
|
37
|
-
},
|
|
38
28
|
{
|
|
39
29
|
"name": "David Junger",
|
|
40
30
|
"githubUsername": "touffy",
|
|
41
31
|
"url": "https://github.com/touffy"
|
|
42
32
|
},
|
|
43
|
-
{
|
|
44
|
-
"name": "Deividas Bakanas",
|
|
45
|
-
"githubUsername": "DeividasBakanas",
|
|
46
|
-
"url": "https://github.com/DeividasBakanas"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "Eugene Y. Q. Shen",
|
|
50
|
-
"githubUsername": "eyqs",
|
|
51
|
-
"url": "https://github.com/eyqs"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "Hannes Magnusson",
|
|
55
|
-
"githubUsername": "Hannes-Magnusson-CK",
|
|
56
|
-
"url": "https://github.com/Hannes-Magnusson-CK"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "Huw",
|
|
60
|
-
"githubUsername": "hoo29",
|
|
61
|
-
"url": "https://github.com/hoo29"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "Kelvin Jin",
|
|
65
|
-
"githubUsername": "kjin",
|
|
66
|
-
"url": "https://github.com/kjin"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "Klaus Meinhardt",
|
|
70
|
-
"githubUsername": "ajafff",
|
|
71
|
-
"url": "https://github.com/ajafff"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "Lishude",
|
|
75
|
-
"githubUsername": "islishude",
|
|
76
|
-
"url": "https://github.com/islishude"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "Mariusz Wiktorczyk",
|
|
80
|
-
"githubUsername": "mwiktorczyk",
|
|
81
|
-
"url": "https://github.com/mwiktorczyk"
|
|
82
|
-
},
|
|
83
33
|
{
|
|
84
34
|
"name": "Mohsen Azimi",
|
|
85
35
|
"githubUsername": "mohsen1",
|
|
@@ -90,46 +40,16 @@
|
|
|
90
40
|
"githubUsername": "galkin",
|
|
91
41
|
"url": "https://github.com/galkin"
|
|
92
42
|
},
|
|
93
|
-
{
|
|
94
|
-
"name": "Parambir Singh",
|
|
95
|
-
"githubUsername": "parambirs",
|
|
96
|
-
"url": "https://github.com/parambirs"
|
|
97
|
-
},
|
|
98
43
|
{
|
|
99
44
|
"name": "Sebastian Silbermann",
|
|
100
45
|
"githubUsername": "eps1lon",
|
|
101
46
|
"url": "https://github.com/eps1lon"
|
|
102
47
|
},
|
|
103
|
-
{
|
|
104
|
-
"name": "Thomas den Hollander",
|
|
105
|
-
"githubUsername": "ThomasdenH",
|
|
106
|
-
"url": "https://github.com/ThomasdenH"
|
|
107
|
-
},
|
|
108
48
|
{
|
|
109
49
|
"name": "Wilco Bakker",
|
|
110
50
|
"githubUsername": "WilcoBakker",
|
|
111
51
|
"url": "https://github.com/WilcoBakker"
|
|
112
52
|
},
|
|
113
|
-
{
|
|
114
|
-
"name": "wwwy3y3",
|
|
115
|
-
"githubUsername": "wwwy3y3",
|
|
116
|
-
"url": "https://github.com/wwwy3y3"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"name": "Samuel Ainsworth",
|
|
120
|
-
"githubUsername": "samuela",
|
|
121
|
-
"url": "https://github.com/samuela"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"name": "Kyle Uehlein",
|
|
125
|
-
"githubUsername": "kuehlein",
|
|
126
|
-
"url": "https://github.com/kuehlein"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"name": "Thanik Bhongbhibhat",
|
|
130
|
-
"githubUsername": "bhongy",
|
|
131
|
-
"url": "https://github.com/bhongy"
|
|
132
|
-
},
|
|
133
53
|
{
|
|
134
54
|
"name": "Marcin Kopacz",
|
|
135
55
|
"githubUsername": "chyzwar",
|
|
@@ -209,11 +129,6 @@
|
|
|
209
129
|
"main": "",
|
|
210
130
|
"types": "index.d.ts",
|
|
211
131
|
"typesVersions": {
|
|
212
|
-
"<=5.1": {
|
|
213
|
-
"*": [
|
|
214
|
-
"ts5.1/*"
|
|
215
|
-
]
|
|
216
|
-
},
|
|
217
132
|
"<=5.6": {
|
|
218
133
|
"*": [
|
|
219
134
|
"ts5.6/*"
|
|
@@ -232,9 +147,9 @@
|
|
|
232
147
|
},
|
|
233
148
|
"scripts": {},
|
|
234
149
|
"dependencies": {
|
|
235
|
-
"undici-types": "~7.
|
|
150
|
+
"undici-types": "~7.10.0"
|
|
236
151
|
},
|
|
237
152
|
"peerDependencies": {},
|
|
238
|
-
"typesPublisherContentHash": "
|
|
239
|
-
"typeScriptVersion": "5.
|
|
153
|
+
"typesPublisherContentHash": "1db0510763ba3afd8e54c0591e60a100a7b90926f5d7da28ae32d8f845d725da",
|
|
154
|
+
"typeScriptVersion": "5.2"
|
|
240
155
|
}
|
|
@@ -813,6 +813,20 @@ declare module "perf_hooks" {
|
|
|
813
813
|
* @since v11.10.0
|
|
814
814
|
*/
|
|
815
815
|
disable(): boolean;
|
|
816
|
+
/**
|
|
817
|
+
* Disables the update interval timer when the histogram is disposed.
|
|
818
|
+
*
|
|
819
|
+
* ```js
|
|
820
|
+
* const { monitorEventLoopDelay } = require('node:perf_hooks');
|
|
821
|
+
* {
|
|
822
|
+
* using hist = monitorEventLoopDelay({ resolution: 20 });
|
|
823
|
+
* hist.enable();
|
|
824
|
+
* // The histogram will be disabled when the block is exited.
|
|
825
|
+
* }
|
|
826
|
+
* ```
|
|
827
|
+
* @since v24.2.0
|
|
828
|
+
*/
|
|
829
|
+
[Symbol.dispose](): void;
|
|
816
830
|
}
|
|
817
831
|
interface RecordableHistogram extends Histogram {
|
|
818
832
|
/**
|
|
@@ -123,6 +123,12 @@ declare module "repl" {
|
|
|
123
123
|
*/
|
|
124
124
|
action: REPLCommandAction;
|
|
125
125
|
}
|
|
126
|
+
interface REPLServerSetupHistoryOptions {
|
|
127
|
+
filePath?: string | undefined;
|
|
128
|
+
size?: number | undefined;
|
|
129
|
+
removeHistoryDuplicates?: boolean | undefined;
|
|
130
|
+
onHistoryFileLoaded?: ((err: Error | null, repl: REPLServer) => void) | undefined;
|
|
131
|
+
}
|
|
126
132
|
/**
|
|
127
133
|
* Instances of `repl.REPLServer` are created using the {@link start} method
|
|
128
134
|
* or directly using the JavaScript `new` keyword.
|
|
@@ -316,7 +322,11 @@ declare module "repl" {
|
|
|
316
322
|
* @param historyPath the path to the history file
|
|
317
323
|
* @param callback called when history writes are ready or upon error
|
|
318
324
|
*/
|
|
319
|
-
setupHistory(
|
|
325
|
+
setupHistory(historyPath: string, callback: (err: Error | null, repl: this) => void): void;
|
|
326
|
+
setupHistory(
|
|
327
|
+
historyConfig?: REPLServerSetupHistoryOptions,
|
|
328
|
+
callback?: (err: Error | null, repl: this) => void,
|
|
329
|
+
): void;
|
|
320
330
|
/**
|
|
321
331
|
* events.EventEmitter
|
|
322
332
|
* 1. close - inherited from `readline.Interface`
|
|
@@ -6,6 +6,8 @@ type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {}
|
|
|
6
6
|
: import("stream/web").CountQueuingStrategy;
|
|
7
7
|
type _DecompressionStream = typeof globalThis extends { onmessage: any; ReportingObserver: any } ? {}
|
|
8
8
|
: import("stream/web").DecompressionStream;
|
|
9
|
+
type _QueuingStrategy<T = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
10
|
+
: import("stream/web").QueuingStrategy<T>;
|
|
9
11
|
type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {}
|
|
10
12
|
: import("stream/web").ReadableByteStreamController;
|
|
11
13
|
type _ReadableStream<R = any> = typeof globalThis extends { onmessage: any } ? {}
|
|
@@ -487,6 +489,8 @@ declare module "stream/web" {
|
|
|
487
489
|
}
|
|
488
490
|
: typeof import("stream/web").DecompressionStream;
|
|
489
491
|
|
|
492
|
+
interface QueuingStrategy<T = any> extends _QueuingStrategy<T> {}
|
|
493
|
+
|
|
490
494
|
interface ReadableByteStreamController extends _ReadableByteStreamController {}
|
|
491
495
|
/**
|
|
492
496
|
* `ReadableByteStreamController` class is a global reference for `import { ReadableByteStreamController } from 'node:stream/web'`.
|
|
@@ -615,6 +615,17 @@ declare module "stream" {
|
|
|
615
615
|
* @param error Error which will be passed as payload in `'error'` event
|
|
616
616
|
*/
|
|
617
617
|
destroy(error?: Error): this;
|
|
618
|
+
/**
|
|
619
|
+
* @returns `AsyncIterator` to fully consume the stream.
|
|
620
|
+
* @since v10.0.0
|
|
621
|
+
*/
|
|
622
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<any>;
|
|
623
|
+
/**
|
|
624
|
+
* Calls `readable.destroy()` with an `AbortError` and returns
|
|
625
|
+
* a promise that fulfills when the stream is finished.
|
|
626
|
+
* @since v20.4.0
|
|
627
|
+
*/
|
|
628
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
618
629
|
/**
|
|
619
630
|
* Event emitter
|
|
620
631
|
* The defined events on documents including:
|
|
@@ -682,12 +693,6 @@ declare module "stream" {
|
|
|
682
693
|
removeListener(event: "readable", listener: () => void): this;
|
|
683
694
|
removeListener(event: "resume", listener: () => void): this;
|
|
684
695
|
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
685
|
-
[Symbol.asyncIterator](): NodeJS.AsyncIterator<any>;
|
|
686
|
-
/**
|
|
687
|
-
* Calls `readable.destroy()` with an `AbortError` and returns a promise that fulfills when the stream is finished.
|
|
688
|
-
* @since v20.4.0
|
|
689
|
-
*/
|
|
690
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
691
696
|
}
|
|
692
697
|
interface WritableOptions<T extends Writable = Writable> extends StreamOptions<T> {
|
|
693
698
|
decodeStrings?: boolean | undefined;
|
|
@@ -957,6 +962,12 @@ declare module "stream" {
|
|
|
957
962
|
* @param error Optional, an error to emit with `'error'` event.
|
|
958
963
|
*/
|
|
959
964
|
destroy(error?: Error): this;
|
|
965
|
+
/**
|
|
966
|
+
* Calls `writable.destroy()` with an `AbortError` and returns
|
|
967
|
+
* a promise that fulfills when the stream is finished.
|
|
968
|
+
* @since v22.4.0, v20.16.0
|
|
969
|
+
*/
|
|
970
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
960
971
|
/**
|
|
961
972
|
* Event emitter
|
|
962
973
|
* The defined events on documents including:
|
|
@@ -410,6 +410,7 @@ declare module "node:test" {
|
|
|
410
410
|
addListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this;
|
|
411
411
|
addListener(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
|
|
412
412
|
addListener(event: "test:watch:drained", listener: () => void): this;
|
|
413
|
+
addListener(event: "test:watch:restarted", listener: () => void): this;
|
|
413
414
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
414
415
|
emit(event: "test:coverage", data: EventData.TestCoverage): boolean;
|
|
415
416
|
emit(event: "test:complete", data: EventData.TestComplete): boolean;
|
|
@@ -424,6 +425,7 @@ declare module "node:test" {
|
|
|
424
425
|
emit(event: "test:stdout", data: EventData.TestStdout): boolean;
|
|
425
426
|
emit(event: "test:summary", data: EventData.TestSummary): boolean;
|
|
426
427
|
emit(event: "test:watch:drained"): boolean;
|
|
428
|
+
emit(event: "test:watch:restarted"): boolean;
|
|
427
429
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
428
430
|
on(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this;
|
|
429
431
|
on(event: "test:complete", listener: (data: EventData.TestComplete) => void): this;
|
|
@@ -438,6 +440,7 @@ declare module "node:test" {
|
|
|
438
440
|
on(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this;
|
|
439
441
|
on(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
|
|
440
442
|
on(event: "test:watch:drained", listener: () => void): this;
|
|
443
|
+
on(event: "test:watch:restarted", listener: () => void): this;
|
|
441
444
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
442
445
|
once(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this;
|
|
443
446
|
once(event: "test:complete", listener: (data: EventData.TestComplete) => void): this;
|
|
@@ -452,6 +455,7 @@ declare module "node:test" {
|
|
|
452
455
|
once(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this;
|
|
453
456
|
once(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
|
|
454
457
|
once(event: "test:watch:drained", listener: () => void): this;
|
|
458
|
+
once(event: "test:watch:restarted", listener: () => void): this;
|
|
455
459
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
456
460
|
prependListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this;
|
|
457
461
|
prependListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this;
|
|
@@ -466,6 +470,7 @@ declare module "node:test" {
|
|
|
466
470
|
prependListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this;
|
|
467
471
|
prependListener(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
|
|
468
472
|
prependListener(event: "test:watch:drained", listener: () => void): this;
|
|
473
|
+
prependListener(event: "test:watch:restarted", listener: () => void): this;
|
|
469
474
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
470
475
|
prependOnceListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this;
|
|
471
476
|
prependOnceListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this;
|
|
@@ -480,6 +485,7 @@ declare module "node:test" {
|
|
|
480
485
|
prependOnceListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this;
|
|
481
486
|
prependOnceListener(event: "test:summary", listener: (data: EventData.TestSummary) => void): this;
|
|
482
487
|
prependOnceListener(event: "test:watch:drained", listener: () => void): this;
|
|
488
|
+
prependOnceListener(event: "test:watch:restarted", listener: () => void): this;
|
|
483
489
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
484
490
|
}
|
|
485
491
|
namespace EventData {
|
|
@@ -510,6 +516,14 @@ declare module "node:test" {
|
|
|
510
516
|
* The nesting level of the test.
|
|
511
517
|
*/
|
|
512
518
|
nesting: number;
|
|
519
|
+
/**
|
|
520
|
+
* The severity level of the diagnostic message.
|
|
521
|
+
* Possible values are:
|
|
522
|
+
* * `'info'`: Informational messages.
|
|
523
|
+
* * `'warn'`: Warnings.
|
|
524
|
+
* * `'error'`: Errors.
|
|
525
|
+
*/
|
|
526
|
+
level: "info" | "warn" | "error";
|
|
513
527
|
}
|
|
514
528
|
interface TestCoverage {
|
|
515
529
|
/**
|
|
@@ -1693,6 +1707,46 @@ declare module "node:test" {
|
|
|
1693
1707
|
* @param options Optional configuration options for the mock module.
|
|
1694
1708
|
*/
|
|
1695
1709
|
module(specifier: string, options?: MockModuleOptions): MockModuleContext;
|
|
1710
|
+
/**
|
|
1711
|
+
* Creates a mock for a property value on an object. This allows you to track and control access to a specific property,
|
|
1712
|
+
* including how many times it is read (getter) or written (setter), and to restore the original value after mocking.
|
|
1713
|
+
*
|
|
1714
|
+
* ```js
|
|
1715
|
+
* test('mocks a property value', (t) => {
|
|
1716
|
+
* const obj = { foo: 42 };
|
|
1717
|
+
* const prop = t.mock.property(obj, 'foo', 100);
|
|
1718
|
+
*
|
|
1719
|
+
* assert.strictEqual(obj.foo, 100);
|
|
1720
|
+
* assert.strictEqual(prop.mock.accessCount(), 1);
|
|
1721
|
+
* assert.strictEqual(prop.mock.accesses[0].type, 'get');
|
|
1722
|
+
* assert.strictEqual(prop.mock.accesses[0].value, 100);
|
|
1723
|
+
*
|
|
1724
|
+
* obj.foo = 200;
|
|
1725
|
+
* assert.strictEqual(prop.mock.accessCount(), 2);
|
|
1726
|
+
* assert.strictEqual(prop.mock.accesses[1].type, 'set');
|
|
1727
|
+
* assert.strictEqual(prop.mock.accesses[1].value, 200);
|
|
1728
|
+
*
|
|
1729
|
+
* prop.mock.restore();
|
|
1730
|
+
* assert.strictEqual(obj.foo, 42);
|
|
1731
|
+
* });
|
|
1732
|
+
* ```
|
|
1733
|
+
* @since v24.3.0
|
|
1734
|
+
* @param object The object whose value is being mocked.
|
|
1735
|
+
* @param propertyName The identifier of the property on `object` to mock.
|
|
1736
|
+
* @param value An optional value used as the mock value
|
|
1737
|
+
* for `object[propertyName]`. **Default:** The original property value.
|
|
1738
|
+
* @returns A proxy to the mocked object. The mocked object contains a
|
|
1739
|
+
* special `mock` property, which is an instance of [`MockPropertyContext`][], and
|
|
1740
|
+
* can be used for inspecting and changing the behavior of the mocked property.
|
|
1741
|
+
*/
|
|
1742
|
+
property<
|
|
1743
|
+
MockedObject extends object,
|
|
1744
|
+
PropertyName extends keyof MockedObject,
|
|
1745
|
+
>(
|
|
1746
|
+
object: MockedObject,
|
|
1747
|
+
property: PropertyName,
|
|
1748
|
+
value?: MockedObject[PropertyName],
|
|
1749
|
+
): MockedObject & { mock: MockPropertyContext<MockedObject[PropertyName]> };
|
|
1696
1750
|
/**
|
|
1697
1751
|
* This function restores the default behavior of all mocks that were previously
|
|
1698
1752
|
* created by this `MockTracker` and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, but the `MockTracker` instance can no longer be
|
|
@@ -1862,6 +1916,70 @@ declare module "node:test" {
|
|
|
1862
1916
|
*/
|
|
1863
1917
|
restore(): void;
|
|
1864
1918
|
}
|
|
1919
|
+
/**
|
|
1920
|
+
* @since v24.3.0
|
|
1921
|
+
*/
|
|
1922
|
+
class MockPropertyContext<PropertyType = any> {
|
|
1923
|
+
/**
|
|
1924
|
+
* A getter that returns a copy of the internal array used to track accesses (get/set) to
|
|
1925
|
+
* the mocked property. Each entry in the array is an object with the following properties:
|
|
1926
|
+
*/
|
|
1927
|
+
readonly accesses: Array<{
|
|
1928
|
+
type: "get" | "set";
|
|
1929
|
+
value: PropertyType;
|
|
1930
|
+
stack: Error;
|
|
1931
|
+
}>;
|
|
1932
|
+
/**
|
|
1933
|
+
* This function returns the number of times that the property was accessed.
|
|
1934
|
+
* This function is more efficient than checking `ctx.accesses.length` because
|
|
1935
|
+
* `ctx.accesses` is a getter that creates a copy of the internal access tracking array.
|
|
1936
|
+
* @returns The number of times that the property was accessed (read or written).
|
|
1937
|
+
*/
|
|
1938
|
+
accessCount(): number;
|
|
1939
|
+
/**
|
|
1940
|
+
* This function is used to change the value returned by the mocked property getter.
|
|
1941
|
+
* @param value The new value to be set as the mocked property value.
|
|
1942
|
+
*/
|
|
1943
|
+
mockImplementation(value: PropertyType): void;
|
|
1944
|
+
/**
|
|
1945
|
+
* This function is used to change the behavior of an existing mock for a single
|
|
1946
|
+
* invocation. Once invocation `onAccess` has occurred, the mock will revert to
|
|
1947
|
+
* whatever behavior it would have used had `mockImplementationOnce()` not been
|
|
1948
|
+
* called.
|
|
1949
|
+
*
|
|
1950
|
+
* The following example creates a mock function using `t.mock.property()`, calls the
|
|
1951
|
+
* mock property, changes the mock implementation to a different value for the
|
|
1952
|
+
* next invocation, and then resumes its previous behavior.
|
|
1953
|
+
*
|
|
1954
|
+
* ```js
|
|
1955
|
+
* test('changes a mock behavior once', (t) => {
|
|
1956
|
+
* const obj = { foo: 1 };
|
|
1957
|
+
*
|
|
1958
|
+
* const prop = t.mock.property(obj, 'foo', 5);
|
|
1959
|
+
*
|
|
1960
|
+
* assert.strictEqual(obj.foo, 5);
|
|
1961
|
+
* prop.mock.mockImplementationOnce(25);
|
|
1962
|
+
* assert.strictEqual(obj.foo, 25);
|
|
1963
|
+
* assert.strictEqual(obj.foo, 5);
|
|
1964
|
+
* });
|
|
1965
|
+
* ```
|
|
1966
|
+
* @param value The value to be used as the mock's
|
|
1967
|
+
* implementation for the invocation number specified by `onAccess`.
|
|
1968
|
+
* @param onAccess The invocation number that will use `value`. If
|
|
1969
|
+
* the specified invocation has already occurred then an exception is thrown.
|
|
1970
|
+
* **Default:** The number of the next invocation.
|
|
1971
|
+
*/
|
|
1972
|
+
mockImplementationOnce(value: PropertyType, onAccess?: number): void;
|
|
1973
|
+
/**
|
|
1974
|
+
* Resets the access history of the mocked property.
|
|
1975
|
+
*/
|
|
1976
|
+
resetAccesses(): void;
|
|
1977
|
+
/**
|
|
1978
|
+
* Resets the implementation of the mock property to its original behavior. The
|
|
1979
|
+
* mock can still be used after calling this function.
|
|
1980
|
+
*/
|
|
1981
|
+
restore(): void;
|
|
1982
|
+
}
|
|
1865
1983
|
interface MockTimersOptions {
|
|
1866
1984
|
apis: ReadonlyArray<"setInterval" | "setTimeout" | "setImmediate" | "Date">;
|
|
1867
1985
|
now?: number | Date | undefined;
|
|
@@ -2168,7 +2286,8 @@ declare module "node:test/reporters" {
|
|
|
2168
2286
|
| { type: "test:stderr"; data: EventData.TestStderr }
|
|
2169
2287
|
| { type: "test:stdout"; data: EventData.TestStdout }
|
|
2170
2288
|
| { type: "test:summary"; data: EventData.TestSummary }
|
|
2171
|
-
| { type: "test:watch:drained"; data: undefined }
|
|
2289
|
+
| { type: "test:watch:drained"; data: undefined }
|
|
2290
|
+
| { type: "test:watch:restarted"; data: undefined };
|
|
2172
2291
|
type TestEventGenerator = AsyncGenerator<TestEvent, void>;
|
|
2173
2292
|
|
|
2174
2293
|
interface ReporterConstructorWrapper<T extends new(...args: any[]) => Transform> {
|
|
@@ -60,7 +60,6 @@ declare module "timers" {
|
|
|
60
60
|
/**
|
|
61
61
|
* Cancels the immediate. This is similar to calling `clearImmediate()`.
|
|
62
62
|
* @since v20.5.0, v18.18.0
|
|
63
|
-
* @experimental
|
|
64
63
|
*/
|
|
65
64
|
[Symbol.dispose](): void;
|
|
66
65
|
_onImmediate(...args: any[]): void;
|
|
@@ -141,7 +140,6 @@ declare module "timers" {
|
|
|
141
140
|
/**
|
|
142
141
|
* Cancels the timeout.
|
|
143
142
|
* @since v20.5.0, v18.18.0
|
|
144
|
-
* @experimental
|
|
145
143
|
*/
|
|
146
144
|
[Symbol.dispose](): void;
|
|
147
145
|
_onTimeout(...args: any[]): void;
|
|
@@ -315,6 +315,17 @@ declare module "url" {
|
|
|
315
315
|
* @return The fully-resolved platform-specific Node.js file path.
|
|
316
316
|
*/
|
|
317
317
|
function fileURLToPath(url: string | URL, options?: FileUrlToPathOptions): string;
|
|
318
|
+
/**
|
|
319
|
+
* Like `url.fileURLToPath(...)` except that instead of returning a string
|
|
320
|
+
* representation of the path, a `Buffer` is returned. This conversion is
|
|
321
|
+
* helpful when the input URL contains percent-encoded segments that are
|
|
322
|
+
* not valid UTF-8 / Unicode sequences.
|
|
323
|
+
* @since v24.3.0
|
|
324
|
+
* @param url The file URL string or URL object to convert to a path.
|
|
325
|
+
* @returns The fully-resolved platform-specific Node.js file path
|
|
326
|
+
* as a `Buffer`.
|
|
327
|
+
*/
|
|
328
|
+
function fileURLToPathBuffer(url: string | URL, options?: FileUrlToPathOptions): Buffer;
|
|
318
329
|
/**
|
|
319
330
|
* This function ensures that `path` is resolved absolutely, and that the URL
|
|
320
331
|
* control characters are correctly encoded when converting into a File URL.
|
|
@@ -874,7 +885,7 @@ declare module "url" {
|
|
|
874
885
|
* Returns an ES6 `Iterator` over each of the name-value pairs in the query.
|
|
875
886
|
* Each item of the iterator is a JavaScript `Array`. The first item of the `Array` is the `name`, the second item of the `Array` is the `value`.
|
|
876
887
|
*
|
|
877
|
-
* Alias for `urlSearchParams[
|
|
888
|
+
* Alias for `urlSearchParams[Symbol.iterator]()`.
|
|
878
889
|
*/
|
|
879
890
|
entries(): URLSearchParamsIterator<[string, string]>;
|
|
880
891
|
/**
|
|
@@ -431,8 +431,8 @@ declare module "util" {
|
|
|
431
431
|
* intended for debugging. The output of `util.inspect` may change at any time
|
|
432
432
|
* and should not be depended upon programmatically. Additional `options` may be
|
|
433
433
|
* passed that alter the result.
|
|
434
|
-
* `util.inspect()` will use the constructor's name and/or
|
|
435
|
-
* an identifiable tag for an inspected value.
|
|
434
|
+
* `util.inspect()` will use the constructor's name and/or `Symbol.toStringTag`
|
|
435
|
+
* property to make an identifiable tag for an inspected value.
|
|
436
436
|
*
|
|
437
437
|
* ```js
|
|
438
438
|
* class Foo {
|
|
@@ -1172,6 +1172,7 @@ declare module "util" {
|
|
|
1172
1172
|
| "hidden"
|
|
1173
1173
|
| "inverse"
|
|
1174
1174
|
| "italic"
|
|
1175
|
+
| "none"
|
|
1175
1176
|
| "overlined"
|
|
1176
1177
|
| "reset"
|
|
1177
1178
|
| "strikethrough"
|
|
@@ -1228,6 +1229,8 @@ declare module "util" {
|
|
|
1228
1229
|
* );
|
|
1229
1230
|
* ```
|
|
1230
1231
|
*
|
|
1232
|
+
* The special format value `none` applies no additional styling to the text.
|
|
1233
|
+
*
|
|
1231
1234
|
* The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v24.x/api/util.html#modifiers).
|
|
1232
1235
|
* @param format A text format or an Array of text formats defined in `util.inspect.colors`.
|
|
1233
1236
|
* @param text The text to to be formatted.
|
|
@@ -2108,6 +2111,7 @@ declare module "util/types" {
|
|
|
2108
2111
|
* console.log(myError instanceof Error); // true
|
|
2109
2112
|
* ```
|
|
2110
2113
|
* @since v10.0.0
|
|
2114
|
+
* @deprecated The `util.types.isNativeError` API is deprecated. Please use `Error.isError` instead.
|
|
2111
2115
|
*/
|
|
2112
2116
|
function isNativeError(object: unknown): object is Error;
|
|
2113
2117
|
/**
|
|
@@ -482,6 +482,18 @@ declare module "worker_threads" {
|
|
|
482
482
|
* @since v24.0.0
|
|
483
483
|
*/
|
|
484
484
|
getHeapStatistics(): Promise<HeapInfo>;
|
|
485
|
+
/**
|
|
486
|
+
* Calls `worker.terminate()` when the dispose scope is exited.
|
|
487
|
+
*
|
|
488
|
+
* ```js
|
|
489
|
+
* async function example() {
|
|
490
|
+
* await using worker = new Worker('for (;;) {}', { eval: true });
|
|
491
|
+
* // Worker is automatically terminate when the scope is exited.
|
|
492
|
+
* }
|
|
493
|
+
* ```
|
|
494
|
+
* @since v24.2.0
|
|
495
|
+
*/
|
|
496
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
485
497
|
addListener(event: "error", listener: (err: Error) => void): this;
|
|
486
498
|
addListener(event: "exit", listener: (exitCode: number) => void): this;
|
|
487
499
|
addListener(event: "message", listener: (value: any) => void): this;
|
|
@@ -147,6 +147,10 @@ declare module "zlib" {
|
|
|
147
147
|
* @default buffer.kMaxLength
|
|
148
148
|
*/
|
|
149
149
|
maxOutputLength?: number | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* If `true`, returns an object with `buffer` and `engine`.
|
|
152
|
+
*/
|
|
153
|
+
info?: boolean | undefined;
|
|
150
154
|
}
|
|
151
155
|
interface ZstdOptions {
|
|
152
156
|
/**
|
|
@@ -172,6 +176,10 @@ declare module "zlib" {
|
|
|
172
176
|
* @default buffer.kMaxLength
|
|
173
177
|
*/
|
|
174
178
|
maxOutputLength?: number | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* If `true`, returns an object with `buffer` and `engine`.
|
|
181
|
+
*/
|
|
182
|
+
info?: boolean | undefined;
|
|
175
183
|
}
|
|
176
184
|
interface Zlib {
|
|
177
185
|
readonly bytesWritten: number;
|
|
@@ -610,8 +618,6 @@ declare module "zlib" {
|
|
|
610
618
|
const Z_FINISH: number;
|
|
611
619
|
/** @deprecated Use `constants.Z_BLOCK` */
|
|
612
620
|
const Z_BLOCK: number;
|
|
613
|
-
/** @deprecated Use `constants.Z_TREES` */
|
|
614
|
-
const Z_TREES: number;
|
|
615
621
|
// Return codes for the compression/decompression functions.
|
|
616
622
|
// Negative values are errors, positive values are used for special but normal events.
|
|
617
623
|
/** @deprecated Use `constants.Z_OK` */
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { URL } from 'url'
|
|
2
2
|
import Pool from './pool'
|
|
3
3
|
import Dispatcher from './dispatcher'
|
|
4
|
+
import TClientStats from './client-stats'
|
|
5
|
+
import TPoolStats from './pool-stats'
|
|
4
6
|
|
|
5
7
|
export default Agent
|
|
6
8
|
|
|
@@ -12,6 +14,8 @@ declare class Agent extends Dispatcher {
|
|
|
12
14
|
destroyed: boolean
|
|
13
15
|
/** Dispatches a request. */
|
|
14
16
|
dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean
|
|
17
|
+
/** Aggregate stats for a Agent by origin. */
|
|
18
|
+
readonly stats: Record<string, TClientStats | TPoolStats>
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
declare namespace Agent {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Client from './client'
|
|
2
|
+
|
|
3
|
+
export default ClientStats
|
|
4
|
+
|
|
5
|
+
declare class ClientStats {
|
|
6
|
+
constructor (pool: Client)
|
|
7
|
+
/** If socket has open connection. */
|
|
8
|
+
connected: boolean
|
|
9
|
+
/** Number of open socket connections in this client that do not have an active request. */
|
|
10
|
+
pending: number
|
|
11
|
+
/** Number of currently active requests of this client. */
|
|
12
|
+
running: number
|
|
13
|
+
/** Number of active, pending, or queued requests of this client. */
|
|
14
|
+
size: number
|
|
15
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { URL } from 'url'
|
|
2
2
|
import Dispatcher from './dispatcher'
|
|
3
3
|
import buildConnector from './connector'
|
|
4
|
+
import TClientStats from './client-stats'
|
|
4
5
|
|
|
5
6
|
type ClientConnectOptions = Omit<Dispatcher.ConnectOptions, 'origin'>
|
|
6
7
|
|
|
@@ -15,6 +16,8 @@ export class Client extends Dispatcher {
|
|
|
15
16
|
closed: boolean
|
|
16
17
|
/** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */
|
|
17
18
|
destroyed: boolean
|
|
19
|
+
/** Aggregate stats for a Client. */
|
|
20
|
+
readonly stats: TClientStats
|
|
18
21
|
|
|
19
22
|
// Override dispatcher APIs.
|
|
20
23
|
override connect (
|
|
@@ -84,13 +87,13 @@ export declare namespace Client {
|
|
|
84
87
|
/**
|
|
85
88
|
* @description Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
|
|
86
89
|
* @default false
|
|
87
|
-
|
|
90
|
+
*/
|
|
88
91
|
allowH2?: boolean;
|
|
89
92
|
/**
|
|
90
93
|
* @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame.
|
|
91
94
|
* @default 100
|
|
92
|
-
|
|
93
|
-
maxConcurrentStreams?: number
|
|
95
|
+
*/
|
|
96
|
+
maxConcurrentStreams?: number;
|
|
94
97
|
}
|
|
95
98
|
export interface SocketInfo {
|
|
96
99
|
localAddress?: string
|
|
@@ -59,6 +59,9 @@ declare namespace MockAgent {
|
|
|
59
59
|
/** Ignore trailing slashes in the path */
|
|
60
60
|
ignoreTrailingSlash?: boolean;
|
|
61
61
|
|
|
62
|
+
/** Accept URLs with search parameters using non standard syntaxes. default false */
|
|
63
|
+
acceptNonStandardSearchParameters?: boolean;
|
|
64
|
+
|
|
62
65
|
/** Enable call history. you can either call MockAgent.enableCallHistory(). default false */
|
|
63
66
|
enableCallHistory?: boolean
|
|
64
67
|
}
|