cloudstructs 0.9.13 → 0.9.14
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 +14 -9
- 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/email-receiver/whitelist.lambda.js +2 -3
- 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/provider.lambda.js +2 -3
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/events.lambda.js +2 -3
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-events/signature.js +2 -3
- package/lib/slack-textract/detect.lambda.js +2 -3
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/analyze.lambda.js +2 -3
- package/lib/ssl-server-test/extract-grade.lambda.js +2 -3
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/state-machine-cr-provider/runtime/http.js +3 -3
- package/lib/state-machine-cr-provider/runtime/index.js +5 -5
- package/lib/static-website/index.js +1 -1
- package/lib/static-website/origin-request.edge-lambda.js +2 -3
- package/lib/toolkit-cleaner/clean-images.lambda.js +2 -3
- package/lib/toolkit-cleaner/clean-objects.lambda.js +2 -3
- package/lib/toolkit-cleaner/extract-template-hashes.lambda.js +2 -3
- package/lib/toolkit-cleaner/get-stack-names.lambda.js +2 -3
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/lib/url-shortener/redirect.edge-lambda.js +2 -3
- package/lib/url-shortener/shortener.lambda.js +2 -3
- package/node_modules/@babel/runtime/helpers/extends.js +2 -2
- package/node_modules/@babel/runtime/helpers/get.js +2 -2
- package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +2 -2
- package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +2 -2
- package/node_modules/@babel/runtime/helpers/typeof.js +2 -2
- package/node_modules/@babel/runtime/helpers/wrapNativeSuper.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/globals.d.ts +47 -48
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +13 -0
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +35 -0
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +18 -0
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +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/globals.d.ts +47 -48
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +13 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +35 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +18 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/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 +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +12 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +5 -78
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +18 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +19 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +75 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +99 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +15 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +10 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +45 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +178 -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.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +378 -101
- 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 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +6 -6
- 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 +19 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +8 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +5 -7
- 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 +19 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +12 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/balanced-pool.d.ts +11 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/client.d.ts +12 -1
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/diagnostics-channel.d.ts +1 -2
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/dispatcher.d.ts +18 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/errors.d.ts +21 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/eventsource.d.ts +63 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/fetch.d.ts +25 -25
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/formdata.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/index.d.ts +10 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +15 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-interceptor.d.ts +4 -4
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/package.json +1 -1
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool.d.ts +11 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/proxy-agent.d.ts +0 -2
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/readable.d.ts +2 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/webidl.d.ts +10 -8
- package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/websocket.d.ts +22 -1
- 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 +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +12 -1
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +5 -78
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +18 -17
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +19 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +75 -2
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +99 -1
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +15 -2
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +10 -1
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +45 -9
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +178 -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.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +378 -101
- 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 -2
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +6 -6
- 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 +19 -2
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +8 -2
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +5 -7
- 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 +19 -1
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +12 -3
- package/node_modules/@types/keyv/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/@types/keyv/node_modules/undici-types/README.md +6 -0
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/node_modules/@types/keyv/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/@types/keyv/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/@types/keyv/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/@types/keyv/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +255 -0
- package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +149 -0
- package/node_modules/@types/keyv/node_modules/undici-types/eventsource.d.ts +63 -0
- package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/@types/keyv/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/@types/keyv/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/@types/keyv/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +71 -0
- package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +15 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +55 -0
- package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/@types/keyv/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +60 -0
- package/node_modules/@types/keyv/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/keyv/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +222 -0
- package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +152 -0
- 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 +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +12 -1
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +15 -15
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +5 -78
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +18 -17
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +19 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +75 -2
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +99 -1
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +15 -2
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +0 -14
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +10 -1
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +45 -9
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +178 -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.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +378 -101
- 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 -2
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +6 -6
- 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 +19 -2
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +8 -2
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +5 -7
- 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 +19 -1
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +12 -3
- package/node_modules/@types/responselike/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/@types/responselike/node_modules/undici-types/README.md +6 -0
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/node_modules/@types/responselike/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/@types/responselike/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/@types/responselike/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/@types/responselike/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +255 -0
- package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +149 -0
- package/node_modules/@types/responselike/node_modules/undici-types/eventsource.d.ts +63 -0
- package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/@types/responselike/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/@types/responselike/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +71 -0
- package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +55 -0
- package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/@types/responselike/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +60 -0
- package/node_modules/@types/responselike/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/@types/responselike/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +222 -0
- package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +152 -0
- package/node_modules/axios/CHANGELOG.md +16 -0
- package/node_modules/axios/README.md +6 -57
- package/node_modules/axios/dist/axios.js +29 -22
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +17 -10
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +17 -10
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +18 -11
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/lib/adapters/fetch.js +4 -1
- package/node_modules/axios/lib/adapters/http.js +1 -1
- package/node_modules/axios/lib/core/AxiosError.js +5 -2
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
- package/node_modules/axios/lib/platform/common/utils.js +5 -4
- package/node_modules/axios/package.json +1 -1
- package/node_modules/foreground-child/dist/commonjs/index.d.ts +4 -2
- package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/commonjs/index.js +4 -2
- package/node_modules/foreground-child/dist/commonjs/index.js.map +1 -1
- package/node_modules/foreground-child/dist/esm/index.d.ts +4 -2
- package/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -1
- package/node_modules/foreground-child/dist/esm/index.js +4 -2
- package/node_modules/foreground-child/dist/esm/index.js.map +1 -1
- package/node_modules/foreground-child/package.json +1 -1
- package/node_modules/juice/package.json +3 -3
- package/node_modules/uglify-js/bin/uglifyjs +6 -3
- package/node_modules/uglify-js/lib/compress.js +117 -75
- package/node_modules/uglify-js/lib/minify.js +4 -3
- package/node_modules/uglify-js/lib/output.js +16 -5
- package/node_modules/uglify-js/package.json +1 -1
- package/node_modules/uglify-js/tools/node.js +6 -1
- package/package.json +18 -18
- package/node_modules/undici-types/handlers.d.ts +0 -9
- package/node_modules/undici-types/interceptors.d.ts +0 -5
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/README.md +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/agent.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/api.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cache.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/connector.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/content-type.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cookies.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/file.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/filereader.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/global-dispatcher.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/global-origin.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/header.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-agent.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-client.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-errors.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-pool.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/patch.d.ts +0 -0
- /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool-stats.d.ts +0 -0
|
@@ -94,6 +94,15 @@ declare module "path" {
|
|
|
94
94
|
* @throws {TypeError} if any of the arguments is not a string.
|
|
95
95
|
*/
|
|
96
96
|
resolve(...paths: string[]): string;
|
|
97
|
+
/**
|
|
98
|
+
* The `path.matchesGlob()` method determines if `path` matches the `pattern`.
|
|
99
|
+
* @param path The path to glob-match against.
|
|
100
|
+
* @param pattern The glob to check the path against.
|
|
101
|
+
* @returns Whether or not the `path` matched the `pattern`.
|
|
102
|
+
* @throws {TypeError} if `path` or `pattern` are not strings.
|
|
103
|
+
* @since v22.5.0
|
|
104
|
+
*/
|
|
105
|
+
matchesGlob(path: string, pattern: string): boolean;
|
|
97
106
|
/**
|
|
98
107
|
* Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
|
|
99
108
|
*
|
|
@@ -75,6 +75,7 @@ declare module "process" {
|
|
|
75
75
|
"repl": typeof import("repl");
|
|
76
76
|
"node:repl": typeof import("node:repl");
|
|
77
77
|
"node:sea": typeof import("node:sea");
|
|
78
|
+
"node:sqlite": typeof import("node:sqlite");
|
|
78
79
|
"stream": typeof import("stream");
|
|
79
80
|
"node:stream": typeof import("node:stream");
|
|
80
81
|
"stream/consumers": typeof import("stream/consumers");
|
|
@@ -893,6 +894,40 @@ declare module "process" {
|
|
|
893
894
|
* @since v0.11.8
|
|
894
895
|
*/
|
|
895
896
|
exitCode?: number | string | number | undefined;
|
|
897
|
+
finalization: {
|
|
898
|
+
/**
|
|
899
|
+
* This function registers a callback to be called when the process emits the `exit` event if the `ref` object was not garbage collected.
|
|
900
|
+
* If the object `ref` was garbage collected before the `exit` event is emitted, the callback will be removed from the finalization registry, and it will not be called on process exit.
|
|
901
|
+
*
|
|
902
|
+
* Inside the callback you can release the resources allocated by the `ref` object.
|
|
903
|
+
* Be aware that all limitations applied to the `beforeExit` event are also applied to the callback function,
|
|
904
|
+
* this means that there is a possibility that the callback will not be called under special circumstances.
|
|
905
|
+
*
|
|
906
|
+
* The idea of this function is to help you free up resources when the starts process exiting, but also let the object be garbage collected if it is no longer being used.
|
|
907
|
+
* @param ref The reference to the resource that is being tracked.
|
|
908
|
+
* @param callback The callback function to be called when the resource is finalized.
|
|
909
|
+
* @since v22.5.0
|
|
910
|
+
* @experimental
|
|
911
|
+
*/
|
|
912
|
+
register<T extends object>(ref: T, callback: (ref: T, event: "exit") => void): void;
|
|
913
|
+
/**
|
|
914
|
+
* This function behaves exactly like the `register`, except that the callback will be called when the process emits the `beforeExit` event if `ref` object was not garbage collected.
|
|
915
|
+
*
|
|
916
|
+
* Be aware that all limitations applied to the `beforeExit` event are also applied to the callback function, this means that there is a possibility that the callback will not be called under special circumstances.
|
|
917
|
+
* @param ref The reference to the resource that is being tracked.
|
|
918
|
+
* @param callback The callback function to be called when the resource is finalized.
|
|
919
|
+
* @since v22.5.0
|
|
920
|
+
* @experimental
|
|
921
|
+
*/
|
|
922
|
+
registerBeforeExit<T extends object>(ref: T, callback: (ref: T, event: "beforeExit") => void): void;
|
|
923
|
+
/**
|
|
924
|
+
* This function remove the register of the object from the finalization registry, so the callback will not be called anymore.
|
|
925
|
+
* @param ref The reference to the resource that was registered previously.
|
|
926
|
+
* @since v22.5.0
|
|
927
|
+
* @experimental
|
|
928
|
+
*/
|
|
929
|
+
unregister(ref: object): void;
|
|
930
|
+
};
|
|
896
931
|
/**
|
|
897
932
|
* The `process.getActiveResourcesInfo()` method returns an array of strings containing
|
|
898
933
|
* the types of the active resources that are currently keeping the event loop alive.
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `node:sqlite` module facilitates working with SQLite databases.
|
|
3
|
+
* To access it:
|
|
4
|
+
*
|
|
5
|
+
* ```js
|
|
6
|
+
* import sqlite from 'node:sqlite';
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* This module is only available under the `node:` scheme. The following will not
|
|
10
|
+
* work:
|
|
11
|
+
*
|
|
12
|
+
* ```js
|
|
13
|
+
* import sqlite from 'sqlite';
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* The following example shows the basic usage of the `node:sqlite` module to open
|
|
17
|
+
* an in-memory database, write data to the database, and then read the data back.
|
|
18
|
+
*
|
|
19
|
+
* ```js
|
|
20
|
+
* import { DatabaseSync } from 'node:sqlite';
|
|
21
|
+
* const database = new DatabaseSync(':memory:');
|
|
22
|
+
*
|
|
23
|
+
* // Execute SQL statements from strings.
|
|
24
|
+
* database.exec(`
|
|
25
|
+
* CREATE TABLE data(
|
|
26
|
+
* key INTEGER PRIMARY KEY,
|
|
27
|
+
* value TEXT
|
|
28
|
+
* ) STRICT
|
|
29
|
+
* `);
|
|
30
|
+
* // Create a prepared statement to insert data into the database.
|
|
31
|
+
* const insert = database.prepare('INSERT INTO data (key, value) VALUES (?, ?)');
|
|
32
|
+
* // Execute the prepared statement with bound values.
|
|
33
|
+
* insert.run(1, 'hello');
|
|
34
|
+
* insert.run(2, 'world');
|
|
35
|
+
* // Create a prepared statement to read data from the database.
|
|
36
|
+
* const query = database.prepare('SELECT * FROM data ORDER BY key');
|
|
37
|
+
* // Execute the prepared statement and log the result set.
|
|
38
|
+
* console.log(query.all());
|
|
39
|
+
* // Prints: [ { key: 1, value: 'hello' }, { key: 2, value: 'world' } ]
|
|
40
|
+
* ```
|
|
41
|
+
* @since v22.5.0
|
|
42
|
+
* @experimental
|
|
43
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/sqlite.js)
|
|
44
|
+
*/
|
|
45
|
+
declare module "node:sqlite" {
|
|
46
|
+
interface DatabaseSyncOptions {
|
|
47
|
+
/**
|
|
48
|
+
* If `true`, the database is opened by the constructor.
|
|
49
|
+
* When this value is `false`, the database must be opened via the `open()` method.
|
|
50
|
+
*/
|
|
51
|
+
open?: boolean | undefined;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs
|
|
55
|
+
* exposed by this class execute synchronously.
|
|
56
|
+
* @since v22.5.0
|
|
57
|
+
*/
|
|
58
|
+
class DatabaseSync {
|
|
59
|
+
/**
|
|
60
|
+
* Constructs a new `DatabaseSync` instance.
|
|
61
|
+
* @param location The location of the database.
|
|
62
|
+
* A SQLite database can be stored in a file or completely [in memory](https://www.sqlite.org/inmemorydb.html).
|
|
63
|
+
* To use a file-backed database, the location should be a file path.
|
|
64
|
+
* To use an in-memory database, the location should be the special name `':memory:'`.
|
|
65
|
+
* @param options Configuration options for the database connection.
|
|
66
|
+
*/
|
|
67
|
+
constructor(location: string, options?: DatabaseSyncOptions);
|
|
68
|
+
/**
|
|
69
|
+
* Closes the database connection. An exception is thrown if the database is not
|
|
70
|
+
* open. This method is a wrapper around [`sqlite3_close_v2()`](https://www.sqlite.org/c3ref/close.html).
|
|
71
|
+
* @since v22.5.0
|
|
72
|
+
*/
|
|
73
|
+
close(): void;
|
|
74
|
+
/**
|
|
75
|
+
* This method allows one or more SQL statements to be executed without returning
|
|
76
|
+
* any results. This method is useful when executing SQL statements read from a
|
|
77
|
+
* file. This method is a wrapper around [`sqlite3_exec()`](https://www.sqlite.org/c3ref/exec.html).
|
|
78
|
+
* @since v22.5.0
|
|
79
|
+
* @param sql A SQL string to execute.
|
|
80
|
+
*/
|
|
81
|
+
exec(sql: string): void;
|
|
82
|
+
/**
|
|
83
|
+
* Opens the database specified in the `location` argument of the `DatabaseSync`constructor. This method should only be used when the database is not opened via
|
|
84
|
+
* the constructor. An exception is thrown if the database is already open.
|
|
85
|
+
* @since v22.5.0
|
|
86
|
+
*/
|
|
87
|
+
open(): void;
|
|
88
|
+
/**
|
|
89
|
+
* Compiles a SQL statement into a [prepared statement](https://www.sqlite.org/c3ref/stmt.html). This method is a wrapper
|
|
90
|
+
* around [`sqlite3_prepare_v2()`](https://www.sqlite.org/c3ref/prepare.html).
|
|
91
|
+
* @since v22.5.0
|
|
92
|
+
* @param sql A SQL string to compile to a prepared statement.
|
|
93
|
+
* @return The prepared statement.
|
|
94
|
+
*/
|
|
95
|
+
prepare(sql: string): StatementSync;
|
|
96
|
+
}
|
|
97
|
+
type SupportedValueType = null | number | bigint | string | Uint8Array;
|
|
98
|
+
interface StatementResultingChanges {
|
|
99
|
+
/**
|
|
100
|
+
* The number of rows modified, inserted, or deleted by the most recently completed `INSERT`, `UPDATE`, or `DELETE` statement.
|
|
101
|
+
* This field is either a number or a `BigInt` depending on the prepared statement's configuration.
|
|
102
|
+
* This property is the result of [`sqlite3_changes64()`](https://www.sqlite.org/c3ref/changes.html).
|
|
103
|
+
*/
|
|
104
|
+
changes: number | bigint;
|
|
105
|
+
/**
|
|
106
|
+
* The most recently inserted rowid.
|
|
107
|
+
* This field is either a number or a `BigInt` depending on the prepared statement's configuration.
|
|
108
|
+
* This property is the result of [`sqlite3_last_insert_rowid()`](https://www.sqlite.org/c3ref/last_insert_rowid.html).
|
|
109
|
+
*/
|
|
110
|
+
lastInsertRowid: number | bigint;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* This class represents a single [prepared statement](https://www.sqlite.org/c3ref/stmt.html). This class cannot be
|
|
114
|
+
* instantiated via its constructor. Instead, instances are created via the`database.prepare()` method. All APIs exposed by this class execute
|
|
115
|
+
* synchronously.
|
|
116
|
+
*
|
|
117
|
+
* A prepared statement is an efficient binary representation of the SQL used to
|
|
118
|
+
* create it. Prepared statements are parameterizable, and can be invoked multiple
|
|
119
|
+
* times with different bound values. Parameters also offer protection against [SQL injection](https://en.wikipedia.org/wiki/SQL_injection) attacks. For these reasons, prepared statements are
|
|
120
|
+
* preferred
|
|
121
|
+
* over hand-crafted SQL strings when handling user input.
|
|
122
|
+
* @since v22.5.0
|
|
123
|
+
*/
|
|
124
|
+
class StatementSync {
|
|
125
|
+
private constructor();
|
|
126
|
+
/**
|
|
127
|
+
* This method executes a prepared statement and returns all results as an array of
|
|
128
|
+
* objects. If the prepared statement does not return any results, this method
|
|
129
|
+
* returns an empty array. The prepared statement [parameters are bound](https://www.sqlite.org/c3ref/bind_blob.html) using
|
|
130
|
+
* the values in `namedParameters` and `anonymousParameters`.
|
|
131
|
+
* @since v22.5.0
|
|
132
|
+
* @param namedParameters An optional object used to bind named parameters. The keys of this object are used to configure the mapping.
|
|
133
|
+
* @param anonymousParameters Zero or more values to bind to anonymous parameters.
|
|
134
|
+
* @return An array of objects. Each object corresponds to a row returned by executing the prepared statement. The keys and values of each object correspond to the column names and values of
|
|
135
|
+
* the row.
|
|
136
|
+
*/
|
|
137
|
+
all(...anonymousParameters: SupportedValueType[]): unknown[];
|
|
138
|
+
all(
|
|
139
|
+
namedParameters: Record<string, SupportedValueType>,
|
|
140
|
+
...anonymousParameters: SupportedValueType[]
|
|
141
|
+
): unknown[];
|
|
142
|
+
/**
|
|
143
|
+
* This method returns the source SQL of the prepared statement with parameter
|
|
144
|
+
* placeholders replaced by values. This method is a wrapper around [`sqlite3_expanded_sql()`](https://www.sqlite.org/c3ref/expanded_sql.html).
|
|
145
|
+
* @since v22.5.0
|
|
146
|
+
* @return The source SQL expanded to include parameter values.
|
|
147
|
+
*/
|
|
148
|
+
expandedSQL(): string;
|
|
149
|
+
/**
|
|
150
|
+
* This method executes a prepared statement and returns the first result as an
|
|
151
|
+
* object. If the prepared statement does not return any results, this method
|
|
152
|
+
* returns `undefined`. The prepared statement [parameters are bound](https://www.sqlite.org/c3ref/bind_blob.html) using the
|
|
153
|
+
* values in `namedParameters` and `anonymousParameters`.
|
|
154
|
+
* @since v22.5.0
|
|
155
|
+
* @param namedParameters An optional object used to bind named parameters. The keys of this object are used to configure the mapping.
|
|
156
|
+
* @param anonymousParameters Zero or more values to bind to anonymous parameters.
|
|
157
|
+
* @return An object corresponding to the first row returned by executing the prepared statement. The keys and values of the object correspond to the column names and values of the row. If no
|
|
158
|
+
* rows were returned from the database then this method returns `undefined`.
|
|
159
|
+
*/
|
|
160
|
+
get(...anonymousParameters: SupportedValueType[]): unknown;
|
|
161
|
+
get(namedParameters: Record<string, SupportedValueType>, ...anonymousParameters: SupportedValueType[]): unknown;
|
|
162
|
+
/**
|
|
163
|
+
* This method executes a prepared statement and returns an object summarizing the
|
|
164
|
+
* resulting changes. The prepared statement [parameters are bound](https://www.sqlite.org/c3ref/bind_blob.html) using the
|
|
165
|
+
* values in `namedParameters` and `anonymousParameters`.
|
|
166
|
+
* @since v22.5.0
|
|
167
|
+
* @param namedParameters An optional object used to bind named parameters. The keys of this object are used to configure the mapping.
|
|
168
|
+
* @param anonymousParameters Zero or more values to bind to anonymous parameters.
|
|
169
|
+
*/
|
|
170
|
+
run(...anonymousParameters: SupportedValueType[]): StatementResultingChanges;
|
|
171
|
+
run(
|
|
172
|
+
namedParameters: Record<string, SupportedValueType>,
|
|
173
|
+
...anonymousParameters: SupportedValueType[]
|
|
174
|
+
): StatementResultingChanges;
|
|
175
|
+
/**
|
|
176
|
+
* The names of SQLite parameters begin with a prefix character. By default,`node:sqlite` requires that this prefix character is present when binding
|
|
177
|
+
* parameters. However, with the exception of dollar sign character, these
|
|
178
|
+
* prefix characters also require extra quoting when used in object keys.
|
|
179
|
+
*
|
|
180
|
+
* To improve ergonomics, this method can be used to also allow bare named
|
|
181
|
+
* parameters, which do not require the prefix character in JavaScript code. There
|
|
182
|
+
* are several caveats to be aware of when enabling bare named parameters:
|
|
183
|
+
*
|
|
184
|
+
* * The prefix character is still required in SQL.
|
|
185
|
+
* * The prefix character is still allowed in JavaScript. In fact, prefixed names
|
|
186
|
+
* will have slightly better binding performance.
|
|
187
|
+
* * Using ambiguous named parameters, such as `$k` and `@k`, in the same prepared
|
|
188
|
+
* statement will result in an exception as it cannot be determined how to bind
|
|
189
|
+
* a bare name.
|
|
190
|
+
* @since v22.5.0
|
|
191
|
+
* @param enabled Enables or disables support for binding named parameters without the prefix character.
|
|
192
|
+
*/
|
|
193
|
+
setAllowBareNamedParameters(enabled: boolean): void;
|
|
194
|
+
/**
|
|
195
|
+
* When reading from the database, SQLite `INTEGER`s are mapped to JavaScript
|
|
196
|
+
* numbers by default. However, SQLite `INTEGER`s can store values larger than
|
|
197
|
+
* JavaScript numbers are capable of representing. In such cases, this method can
|
|
198
|
+
* be used to read `INTEGER` data using JavaScript `BigInt`s. This method has no
|
|
199
|
+
* impact on database write operations where numbers and `BigInt`s are both
|
|
200
|
+
* supported at all times.
|
|
201
|
+
* @since v22.5.0
|
|
202
|
+
* @param enabled Enables or disables the use of `BigInt`s when reading `INTEGER` fields from the database.
|
|
203
|
+
*/
|
|
204
|
+
setReadBigInts(enabled: boolean): void;
|
|
205
|
+
/**
|
|
206
|
+
* This method returns the source SQL of the prepared statement. This method is a
|
|
207
|
+
* wrapper around [`sqlite3_sql()`](https://www.sqlite.org/c3ref/expanded_sql.html).
|
|
208
|
+
* @since v22.5.0
|
|
209
|
+
* @return The source SQL used to create this prepared statement.
|
|
210
|
+
*/
|
|
211
|
+
sourceSQL(): string;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -409,6 +409,24 @@ declare module "worker_threads" {
|
|
|
409
409
|
* @since v10.5.0
|
|
410
410
|
*/
|
|
411
411
|
postMessage(value: any, transferList?: readonly TransferListItem[]): void;
|
|
412
|
+
/**
|
|
413
|
+
* Sends a value to another worker, identified by its thread ID.
|
|
414
|
+
* @param threadId The target thread ID. If the thread ID is invalid, a `ERR_WORKER_MESSAGING_FAILED` error will be thrown.
|
|
415
|
+
* If the target thread ID is the current thread ID, a `ERR_WORKER_MESSAGING_SAME_THREAD` error will be thrown.
|
|
416
|
+
* @param value The value to send.
|
|
417
|
+
* @param transferList If one or more `MessagePort`-like objects are passed in value, a `transferList` is required for those items
|
|
418
|
+
* or `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` is thrown. See `port.postMessage()` for more information.
|
|
419
|
+
* @param timeout Time to wait for the message to be delivered in milliseconds. By default it's `undefined`, which means wait forever.
|
|
420
|
+
* If the operation times out, a `ERR_WORKER_MESSAGING_TIMEOUT` error is thrown.
|
|
421
|
+
* @since v22.5.0
|
|
422
|
+
*/
|
|
423
|
+
postMessageToThread(threadId: number, value: any, timeout?: number): Promise<void>;
|
|
424
|
+
postMessageToThread(
|
|
425
|
+
threadId: number,
|
|
426
|
+
value: any,
|
|
427
|
+
transferList: readonly TransferListItem[],
|
|
428
|
+
timeout?: number,
|
|
429
|
+
): Promise<void>;
|
|
412
430
|
/**
|
|
413
431
|
* Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default
|
|
414
432
|
* behavior). If the worker is `ref()`ed, calling `ref()` again has
|
|
@@ -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: Wed, 21 Aug 2024 16:09:20 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `node:assert` module provides a set of assertion functions for verifying
|
|
3
3
|
* invariants.
|
|
4
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
4
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/assert.js)
|
|
5
5
|
*/
|
|
6
6
|
declare module "assert" {
|
|
7
7
|
/**
|
|
@@ -796,7 +796,7 @@ declare module "assert" {
|
|
|
796
796
|
* check that the promise is rejected.
|
|
797
797
|
*
|
|
798
798
|
* If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
|
|
799
|
-
* function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-
|
|
799
|
+
* function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v22.x/api/errors.html#err_invalid_return_value)
|
|
800
800
|
* error. In both cases the error handler is skipped.
|
|
801
801
|
*
|
|
802
802
|
* Besides the async nature to await the completion behaves identically to {@link throws}.
|
|
@@ -866,7 +866,7 @@ declare module "assert" {
|
|
|
866
866
|
*
|
|
867
867
|
* If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
|
|
868
868
|
* the function does not return a promise, `assert.doesNotReject()` will return a
|
|
869
|
-
* rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-
|
|
869
|
+
* rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v22.x/api/errors.html#err_invalid_return_value) error. In both cases
|
|
870
870
|
* the error handler is skipped.
|
|
871
871
|
*
|
|
872
872
|
* Using `assert.doesNotReject()` is actually not useful because there is little
|
|
@@ -929,7 +929,7 @@ declare module "assert" {
|
|
|
929
929
|
* If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
|
|
930
930
|
* to the value of the `message` parameter. If the `message` parameter is
|
|
931
931
|
* undefined, a default error message is assigned. If the `message` parameter is an
|
|
932
|
-
* instance of an [Error](https://nodejs.org/docs/latest-
|
|
932
|
+
* instance of an [Error](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
|
|
933
933
|
* @since v13.6.0, v12.16.0
|
|
934
934
|
*/
|
|
935
935
|
function match(value: string, regExp: RegExp, message?: string | Error): void;
|
|
@@ -952,7 +952,7 @@ declare module "assert" {
|
|
|
952
952
|
* If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
|
|
953
953
|
* to the value of the `message` parameter. If the `message` parameter is
|
|
954
954
|
* undefined, a default error message is assigned. If the `message` parameter is an
|
|
955
|
-
* instance of an [Error](https://nodejs.org/docs/latest-
|
|
955
|
+
* instance of an [Error](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
|
|
956
956
|
* @since v13.6.0, v12.16.0
|
|
957
957
|
*/
|
|
958
958
|
function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* We strongly discourage the use of the `async_hooks` API.
|
|
3
3
|
* Other APIs that can cover most of its use cases include:
|
|
4
4
|
*
|
|
5
|
-
* * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-
|
|
6
|
-
* * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-
|
|
5
|
+
* * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-v22.x/api/async_context.html#class-asynclocalstorage) tracks async context
|
|
6
|
+
* * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v22.x/api/process.html#processgetactiveresourcesinfo) tracks active resources
|
|
7
7
|
*
|
|
8
8
|
* The `node:async_hooks` module provides an API to track asynchronous resources.
|
|
9
9
|
* It can be accessed using:
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* import async_hooks from 'node:async_hooks';
|
|
13
13
|
* ```
|
|
14
14
|
* @experimental
|
|
15
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
15
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/async_hooks.js)
|
|
16
16
|
*/
|
|
17
17
|
declare module "async_hooks" {
|
|
18
18
|
/**
|
|
@@ -44,7 +44,7 @@ declare module "async_hooks" {
|
|
|
44
44
|
* ```
|
|
45
45
|
*
|
|
46
46
|
* Promise contexts may not get precise `executionAsyncIds` by default.
|
|
47
|
-
* See the section on [promise execution tracking](https://nodejs.org/docs/latest-
|
|
47
|
+
* See the section on [promise execution tracking](https://nodejs.org/docs/latest-v22.x/api/async_hooks.html#promise-execution-tracking).
|
|
48
48
|
* @since v8.1.0
|
|
49
49
|
* @return The `asyncId` of the current execution context. Useful to track when something calls.
|
|
50
50
|
*/
|
|
@@ -117,7 +117,7 @@ declare module "async_hooks" {
|
|
|
117
117
|
* ```
|
|
118
118
|
*
|
|
119
119
|
* Promise contexts may not get valid `triggerAsyncId`s by default. See
|
|
120
|
-
* the section on [promise execution tracking](https://nodejs.org/docs/latest-
|
|
120
|
+
* the section on [promise execution tracking](https://nodejs.org/docs/latest-v22.x/api/async_hooks.html#promise-execution-tracking).
|
|
121
121
|
* @return The ID of the resource responsible for calling the callback that is currently being executed.
|
|
122
122
|
*/
|
|
123
123
|
function triggerAsyncId(): number;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
* // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
|
|
42
42
|
* const buf7 = Buffer.from('tést', 'latin1');
|
|
43
43
|
* ```
|
|
44
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
44
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/buffer.js)
|
|
45
45
|
*/
|
|
46
46
|
declare module "buffer" {
|
|
47
47
|
import { BinaryLike } from "node:crypto";
|
|
@@ -170,6 +170,17 @@ declare module "buffer" {
|
|
|
170
170
|
* @since v15.7.0, v14.18.0
|
|
171
171
|
*/
|
|
172
172
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
173
|
+
/**
|
|
174
|
+
* The `blob.bytes()` method returns the byte of the `Blob` object as a `Promise<Uint8Array>`.
|
|
175
|
+
*
|
|
176
|
+
* ```js
|
|
177
|
+
* const blob = new Blob(['hello']);
|
|
178
|
+
* blob.bytes().then((bytes) => {
|
|
179
|
+
* console.log(bytes); // Outputs: Uint8Array(5) [ 104, 101, 108, 108, 111 ]
|
|
180
|
+
* });
|
|
181
|
+
* ```
|
|
182
|
+
*/
|
|
183
|
+
bytes(): Promise<Uint8Array>;
|
|
173
184
|
/**
|
|
174
185
|
* Creates and returns a new `Blob` containing a subset of this `Blob` objects
|
|
175
186
|
* data. The original `Blob` is not altered.
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
* For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
|
|
64
64
|
* the synchronous methods can have significant impact on performance due to
|
|
65
65
|
* stalling the event loop while spawned processes complete.
|
|
66
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
66
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/child_process.js)
|
|
67
67
|
*/
|
|
68
68
|
declare module "child_process" {
|
|
69
69
|
import { ObjectEncodingOptions } from "node:fs";
|
|
@@ -455,7 +455,7 @@ declare module "child_process" {
|
|
|
455
455
|
* as the connection may have been closed during the time it takes to send the
|
|
456
456
|
* connection to the child.
|
|
457
457
|
* @since v0.5.9
|
|
458
|
-
* @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-
|
|
458
|
+
* @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v22.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v22.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v22.x/api/dgram.html#class-dgramsocket) object.
|
|
459
459
|
* @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties:
|
|
460
460
|
*/
|
|
461
461
|
send(message: Serializable, callback?: (error: Error | null) => void): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Clusters of Node.js processes can be used to run multiple instances of Node.js
|
|
3
3
|
* that can distribute workloads among their application threads. When process isolation
|
|
4
|
-
* is not needed, use the [`worker_threads`](https://nodejs.org/docs/latest-
|
|
4
|
+
* is not needed, use the [`worker_threads`](https://nodejs.org/docs/latest-v22.x/api/worker_threads.html)
|
|
5
5
|
* module instead, which allows running multiple application threads within a single Node.js instance.
|
|
6
6
|
*
|
|
7
7
|
* The cluster module allows easy creation of child processes that all share
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
* ```
|
|
51
51
|
*
|
|
52
52
|
* On Windows, it is not yet possible to set up a named pipe server in a worker.
|
|
53
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
53
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/cluster.js)
|
|
54
54
|
*/
|
|
55
55
|
declare module "cluster" {
|
|
56
56
|
import * as child from "node:child_process";
|
|
@@ -80,8 +80,8 @@ declare module "cluster" {
|
|
|
80
80
|
silent?: boolean | undefined;
|
|
81
81
|
/**
|
|
82
82
|
* Configures the stdio of forked processes. Because the cluster module relies on IPC to function, this configuration must
|
|
83
|
-
* contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-
|
|
84
|
-
* [`stdio`](https://nodejs.org/docs/latest-
|
|
83
|
+
* contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-v22.x/api/child_process.html#child_processspawncommand-args-options)'s
|
|
84
|
+
* [`stdio`](https://nodejs.org/docs/latest-v22.x/api/child_process.html#optionsstdio).
|
|
85
85
|
*/
|
|
86
86
|
stdio?: any[] | undefined;
|
|
87
87
|
/**
|
|
@@ -99,7 +99,7 @@ declare module "cluster" {
|
|
|
99
99
|
inspectPort?: number | (() => number) | undefined;
|
|
100
100
|
/**
|
|
101
101
|
* Specify the kind of serialization used for sending messages between processes. Possible values are `'json'` and `'advanced'`.
|
|
102
|
-
* See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-
|
|
102
|
+
* See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-v22.x/api/child_process.html#advanced-serialization) for more details.
|
|
103
103
|
* @default false
|
|
104
104
|
*/
|
|
105
105
|
serialization?: SerializationType | undefined;
|
|
@@ -142,10 +142,10 @@ declare module "cluster" {
|
|
|
142
142
|
*/
|
|
143
143
|
id: number;
|
|
144
144
|
/**
|
|
145
|
-
* All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-
|
|
145
|
+
* All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-v22.x/api/child_process.html#child_processforkmodulepath-args-options), the returned object
|
|
146
146
|
* from this function is stored as `.process`. In a worker, the global `process` is stored.
|
|
147
147
|
*
|
|
148
|
-
* See: [Child Process module](https://nodejs.org/docs/latest-
|
|
148
|
+
* See: [Child Process module](https://nodejs.org/docs/latest-v22.x/api/child_process.html#child_processforkmodulepath-args-options).
|
|
149
149
|
*
|
|
150
150
|
* Workers will call `process.exit(0)` if the `'disconnect'` event occurs
|
|
151
151
|
* on `process` and `.exitedAfterDisconnect` is not `true`. This protects against
|
|
@@ -156,7 +156,7 @@ declare module "cluster" {
|
|
|
156
156
|
/**
|
|
157
157
|
* Send a message to a worker or primary, optionally with a handle.
|
|
158
158
|
*
|
|
159
|
-
* In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-
|
|
159
|
+
* In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-v22.x/api/child_process.html#subprocesssendmessage-sendhandle-options-callback).
|
|
160
160
|
*
|
|
161
161
|
* In a worker, this sends a message to the primary. It is identical to `process.send()`.
|
|
162
162
|
*
|
|
@@ -198,7 +198,7 @@ declare module "cluster" {
|
|
|
198
198
|
* This method is aliased as `worker.destroy()` for backwards compatibility.
|
|
199
199
|
*
|
|
200
200
|
* In a worker, `process.kill()` exists, but it is not this function;
|
|
201
|
-
* it is [`kill()`](https://nodejs.org/docs/latest-
|
|
201
|
+
* it is [`kill()`](https://nodejs.org/docs/latest-v22.x/api/process.html#processkillpid-signal).
|
|
202
202
|
* @since v0.9.12
|
|
203
203
|
* @param [signal='SIGTERM'] Name of the kill signal to send to the worker process.
|
|
204
204
|
*/
|
|
@@ -411,7 +411,7 @@ declare module "cluster" {
|
|
|
411
411
|
readonly isWorker: boolean;
|
|
412
412
|
/**
|
|
413
413
|
* The scheduling policy, either `cluster.SCHED_RR` for round-robin or `cluster.SCHED_NONE` to leave it to the operating system. This is a
|
|
414
|
-
* global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-
|
|
414
|
+
* global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-v22.x/api/cluster.html#clustersetupprimarysettings)
|
|
415
415
|
* is called, whichever comes first.
|
|
416
416
|
*
|
|
417
417
|
* `SCHED_RR` is the default on all operating systems except Windows. Windows will change to `SCHED_RR` once libuv is able to effectively distribute
|
|
@@ -422,24 +422,24 @@ declare module "cluster" {
|
|
|
422
422
|
*/
|
|
423
423
|
schedulingPolicy: number;
|
|
424
424
|
/**
|
|
425
|
-
* After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-
|
|
426
|
-
* (or [`.fork()`](https://nodejs.org/docs/latest-
|
|
425
|
+
* After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-v22.x/api/cluster.html#clustersetupprimarysettings)
|
|
426
|
+
* (or [`.fork()`](https://nodejs.org/docs/latest-v22.x/api/cluster.html#clusterforkenv)) this settings object will contain
|
|
427
427
|
* the settings, including the default values.
|
|
428
428
|
*
|
|
429
429
|
* This object is not intended to be changed or set manually.
|
|
430
430
|
* @since v0.7.1
|
|
431
431
|
*/
|
|
432
432
|
readonly settings: ClusterSettings;
|
|
433
|
-
/** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-
|
|
433
|
+
/** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-v22.x/api/cluster.html#clustersetupprimarysettings) instead. */
|
|
434
434
|
setupMaster(settings?: ClusterSettings): void;
|
|
435
435
|
/**
|
|
436
436
|
* `setupPrimary` is used to change the default 'fork' behavior. Once called, the settings will be present in `cluster.settings`.
|
|
437
437
|
*
|
|
438
|
-
* Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-
|
|
438
|
+
* Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-v22.x/api/cluster.html#clusterforkenv)
|
|
439
439
|
* and have no effect on workers that are already running.
|
|
440
440
|
*
|
|
441
441
|
* The only attribute of a worker that cannot be set via `.setupPrimary()` is the `env` passed to
|
|
442
|
-
* [`.fork()`](https://nodejs.org/docs/latest-
|
|
442
|
+
* [`.fork()`](https://nodejs.org/docs/latest-v22.x/api/cluster.html#clusterforkenv).
|
|
443
443
|
*
|
|
444
444
|
* The defaults above apply to the first call only; the defaults for later calls are the current values at the time of
|
|
445
445
|
* `cluster.setupPrimary()` is called.
|