cloudstructs 0.9.42 → 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
|
@@ -43,10 +43,9 @@
|
|
|
43
43
|
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/sqlite.js)
|
|
44
44
|
*/
|
|
45
45
|
declare module "node:sqlite" {
|
|
46
|
+
import { PathLike } from "node:fs";
|
|
46
47
|
type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView;
|
|
47
|
-
type SQLOutputValue = null | number | bigint | string |
|
|
48
|
-
/** @deprecated Use `SQLInputValue` or `SQLOutputValue` instead. */
|
|
49
|
-
type SupportedValueType = SQLOutputValue;
|
|
48
|
+
type SQLOutputValue = null | number | bigint | string | NodeJS.NonSharedUint8Array;
|
|
50
49
|
interface DatabaseSyncOptions {
|
|
51
50
|
/**
|
|
52
51
|
* If `true`, the database is opened by the constructor. When
|
|
@@ -240,7 +239,7 @@ declare module "node:sqlite" {
|
|
|
240
239
|
* To use an in-memory database, the path should be the special name `':memory:'`.
|
|
241
240
|
* @param options Configuration options for the database connection.
|
|
242
241
|
*/
|
|
243
|
-
constructor(path:
|
|
242
|
+
constructor(path: PathLike, options?: DatabaseSyncOptions);
|
|
244
243
|
/**
|
|
245
244
|
* Registers a new aggregate function with the SQLite database. This method is a wrapper around
|
|
246
245
|
* [`sqlite3_create_window_function()`](https://www.sqlite.org/c3ref/create_function.html).
|
|
@@ -330,6 +329,64 @@ declare module "node:sqlite" {
|
|
|
330
329
|
func: (...args: SQLOutputValue[]) => SQLInputValue,
|
|
331
330
|
): void;
|
|
332
331
|
function(name: string, func: (...args: SQLOutputValue[]) => SQLInputValue): void;
|
|
332
|
+
/**
|
|
333
|
+
* Sets an authorizer callback that SQLite will invoke whenever it attempts to
|
|
334
|
+
* access data or modify the database schema through prepared statements.
|
|
335
|
+
* This can be used to implement security policies, audit access, or restrict certain operations.
|
|
336
|
+
* This method is a wrapper around [`sqlite3_set_authorizer()`](https://sqlite.org/c3ref/set_authorizer.html).
|
|
337
|
+
*
|
|
338
|
+
* When invoked, the callback receives five arguments:
|
|
339
|
+
*
|
|
340
|
+
* * `actionCode` {number} The type of operation being performed (e.g.,
|
|
341
|
+
* `SQLITE_INSERT`, `SQLITE_UPDATE`, `SQLITE_SELECT`).
|
|
342
|
+
* * `arg1` {string|null} The first argument (context-dependent, often a table name).
|
|
343
|
+
* * `arg2` {string|null} The second argument (context-dependent, often a column name).
|
|
344
|
+
* * `dbName` {string|null} The name of the database.
|
|
345
|
+
* * `triggerOrView` {string|null} The name of the trigger or view causing the access.
|
|
346
|
+
*
|
|
347
|
+
* The callback must return one of the following constants:
|
|
348
|
+
*
|
|
349
|
+
* * `SQLITE_OK` - Allow the operation.
|
|
350
|
+
* * `SQLITE_DENY` - Deny the operation (causes an error).
|
|
351
|
+
* * `SQLITE_IGNORE` - Ignore the operation (silently skip).
|
|
352
|
+
*
|
|
353
|
+
* ```js
|
|
354
|
+
* import { DatabaseSync, constants } from 'node:sqlite';
|
|
355
|
+
* const db = new DatabaseSync(':memory:');
|
|
356
|
+
*
|
|
357
|
+
* // Set up an authorizer that denies all table creation
|
|
358
|
+
* db.setAuthorizer((actionCode) => {
|
|
359
|
+
* if (actionCode === constants.SQLITE_CREATE_TABLE) {
|
|
360
|
+
* return constants.SQLITE_DENY;
|
|
361
|
+
* }
|
|
362
|
+
* return constants.SQLITE_OK;
|
|
363
|
+
* });
|
|
364
|
+
*
|
|
365
|
+
* // This will work
|
|
366
|
+
* db.prepare('SELECT 1').get();
|
|
367
|
+
*
|
|
368
|
+
* // This will throw an error due to authorization denial
|
|
369
|
+
* try {
|
|
370
|
+
* db.exec('CREATE TABLE blocked (id INTEGER)');
|
|
371
|
+
* } catch (err) {
|
|
372
|
+
* console.log('Operation blocked:', err.message);
|
|
373
|
+
* }
|
|
374
|
+
* ```
|
|
375
|
+
* @since v24.10.0
|
|
376
|
+
* @param callback The authorizer function to set, or `null` to
|
|
377
|
+
* clear the current authorizer.
|
|
378
|
+
*/
|
|
379
|
+
setAuthorizer(
|
|
380
|
+
callback:
|
|
381
|
+
| ((
|
|
382
|
+
actionCode: number,
|
|
383
|
+
arg1: string | null,
|
|
384
|
+
arg2: string | null,
|
|
385
|
+
dbName: string | null,
|
|
386
|
+
triggerOrView: string | null,
|
|
387
|
+
) => number)
|
|
388
|
+
| null,
|
|
389
|
+
): void;
|
|
333
390
|
/**
|
|
334
391
|
* Whether the database is currently open or not.
|
|
335
392
|
* @since v22.15.0
|
|
@@ -355,6 +412,47 @@ declare module "node:sqlite" {
|
|
|
355
412
|
* @return The prepared statement.
|
|
356
413
|
*/
|
|
357
414
|
prepare(sql: string): StatementSync;
|
|
415
|
+
/**
|
|
416
|
+
* Creates a new `SQLTagStore`, which is an LRU (Least Recently Used) cache for
|
|
417
|
+
* storing prepared statements. This allows for the efficient reuse of prepared
|
|
418
|
+
* statements by tagging them with a unique identifier.
|
|
419
|
+
*
|
|
420
|
+
* When a tagged SQL literal is executed, the `SQLTagStore` checks if a prepared
|
|
421
|
+
* statement for that specific SQL string already exists in the cache. If it does,
|
|
422
|
+
* the cached statement is used. If not, a new prepared statement is created,
|
|
423
|
+
* executed, and then stored in the cache for future use. This mechanism helps to
|
|
424
|
+
* avoid the overhead of repeatedly parsing and preparing the same SQL statements.
|
|
425
|
+
*
|
|
426
|
+
* ```js
|
|
427
|
+
* import { DatabaseSync } from 'node:sqlite';
|
|
428
|
+
*
|
|
429
|
+
* const db = new DatabaseSync(':memory:');
|
|
430
|
+
* const sql = db.createSQLTagStore();
|
|
431
|
+
*
|
|
432
|
+
* db.exec('CREATE TABLE users (id INT, name TEXT)');
|
|
433
|
+
*
|
|
434
|
+
* // Using the 'run' method to insert data.
|
|
435
|
+
* // The tagged literal is used to identify the prepared statement.
|
|
436
|
+
* sql.run`INSERT INTO users VALUES (1, 'Alice')`;
|
|
437
|
+
* sql.run`INSERT INTO users VALUES (2, 'Bob')`;
|
|
438
|
+
*
|
|
439
|
+
* // Using the 'get' method to retrieve a single row.
|
|
440
|
+
* const id = 1;
|
|
441
|
+
* const user = sql.get`SELECT * FROM users WHERE id = ${id}`;
|
|
442
|
+
* console.log(user); // { id: 1, name: 'Alice' }
|
|
443
|
+
*
|
|
444
|
+
* // Using the 'all' method to retrieve all rows.
|
|
445
|
+
* const allUsers = sql.all`SELECT * FROM users ORDER BY id`;
|
|
446
|
+
* console.log(allUsers);
|
|
447
|
+
* // [
|
|
448
|
+
* // { id: 1, name: 'Alice' },
|
|
449
|
+
* // { id: 2, name: 'Bob' }
|
|
450
|
+
* // ]
|
|
451
|
+
* ```
|
|
452
|
+
* @since v24.9.0
|
|
453
|
+
* @returns A new SQL tag store for caching prepared statements.
|
|
454
|
+
*/
|
|
455
|
+
createTagStore(maxSize?: number): SQLTagStore;
|
|
358
456
|
/**
|
|
359
457
|
* Creates and attaches a session to the database. This method is a wrapper around
|
|
360
458
|
* [`sqlite3session_create()`](https://www.sqlite.org/session/sqlite3session_create.html) and
|
|
@@ -410,7 +508,7 @@ declare module "node:sqlite" {
|
|
|
410
508
|
* @returns Binary changeset that can be applied to other databases.
|
|
411
509
|
* @since v22.12.0
|
|
412
510
|
*/
|
|
413
|
-
changeset():
|
|
511
|
+
changeset(): NodeJS.NonSharedUint8Array;
|
|
414
512
|
/**
|
|
415
513
|
* Similar to the method above, but generates a more compact patchset. See
|
|
416
514
|
* [Changesets and Patchsets](https://www.sqlite.org/sessionintro.html#changesets_and_patchsets)
|
|
@@ -420,7 +518,7 @@ declare module "node:sqlite" {
|
|
|
420
518
|
* @returns Binary patchset that can be applied to other databases.
|
|
421
519
|
* @since v22.12.0
|
|
422
520
|
*/
|
|
423
|
-
patchset():
|
|
521
|
+
patchset(): NodeJS.NonSharedUint8Array;
|
|
424
522
|
/**
|
|
425
523
|
* Closes the session. An exception is thrown if the database or the session is not open. This method is a
|
|
426
524
|
* wrapper around
|
|
@@ -428,6 +526,73 @@ declare module "node:sqlite" {
|
|
|
428
526
|
*/
|
|
429
527
|
close(): void;
|
|
430
528
|
}
|
|
529
|
+
/**
|
|
530
|
+
* This class represents a single LRU (Least Recently Used) cache for storing
|
|
531
|
+
* prepared statements.
|
|
532
|
+
*
|
|
533
|
+
* Instances of this class are created via the database.createSQLTagStore() method,
|
|
534
|
+
* not by using a constructor. The store caches prepared statements based on the
|
|
535
|
+
* provided SQL query string. When the same query is seen again, the store
|
|
536
|
+
* retrieves the cached statement and safely applies the new values through
|
|
537
|
+
* parameter binding, thereby preventing attacks like SQL injection.
|
|
538
|
+
*
|
|
539
|
+
* The cache has a maxSize that defaults to 1000 statements, but a custom size can
|
|
540
|
+
* be provided (e.g., database.createSQLTagStore(100)). All APIs exposed by this
|
|
541
|
+
* class execute synchronously.
|
|
542
|
+
* @since v24.9.0
|
|
543
|
+
*/
|
|
544
|
+
interface SQLTagStore {
|
|
545
|
+
/**
|
|
546
|
+
* Executes the given SQL query and returns all resulting rows as an array of objects.
|
|
547
|
+
* @since v24.9.0
|
|
548
|
+
*/
|
|
549
|
+
all(
|
|
550
|
+
stringElements: TemplateStringsArray,
|
|
551
|
+
...boundParameters: SQLInputValue[]
|
|
552
|
+
): Record<string, SQLOutputValue>[];
|
|
553
|
+
/**
|
|
554
|
+
* Executes the given SQL query and returns the first resulting row as an object.
|
|
555
|
+
* @since v24.9.0
|
|
556
|
+
*/
|
|
557
|
+
get(
|
|
558
|
+
stringElements: TemplateStringsArray,
|
|
559
|
+
...boundParameters: SQLInputValue[]
|
|
560
|
+
): Record<string, SQLOutputValue> | undefined;
|
|
561
|
+
/**
|
|
562
|
+
* Executes the given SQL query and returns an iterator over the resulting rows.
|
|
563
|
+
* @since v24.9.0
|
|
564
|
+
*/
|
|
565
|
+
iterate(
|
|
566
|
+
stringElements: TemplateStringsArray,
|
|
567
|
+
...boundParameters: SQLInputValue[]
|
|
568
|
+
): NodeJS.Iterator<Record<string, SQLOutputValue>>;
|
|
569
|
+
/**
|
|
570
|
+
* Executes the given SQL query, which is expected to not return any rows (e.g., INSERT, UPDATE, DELETE).
|
|
571
|
+
* @since v24.9.0
|
|
572
|
+
*/
|
|
573
|
+
run(stringElements: TemplateStringsArray, ...boundParameters: SQLInputValue[]): StatementResultingChanges;
|
|
574
|
+
/**
|
|
575
|
+
* A read-only property that returns the number of prepared statements currently in the cache.
|
|
576
|
+
* @since v24.9.0
|
|
577
|
+
* @returns The maximum number of prepared statements the cache can hold.
|
|
578
|
+
*/
|
|
579
|
+
size(): number;
|
|
580
|
+
/**
|
|
581
|
+
* A read-only property that returns the maximum number of prepared statements the cache can hold.
|
|
582
|
+
* @since v24.9.0
|
|
583
|
+
*/
|
|
584
|
+
readonly capacity: number;
|
|
585
|
+
/**
|
|
586
|
+
* A read-only property that returns the `DatabaseSync` object associated with this `SQLTagStore`.
|
|
587
|
+
* @since v24.9.0
|
|
588
|
+
*/
|
|
589
|
+
readonly db: DatabaseSync;
|
|
590
|
+
/**
|
|
591
|
+
* Resets the LRU cache, clearing all stored prepared statements.
|
|
592
|
+
* @since v24.9.0
|
|
593
|
+
*/
|
|
594
|
+
clear(): void;
|
|
595
|
+
}
|
|
431
596
|
interface StatementColumnMetadata {
|
|
432
597
|
/**
|
|
433
598
|
* The unaliased name of the column in the origin
|
|
@@ -679,7 +844,7 @@ declare module "node:sqlite" {
|
|
|
679
844
|
* @returns A promise that fulfills with the total number of backed-up pages upon completion, or rejects if an
|
|
680
845
|
* error occurs.
|
|
681
846
|
*/
|
|
682
|
-
function backup(sourceDb: DatabaseSync, path:
|
|
847
|
+
function backup(sourceDb: DatabaseSync, path: PathLike, options?: BackupOptions): Promise<number>;
|
|
683
848
|
/**
|
|
684
849
|
* @since v22.13.0
|
|
685
850
|
*/
|
|
@@ -719,5 +884,54 @@ declare module "node:sqlite" {
|
|
|
719
884
|
* @since v22.12.0
|
|
720
885
|
*/
|
|
721
886
|
const SQLITE_CHANGESET_ABORT: number;
|
|
887
|
+
/**
|
|
888
|
+
* Deny the operation and cause an error to be returned.
|
|
889
|
+
* @since v24.10.0
|
|
890
|
+
*/
|
|
891
|
+
const SQLITE_DENY: number;
|
|
892
|
+
/**
|
|
893
|
+
* Ignore the operation and continue as if it had never been requested.
|
|
894
|
+
* @since 24.10.0
|
|
895
|
+
*/
|
|
896
|
+
const SQLITE_IGNORE: number;
|
|
897
|
+
/**
|
|
898
|
+
* Allow the operation to proceed normally.
|
|
899
|
+
* @since v24.10.0
|
|
900
|
+
*/
|
|
901
|
+
const SQLITE_OK: number;
|
|
902
|
+
const SQLITE_CREATE_INDEX: number;
|
|
903
|
+
const SQLITE_CREATE_TABLE: number;
|
|
904
|
+
const SQLITE_CREATE_TEMP_INDEX: number;
|
|
905
|
+
const SQLITE_CREATE_TEMP_TABLE: number;
|
|
906
|
+
const SQLITE_CREATE_TEMP_TRIGGER: number;
|
|
907
|
+
const SQLITE_CREATE_TEMP_VIEW: number;
|
|
908
|
+
const SQLITE_CREATE_TRIGGER: number;
|
|
909
|
+
const SQLITE_CREATE_VIEW: number;
|
|
910
|
+
const SQLITE_DELETE: number;
|
|
911
|
+
const SQLITE_DROP_INDEX: number;
|
|
912
|
+
const SQLITE_DROP_TABLE: number;
|
|
913
|
+
const SQLITE_DROP_TEMP_INDEX: number;
|
|
914
|
+
const SQLITE_DROP_TEMP_TABLE: number;
|
|
915
|
+
const SQLITE_DROP_TEMP_TRIGGER: number;
|
|
916
|
+
const SQLITE_DROP_TEMP_VIEW: number;
|
|
917
|
+
const SQLITE_DROP_TRIGGER: number;
|
|
918
|
+
const SQLITE_DROP_VIEW: number;
|
|
919
|
+
const SQLITE_INSERT: number;
|
|
920
|
+
const SQLITE_PRAGMA: number;
|
|
921
|
+
const SQLITE_READ: number;
|
|
922
|
+
const SQLITE_SELECT: number;
|
|
923
|
+
const SQLITE_TRANSACTION: number;
|
|
924
|
+
const SQLITE_UPDATE: number;
|
|
925
|
+
const SQLITE_ATTACH: number;
|
|
926
|
+
const SQLITE_DETACH: number;
|
|
927
|
+
const SQLITE_ALTER_TABLE: number;
|
|
928
|
+
const SQLITE_REINDEX: number;
|
|
929
|
+
const SQLITE_ANALYZE: number;
|
|
930
|
+
const SQLITE_CREATE_VTABLE: number;
|
|
931
|
+
const SQLITE_DROP_VTABLE: number;
|
|
932
|
+
const SQLITE_FUNCTION: number;
|
|
933
|
+
const SQLITE_SAVEPOINT: number;
|
|
934
|
+
const SQLITE_COPY: number;
|
|
935
|
+
const SQLITE_RECURSIVE: number;
|
|
722
936
|
}
|
|
723
937
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @since v16.7.0
|
|
5
5
|
*/
|
|
6
6
|
declare module "stream/consumers" {
|
|
7
|
-
import { Blob as NodeBlob } from "node:buffer";
|
|
7
|
+
import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer";
|
|
8
8
|
import { ReadableStream as WebReadableStream } from "node:stream/web";
|
|
9
9
|
/**
|
|
10
10
|
* @since v16.7.0
|
|
@@ -20,7 +20,7 @@ declare module "stream/consumers" {
|
|
|
20
20
|
* @since v16.7.0
|
|
21
21
|
* @returns Fulfills with a `Buffer` containing the full contents of the stream.
|
|
22
22
|
*/
|
|
23
|
-
function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<
|
|
23
|
+
function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable<any>): Promise<NonSharedBuffer>;
|
|
24
24
|
/**
|
|
25
25
|
* @since v16.7.0
|
|
26
26
|
* @returns Fulfills with the contents of the stream parsed as a
|
|
@@ -48,7 +48,7 @@ declare module "string_decoder" {
|
|
|
48
48
|
* @since v0.1.99
|
|
49
49
|
* @param buffer The bytes to decode.
|
|
50
50
|
*/
|
|
51
|
-
write(buffer: string |
|
|
51
|
+
write(buffer: string | NodeJS.ArrayBufferView): string;
|
|
52
52
|
/**
|
|
53
53
|
* Returns any remaining input stored in the internal buffer as a string. Bytes
|
|
54
54
|
* representing incomplete UTF-8 and UTF-16 characters will be replaced with
|
|
@@ -59,7 +59,7 @@ declare module "string_decoder" {
|
|
|
59
59
|
* @since v0.9.3
|
|
60
60
|
* @param buffer The bytes to decode.
|
|
61
61
|
*/
|
|
62
|
-
end(buffer?: string |
|
|
62
|
+
end(buffer?: string | NodeJS.ArrayBufferView): string;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
declare module "node:string_decoder" {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/tls.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module "tls" {
|
|
12
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
12
13
|
import { X509Certificate } from "node:crypto";
|
|
13
14
|
import * as net from "node:net";
|
|
14
15
|
import * as stream from "stream";
|
|
@@ -49,7 +50,7 @@ declare module "tls" {
|
|
|
49
50
|
/**
|
|
50
51
|
* The DER encoded X.509 certificate data.
|
|
51
52
|
*/
|
|
52
|
-
raw:
|
|
53
|
+
raw: NonSharedBuffer;
|
|
53
54
|
/**
|
|
54
55
|
* The certificate subject.
|
|
55
56
|
*/
|
|
@@ -115,7 +116,7 @@ declare module "tls" {
|
|
|
115
116
|
/**
|
|
116
117
|
* The public key.
|
|
117
118
|
*/
|
|
118
|
-
pubkey?:
|
|
119
|
+
pubkey?: NonSharedBuffer;
|
|
119
120
|
/**
|
|
120
121
|
* The ASN.1 name of the OID of the elliptic curve.
|
|
121
122
|
* Well-known curves are identified by an OID.
|
|
@@ -295,7 +296,7 @@ declare module "tls" {
|
|
|
295
296
|
* @since v9.9.0
|
|
296
297
|
* @return The latest `Finished` message that has been sent to the socket as part of a SSL/TLS handshake, or `undefined` if no `Finished` message has been sent yet.
|
|
297
298
|
*/
|
|
298
|
-
getFinished():
|
|
299
|
+
getFinished(): NonSharedBuffer | undefined;
|
|
299
300
|
/**
|
|
300
301
|
* Returns an object representing the peer's certificate. If the peer does not
|
|
301
302
|
* provide a certificate, an empty object will be returned. If the socket has been
|
|
@@ -322,7 +323,7 @@ declare module "tls" {
|
|
|
322
323
|
* @return The latest `Finished` message that is expected or has actually been received from the socket as part of a SSL/TLS handshake, or `undefined` if there is no `Finished` message so
|
|
323
324
|
* far.
|
|
324
325
|
*/
|
|
325
|
-
getPeerFinished():
|
|
326
|
+
getPeerFinished(): NonSharedBuffer | undefined;
|
|
326
327
|
/**
|
|
327
328
|
* Returns a string containing the negotiated SSL/TLS protocol version of the
|
|
328
329
|
* current connection. The value `'unknown'` will be returned for connected
|
|
@@ -352,7 +353,7 @@ declare module "tls" {
|
|
|
352
353
|
* must use the `'session'` event (it also works for TLSv1.2 and below).
|
|
353
354
|
* @since v0.11.4
|
|
354
355
|
*/
|
|
355
|
-
getSession():
|
|
356
|
+
getSession(): NonSharedBuffer | undefined;
|
|
356
357
|
/**
|
|
357
358
|
* See [SSL\_get\_shared\_sigalgs](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html) for more information.
|
|
358
359
|
* @since v12.11.0
|
|
@@ -367,7 +368,7 @@ declare module "tls" {
|
|
|
367
368
|
* See `Session Resumption` for more information.
|
|
368
369
|
* @since v0.11.4
|
|
369
370
|
*/
|
|
370
|
-
getTLSTicket():
|
|
371
|
+
getTLSTicket(): NonSharedBuffer | undefined;
|
|
371
372
|
/**
|
|
372
373
|
* See `Session Resumption` for more information.
|
|
373
374
|
* @since v0.5.6
|
|
@@ -478,37 +479,37 @@ declare module "tls" {
|
|
|
478
479
|
* @param context Optionally provide a context.
|
|
479
480
|
* @return requested bytes of the keying material
|
|
480
481
|
*/
|
|
481
|
-
exportKeyingMaterial(length: number, label: string, context: Buffer):
|
|
482
|
+
exportKeyingMaterial(length: number, label: string, context: Buffer): NonSharedBuffer;
|
|
482
483
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
483
|
-
addListener(event: "OCSPResponse", listener: (response:
|
|
484
|
+
addListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this;
|
|
484
485
|
addListener(event: "secureConnect", listener: () => void): this;
|
|
485
|
-
addListener(event: "session", listener: (session:
|
|
486
|
-
addListener(event: "keylog", listener: (line:
|
|
486
|
+
addListener(event: "session", listener: (session: NonSharedBuffer) => void): this;
|
|
487
|
+
addListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this;
|
|
487
488
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
488
|
-
emit(event: "OCSPResponse", response:
|
|
489
|
+
emit(event: "OCSPResponse", response: NonSharedBuffer): boolean;
|
|
489
490
|
emit(event: "secureConnect"): boolean;
|
|
490
|
-
emit(event: "session", session:
|
|
491
|
-
emit(event: "keylog", line:
|
|
491
|
+
emit(event: "session", session: NonSharedBuffer): boolean;
|
|
492
|
+
emit(event: "keylog", line: NonSharedBuffer): boolean;
|
|
492
493
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
493
|
-
on(event: "OCSPResponse", listener: (response:
|
|
494
|
+
on(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this;
|
|
494
495
|
on(event: "secureConnect", listener: () => void): this;
|
|
495
|
-
on(event: "session", listener: (session:
|
|
496
|
-
on(event: "keylog", listener: (line:
|
|
496
|
+
on(event: "session", listener: (session: NonSharedBuffer) => void): this;
|
|
497
|
+
on(event: "keylog", listener: (line: NonSharedBuffer) => void): this;
|
|
497
498
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
498
|
-
once(event: "OCSPResponse", listener: (response:
|
|
499
|
+
once(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this;
|
|
499
500
|
once(event: "secureConnect", listener: () => void): this;
|
|
500
|
-
once(event: "session", listener: (session:
|
|
501
|
-
once(event: "keylog", listener: (line:
|
|
501
|
+
once(event: "session", listener: (session: NonSharedBuffer) => void): this;
|
|
502
|
+
once(event: "keylog", listener: (line: NonSharedBuffer) => void): this;
|
|
502
503
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
503
|
-
prependListener(event: "OCSPResponse", listener: (response:
|
|
504
|
+
prependListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this;
|
|
504
505
|
prependListener(event: "secureConnect", listener: () => void): this;
|
|
505
|
-
prependListener(event: "session", listener: (session:
|
|
506
|
-
prependListener(event: "keylog", listener: (line:
|
|
506
|
+
prependListener(event: "session", listener: (session: NonSharedBuffer) => void): this;
|
|
507
|
+
prependListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this;
|
|
507
508
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
508
|
-
prependOnceListener(event: "OCSPResponse", listener: (response:
|
|
509
|
+
prependOnceListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this;
|
|
509
510
|
prependOnceListener(event: "secureConnect", listener: () => void): this;
|
|
510
|
-
prependOnceListener(event: "session", listener: (session:
|
|
511
|
-
prependOnceListener(event: "keylog", listener: (line:
|
|
511
|
+
prependOnceListener(event: "session", listener: (session: NonSharedBuffer) => void): this;
|
|
512
|
+
prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this;
|
|
512
513
|
}
|
|
513
514
|
interface CommonConnectionOptions {
|
|
514
515
|
/**
|
|
@@ -531,7 +532,7 @@ declare module "tls" {
|
|
|
531
532
|
* An array of strings or a Buffer naming possible ALPN protocols.
|
|
532
533
|
* (Protocols should be ordered by their priority.)
|
|
533
534
|
*/
|
|
534
|
-
ALPNProtocols?: string[] |
|
|
535
|
+
ALPNProtocols?: readonly string[] | NodeJS.ArrayBufferView | undefined;
|
|
535
536
|
/**
|
|
536
537
|
* SNICallback(servername, cb) <Function> A function that will be
|
|
537
538
|
* called if the client supports SNI TLS extension. Two arguments
|
|
@@ -596,7 +597,7 @@ declare module "tls" {
|
|
|
596
597
|
pskIdentityHint?: string | undefined;
|
|
597
598
|
}
|
|
598
599
|
interface PSKCallbackNegotation {
|
|
599
|
-
psk:
|
|
600
|
+
psk: NodeJS.ArrayBufferView;
|
|
600
601
|
identity: string;
|
|
601
602
|
}
|
|
602
603
|
interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions {
|
|
@@ -655,7 +656,7 @@ declare module "tls" {
|
|
|
655
656
|
* @since v3.0.0
|
|
656
657
|
* @return A 48-byte buffer containing the session ticket keys.
|
|
657
658
|
*/
|
|
658
|
-
getTicketKeys():
|
|
659
|
+
getTicketKeys(): NonSharedBuffer;
|
|
659
660
|
/**
|
|
660
661
|
* The `server.setSecureContext()` method replaces the secure context of an
|
|
661
662
|
* existing server. Existing connections to the server are not interrupted.
|
|
@@ -687,115 +688,138 @@ declare module "tls" {
|
|
|
687
688
|
addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
|
688
689
|
addListener(
|
|
689
690
|
event: "newSession",
|
|
690
|
-
listener: (sessionId:
|
|
691
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
691
692
|
): this;
|
|
692
693
|
addListener(
|
|
693
694
|
event: "OCSPRequest",
|
|
694
695
|
listener: (
|
|
695
|
-
certificate:
|
|
696
|
-
issuer:
|
|
697
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
696
|
+
certificate: NonSharedBuffer,
|
|
697
|
+
issuer: NonSharedBuffer,
|
|
698
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
698
699
|
) => void,
|
|
699
700
|
): this;
|
|
700
701
|
addListener(
|
|
701
702
|
event: "resumeSession",
|
|
702
|
-
listener: (
|
|
703
|
+
listener: (
|
|
704
|
+
sessionId: NonSharedBuffer,
|
|
705
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
706
|
+
) => void,
|
|
703
707
|
): this;
|
|
704
708
|
addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
|
705
|
-
addListener(event: "keylog", listener: (line:
|
|
709
|
+
addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
|
|
706
710
|
emit(event: string | symbol, ...args: any[]): boolean;
|
|
707
711
|
emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean;
|
|
708
|
-
emit(
|
|
712
|
+
emit(
|
|
713
|
+
event: "newSession",
|
|
714
|
+
sessionId: NonSharedBuffer,
|
|
715
|
+
sessionData: NonSharedBuffer,
|
|
716
|
+
callback: () => void,
|
|
717
|
+
): boolean;
|
|
709
718
|
emit(
|
|
710
719
|
event: "OCSPRequest",
|
|
711
|
-
certificate:
|
|
712
|
-
issuer:
|
|
713
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
720
|
+
certificate: NonSharedBuffer,
|
|
721
|
+
issuer: NonSharedBuffer,
|
|
722
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
714
723
|
): boolean;
|
|
715
724
|
emit(
|
|
716
725
|
event: "resumeSession",
|
|
717
|
-
sessionId:
|
|
726
|
+
sessionId: NonSharedBuffer,
|
|
718
727
|
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
719
728
|
): boolean;
|
|
720
729
|
emit(event: "secureConnection", tlsSocket: TLSSocket): boolean;
|
|
721
|
-
emit(event: "keylog", line:
|
|
730
|
+
emit(event: "keylog", line: NonSharedBuffer, tlsSocket: TLSSocket): boolean;
|
|
722
731
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
723
732
|
on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
|
724
|
-
on(
|
|
733
|
+
on(
|
|
734
|
+
event: "newSession",
|
|
735
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
736
|
+
): this;
|
|
725
737
|
on(
|
|
726
738
|
event: "OCSPRequest",
|
|
727
739
|
listener: (
|
|
728
|
-
certificate:
|
|
729
|
-
issuer:
|
|
730
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
740
|
+
certificate: NonSharedBuffer,
|
|
741
|
+
issuer: NonSharedBuffer,
|
|
742
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
731
743
|
) => void,
|
|
732
744
|
): this;
|
|
733
745
|
on(
|
|
734
746
|
event: "resumeSession",
|
|
735
|
-
listener: (
|
|
747
|
+
listener: (
|
|
748
|
+
sessionId: NonSharedBuffer,
|
|
749
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
750
|
+
) => void,
|
|
736
751
|
): this;
|
|
737
752
|
on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
|
738
|
-
on(event: "keylog", listener: (line:
|
|
753
|
+
on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
|
|
739
754
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
740
755
|
once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
|
741
756
|
once(
|
|
742
757
|
event: "newSession",
|
|
743
|
-
listener: (sessionId:
|
|
758
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
744
759
|
): this;
|
|
745
760
|
once(
|
|
746
761
|
event: "OCSPRequest",
|
|
747
762
|
listener: (
|
|
748
|
-
certificate:
|
|
749
|
-
issuer:
|
|
750
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
763
|
+
certificate: NonSharedBuffer,
|
|
764
|
+
issuer: NonSharedBuffer,
|
|
765
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
751
766
|
) => void,
|
|
752
767
|
): this;
|
|
753
768
|
once(
|
|
754
769
|
event: "resumeSession",
|
|
755
|
-
listener: (
|
|
770
|
+
listener: (
|
|
771
|
+
sessionId: NonSharedBuffer,
|
|
772
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
773
|
+
) => void,
|
|
756
774
|
): this;
|
|
757
775
|
once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
|
758
|
-
once(event: "keylog", listener: (line:
|
|
776
|
+
once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
|
|
759
777
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
760
778
|
prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
|
761
779
|
prependListener(
|
|
762
780
|
event: "newSession",
|
|
763
|
-
listener: (sessionId:
|
|
781
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
764
782
|
): this;
|
|
765
783
|
prependListener(
|
|
766
784
|
event: "OCSPRequest",
|
|
767
785
|
listener: (
|
|
768
|
-
certificate:
|
|
769
|
-
issuer:
|
|
770
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
786
|
+
certificate: NonSharedBuffer,
|
|
787
|
+
issuer: NonSharedBuffer,
|
|
788
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
771
789
|
) => void,
|
|
772
790
|
): this;
|
|
773
791
|
prependListener(
|
|
774
792
|
event: "resumeSession",
|
|
775
|
-
listener: (
|
|
793
|
+
listener: (
|
|
794
|
+
sessionId: NonSharedBuffer,
|
|
795
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
796
|
+
) => void,
|
|
776
797
|
): this;
|
|
777
798
|
prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
|
778
|
-
prependListener(event: "keylog", listener: (line:
|
|
799
|
+
prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
|
|
779
800
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
780
801
|
prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this;
|
|
781
802
|
prependOnceListener(
|
|
782
803
|
event: "newSession",
|
|
783
|
-
listener: (sessionId:
|
|
804
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
784
805
|
): this;
|
|
785
806
|
prependOnceListener(
|
|
786
807
|
event: "OCSPRequest",
|
|
787
808
|
listener: (
|
|
788
|
-
certificate:
|
|
789
|
-
issuer:
|
|
790
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
809
|
+
certificate: NonSharedBuffer,
|
|
810
|
+
issuer: NonSharedBuffer,
|
|
811
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
791
812
|
) => void,
|
|
792
813
|
): this;
|
|
793
814
|
prependOnceListener(
|
|
794
815
|
event: "resumeSession",
|
|
795
|
-
listener: (
|
|
816
|
+
listener: (
|
|
817
|
+
sessionId: NonSharedBuffer,
|
|
818
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
819
|
+
) => void,
|
|
796
820
|
): this;
|
|
797
821
|
prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this;
|
|
798
|
-
prependOnceListener(event: "keylog", listener: (line:
|
|
822
|
+
prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this;
|
|
799
823
|
}
|
|
800
824
|
type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1";
|
|
801
825
|
interface SecureContextOptions {
|