cloudstructs 0.9.18 → 0.9.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/assets/slack-textract/detect.lambda/index.js +27 -11
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +4 -4
- package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +2 -2
- package/node_modules/@babel/runtime/helpers/superPropGet.js +4 -4
- package/node_modules/@babel/runtime/helpers/superPropSet.js +2 -2
- package/node_modules/@babel/runtime/package.json +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 +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +385 -0
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +14 -381
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +13 -12
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +17 -6
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +34 -63
- package/node_modules/@slack/logger/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +44 -7
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +11 -9
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +94 -3
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +17 -15
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +11 -3
- package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +43 -19
- package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +22 -19
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +36 -17
- package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +103 -8
- package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +14 -11
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +59 -54
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +88 -34
- package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +23 -23
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +8 -8
- package/node_modules/@slack/web-api/dist/WebClient.d.ts +36 -4
- package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.js +23 -10
- package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
- package/node_modules/@slack/web-api/dist/file-upload.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/file-upload.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.d.ts +7 -2
- package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.js +5 -0
- package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/conversations.d.ts +15 -3
- package/node_modules/@slack/web-api/dist/types/request/conversations.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/files.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/request/files.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/users.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/request/users.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/AdminAppsActivitiesListResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/AdminAppsActivitiesListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsListResponse.d.ts +2 -0
- package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/AdminUsersListResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/AdminUsersListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.d.ts +77 -0
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.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 +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +385 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +14 -381
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +13 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +17 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +34 -63
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +44 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +11 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +94 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +17 -15
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +11 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +43 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +22 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +36 -17
- package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +103 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +14 -11
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +59 -54
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +88 -34
- package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +23 -23
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +8 -8
- package/node_modules/@slack/web-api/package.json +1 -1
- 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 +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +385 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +14 -381
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +13 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +17 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +34 -63
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +44 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +11 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +94 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +17 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +11 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +43 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +22 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +36 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +103 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +14 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +59 -54
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +88 -34
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +23 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +8 -8
- 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 +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +385 -0
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +14 -381
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +13 -12
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +17 -6
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +34 -63
- package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +44 -7
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +11 -9
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +94 -3
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +17 -15
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +11 -3
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +43 -19
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +22 -19
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +36 -17
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +103 -8
- package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +14 -11
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +59 -54
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +88 -34
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +23 -23
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +8 -8
- 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 +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +385 -0
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +14 -381
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +34 -29
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +13 -12
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +17 -6
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +34 -63
- package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +44 -7
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +238 -101
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +17 -23
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +11 -9
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +270 -0
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +94 -3
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +17 -15
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +11 -3
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +43 -19
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +22 -19
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +36 -17
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +103 -8
- package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +14 -11
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +59 -54
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +88 -34
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +23 -23
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +8 -8
- package/node_modules/form-data/Readme.md +4 -4
- package/node_modules/form-data/lib/form_data.js +1 -1
- package/node_modules/form-data/package.json +9 -6
- package/node_modules/package-json-from-dist/README.md +21 -6
- package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/package-json-from-dist/dist/commonjs/index.js +11 -1
- package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -1
- package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -1
- package/node_modules/package-json-from-dist/dist/esm/index.js +11 -1
- package/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -1
- package/node_modules/package-json-from-dist/package.json +2 -2
- package/node_modules/parse5/dist/cjs/common/doctype.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/common/doctype.js +2 -4
- package/node_modules/parse5/dist/cjs/common/error-codes.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/common/error-codes.js +1 -2
- package/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/common/foreign-content.js +7 -9
- package/node_modules/parse5/dist/cjs/common/html.d.ts +32 -31
- package/node_modules/parse5/dist/cjs/common/html.js +41 -42
- package/node_modules/parse5/dist/cjs/common/token.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/common/token.js +3 -4
- package/node_modules/parse5/dist/cjs/common/unicode.d.ts +1 -8
- package/node_modules/parse5/dist/cjs/common/unicode.js +7 -14
- package/node_modules/parse5/dist/cjs/index.d.ts +15 -4
- package/node_modules/parse5/dist/cjs/index.js +3 -6
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +1 -2
- package/node_modules/parse5/dist/cjs/parser/index.d.ts +72 -8
- package/node_modules/parse5/dist/cjs/parser/index.js +81 -9
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +2 -2
- package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +95 -87
- package/node_modules/parse5/dist/cjs/serializer/index.d.ts +1 -2
- package/node_modules/parse5/dist/cjs/serializer/index.js +8 -9
- package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +130 -131
- package/node_modules/parse5/dist/cjs/tokenizer/index.js +87 -281
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +3 -4
- package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +8 -7
- package/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +0 -1
- package/node_modules/parse5/dist/cjs/tree-adapters/default.js +9 -10
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +7 -2
- package/node_modules/parse5/dist/cjs/tree-adapters/interface.js +0 -1
- package/node_modules/parse5/dist/common/doctype.d.ts +0 -1
- package/node_modules/parse5/dist/common/doctype.js +0 -1
- package/node_modules/parse5/dist/common/error-codes.d.ts +0 -1
- package/node_modules/parse5/dist/common/error-codes.js +1 -2
- package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -1
- package/node_modules/parse5/dist/common/foreign-content.js +0 -2
- package/node_modules/parse5/dist/common/html.d.ts +32 -31
- package/node_modules/parse5/dist/common/html.js +38 -38
- package/node_modules/parse5/dist/common/token.d.ts +0 -1
- package/node_modules/parse5/dist/common/token.js +1 -2
- package/node_modules/parse5/dist/common/unicode.d.ts +1 -8
- package/node_modules/parse5/dist/common/unicode.js +1 -8
- package/node_modules/parse5/dist/index.d.ts +15 -4
- package/node_modules/parse5/dist/index.js +0 -3
- package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -1
- package/node_modules/parse5/dist/parser/formatting-element-list.js +1 -2
- package/node_modules/parse5/dist/parser/index.d.ts +72 -8
- package/node_modules/parse5/dist/parser/index.js +82 -10
- package/node_modules/parse5/dist/parser/open-element-stack.d.ts +2 -2
- package/node_modules/parse5/dist/parser/open-element-stack.js +96 -88
- package/node_modules/parse5/dist/serializer/index.d.ts +1 -2
- package/node_modules/parse5/dist/serializer/index.js +6 -6
- package/node_modules/parse5/dist/tokenizer/index.d.ts +130 -131
- package/node_modules/parse5/dist/tokenizer/index.js +88 -282
- package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +3 -4
- package/node_modules/parse5/dist/tokenizer/preprocessor.js +8 -7
- package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -1
- package/node_modules/parse5/dist/tree-adapters/default.js +9 -10
- package/node_modules/parse5/dist/tree-adapters/interface.d.ts +7 -2
- package/node_modules/parse5/dist/tree-adapters/interface.js +0 -1
- package/node_modules/parse5/package.json +4 -4
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.d.ts +1 -2
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.js +11 -12
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.d.ts +1 -2
- package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +9 -10
- package/node_modules/parse5-htmlparser2-tree-adapter/package.json +7 -6
- package/package.json +18 -18
- package/node_modules/@slack/logger/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +0 -1
- package/node_modules/form-data/README.md.bak +0 -358
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* code are reflected in the context object.
|
|
18
18
|
*
|
|
19
19
|
* ```js
|
|
20
|
-
*
|
|
20
|
+
* import vm from 'node:vm';
|
|
21
21
|
*
|
|
22
22
|
* const x = 1;
|
|
23
23
|
*
|
|
@@ -203,7 +203,7 @@ declare module "vm" {
|
|
|
203
203
|
* The globals are contained in the `context` object.
|
|
204
204
|
*
|
|
205
205
|
* ```js
|
|
206
|
-
*
|
|
206
|
+
* import vm from 'node:vm';
|
|
207
207
|
*
|
|
208
208
|
* const context = {
|
|
209
209
|
* animal: 'cat',
|
|
@@ -230,9 +230,16 @@ declare module "vm" {
|
|
|
230
230
|
*/
|
|
231
231
|
runInContext(contextifiedObject: Context, options?: RunningScriptOptions): any;
|
|
232
232
|
/**
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
233
|
+
* This method is a shortcut to `script.runInContext(vm.createContext(options), options)`.
|
|
234
|
+
* It does several things at once:
|
|
235
|
+
*
|
|
236
|
+
* 1. Creates a new context.
|
|
237
|
+
* 2. If `contextObject` is an object, contextifies it with the new context.
|
|
238
|
+
* If `contextObject` is undefined, creates a new object and contextifies it.
|
|
239
|
+
* If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
|
|
240
|
+
* 3. Runs the compiled code contained by the `vm.Script` object within the created context. The code
|
|
241
|
+
* does not have access to the scope in which this method is called.
|
|
242
|
+
* 4. Returns the result.
|
|
236
243
|
*
|
|
237
244
|
* The following example compiles code that sets a global variable, then executes
|
|
238
245
|
* the code multiple times in different contexts. The globals are set on and
|
|
@@ -250,12 +257,22 @@ declare module "vm" {
|
|
|
250
257
|
*
|
|
251
258
|
* console.log(contexts);
|
|
252
259
|
* // Prints: [{ globalVar: 'set' }, { globalVar: 'set' }, { globalVar: 'set' }]
|
|
260
|
+
*
|
|
261
|
+
* // This would throw if the context is created from a contextified object.
|
|
262
|
+
* // vm.constants.DONT_CONTEXTIFY allows creating contexts with ordinary
|
|
263
|
+
* // global objects that can be frozen.
|
|
264
|
+
* const freezeScript = new vm.Script('Object.freeze(globalThis); globalThis;');
|
|
265
|
+
* const frozenContext = freezeScript.runInNewContext(vm.constants.DONT_CONTEXTIFY);
|
|
253
266
|
* ```
|
|
254
267
|
* @since v0.3.1
|
|
255
|
-
* @param contextObject
|
|
268
|
+
* @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
|
|
269
|
+
* If `undefined`, an empty contextified object will be created for backwards compatibility.
|
|
256
270
|
* @return the result of the very last statement executed in the script.
|
|
257
271
|
*/
|
|
258
|
-
runInNewContext(
|
|
272
|
+
runInNewContext(
|
|
273
|
+
contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
|
|
274
|
+
options?: RunningScriptInNewContextOptions,
|
|
275
|
+
): any;
|
|
259
276
|
/**
|
|
260
277
|
* Runs the compiled code contained by the `vm.Script` within the context of the
|
|
261
278
|
* current `global` object. Running code does not have access to local scope, but _does_ have access to the current `global` object.
|
|
@@ -264,7 +281,7 @@ declare module "vm" {
|
|
|
264
281
|
* executes that code multiple times:
|
|
265
282
|
*
|
|
266
283
|
* ```js
|
|
267
|
-
*
|
|
284
|
+
* import vm from 'node:vm';
|
|
268
285
|
*
|
|
269
286
|
* global.globalVar = 0;
|
|
270
287
|
*
|
|
@@ -347,13 +364,13 @@ declare module "vm" {
|
|
|
347
364
|
sourceMapURL?: string | undefined;
|
|
348
365
|
}
|
|
349
366
|
/**
|
|
350
|
-
* If given
|
|
367
|
+
* If the given `contextObject` is an object, the `vm.createContext()` method will
|
|
351
368
|
* [prepare that object](https://nodejs.org/docs/latest-v22.x/api/vm.html#what-does-it-mean-to-contextify-an-object)
|
|
352
|
-
* and return a reference to it so that it can be used in
|
|
353
|
-
* [`script.runInContext()`](https://nodejs.org/docs/latest-v22.x/api/vm.html#scriptrunincontextcontextifiedobject-options).
|
|
354
|
-
* scripts, the
|
|
355
|
-
* existing properties but also having the built-in objects and functions any
|
|
356
|
-
*
|
|
369
|
+
* and return a reference to it so that it can be used in calls to {@link runInContext} or
|
|
370
|
+
* [`script.runInContext()`](https://nodejs.org/docs/latest-v22.x/api/vm.html#scriptrunincontextcontextifiedobject-options).
|
|
371
|
+
* Inside such scripts, the global object will be wrapped by the `contextObject`, retaining all of its
|
|
372
|
+
* existing properties but also having the built-in objects and functions any standard
|
|
373
|
+
* [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global
|
|
357
374
|
* variables will remain unchanged.
|
|
358
375
|
*
|
|
359
376
|
* ```js
|
|
@@ -374,7 +391,12 @@ declare module "vm" {
|
|
|
374
391
|
* ```
|
|
375
392
|
*
|
|
376
393
|
* If `contextObject` is omitted (or passed explicitly as `undefined`), a new,
|
|
377
|
-
* empty
|
|
394
|
+
* empty contextified object will be returned.
|
|
395
|
+
*
|
|
396
|
+
* When the global object in the newly created context is contextified, it has some quirks
|
|
397
|
+
* compared to ordinary global objects. For example, it cannot be frozen. To create a context
|
|
398
|
+
* without the contextifying quirks, pass `vm.constants.DONT_CONTEXTIFY` as the `contextObject`
|
|
399
|
+
* argument. See the documentation of `vm.constants.DONT_CONTEXTIFY` for details.
|
|
378
400
|
*
|
|
379
401
|
* The `vm.createContext()` method is primarily useful for creating a single
|
|
380
402
|
* context that can be used to run multiple scripts. For instance, if emulating a
|
|
@@ -385,11 +407,17 @@ declare module "vm" {
|
|
|
385
407
|
* The provided `name` and `origin` of the context are made visible through the
|
|
386
408
|
* Inspector API.
|
|
387
409
|
* @since v0.3.1
|
|
410
|
+
* @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
|
|
411
|
+
* If `undefined`, an empty contextified object will be created for backwards compatibility.
|
|
388
412
|
* @return contextified object.
|
|
389
413
|
*/
|
|
390
|
-
function createContext(
|
|
414
|
+
function createContext(
|
|
415
|
+
contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
|
|
416
|
+
options?: CreateContextOptions,
|
|
417
|
+
): Context;
|
|
391
418
|
/**
|
|
392
|
-
* Returns `true` if the given `object` object has been
|
|
419
|
+
* Returns `true` if the given `object` object has been contextified using {@link createContext},
|
|
420
|
+
* or if it's the global object of a context created using `vm.constants.DONT_CONTEXTIFY`.
|
|
393
421
|
* @since v0.11.7
|
|
394
422
|
*/
|
|
395
423
|
function isContext(sandbox: Context): boolean;
|
|
@@ -404,7 +432,7 @@ declare module "vm" {
|
|
|
404
432
|
* The following example compiles and executes different scripts using a single `contextified` object:
|
|
405
433
|
*
|
|
406
434
|
* ```js
|
|
407
|
-
*
|
|
435
|
+
* import vm from 'node:vm';
|
|
408
436
|
*
|
|
409
437
|
* const contextObject = { globalVar: 1 };
|
|
410
438
|
* vm.createContext(contextObject);
|
|
@@ -422,13 +450,21 @@ declare module "vm" {
|
|
|
422
450
|
*/
|
|
423
451
|
function runInContext(code: string, contextifiedObject: Context, options?: RunningCodeOptions | string): any;
|
|
424
452
|
/**
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
* runs it within the created context, then returns the result. Running code
|
|
428
|
-
* does not have access to the local scope.
|
|
429
|
-
*
|
|
453
|
+
* This method is a shortcut to
|
|
454
|
+
* `(new vm.Script(code, options)).runInContext(vm.createContext(options), options)`.
|
|
430
455
|
* If `options` is a string, then it specifies the filename.
|
|
431
456
|
*
|
|
457
|
+
* It does several things at once:
|
|
458
|
+
*
|
|
459
|
+
* 1. Creates a new context.
|
|
460
|
+
* 2. If `contextObject` is an object, contextifies it with the new context.
|
|
461
|
+
* If `contextObject` is undefined, creates a new object and contextifies it.
|
|
462
|
+
* If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
|
|
463
|
+
* 3. Compiles the code as a`vm.Script`
|
|
464
|
+
* 4. Runs the compield code within the created context. The code does not have access to the scope in
|
|
465
|
+
* which this method is called.
|
|
466
|
+
* 5. Returns the result.
|
|
467
|
+
*
|
|
432
468
|
* The following example compiles and executes code that increments a global
|
|
433
469
|
* variable and sets a new one. These globals are contained in the `contextObject`.
|
|
434
470
|
*
|
|
@@ -443,15 +479,21 @@ declare module "vm" {
|
|
|
443
479
|
* vm.runInNewContext('count += 1; name = "kitty"', contextObject);
|
|
444
480
|
* console.log(contextObject);
|
|
445
481
|
* // Prints: { animal: 'cat', count: 3, name: 'kitty' }
|
|
482
|
+
*
|
|
483
|
+
* // This would throw if the context is created from a contextified object.
|
|
484
|
+
* // vm.constants.DONT_CONTEXTIFY allows creating contexts with ordinary global objects that
|
|
485
|
+
* // can be frozen.
|
|
486
|
+
* const frozenContext = vm.runInNewContext('Object.freeze(globalThis); globalThis;', vm.constants.DONT_CONTEXTIFY);
|
|
446
487
|
* ```
|
|
447
488
|
* @since v0.3.1
|
|
448
489
|
* @param code The JavaScript code to compile and run.
|
|
449
|
-
* @param contextObject
|
|
490
|
+
* @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
|
|
491
|
+
* If `undefined`, an empty contextified object will be created for backwards compatibility.
|
|
450
492
|
* @return the result of the very last statement executed in the script.
|
|
451
493
|
*/
|
|
452
494
|
function runInNewContext(
|
|
453
495
|
code: string,
|
|
454
|
-
contextObject?: Context,
|
|
496
|
+
contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
|
|
455
497
|
options?: RunningCodeInNewContextOptions | string,
|
|
456
498
|
): any;
|
|
457
499
|
/**
|
|
@@ -465,7 +507,7 @@ declare module "vm" {
|
|
|
465
507
|
* the JavaScript [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) function to run the same code:
|
|
466
508
|
*
|
|
467
509
|
* ```js
|
|
468
|
-
*
|
|
510
|
+
* import vm from 'node:vm';
|
|
469
511
|
* let localVar = 'initial value';
|
|
470
512
|
*
|
|
471
513
|
* const vmResult = vm.runInThisContext('localVar = "vm";');
|
|
@@ -487,16 +529,16 @@ declare module "vm" {
|
|
|
487
529
|
* context. The code passed to this VM context will have its own isolated scope.
|
|
488
530
|
*
|
|
489
531
|
* In order to run a simple web server using the `node:http` module the code passed
|
|
490
|
-
* to the context must either
|
|
532
|
+
* to the context must either import `node:http` on its own, or have a
|
|
491
533
|
* reference to the `node:http` module passed to it. For instance:
|
|
492
534
|
*
|
|
493
535
|
* ```js
|
|
494
536
|
* 'use strict';
|
|
495
|
-
*
|
|
537
|
+
* import vm from 'node:vm';
|
|
496
538
|
*
|
|
497
539
|
* const code = `
|
|
498
540
|
* ((require) => {
|
|
499
|
-
*
|
|
541
|
+
* const http = require('node:http');
|
|
500
542
|
*
|
|
501
543
|
* http.createServer((request, response) => {
|
|
502
544
|
* response.writeHead(200, { 'Content-Type': 'text/plain' });
|
|
@@ -547,7 +589,7 @@ declare module "vm" {
|
|
|
547
589
|
* the memory occupied by each heap space in the current V8 instance.
|
|
548
590
|
*
|
|
549
591
|
* ```js
|
|
550
|
-
*
|
|
592
|
+
* import vm from 'node:vm';
|
|
551
593
|
* // Measure the memory used by the main context.
|
|
552
594
|
* vm.measureMemory({ mode: 'summary' })
|
|
553
595
|
* // This is the same as vm.measureMemory()
|
|
@@ -853,7 +895,7 @@ declare module "vm" {
|
|
|
853
895
|
* module graphs.
|
|
854
896
|
*
|
|
855
897
|
* ```js
|
|
856
|
-
*
|
|
898
|
+
* import vm from 'node:vm';
|
|
857
899
|
*
|
|
858
900
|
* const source = '{ "a": 1 }';
|
|
859
901
|
* const module = new vm.SyntheticModule(['default'], function() {
|
|
@@ -902,19 +944,31 @@ declare module "vm" {
|
|
|
902
944
|
}
|
|
903
945
|
/**
|
|
904
946
|
* Returns an object containing commonly used constants for VM operations.
|
|
905
|
-
* @since v20.12.0
|
|
947
|
+
* @since v21.7.0, v20.12.0
|
|
906
948
|
*/
|
|
907
949
|
namespace constants {
|
|
908
950
|
/**
|
|
909
|
-
* Stability: 1.1 - Active development
|
|
910
|
-
*
|
|
911
951
|
* A constant that can be used as the `importModuleDynamically` option to `vm.Script`
|
|
912
952
|
* and `vm.compileFunction()` so that Node.js uses the default ESM loader from the main
|
|
913
953
|
* context to load the requested module.
|
|
914
954
|
*
|
|
915
955
|
* For detailed information, see [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
|
|
956
|
+
* @since v21.7.0, v20.12.0
|
|
916
957
|
*/
|
|
917
958
|
const USE_MAIN_CONTEXT_DEFAULT_LOADER: number;
|
|
959
|
+
/**
|
|
960
|
+
* This constant, when used as the `contextObject` argument in vm APIs, instructs Node.js to create
|
|
961
|
+
* a context without wrapping its global object with another object in a Node.js-specific manner.
|
|
962
|
+
* As a result, the `globalThis` value inside the new context would behave more closely to an ordinary
|
|
963
|
+
* one.
|
|
964
|
+
*
|
|
965
|
+
* When `vm.constants.DONT_CONTEXTIFY` is used as the `contextObject` argument to {@link createContext},
|
|
966
|
+
* the returned object is a proxy-like object to the global object in the newly created context with
|
|
967
|
+
* fewer Node.js-specific quirks. It is reference equal to the `globalThis` value in the new context,
|
|
968
|
+
* can be modified from outside the context, and can be used to access built-ins in the new context directly.
|
|
969
|
+
* @since v22.8.0
|
|
970
|
+
*/
|
|
971
|
+
const DONT_CONTEXTIFY: number;
|
|
918
972
|
}
|
|
919
973
|
}
|
|
920
974
|
declare module "node:vm" {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* JavaScript in parallel. To access it:
|
|
4
4
|
*
|
|
5
5
|
* ```js
|
|
6
|
-
*
|
|
6
|
+
* import worker from 'node:worker_threads';
|
|
7
7
|
* ```
|
|
8
8
|
*
|
|
9
9
|
* Workers (threads) are useful for performing CPU-intensive JavaScript operations.
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
* so by transferring `ArrayBuffer` instances or sharing `SharedArrayBuffer` instances.
|
|
15
15
|
*
|
|
16
16
|
* ```js
|
|
17
|
-
*
|
|
17
|
+
* import {
|
|
18
18
|
* Worker, isMainThread, parentPort, workerData,
|
|
19
|
-
* }
|
|
19
|
+
* } from 'node:worker_threads';
|
|
20
|
+
* import { parse } from 'some-js-parsing-library';
|
|
20
21
|
*
|
|
21
22
|
* if (isMainThread) {
|
|
22
23
|
* module.exports = function parseJSAsync(script) {
|
|
@@ -33,7 +34,6 @@
|
|
|
33
34
|
* });
|
|
34
35
|
* };
|
|
35
36
|
* } else {
|
|
36
|
-
* const { parse } = require('some-js-parsing-library');
|
|
37
37
|
* const script = workerData;
|
|
38
38
|
* parentPort.postMessage(parse(script));
|
|
39
39
|
* }
|
|
@@ -72,7 +72,7 @@ declare module "worker_threads" {
|
|
|
72
72
|
* The `MessageChannel` has no methods of its own. `new MessageChannel()` yields an object with `port1` and `port2` properties, which refer to linked `MessagePort` instances.
|
|
73
73
|
*
|
|
74
74
|
* ```js
|
|
75
|
-
*
|
|
75
|
+
* import { MessageChannel } from 'node:worker_threads';
|
|
76
76
|
*
|
|
77
77
|
* const { port1, port2 } = new MessageChannel();
|
|
78
78
|
* port1.on('message', (message) => console.log('received', message));
|
|
@@ -121,7 +121,7 @@ declare module "worker_threads" {
|
|
|
121
121
|
* * `value` may not contain native (C++-backed) objects other than:
|
|
122
122
|
*
|
|
123
123
|
* ```js
|
|
124
|
-
*
|
|
124
|
+
* import { MessageChannel } from 'node:worker_threads';
|
|
125
125
|
* const { port1, port2 } = new MessageChannel();
|
|
126
126
|
*
|
|
127
127
|
* port1.on('message', (message) => console.log(message));
|
|
@@ -143,7 +143,7 @@ declare module "worker_threads" {
|
|
|
143
143
|
* `value` may still contain `ArrayBuffer` instances that are not in `transferList`; in that case, the underlying memory is copied rather than moved.
|
|
144
144
|
*
|
|
145
145
|
* ```js
|
|
146
|
-
*
|
|
146
|
+
* import { MessageChannel } from 'node:worker_threads';
|
|
147
147
|
* const { port1, port2 } = new MessageChannel();
|
|
148
148
|
*
|
|
149
149
|
* port1.on('message', (message) => console.log(message));
|
|
@@ -267,7 +267,7 @@ declare module "worker_threads" {
|
|
|
267
267
|
trackUnmanagedFds?: boolean | undefined;
|
|
268
268
|
/**
|
|
269
269
|
* An optional `name` to be appended to the worker title
|
|
270
|
-
* for
|
|
270
|
+
* for debugging/identification purposes, making the final title as
|
|
271
271
|
* `[worker ${id}] ${name}`.
|
|
272
272
|
*/
|
|
273
273
|
name?: string | undefined;
|
|
@@ -298,8 +298,8 @@ declare module "worker_threads" {
|
|
|
298
298
|
* Notable differences inside a Worker environment are:
|
|
299
299
|
*
|
|
300
300
|
* * The `process.stdin`, `process.stdout`, and `process.stderr` streams may be redirected by the parent thread.
|
|
301
|
-
* * The `
|
|
302
|
-
* * The `
|
|
301
|
+
* * The `import { isMainThread } from 'node:worker_threads'` variable is set to `false`.
|
|
302
|
+
* * The `import { parentPort } from 'node:worker_threads'` message port is available.
|
|
303
303
|
* * `process.exit()` does not stop the whole program, just the single thread,
|
|
304
304
|
* and `process.abort()` is not available.
|
|
305
305
|
* * `process.chdir()` and `process` methods that set group or user ids
|
|
@@ -334,10 +334,10 @@ declare module "worker_threads" {
|
|
|
334
334
|
* the thread barrier.
|
|
335
335
|
*
|
|
336
336
|
* ```js
|
|
337
|
-
*
|
|
338
|
-
*
|
|
337
|
+
* import assert from 'node:assert';
|
|
338
|
+
* import {
|
|
339
339
|
* Worker, MessageChannel, MessagePort, isMainThread, parentPort,
|
|
340
|
-
* }
|
|
340
|
+
* } from 'node:worker_threads';
|
|
341
341
|
* if (isMainThread) {
|
|
342
342
|
* const worker = new Worker(__filename);
|
|
343
343
|
* const subChannel = new MessageChannel();
|
|
@@ -377,7 +377,7 @@ declare module "worker_threads" {
|
|
|
377
377
|
readonly stderr: Readable;
|
|
378
378
|
/**
|
|
379
379
|
* An integer identifier for the referenced thread. Inside the worker thread,
|
|
380
|
-
* it is available as `
|
|
380
|
+
* it is available as `import { threadId } from 'node:worker_threads'`.
|
|
381
381
|
* This value is unique for each `Worker` instance inside a single process.
|
|
382
382
|
* @since v10.5.0
|
|
383
383
|
*/
|
|
@@ -513,11 +513,11 @@ declare module "worker_threads" {
|
|
|
513
513
|
* ```js
|
|
514
514
|
* 'use strict';
|
|
515
515
|
*
|
|
516
|
-
*
|
|
516
|
+
* import {
|
|
517
517
|
* isMainThread,
|
|
518
518
|
* BroadcastChannel,
|
|
519
519
|
* Worker,
|
|
520
|
-
* }
|
|
520
|
+
* } from 'node:worker_threads';
|
|
521
521
|
*
|
|
522
522
|
* const bc = new BroadcastChannel('hello');
|
|
523
523
|
*
|
|
@@ -571,7 +571,7 @@ declare module "worker_threads" {
|
|
|
571
571
|
* This operation cannot be undone.
|
|
572
572
|
*
|
|
573
573
|
* ```js
|
|
574
|
-
*
|
|
574
|
+
* import { MessageChannel, markAsUntransferable } from 'node:worker_threads';
|
|
575
575
|
*
|
|
576
576
|
* const pooledBuffer = new ArrayBuffer(8);
|
|
577
577
|
* const typedArray1 = new Uint8Array(pooledBuffer);
|
|
@@ -616,7 +616,7 @@ declare module "worker_threads" {
|
|
|
616
616
|
* that contains the message payload, corresponding to the oldest message in the `MessagePort`'s queue.
|
|
617
617
|
*
|
|
618
618
|
* ```js
|
|
619
|
-
*
|
|
619
|
+
* import { MessageChannel, receiveMessageOnPort } from 'node:worker_threads';
|
|
620
620
|
* const { port1, port2 } = new MessageChannel();
|
|
621
621
|
* port1.postMessage({ hello: 'world' });
|
|
622
622
|
*
|
|
@@ -642,12 +642,12 @@ declare module "worker_threads" {
|
|
|
642
642
|
* automatically.
|
|
643
643
|
*
|
|
644
644
|
* ```js
|
|
645
|
-
*
|
|
645
|
+
* import {
|
|
646
646
|
* Worker,
|
|
647
647
|
* isMainThread,
|
|
648
648
|
* setEnvironmentData,
|
|
649
649
|
* getEnvironmentData,
|
|
650
|
-
* }
|
|
650
|
+
* } from 'node:worker_threads';
|
|
651
651
|
*
|
|
652
652
|
* if (isMainThread) {
|
|
653
653
|
* setEnvironmentData('Hello', 'World!');
|
|
@@ -676,7 +676,7 @@ declare module "worker_threads" {
|
|
|
676
676
|
} from "worker_threads";
|
|
677
677
|
global {
|
|
678
678
|
/**
|
|
679
|
-
* `BroadcastChannel` class is a global reference for `
|
|
679
|
+
* `BroadcastChannel` class is a global reference for `import { BroadcastChannel } from 'worker_threads'`
|
|
680
680
|
* https://nodejs.org/api/globals.html#broadcastchannel
|
|
681
681
|
* @since v18.0.0
|
|
682
682
|
*/
|
|
@@ -686,7 +686,7 @@ declare module "worker_threads" {
|
|
|
686
686
|
} ? T
|
|
687
687
|
: typeof _BroadcastChannel;
|
|
688
688
|
/**
|
|
689
|
-
* `MessageChannel` class is a global reference for `
|
|
689
|
+
* `MessageChannel` class is a global reference for `import { MessageChannel } from 'worker_threads'`
|
|
690
690
|
* https://nodejs.org/api/globals.html#messagechannel
|
|
691
691
|
* @since v15.0.0
|
|
692
692
|
*/
|
|
@@ -696,7 +696,7 @@ declare module "worker_threads" {
|
|
|
696
696
|
} ? T
|
|
697
697
|
: typeof _MessageChannel;
|
|
698
698
|
/**
|
|
699
|
-
* `MessagePort` class is a global reference for `
|
|
699
|
+
* `MessagePort` class is a global reference for `import { MessagePort } from 'worker_threads'`
|
|
700
700
|
* https://nodejs.org/api/globals.html#messageport
|
|
701
701
|
* @since v15.0.0
|
|
702
702
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* To access it:
|
|
6
6
|
*
|
|
7
7
|
* ```js
|
|
8
|
-
*
|
|
8
|
+
* import zlib from 'node:zlib';
|
|
9
9
|
* ```
|
|
10
10
|
*
|
|
11
11
|
* Compression and decompression are built around the Node.js
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
* stream:
|
|
17
17
|
*
|
|
18
18
|
* ```js
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* import { createGzip } from 'node:zlib';
|
|
20
|
+
* import { pipeline } from 'node:stream';
|
|
21
|
+
* import {
|
|
22
22
|
* createReadStream,
|
|
23
23
|
* createWriteStream,
|
|
24
|
-
* }
|
|
24
|
+
* } from 'node:fs';
|
|
25
25
|
*
|
|
26
26
|
* const gzip = createGzip();
|
|
27
27
|
* const source = createReadStream('input.txt');
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
*
|
|
37
37
|
* // Or, Promisified
|
|
38
38
|
*
|
|
39
|
-
*
|
|
39
|
+
* import { promisify } from 'node:util';
|
|
40
40
|
* const pipe = promisify(pipeline);
|
|
41
41
|
*
|
|
42
42
|
* async function do_gzip(input, output) {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
* It is also possible to compress or decompress data in a single step:
|
|
57
57
|
*
|
|
58
58
|
* ```js
|
|
59
|
-
*
|
|
59
|
+
* import { deflate, unzip } from 'node:zlib';
|
|
60
60
|
*
|
|
61
61
|
* const input = '.................................';
|
|
62
62
|
* deflate(input, (err, buffer) => {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
*
|
|
79
79
|
* // Or, Promisified
|
|
80
80
|
*
|
|
81
|
-
*
|
|
81
|
+
* import { promisify } from 'node:util';
|
|
82
82
|
* const do_unzip = promisify(unzip);
|
|
83
83
|
*
|
|
84
84
|
* do_unzip(buffer)
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 31 Oct 2024 18:02:52 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -45,7 +45,7 @@ declare module "assert" {
|
|
|
45
45
|
/** The `operator` property on the error instance. */
|
|
46
46
|
operator?: string | undefined;
|
|
47
47
|
/** If provided, the generated stack trace omits frames before this function. */
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
49
49
|
stackStartFn?: Function | undefined;
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -226,7 +226,7 @@ declare module "assert" {
|
|
|
226
226
|
expected: unknown,
|
|
227
227
|
message?: string | Error,
|
|
228
228
|
operator?: string,
|
|
229
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
229
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
230
230
|
stackStartFn?: Function,
|
|
231
231
|
): never;
|
|
232
232
|
/**
|
|
@@ -966,7 +966,7 @@ declare module "assert" {
|
|
|
966
966
|
* To use strict assertion mode:
|
|
967
967
|
*
|
|
968
968
|
* ```js
|
|
969
|
-
* import { strict as assert } from 'node:assert';
|
|
969
|
+
* import { strict as assert } from 'node:assert';
|
|
970
970
|
* import assert from 'node:assert/strict';
|
|
971
971
|
* ```
|
|
972
972
|
*
|