cloudstructs 0.9.41 → 0.9.43
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 +5 -5
- package/API.md +209 -13
- package/assets/slack-textract/detect.lambda/index.js +276 -88
- 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/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +36 -1
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@slack/logger/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@slack/logger/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@slack/logger/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@slack/logger/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/@slack/types/dist/events/entity-details-requested.d.ts +21 -0
- package/node_modules/@slack/types/dist/events/entity-details-requested.d.ts.map +1 -0
- package/node_modules/@slack/types/dist/events/entity-details-requested.js +3 -0
- package/node_modules/@slack/types/dist/events/entity-details-requested.js.map +1 -0
- package/node_modules/@slack/types/dist/events/index.d.ts +2 -1
- package/node_modules/@slack/types/dist/events/index.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/index.js.map +1 -1
- package/node_modules/@slack/types/dist/message-metadata.d.ts +246 -1
- package/node_modules/@slack/types/dist/message-metadata.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/message-metadata.js +21 -0
- package/node_modules/@slack/types/dist/message-metadata.js.map +1 -1
- package/node_modules/@slack/types/package.json +1 -1
- package/node_modules/@slack/web-api/dist/methods.d.ts +9 -2
- package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.js +7 -0
- package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/chat.d.ts +37 -9
- package/node_modules/@slack/web-api/dist/types/request/chat.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/entity.d.ts +46 -0
- package/node_modules/@slack/web-api/dist/types/request/entity.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/request/entity.js +3 -0
- package/node_modules/@slack/web-api/dist/types/request/entity.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/search.d.ts +10 -1
- package/node_modules/@slack/web-api/dist/types/request/search.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.d.ts +9 -0
- package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +36 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@slack/web-api/node_modules/undici-types/interceptors.d.ts +5 -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/snapshot-agent.d.ts +5 -3
- package/node_modules/@slack/web-api/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/@slack/web-api/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +36 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +5 -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/snapshot-agent.d.ts +5 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +36 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +36 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/axios/CHANGELOG.md +410 -346
- package/node_modules/axios/README.md +79 -51
- package/node_modules/axios/dist/axios.js +121 -46
- 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 +126 -57
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +126 -57
- 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 +351 -97
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +4 -0
- package/node_modules/axios/index.d.ts +4 -0
- package/node_modules/axios/lib/adapters/adapters.js +85 -40
- package/node_modules/axios/lib/adapters/fetch.js +1 -1
- package/node_modules/axios/lib/adapters/http.js +224 -42
- package/node_modules/axios/lib/core/InterceptorManager.js +1 -1
- package/node_modules/axios/lib/core/mergeConfig.js +4 -4
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +6 -0
- package/node_modules/axios/lib/helpers/bind.js +7 -0
- package/node_modules/axios/lib/helpers/cookies.js +24 -13
- package/node_modules/axios/package.json +9 -4
- package/node_modules/mjml/LICENSE.md +21 -0
- package/node_modules/mjml/package.json +9 -8
- package/node_modules/mjml-accordion/LICENSE.md +21 -0
- package/node_modules/mjml-accordion/README.md +2 -2
- package/node_modules/mjml-accordion/lib/Accordion.js +8 -0
- package/node_modules/mjml-accordion/lib/AccordionElement.js +8 -0
- package/node_modules/mjml-accordion/lib/AccordionText.js +17 -3
- package/node_modules/mjml-accordion/lib/AccordionTitle.js +17 -3
- package/node_modules/mjml-accordion/package.json +4 -3
- package/node_modules/mjml-body/LICENSE.md +21 -0
- package/node_modules/mjml-body/package.json +4 -3
- package/node_modules/mjml-button/LICENSE.md +21 -0
- package/node_modules/mjml-button/README.md +1 -1
- package/node_modules/mjml-button/package.json +4 -3
- package/node_modules/mjml-carousel/LICENSE.md +21 -0
- package/node_modules/mjml-carousel/README.md +5 -5
- package/node_modules/mjml-carousel/lib/Carousel.js +15 -2
- package/node_modules/mjml-carousel/lib/CarouselImage.js +8 -1
- package/node_modules/mjml-carousel/package.json +4 -3
- package/node_modules/mjml-cli/LICENSE.md +21 -0
- package/node_modules/mjml-cli/package.json +7 -6
- package/node_modules/mjml-column/LICENSE.md +21 -0
- package/node_modules/mjml-column/lib/index.js +29 -3
- package/node_modules/mjml-column/package.json +4 -3
- package/node_modules/mjml-core/LICENSE.md +21 -0
- package/node_modules/mjml-core/lib/createComponent.js +4 -2
- package/node_modules/mjml-core/lib/index.js +3 -0
- package/node_modules/mjml-core/package.json +6 -5
- package/node_modules/mjml-divider/LICENSE.md +21 -0
- package/node_modules/mjml-divider/package.json +4 -3
- package/node_modules/mjml-group/LICENSE.md +21 -0
- package/node_modules/mjml-group/README.md +4 -4
- package/node_modules/mjml-group/package.json +4 -3
- package/node_modules/mjml-head/LICENSE.md +21 -0
- package/node_modules/mjml-head/package.json +4 -3
- package/node_modules/mjml-head-attributes/LICENSE.md +21 -0
- package/node_modules/mjml-head-attributes/package.json +4 -3
- package/node_modules/mjml-head-breakpoint/LICENSE.md +21 -0
- package/node_modules/mjml-head-breakpoint/package.json +4 -3
- package/node_modules/mjml-head-font/LICENSE.md +21 -0
- package/node_modules/mjml-head-font/package.json +4 -3
- package/node_modules/mjml-head-html-attributes/LICENSE.md +21 -0
- package/node_modules/mjml-head-html-attributes/package.json +4 -3
- package/node_modules/mjml-head-preview/LICENSE.md +21 -0
- package/node_modules/mjml-head-preview/package.json +4 -3
- package/node_modules/mjml-head-style/LICENSE.md +21 -0
- package/node_modules/mjml-head-style/package.json +4 -3
- package/node_modules/mjml-head-title/LICENSE.md +21 -0
- package/node_modules/mjml-head-title/package.json +4 -3
- package/node_modules/mjml-hero/LICENSE.md +21 -0
- package/node_modules/mjml-hero/README.md +4 -4
- package/node_modules/mjml-hero/package.json +4 -3
- package/node_modules/mjml-image/LICENSE.md +21 -0
- package/node_modules/mjml-image/README.md +1 -1
- package/node_modules/mjml-image/package.json +4 -3
- package/node_modules/mjml-migrate/package.json +5 -4
- package/node_modules/mjml-navbar/LICENSE.md +21 -0
- package/node_modules/mjml-navbar/README.md +4 -4
- package/node_modules/mjml-navbar/lib/Navbar.js +2 -2
- package/node_modules/mjml-navbar/package.json +4 -3
- package/node_modules/mjml-parser-xml/package.json +4 -4
- package/node_modules/mjml-preset-core/LICENSE.md +21 -0
- package/node_modules/mjml-preset-core/package.json +28 -27
- package/node_modules/mjml-raw/LICENSE.md +21 -0
- package/node_modules/mjml-raw/package.json +4 -3
- package/node_modules/mjml-section/LICENSE.md +21 -0
- package/node_modules/mjml-section/lib/index.js +20 -4
- package/node_modules/mjml-section/package.json +4 -3
- package/node_modules/mjml-social/LICENSE.md +21 -0
- package/node_modules/mjml-social/README.md +1 -1
- package/node_modules/mjml-social/lib/SocialElement.js +3 -4
- package/node_modules/mjml-social/package.json +4 -3
- package/node_modules/mjml-spacer/LICENSE.md +21 -0
- package/node_modules/mjml-spacer/package.json +4 -3
- package/node_modules/mjml-table/LICENSE.md +21 -0
- package/node_modules/mjml-table/lib/index.js +12 -1
- package/node_modules/mjml-table/package.json +4 -3
- package/node_modules/mjml-text/LICENSE.md +21 -0
- package/node_modules/mjml-text/package.json +4 -3
- package/node_modules/mjml-validator/package.json +2 -2
- package/node_modules/mjml-wrapper/LICENSE.md +21 -0
- package/node_modules/mjml-wrapper/README.md +2 -1
- package/node_modules/mjml-wrapper/lib/index.js +11 -0
- package/node_modules/mjml-wrapper/package.json +5 -4
- package/package.json +19 -19
|
@@ -32,7 +32,7 @@ declare module "buffer" {
|
|
|
32
32
|
* @param arrayBuffer The ArrayBuffer with which to share memory.
|
|
33
33
|
* @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
|
|
34
34
|
*/
|
|
35
|
-
new(arrayBuffer:
|
|
35
|
+
new(arrayBuffer: ArrayBufferLike): Buffer;
|
|
36
36
|
/**
|
|
37
37
|
* Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
|
|
38
38
|
* Array entries outside that range will be truncated to fit into it.
|
|
@@ -126,7 +126,7 @@ declare module "buffer" {
|
|
|
126
126
|
* `arrayBuffer.byteLength - byteOffset`.
|
|
127
127
|
*/
|
|
128
128
|
from(
|
|
129
|
-
arrayBuffer: WithImplicitCoercion<
|
|
129
|
+
arrayBuffer: WithImplicitCoercion<ArrayBufferLike>,
|
|
130
130
|
byteOffset?: number,
|
|
131
131
|
length?: number,
|
|
132
132
|
): Buffer;
|
|
@@ -448,7 +448,15 @@ declare module "buffer" {
|
|
|
448
448
|
*/
|
|
449
449
|
subarray(start?: number, end?: number): Buffer;
|
|
450
450
|
}
|
|
451
|
+
/**
|
|
452
|
+
* @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
|
|
453
|
+
* TypeScript versions earlier than 5.7.
|
|
454
|
+
*/
|
|
451
455
|
type NonSharedBuffer = Buffer;
|
|
456
|
+
/**
|
|
457
|
+
* @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
|
|
458
|
+
* TypeScript versions earlier than 5.7.
|
|
459
|
+
*/
|
|
452
460
|
type AllowSharedBuffer = Buffer;
|
|
453
461
|
}
|
|
454
462
|
/** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
|
package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts
CHANGED
|
@@ -16,5 +16,21 @@ declare global {
|
|
|
16
16
|
| Float32Array
|
|
17
17
|
| Float64Array;
|
|
18
18
|
type ArrayBufferView = TypedArray | DataView;
|
|
19
|
+
|
|
20
|
+
type NonSharedUint8Array = Uint8Array;
|
|
21
|
+
type NonSharedUint8ClampedArray = Uint8ClampedArray;
|
|
22
|
+
type NonSharedUint16Array = Uint16Array;
|
|
23
|
+
type NonSharedUint32Array = Uint32Array;
|
|
24
|
+
type NonSharedInt8Array = Int8Array;
|
|
25
|
+
type NonSharedInt16Array = Int16Array;
|
|
26
|
+
type NonSharedInt32Array = Int32Array;
|
|
27
|
+
type NonSharedBigUint64Array = BigUint64Array;
|
|
28
|
+
type NonSharedBigInt64Array = BigInt64Array;
|
|
29
|
+
type NonSharedFloat16Array = Float16Array;
|
|
30
|
+
type NonSharedFloat32Array = Float32Array;
|
|
31
|
+
type NonSharedFloat64Array = Float64Array;
|
|
32
|
+
type NonSharedDataView = DataView;
|
|
33
|
+
type NonSharedTypedArray = TypedArray;
|
|
34
|
+
type NonSharedArrayBufferView = ArrayBufferView;
|
|
19
35
|
}
|
|
20
36
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/url.js)
|
|
9
9
|
*/
|
|
10
10
|
declare module "url" {
|
|
11
|
-
import { Blob as NodeBlob } from "node:buffer";
|
|
11
|
+
import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer";
|
|
12
12
|
import { ClientRequestArgs } from "node:http";
|
|
13
13
|
import { ParsedUrlQuery, ParsedUrlQueryInput } from "node:querystring";
|
|
14
14
|
// Input to `url.format`
|
|
@@ -71,20 +71,44 @@ declare module "url" {
|
|
|
71
71
|
* A `URIError` is thrown if the `auth` property is present but cannot be decoded.
|
|
72
72
|
*
|
|
73
73
|
* `url.parse()` uses a lenient, non-standard algorithm for parsing URL
|
|
74
|
-
* strings. It is prone to security issues such as [host name spoofing](https://hackerone.com/reports/678487)
|
|
75
|
-
*
|
|
74
|
+
* strings. It is prone to security issues such as [host name spoofing](https://hackerone.com/reports/678487)
|
|
75
|
+
* and incorrect handling of usernames and passwords. Do not use with untrusted
|
|
76
|
+
* input. CVEs are not issued for `url.parse()` vulnerabilities. Use the
|
|
77
|
+
* [WHATWG URL](https://nodejs.org/docs/latest-v24.x/api/url.html#the-whatwg-url-api) API instead, for example:
|
|
78
|
+
*
|
|
79
|
+
* ```js
|
|
80
|
+
* function getURL(req) {
|
|
81
|
+
* const proto = req.headers['x-forwarded-proto'] || 'https';
|
|
82
|
+
* const host = req.headers['x-forwarded-host'] || req.headers.host || 'example.com';
|
|
83
|
+
* return new URL(req.url || '/', `${proto}://${host}`);
|
|
84
|
+
* }
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* The example above assumes well-formed headers are forwarded from a reverse
|
|
88
|
+
* proxy to your Node.js server. If you are not using a reverse proxy, you should
|
|
89
|
+
* use the example below:
|
|
90
|
+
*
|
|
91
|
+
* ```js
|
|
92
|
+
* function getURL(req) {
|
|
93
|
+
* return new URL(req.url || '/', 'https://example.com');
|
|
94
|
+
* }
|
|
95
|
+
* ```
|
|
76
96
|
* @since v0.1.25
|
|
77
97
|
* @deprecated Use the WHATWG URL API instead.
|
|
78
98
|
* @param urlString The URL string to parse.
|
|
79
|
-
* @param
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
99
|
+
* @param parseQueryString If `true`, the `query` property will always
|
|
100
|
+
* be set to an object returned by the [`querystring`](https://nodejs.org/docs/latest-v24.x/api/querystring.html) module's `parse()`
|
|
101
|
+
* method. If `false`, the `query` property on the returned URL object will be an
|
|
102
|
+
* unparsed, undecoded string. **Default:** `false`.
|
|
103
|
+
* @param slashesDenoteHost If `true`, the first token after the literal
|
|
104
|
+
* string `//` and preceding the next `/` will be interpreted as the `host`.
|
|
105
|
+
* For instance, given `//foo/bar`, the result would be
|
|
106
|
+
* `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`.
|
|
107
|
+
* **Default:** `false`.
|
|
83
108
|
*/
|
|
84
|
-
function parse(urlString: string): UrlWithStringQuery;
|
|
85
109
|
function parse(
|
|
86
110
|
urlString: string,
|
|
87
|
-
parseQueryString
|
|
111
|
+
parseQueryString?: false,
|
|
88
112
|
slashesDenoteHost?: boolean,
|
|
89
113
|
): UrlWithStringQuery;
|
|
90
114
|
function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
|
|
@@ -325,7 +349,7 @@ declare module "url" {
|
|
|
325
349
|
* @returns The fully-resolved platform-specific Node.js file path
|
|
326
350
|
* as a `Buffer`.
|
|
327
351
|
*/
|
|
328
|
-
function fileURLToPathBuffer(url: string | URL, options?: FileUrlToPathOptions):
|
|
352
|
+
function fileURLToPathBuffer(url: string | URL, options?: FileUrlToPathOptions): NonSharedBuffer;
|
|
329
353
|
/**
|
|
330
354
|
* This function ensures that `path` is resolved absolutely, and that the URL
|
|
331
355
|
* control characters are correctly encoded when converting into a File URL.
|
|
@@ -853,6 +853,15 @@ declare module "util" {
|
|
|
853
853
|
* @return The deprecated function wrapped to emit a warning.
|
|
854
854
|
*/
|
|
855
855
|
export function deprecate<T extends Function>(fn: T, msg: string, code?: string): T;
|
|
856
|
+
export interface IsDeepStrictEqualOptions {
|
|
857
|
+
/**
|
|
858
|
+
* If `true`, prototype and constructor
|
|
859
|
+
* comparison is skipped during deep strict equality check.
|
|
860
|
+
* @since v24.9.0
|
|
861
|
+
* @default false
|
|
862
|
+
*/
|
|
863
|
+
skipPrototype?: boolean | undefined;
|
|
864
|
+
}
|
|
856
865
|
/**
|
|
857
866
|
* Returns `true` if there is deep strict equality between `val1` and `val2`.
|
|
858
867
|
* Otherwise, returns `false`.
|
|
@@ -861,7 +870,7 @@ declare module "util" {
|
|
|
861
870
|
* equality.
|
|
862
871
|
* @since v9.0.0
|
|
863
872
|
*/
|
|
864
|
-
export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean;
|
|
873
|
+
export function isDeepStrictEqual(val1: unknown, val2: unknown, options?: IsDeepStrictEqualOptions): boolean;
|
|
865
874
|
/**
|
|
866
875
|
* Returns `str` with any ANSI escape codes removed.
|
|
867
876
|
*
|
|
@@ -1332,7 +1341,7 @@ declare module "util" {
|
|
|
1332
1341
|
* encoded bytes.
|
|
1333
1342
|
* @param [input='an empty string'] The text to encode.
|
|
1334
1343
|
*/
|
|
1335
|
-
encode(input?: string):
|
|
1344
|
+
encode(input?: string): NodeJS.NonSharedUint8Array;
|
|
1336
1345
|
/**
|
|
1337
1346
|
* UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object
|
|
1338
1347
|
* containing the read Unicode code units and written UTF-8 bytes.
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/v8.js)
|
|
8
8
|
*/
|
|
9
9
|
declare module "v8" {
|
|
10
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
10
11
|
import { Readable } from "node:stream";
|
|
11
12
|
interface HeapSpaceInfo {
|
|
12
13
|
space_name: string;
|
|
@@ -416,6 +417,22 @@ declare module "v8" {
|
|
|
416
417
|
*/
|
|
417
418
|
[Symbol.asyncDispose](): Promise<void>;
|
|
418
419
|
}
|
|
420
|
+
/**
|
|
421
|
+
* @since v24.9.0
|
|
422
|
+
*/
|
|
423
|
+
interface HeapProfileHandle {
|
|
424
|
+
/**
|
|
425
|
+
* Stopping collecting the profile, then return a Promise that fulfills with an error or the
|
|
426
|
+
* profile data.
|
|
427
|
+
* @since v24.9.0
|
|
428
|
+
*/
|
|
429
|
+
stop(): Promise<string>;
|
|
430
|
+
/**
|
|
431
|
+
* Stopping collecting the profile and the profile will be discarded.
|
|
432
|
+
* @since v24.9.0
|
|
433
|
+
*/
|
|
434
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
435
|
+
}
|
|
419
436
|
/**
|
|
420
437
|
* V8 only supports `Latin-1/ISO-8859-1` and `UTF16` as the underlying representation of a string.
|
|
421
438
|
* If the `content` uses `Latin-1/ISO-8859-1` as the underlying representation, this function will return true;
|
|
@@ -469,7 +486,7 @@ declare module "v8" {
|
|
|
469
486
|
* the buffer is released. Calling this method results in undefined behavior
|
|
470
487
|
* if a previous write has failed.
|
|
471
488
|
*/
|
|
472
|
-
releaseBuffer():
|
|
489
|
+
releaseBuffer(): NonSharedBuffer;
|
|
473
490
|
/**
|
|
474
491
|
* Marks an `ArrayBuffer` as having its contents transferred out of band.
|
|
475
492
|
* Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`.
|
|
@@ -497,7 +514,7 @@ declare module "v8" {
|
|
|
497
514
|
* will require a way to compute the length of the buffer.
|
|
498
515
|
* For use inside of a custom `serializer._writeHostObject()`.
|
|
499
516
|
*/
|
|
500
|
-
writeRawBytes(buffer: NodeJS.
|
|
517
|
+
writeRawBytes(buffer: NodeJS.ArrayBufferView): void;
|
|
501
518
|
}
|
|
502
519
|
/**
|
|
503
520
|
* A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only
|
|
@@ -568,7 +585,7 @@ declare module "v8" {
|
|
|
568
585
|
* larger than `buffer.constants.MAX_LENGTH`.
|
|
569
586
|
* @since v8.0.0
|
|
570
587
|
*/
|
|
571
|
-
function serialize(value: any):
|
|
588
|
+
function serialize(value: any): NonSharedBuffer;
|
|
572
589
|
/**
|
|
573
590
|
* Uses a `DefaultDeserializer` with default options to read a JS value
|
|
574
591
|
* from a buffer.
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/vm.js)
|
|
38
38
|
*/
|
|
39
39
|
declare module "vm" {
|
|
40
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
40
41
|
import { ImportAttributes, ImportPhase } from "node:module";
|
|
41
42
|
interface Context extends NodeJS.Dict<any> {}
|
|
42
43
|
interface BaseOptions {
|
|
@@ -66,7 +67,7 @@ declare module "vm" {
|
|
|
66
67
|
/**
|
|
67
68
|
* Provides an optional data with V8's code cache data for the supplied source.
|
|
68
69
|
*/
|
|
69
|
-
cachedData?:
|
|
70
|
+
cachedData?: NodeJS.ArrayBufferView | undefined;
|
|
70
71
|
/** @deprecated in favor of `script.createCachedData()` */
|
|
71
72
|
produceCachedData?: boolean | undefined;
|
|
72
73
|
/**
|
|
@@ -367,7 +368,7 @@ declare module "vm" {
|
|
|
367
368
|
* ```
|
|
368
369
|
* @since v10.6.0
|
|
369
370
|
*/
|
|
370
|
-
createCachedData():
|
|
371
|
+
createCachedData(): NonSharedBuffer;
|
|
371
372
|
/** @deprecated in favor of `script.createCachedData()` */
|
|
372
373
|
cachedDataProduced?: boolean;
|
|
373
374
|
/**
|
|
@@ -377,7 +378,7 @@ declare module "vm" {
|
|
|
377
378
|
* @since v5.7.0
|
|
378
379
|
*/
|
|
379
380
|
cachedDataRejected?: boolean;
|
|
380
|
-
cachedData?:
|
|
381
|
+
cachedData?: NonSharedBuffer;
|
|
381
382
|
/**
|
|
382
383
|
* When the script is compiled from a source that contains a source map magic
|
|
383
384
|
* comment, this property will be set to the URL of the source map.
|
|
@@ -962,6 +963,26 @@ declare module "vm" {
|
|
|
962
963
|
* @deprecated Use `sourceTextModule.moduleRequests` instead.
|
|
963
964
|
*/
|
|
964
965
|
readonly dependencySpecifiers: readonly string[];
|
|
966
|
+
/**
|
|
967
|
+
* Iterates over the dependency graph and returns `true` if any module in its
|
|
968
|
+
* dependencies or this module itself contains top-level `await` expressions,
|
|
969
|
+
* otherwise returns `false`.
|
|
970
|
+
*
|
|
971
|
+
* The search may be slow if the graph is big enough.
|
|
972
|
+
*
|
|
973
|
+
* This requires the module to be instantiated first. If the module is not
|
|
974
|
+
* instantiated yet, an error will be thrown.
|
|
975
|
+
* @since v24.9.0
|
|
976
|
+
*/
|
|
977
|
+
hasAsyncGraph(): boolean;
|
|
978
|
+
/**
|
|
979
|
+
* Returns whether the module itself contains any top-level `await` expressions.
|
|
980
|
+
*
|
|
981
|
+
* This corresponds to the field `[[HasTLA]]` in [Cyclic Module Record](https://tc39.es/ecma262/#sec-cyclic-module-records) in the
|
|
982
|
+
* ECMAScript specification.
|
|
983
|
+
* @since v24.9.0
|
|
984
|
+
*/
|
|
985
|
+
hasTopLevelAwait(): boolean;
|
|
965
986
|
/**
|
|
966
987
|
* Instantiate the module with the linked requested modules.
|
|
967
988
|
*
|
|
@@ -62,7 +62,7 @@ declare module "worker_threads" {
|
|
|
62
62
|
import { Readable, Writable } from "node:stream";
|
|
63
63
|
import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
|
|
64
64
|
import { URL } from "node:url";
|
|
65
|
-
import { CPUProfileHandle, HeapInfo } from "node:v8";
|
|
65
|
+
import { CPUProfileHandle, HeapInfo, HeapProfileHandle } from "node:v8";
|
|
66
66
|
import { MessageEvent } from "undici-types";
|
|
67
67
|
const isInternalThread: boolean;
|
|
68
68
|
const isMainThread: boolean;
|
|
@@ -492,10 +492,10 @@ declare module "worker_threads" {
|
|
|
492
492
|
* `await using` example.
|
|
493
493
|
*
|
|
494
494
|
* ```js
|
|
495
|
-
* const { Worker } = require('node
|
|
495
|
+
* const { Worker } = require('node:worker_threads');
|
|
496
496
|
*
|
|
497
497
|
* const w = new Worker(`
|
|
498
|
-
* const { parentPort } = require('worker_threads');
|
|
498
|
+
* const { parentPort } = require('node:worker_threads');
|
|
499
499
|
* parentPort.on('message', () => {});
|
|
500
500
|
* `, { eval: true });
|
|
501
501
|
*
|
|
@@ -507,6 +507,43 @@ declare module "worker_threads" {
|
|
|
507
507
|
* @since v24.8.0
|
|
508
508
|
*/
|
|
509
509
|
startCpuProfile(): Promise<CPUProfileHandle>;
|
|
510
|
+
/**
|
|
511
|
+
* Starting a Heap profile then return a Promise that fulfills with an error
|
|
512
|
+
* or an `HeapProfileHandle` object. This API supports `await using` syntax.
|
|
513
|
+
*
|
|
514
|
+
* ```js
|
|
515
|
+
* const { Worker } = require('node:worker_threads');
|
|
516
|
+
*
|
|
517
|
+
* const worker = new Worker(`
|
|
518
|
+
* const { parentPort } = require('worker_threads');
|
|
519
|
+
* parentPort.on('message', () => {});
|
|
520
|
+
* `, { eval: true });
|
|
521
|
+
*
|
|
522
|
+
* worker.on('online', async () => {
|
|
523
|
+
* const handle = await worker.startHeapProfile();
|
|
524
|
+
* const profile = await handle.stop();
|
|
525
|
+
* console.log(profile);
|
|
526
|
+
* worker.terminate();
|
|
527
|
+
* });
|
|
528
|
+
* ```
|
|
529
|
+
*
|
|
530
|
+
* `await using` example.
|
|
531
|
+
*
|
|
532
|
+
* ```js
|
|
533
|
+
* const { Worker } = require('node:worker_threads');
|
|
534
|
+
*
|
|
535
|
+
* const w = new Worker(`
|
|
536
|
+
* const { parentPort } = require('node:worker_threads');
|
|
537
|
+
* parentPort.on('message', () => {});
|
|
538
|
+
* `, { eval: true });
|
|
539
|
+
*
|
|
540
|
+
* w.on('online', async () => {
|
|
541
|
+
* // Stop profile automatically when return and profile will be discarded
|
|
542
|
+
* await using handle = await w.startHeapProfile();
|
|
543
|
+
* });
|
|
544
|
+
* ```
|
|
545
|
+
*/
|
|
546
|
+
startHeapProfile(): Promise<HeapProfileHandle>;
|
|
510
547
|
/**
|
|
511
548
|
* Calls `worker.terminate()` when the dispose scope is exited.
|
|
512
549
|
*
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/zlib.js)
|
|
93
93
|
*/
|
|
94
94
|
declare module "zlib" {
|
|
95
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
95
96
|
import * as stream from "node:stream";
|
|
96
97
|
interface ZlibOptions {
|
|
97
98
|
/**
|
|
@@ -227,7 +228,7 @@ declare module "zlib" {
|
|
|
227
228
|
* @returns A 32-bit unsigned integer containing the checksum.
|
|
228
229
|
* @since v22.2.0
|
|
229
230
|
*/
|
|
230
|
-
function crc32(data: string |
|
|
231
|
+
function crc32(data: string | NodeJS.ArrayBufferView, value?: number): number;
|
|
231
232
|
/**
|
|
232
233
|
* Creates and returns a new `BrotliCompress` object.
|
|
233
234
|
* @since v11.7.0, v10.16.0
|
|
@@ -291,124 +292,124 @@ declare module "zlib" {
|
|
|
291
292
|
*/
|
|
292
293
|
function createZstdDecompress(options?: ZstdOptions): ZstdDecompress;
|
|
293
294
|
type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
|
|
294
|
-
type CompressCallback = (error: Error | null, result:
|
|
295
|
+
type CompressCallback = (error: Error | null, result: NonSharedBuffer) => void;
|
|
295
296
|
/**
|
|
296
297
|
* @since v11.7.0, v10.16.0
|
|
297
298
|
*/
|
|
298
299
|
function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
|
299
300
|
function brotliCompress(buf: InputType, callback: CompressCallback): void;
|
|
300
301
|
namespace brotliCompress {
|
|
301
|
-
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<
|
|
302
|
+
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
|
|
302
303
|
}
|
|
303
304
|
/**
|
|
304
305
|
* Compress a chunk of data with `BrotliCompress`.
|
|
305
306
|
* @since v11.7.0, v10.16.0
|
|
306
307
|
*/
|
|
307
|
-
function brotliCompressSync(buf: InputType, options?: BrotliOptions):
|
|
308
|
+
function brotliCompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
|
|
308
309
|
/**
|
|
309
310
|
* @since v11.7.0, v10.16.0
|
|
310
311
|
*/
|
|
311
312
|
function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
|
|
312
313
|
function brotliDecompress(buf: InputType, callback: CompressCallback): void;
|
|
313
314
|
namespace brotliDecompress {
|
|
314
|
-
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<
|
|
315
|
+
function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
|
|
315
316
|
}
|
|
316
317
|
/**
|
|
317
318
|
* Decompress a chunk of data with `BrotliDecompress`.
|
|
318
319
|
* @since v11.7.0, v10.16.0
|
|
319
320
|
*/
|
|
320
|
-
function brotliDecompressSync(buf: InputType, options?: BrotliOptions):
|
|
321
|
+
function brotliDecompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
|
|
321
322
|
/**
|
|
322
323
|
* @since v0.6.0
|
|
323
324
|
*/
|
|
324
325
|
function deflate(buf: InputType, callback: CompressCallback): void;
|
|
325
326
|
function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
326
327
|
namespace deflate {
|
|
327
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
328
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
328
329
|
}
|
|
329
330
|
/**
|
|
330
331
|
* Compress a chunk of data with `Deflate`.
|
|
331
332
|
* @since v0.11.12
|
|
332
333
|
*/
|
|
333
|
-
function deflateSync(buf: InputType, options?: ZlibOptions):
|
|
334
|
+
function deflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
334
335
|
/**
|
|
335
336
|
* @since v0.6.0
|
|
336
337
|
*/
|
|
337
338
|
function deflateRaw(buf: InputType, callback: CompressCallback): void;
|
|
338
339
|
function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
339
340
|
namespace deflateRaw {
|
|
340
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
341
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
341
342
|
}
|
|
342
343
|
/**
|
|
343
344
|
* Compress a chunk of data with `DeflateRaw`.
|
|
344
345
|
* @since v0.11.12
|
|
345
346
|
*/
|
|
346
|
-
function deflateRawSync(buf: InputType, options?: ZlibOptions):
|
|
347
|
+
function deflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
347
348
|
/**
|
|
348
349
|
* @since v0.6.0
|
|
349
350
|
*/
|
|
350
351
|
function gzip(buf: InputType, callback: CompressCallback): void;
|
|
351
352
|
function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
352
353
|
namespace gzip {
|
|
353
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
354
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
354
355
|
}
|
|
355
356
|
/**
|
|
356
357
|
* Compress a chunk of data with `Gzip`.
|
|
357
358
|
* @since v0.11.12
|
|
358
359
|
*/
|
|
359
|
-
function gzipSync(buf: InputType, options?: ZlibOptions):
|
|
360
|
+
function gzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
360
361
|
/**
|
|
361
362
|
* @since v0.6.0
|
|
362
363
|
*/
|
|
363
364
|
function gunzip(buf: InputType, callback: CompressCallback): void;
|
|
364
365
|
function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
365
366
|
namespace gunzip {
|
|
366
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
367
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
367
368
|
}
|
|
368
369
|
/**
|
|
369
370
|
* Decompress a chunk of data with `Gunzip`.
|
|
370
371
|
* @since v0.11.12
|
|
371
372
|
*/
|
|
372
|
-
function gunzipSync(buf: InputType, options?: ZlibOptions):
|
|
373
|
+
function gunzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
373
374
|
/**
|
|
374
375
|
* @since v0.6.0
|
|
375
376
|
*/
|
|
376
377
|
function inflate(buf: InputType, callback: CompressCallback): void;
|
|
377
378
|
function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
378
379
|
namespace inflate {
|
|
379
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
380
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
380
381
|
}
|
|
381
382
|
/**
|
|
382
383
|
* Decompress a chunk of data with `Inflate`.
|
|
383
384
|
* @since v0.11.12
|
|
384
385
|
*/
|
|
385
|
-
function inflateSync(buf: InputType, options?: ZlibOptions):
|
|
386
|
+
function inflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
386
387
|
/**
|
|
387
388
|
* @since v0.6.0
|
|
388
389
|
*/
|
|
389
390
|
function inflateRaw(buf: InputType, callback: CompressCallback): void;
|
|
390
391
|
function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
391
392
|
namespace inflateRaw {
|
|
392
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
393
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
393
394
|
}
|
|
394
395
|
/**
|
|
395
396
|
* Decompress a chunk of data with `InflateRaw`.
|
|
396
397
|
* @since v0.11.12
|
|
397
398
|
*/
|
|
398
|
-
function inflateRawSync(buf: InputType, options?: ZlibOptions):
|
|
399
|
+
function inflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
399
400
|
/**
|
|
400
401
|
* @since v0.6.0
|
|
401
402
|
*/
|
|
402
403
|
function unzip(buf: InputType, callback: CompressCallback): void;
|
|
403
404
|
function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
|
|
404
405
|
namespace unzip {
|
|
405
|
-
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<
|
|
406
|
+
function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
|
|
406
407
|
}
|
|
407
408
|
/**
|
|
408
409
|
* Decompress a chunk of data with `Unzip`.
|
|
409
410
|
* @since v0.11.12
|
|
410
411
|
*/
|
|
411
|
-
function unzipSync(buf: InputType, options?: ZlibOptions):
|
|
412
|
+
function unzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
|
|
412
413
|
/**
|
|
413
414
|
* @since v22.15.0
|
|
414
415
|
* @experimental
|
|
@@ -416,14 +417,14 @@ declare module "zlib" {
|
|
|
416
417
|
function zstdCompress(buf: InputType, callback: CompressCallback): void;
|
|
417
418
|
function zstdCompress(buf: InputType, options: ZstdOptions, callback: CompressCallback): void;
|
|
418
419
|
namespace zstdCompress {
|
|
419
|
-
function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<
|
|
420
|
+
function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<NonSharedBuffer>;
|
|
420
421
|
}
|
|
421
422
|
/**
|
|
422
423
|
* Compress a chunk of data with `ZstdCompress`.
|
|
423
424
|
* @since v22.15.0
|
|
424
425
|
* @experimental
|
|
425
426
|
*/
|
|
426
|
-
function zstdCompressSync(buf: InputType, options?: ZstdOptions):
|
|
427
|
+
function zstdCompressSync(buf: InputType, options?: ZstdOptions): NonSharedBuffer;
|
|
427
428
|
/**
|
|
428
429
|
* @since v22.15.0
|
|
429
430
|
* @experimental
|
|
@@ -431,14 +432,14 @@ declare module "zlib" {
|
|
|
431
432
|
function zstdDecompress(buf: InputType, callback: CompressCallback): void;
|
|
432
433
|
function zstdDecompress(buf: InputType, options: ZstdOptions, callback: CompressCallback): void;
|
|
433
434
|
namespace zstdDecompress {
|
|
434
|
-
function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<
|
|
435
|
+
function __promisify__(buffer: InputType, options?: ZstdOptions): Promise<NonSharedBuffer>;
|
|
435
436
|
}
|
|
436
437
|
/**
|
|
437
438
|
* Decompress a chunk of data with `ZstdDecompress`.
|
|
438
439
|
* @since v22.15.0
|
|
439
440
|
* @experimental
|
|
440
441
|
*/
|
|
441
|
-
function zstdDecompressSync(buf: InputType, options?: ZstdOptions):
|
|
442
|
+
function zstdDecompressSync(buf: InputType, options?: ZstdOptions): NonSharedBuffer;
|
|
442
443
|
namespace constants {
|
|
443
444
|
const BROTLI_DECODE: number;
|
|
444
445
|
const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
|
|
@@ -24,6 +24,7 @@ declare namespace Agent {
|
|
|
24
24
|
factory?(origin: string | URL, opts: Object): Dispatcher;
|
|
25
25
|
|
|
26
26
|
interceptors?: { Agent?: readonly Dispatcher.DispatchInterceptor[] } & Pool.Options['interceptors']
|
|
27
|
+
maxOrigins?: number
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export interface DispatchOptions extends Dispatcher.DispatchOptions {
|
|
@@ -49,21 +49,6 @@ declare namespace Errors {
|
|
|
49
49
|
headers: IncomingHttpHeaders | string[] | null
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export class ResponseStatusCodeError extends UndiciError {
|
|
53
|
-
constructor (
|
|
54
|
-
message?: string,
|
|
55
|
-
statusCode?: number,
|
|
56
|
-
headers?: IncomingHttpHeaders | string[] | null,
|
|
57
|
-
body?: null | Record<string, any> | string
|
|
58
|
-
)
|
|
59
|
-
name: 'ResponseStatusCodeError'
|
|
60
|
-
code: 'UND_ERR_RESPONSE_STATUS_CODE'
|
|
61
|
-
body: null | Record<string, any> | string
|
|
62
|
-
status: number
|
|
63
|
-
statusCode: number
|
|
64
|
-
headers: IncomingHttpHeaders | string[] | null
|
|
65
|
-
}
|
|
66
|
-
|
|
67
52
|
/** Passed an invalid argument. */
|
|
68
53
|
export class InvalidArgumentError extends UndiciError {
|
|
69
54
|
name: 'InvalidArgumentError'
|
|
@@ -168,4 +153,9 @@ declare namespace Errors {
|
|
|
168
153
|
name: 'SecureProxyConnectionError'
|
|
169
154
|
code: 'UND_ERR_PRX_TLS'
|
|
170
155
|
}
|
|
156
|
+
|
|
157
|
+
class MaxOriginsReachedError extends UndiciError {
|
|
158
|
+
name: 'MaxOriginsReachedError'
|
|
159
|
+
code: 'UND_ERR_MAX_ORIGINS_REACHED'
|
|
160
|
+
}
|
|
171
161
|
}
|
|
@@ -9,6 +9,10 @@ declare namespace Interceptors {
|
|
|
9
9
|
export type DumpInterceptorOpts = { maxSize?: number }
|
|
10
10
|
export type RetryInterceptorOpts = RetryHandler.RetryOptions
|
|
11
11
|
export type RedirectInterceptorOpts = { maxRedirections?: number }
|
|
12
|
+
export type DecompressInterceptorOpts = {
|
|
13
|
+
skipErrorResponses?: boolean
|
|
14
|
+
skipStatusCodes?: number[]
|
|
15
|
+
}
|
|
12
16
|
|
|
13
17
|
export type ResponseErrorInterceptorOpts = { throwOnError: boolean }
|
|
14
18
|
export type CacheInterceptorOpts = CacheHandler.CacheOptions
|
|
@@ -28,6 +32,7 @@ declare namespace Interceptors {
|
|
|
28
32
|
export function dump (opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
29
33
|
export function retry (opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
30
34
|
export function redirect (opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
35
|
+
export function decompress (opts?: DecompressInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
31
36
|
export function responseError (opts?: ResponseErrorInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
32
37
|
export function dns (opts?: DNSInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
33
38
|
export function cache (opts?: CacheInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
@@ -18,9 +18,11 @@ declare class SnapshotRecorder {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
declare namespace SnapshotRecorder {
|
|
21
|
+
type SnapshotRecorderMode = 'record' | 'playback' | 'update'
|
|
22
|
+
|
|
21
23
|
export interface Options {
|
|
22
24
|
snapshotPath?: string
|
|
23
|
-
mode?:
|
|
25
|
+
mode?: SnapshotRecorderMode
|
|
24
26
|
maxSnapshots?: number
|
|
25
27
|
autoFlush?: boolean
|
|
26
28
|
flushInterval?: number
|
|
@@ -77,7 +79,7 @@ declare class SnapshotAgent extends MockAgent {
|
|
|
77
79
|
saveSnapshots (filePath?: string): Promise<void>
|
|
78
80
|
loadSnapshots (filePath?: string): Promise<void>
|
|
79
81
|
getRecorder (): SnapshotRecorder
|
|
80
|
-
getMode ():
|
|
82
|
+
getMode (): SnapshotRecorder.SnapshotRecorderMode
|
|
81
83
|
clearSnapshots (): void
|
|
82
84
|
resetCallCounts (): void
|
|
83
85
|
deleteSnapshot (requestOpts: any): boolean
|
|
@@ -87,7 +89,7 @@ declare class SnapshotAgent extends MockAgent {
|
|
|
87
89
|
|
|
88
90
|
declare namespace SnapshotAgent {
|
|
89
91
|
export interface Options extends MockAgent.Options {
|
|
90
|
-
mode?:
|
|
92
|
+
mode?: SnapshotRecorder.SnapshotRecorderMode
|
|
91
93
|
snapshotPath?: string
|
|
92
94
|
maxSnapshots?: number
|
|
93
95
|
autoFlush?: boolean
|