cloudstructs 0.9.33 → 0.9.34
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 +4 -4
- package/assets/slack-app/provider.lambda/index.js +209 -33
- package/assets/slack-textract/detect.lambda/index.js +385 -163
- package/assets/ssl-server-test/analyze.lambda/index.js +209 -33
- 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 +2 -2
- 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/interopRequireWildcard.js +19 -24
- package/node_modules/@babel/runtime/helpers/esm/regenerator.js +89 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +33 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +24 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +66 -293
- package/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +19 -0
- package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +19 -24
- package/node_modules/@babel/runtime/helpers/regenerator.js +89 -0
- package/node_modules/@babel/runtime/helpers/regeneratorAsync.js +8 -0
- package/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +6 -0
- package/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +33 -0
- package/node_modules/@babel/runtime/helpers/regeneratorDefine.js +24 -0
- package/node_modules/@babel/runtime/helpers/regeneratorKeys.js +10 -0
- package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +66 -293
- package/node_modules/@babel/runtime/helpers/regeneratorValues.js +19 -0
- package/node_modules/@babel/runtime/package.json +52 -10
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +15 -54
- package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +90 -8
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +3 -0
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +3 -4
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +16 -16
- package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +43 -37
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +38 -14
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +16 -16
- package/node_modules/@slack/logger/node_modules/@types/node/dom-events.d.ts +60 -85
- package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +1 -2
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +40 -35
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +122 -29
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +143 -287
- package/node_modules/@slack/logger/node_modules/@types/node/globals.typedarray.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +28 -3
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +78 -8
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +7 -5
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +39 -7
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +102 -27
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +17 -14
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +8 -7
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +18 -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 +10 -10
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +43 -11
- 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 +3 -4
- package/node_modules/@slack/logger/node_modules/@types/node/readline/promises.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +19 -14
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +14 -16
- package/node_modules/@slack/logger/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +217 -14
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +13 -18
- package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +107 -21
- package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +1 -1
- 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 +36 -49
- package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@slack/logger/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.1/index.d.ts +98 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/index.d.ts +9 -5
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.7/index.d.ts +96 -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 +61 -19
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +234 -381
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +110 -32
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +73 -13
- 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 +55 -26
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +170 -41
- package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +7 -7
- package/node_modules/@slack/logger/node_modules/undici-types/api.d.ts +24 -24
- package/node_modules/@slack/logger/node_modules/undici-types/balanced-pool.d.ts +11 -11
- package/node_modules/@slack/logger/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/node_modules/@slack/logger/node_modules/undici-types/client.d.ts +12 -13
- package/node_modules/@slack/logger/node_modules/undici-types/cookies.d.ts +2 -0
- package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
- package/node_modules/@slack/logger/node_modules/undici-types/dispatcher.d.ts +117 -92
- package/node_modules/@slack/logger/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/undici-types/errors.d.ts +69 -47
- package/node_modules/@slack/logger/node_modules/undici-types/fetch.d.ts +17 -16
- package/node_modules/@slack/logger/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/@slack/logger/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/undici-types/h2c-client.d.ts +75 -0
- package/node_modules/@slack/logger/node_modules/undici-types/handlers.d.ts +7 -7
- package/node_modules/@slack/logger/node_modules/undici-types/header.d.ts +157 -1
- package/node_modules/@slack/logger/node_modules/undici-types/index.d.ts +51 -47
- package/node_modules/@slack/logger/node_modules/undici-types/interceptors.d.ts +25 -8
- package/node_modules/@slack/logger/node_modules/undici-types/mock-agent.d.ts +33 -18
- package/node_modules/@slack/logger/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/@slack/logger/node_modules/undici-types/mock-client.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/undici-types/mock-interceptor.d.ts +19 -19
- package/node_modules/@slack/logger/node_modules/undici-types/mock-pool.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/patch.d.ts +0 -4
- package/node_modules/@slack/logger/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/@slack/logger/node_modules/undici-types/pool.d.ts +12 -12
- package/node_modules/@slack/logger/node_modules/undici-types/proxy-agent.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/undici-types/readable.d.ts +18 -15
- package/node_modules/@slack/logger/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/retry-handler.d.ts +10 -10
- package/node_modules/@slack/logger/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/@slack/logger/node_modules/undici-types/webidl.d.ts +44 -6
- package/node_modules/@slack/logger/node_modules/undici-types/websocket.d.ts +35 -1
- package/node_modules/@slack/web-api/dist/WebClient.d.ts +0 -2
- package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.js +28 -15
- package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
- package/node_modules/@slack/web-api/dist/errors.d.ts +0 -2
- package/node_modules/@slack/web-api/dist/errors.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/errors.js +6 -6
- package/node_modules/@slack/web-api/dist/errors.js.map +1 -1
- package/node_modules/@slack/web-api/dist/file-upload.d.ts +1 -4
- package/node_modules/@slack/web-api/dist/file-upload.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/file-upload.js +43 -38
- package/node_modules/@slack/web-api/dist/file-upload.js.map +1 -1
- package/node_modules/@slack/web-api/dist/helpers.js +1 -1
- package/node_modules/@slack/web-api/dist/helpers.js.map +1 -1
- package/node_modules/@slack/web-api/dist/index.d.ts +0 -1
- package/node_modules/@slack/web-api/dist/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/instrument.js +19 -10
- package/node_modules/@slack/web-api/dist/instrument.js.map +1 -1
- package/node_modules/@slack/web-api/dist/logger.js +2 -2
- package/node_modules/@slack/web-api/dist/logger.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/canvas.d.ts +2 -0
- package/node_modules/@slack/web-api/dist/types/request/canvas.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/files.d.ts +18 -5
- package/node_modules/@slack/web-api/dist/types/request/files.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/users.d.ts +0 -3
- package/node_modules/@slack/web-api/dist/types/request/users.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/AdminConversationsSearchResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/AdminConversationsSearchResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.d.ts +3 -0
- package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/AppsManifestCreateResponse.d.ts +2 -0
- package/node_modules/@slack/web-api/dist/types/response/AppsManifestCreateResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.d.ts +64 -12
- package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.js +27 -8
- package/node_modules/@slack/web-api/dist/types/response/ChatPostMessageResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.d.ts +35 -5
- package/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ChatScheduleMessageResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.d.ts +35 -5
- package/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ChatUpdateResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.d.ts +65 -12
- package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.js +27 -8
- package/node_modules/@slack/web-api/dist/types/response/ConversationsHistoryResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsJoinResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ConversationsJoinResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsKickResponse.d.ts +2 -0
- package/node_modules/@slack/web-api/dist/types/response/ConversationsKickResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsListResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ConversationsListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.d.ts +26 -5
- package/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsOpenResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.d.ts +64 -12
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.js +27 -8
- package/node_modules/@slack/web-api/dist/types/response/ConversationsRepliesResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesCompleteUploadExternalResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/FilesCompleteUploadExternalResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.d.ts +134 -108
- package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.js +21 -14
- package/node_modules/@slack/web-api/dist/types/response/FilesInfoResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.d.ts +134 -108
- package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.js +21 -14
- package/node_modules/@slack/web-api/dist/types/response/FilesListResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.d.ts +134 -108
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.js +21 -14
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteAddResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.d.ts +134 -108
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.js +21 -14
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteInfoResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.d.ts +134 -108
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.js +21 -14
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteListResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.d.ts +134 -108
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.js +21 -14
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteShareResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.d.ts +134 -108
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.js +21 -14
- package/node_modules/@slack/web-api/dist/types/response/FilesRemoteUpdateResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.d.ts +134 -108
- package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.js +21 -14
- package/node_modules/@slack/web-api/dist/types/response/FilesRevokePublicURLResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.d.ts +134 -108
- package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.js +21 -14
- package/node_modules/@slack/web-api/dist/types/response/FilesSharedPublicURLResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.d.ts +134 -108
- package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.js +21 -14
- package/node_modules/@slack/web-api/dist/types/response/FilesUploadResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.d.ts +134 -108
- package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +21 -14
- package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.d.ts +35 -5
- package/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ReactionsGetResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.d.ts +64 -12
- package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.js +27 -8
- package/node_modules/@slack/web-api/dist/types/response/ReactionsListResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.d.ts +35 -2
- package/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/RtmStartResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.d.ts +42 -7
- package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.d.ts +37 -2
- package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.d.ts +35 -2
- package/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/SearchMessagesResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/UsergroupsCreateResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/UsergroupsCreateResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/UsergroupsDisableResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/UsergroupsDisableResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/UsergroupsEnableResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/UsergroupsEnableResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/UsergroupsListResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/UsergroupsListResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/UsergroupsUpdateResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/UsergroupsUpdateResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/UsergroupsUsersUpdateResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/UsergroupsUsersUpdateResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/UsersConversationsResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/UsersConversationsResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/UsersInfoResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/UsersInfoResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ViewsOpenResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ViewsOpenResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ViewsOpenResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ViewsPublishResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ViewsPublishResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ViewsPublishResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ViewsPushResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ViewsPushResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ViewsPushResponse.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ViewsUpdateResponse.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/ViewsUpdateResponse.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/ViewsUpdateResponse.js.map +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +15 -54
- package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +90 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +3 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +3 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +16 -16
- package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +43 -37
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +38 -14
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +16 -16
- package/node_modules/@slack/web-api/node_modules/@types/node/dom-events.d.ts +60 -85
- package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +1 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +40 -35
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +122 -29
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +143 -287
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.typedarray.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +28 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +78 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +7 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +39 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +102 -27
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +17 -14
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +8 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +18 -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 +10 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +43 -11
- 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 +3 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/readline/promises.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +19 -14
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +14 -16
- package/node_modules/@slack/web-api/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +217 -14
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +13 -18
- package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +107 -21
- package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +1 -1
- 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 +36 -49
- package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.1/index.d.ts +98 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/index.d.ts +9 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.7/index.d.ts +96 -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 +61 -19
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +234 -381
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +110 -32
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +73 -13
- 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 +55 -26
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +170 -41
- package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +7 -7
- package/node_modules/@slack/web-api/node_modules/undici-types/api.d.ts +24 -24
- package/node_modules/@slack/web-api/node_modules/undici-types/balanced-pool.d.ts +11 -11
- package/node_modules/@slack/web-api/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/client.d.ts +12 -13
- package/node_modules/@slack/web-api/node_modules/undici-types/cookies.d.ts +2 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
- package/node_modules/@slack/web-api/node_modules/undici-types/dispatcher.d.ts +117 -92
- package/node_modules/@slack/web-api/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/errors.d.ts +69 -47
- package/node_modules/@slack/web-api/node_modules/undici-types/fetch.d.ts +17 -16
- package/node_modules/@slack/web-api/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/@slack/web-api/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/undici-types/h2c-client.d.ts +75 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/handlers.d.ts +7 -7
- package/node_modules/@slack/web-api/node_modules/undici-types/header.d.ts +157 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/index.d.ts +51 -47
- package/node_modules/@slack/web-api/node_modules/undici-types/interceptors.d.ts +25 -8
- package/node_modules/@slack/web-api/node_modules/undici-types/mock-agent.d.ts +33 -18
- package/node_modules/@slack/web-api/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/mock-client.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/undici-types/mock-interceptor.d.ts +19 -19
- package/node_modules/@slack/web-api/node_modules/undici-types/mock-pool.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/patch.d.ts +0 -4
- package/node_modules/@slack/web-api/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/@slack/web-api/node_modules/undici-types/pool.d.ts +12 -12
- package/node_modules/@slack/web-api/node_modules/undici-types/proxy-agent.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/undici-types/readable.d.ts +18 -15
- package/node_modules/@slack/web-api/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/retry-handler.d.ts +10 -10
- package/node_modules/@slack/web-api/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/webidl.d.ts +44 -6
- package/node_modules/@slack/web-api/node_modules/undici-types/websocket.d.ts +35 -1
- package/node_modules/@slack/web-api/package.json +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +15 -54
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +90 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +3 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +3 -4
- 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 +16 -16
- 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 +43 -37
- 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 +38 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +16 -16
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dom-events.d.ts +60 -85
- 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 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +40 -35
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +122 -29
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +143 -287
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +28 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +78 -8
- 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 +7 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +39 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +102 -27
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +17 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +8 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +18 -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 +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +43 -11
- 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 +3 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +19 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +14 -16
- 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 +217 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +13 -18
- 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 +107 -21
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +1 -1
- 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 +36 -49
- 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/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.1/index.d.ts +98 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +9 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.7/index.d.ts +96 -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 +61 -19
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +234 -381
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +110 -32
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +73 -13
- 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 +55 -26
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +170 -41
- package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +7 -7
- package/node_modules/@types/cacheable-request/node_modules/undici-types/api.d.ts +24 -24
- package/node_modules/@types/cacheable-request/node_modules/undici-types/balanced-pool.d.ts +11 -11
- package/node_modules/@types/cacheable-request/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +12 -13
- package/node_modules/@types/cacheable-request/node_modules/undici-types/cookies.d.ts +2 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/undici-types/dispatcher.d.ts +117 -92
- package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/errors.d.ts +69 -47
- package/node_modules/@types/cacheable-request/node_modules/undici-types/fetch.d.ts +17 -16
- package/node_modules/@types/cacheable-request/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/@types/cacheable-request/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/undici-types/h2c-client.d.ts +75 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +7 -7
- package/node_modules/@types/cacheable-request/node_modules/undici-types/header.d.ts +157 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/index.d.ts +51 -47
- package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +25 -8
- package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-agent.d.ts +33 -18
- package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-client.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-interceptor.d.ts +19 -19
- package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-pool.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/patch.d.ts +0 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/@types/cacheable-request/node_modules/undici-types/pool.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/undici-types/proxy-agent.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/readable.d.ts +18 -15
- package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +44 -6
- package/node_modules/@types/cacheable-request/node_modules/undici-types/websocket.d.ts +35 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +15 -54
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +90 -8
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +3 -0
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +3 -4
- 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 +16 -16
- 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 +43 -37
- 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 +38 -14
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +16 -16
- package/node_modules/@types/keyv/node_modules/@types/node/dom-events.d.ts +60 -85
- 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 -2
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +40 -35
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +122 -29
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +143 -287
- package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +28 -3
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +78 -8
- 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 +7 -5
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +39 -7
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +102 -27
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +17 -14
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +8 -7
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +18 -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 +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +43 -11
- 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 +3 -4
- package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +19 -14
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +14 -16
- 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 +217 -14
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +13 -18
- 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 +107 -21
- package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +1 -1
- 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 +36 -49
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.1/index.d.ts +98 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +9 -5
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.7/index.d.ts +96 -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 +61 -19
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +234 -381
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +110 -32
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +73 -13
- 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 +55 -26
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +170 -41
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +7 -7
- package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +24 -24
- package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +11 -11
- package/node_modules/@types/keyv/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +12 -13
- package/node_modules/@types/keyv/node_modules/undici-types/cookies.d.ts +2 -0
- package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +117 -92
- package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +69 -47
- package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +17 -16
- package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/@types/keyv/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/undici-types/h2c-client.d.ts +75 -0
- package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +7 -7
- package/node_modules/@types/keyv/node_modules/undici-types/header.d.ts +157 -1
- package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +51 -47
- package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +25 -8
- package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +33 -18
- package/node_modules/@types/keyv/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +19 -19
- package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +0 -4
- package/node_modules/@types/keyv/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +18 -15
- package/node_modules/@types/keyv/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +44 -6
- package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +35 -1
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +15 -54
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +90 -8
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +3 -0
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +3 -4
- 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 +16 -16
- 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 +43 -37
- 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 +38 -14
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +16 -16
- package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +60 -85
- 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 -2
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +40 -35
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +122 -29
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +143 -287
- package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +28 -3
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +78 -8
- 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 +7 -5
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +39 -7
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +102 -27
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +17 -14
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +8 -7
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +18 -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 +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +43 -11
- 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 +3 -4
- package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +19 -14
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +14 -16
- 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 +217 -14
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +13 -18
- 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 +107 -21
- package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +1 -1
- 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 +36 -49
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +12 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/index.d.ts +98 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +3 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +9 -5
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.7/index.d.ts +96 -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 +61 -19
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +234 -381
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +110 -32
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +73 -13
- 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 +55 -26
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +170 -41
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +7 -7
- package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +24 -24
- package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +11 -11
- package/node_modules/@types/responselike/node_modules/undici-types/cache-interceptor.d.ts +172 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +12 -13
- package/node_modules/@types/responselike/node_modules/undici-types/cookies.d.ts +2 -0
- package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +117 -92
- package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +69 -47
- package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +17 -16
- package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +7 -7
- package/node_modules/@types/responselike/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/undici-types/h2c-client.d.ts +75 -0
- package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +7 -7
- package/node_modules/@types/responselike/node_modules/undici-types/header.d.ts +157 -1
- package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +51 -47
- package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +25 -8
- package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +33 -18
- package/node_modules/@types/responselike/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +19 -19
- package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +0 -4
- package/node_modules/@types/responselike/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +18 -15
- package/node_modules/@types/responselike/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +44 -6
- package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +35 -1
- package/node_modules/axios/CHANGELOG.md +51 -0
- package/node_modules/axios/README.md +24 -21
- package/node_modules/axios/dist/axios.js +36 -17
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +36 -14
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +36 -14
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +37 -15
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +3 -3
- package/node_modules/axios/index.d.ts +5 -3
- package/node_modules/axios/lib/adapters/fetch.js +2 -2
- package/node_modules/axios/lib/core/Axios.js +1 -1
- package/node_modules/axios/lib/core/AxiosHeaders.js +15 -3
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +1 -1
- package/node_modules/axios/lib/helpers/toFormData.js +4 -0
- package/node_modules/axios/lib/utils.js +12 -6
- package/node_modules/axios/package.json +13 -4
- package/node_modules/brace-expansion/index.js +1 -1
- package/node_modules/brace-expansion/package.json +4 -1
- package/node_modules/end-of-stream/index.js +3 -1
- package/node_modules/end-of-stream/package.json +1 -1
- package/node_modules/form-data/README.md.bak +355 -0
- package/node_modules/form-data/Readme.md +34 -37
- package/node_modules/form-data/lib/browser.js +3 -1
- package/node_modules/form-data/lib/form_data.js +124 -129
- package/node_modules/form-data/lib/populate.js +5 -5
- package/node_modules/form-data/package.json +7 -15
- package/node_modules/http-cache-semantics/README.md +116 -51
- package/node_modules/http-cache-semantics/index.js +300 -46
- package/node_modules/http-cache-semantics/package.json +8 -4
- package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +4 -4
- package/node_modules/parse5/dist/cjs/parser/index.d.ts +1 -1
- package/node_modules/parse5/dist/cjs/parser/index.js +13 -8
- 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 +11 -7
- package/node_modules/parse5/dist/cjs/serializer/index.js +3 -3
- package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +1 -1
- package/node_modules/parse5/dist/cjs/tokenizer/index.js +3 -3
- package/node_modules/parse5/dist/parser/formatting-element-list.js +4 -4
- package/node_modules/parse5/dist/parser/index.d.ts +1 -1
- package/node_modules/parse5/dist/parser/index.js +13 -8
- package/node_modules/parse5/dist/parser/open-element-stack.d.ts +2 -2
- package/node_modules/parse5/dist/parser/open-element-stack.js +11 -7
- package/node_modules/parse5/dist/serializer/index.js +1 -1
- package/node_modules/parse5/dist/tokenizer/index.d.ts +1 -1
- package/node_modules/parse5/dist/tokenizer/index.js +1 -1
- package/node_modules/parse5/node_modules/entities/LICENSE +11 -0
- package/node_modules/parse5/node_modules/entities/decode.d.ts +1 -0
- package/node_modules/parse5/node_modules/entities/decode.js +3 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts +209 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js +511 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js +73 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/encode.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts +43 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js +121 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/escape.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js +10 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +10 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +8 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js +13 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts +96 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js +131 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/index.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/commonjs/package.json +3 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts +209 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.js +497 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/decode.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts +22 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.js +69 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/encode.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts +43 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.js +117 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/escape.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js +7 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js +7 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts +8 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js +10 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts +96 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/index.d.ts.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/index.js +107 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/index.js.map +1 -0
- package/node_modules/parse5/node_modules/entities/dist/esm/package.json +3 -0
- package/node_modules/parse5/node_modules/entities/escape.d.ts +1 -0
- package/node_modules/parse5/node_modules/entities/escape.js +3 -0
- package/node_modules/parse5/node_modules/entities/package.json +118 -0
- package/node_modules/parse5/node_modules/entities/readme.md +122 -0
- package/node_modules/parse5/node_modules/entities/src/decode-codepoint.ts +81 -0
- package/node_modules/parse5/node_modules/entities/src/decode.spec.ts +320 -0
- package/node_modules/parse5/node_modules/entities/src/decode.ts +620 -0
- package/node_modules/parse5/node_modules/entities/src/encode.spec.ts +78 -0
- package/node_modules/parse5/node_modules/entities/src/encode.ts +77 -0
- package/node_modules/parse5/node_modules/entities/src/escape.spec.ts +14 -0
- package/node_modules/parse5/node_modules/entities/src/escape.ts +148 -0
- package/node_modules/parse5/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/node_modules/parse5/node_modules/entities/src/generated/decode-data-html.ts +8 -0
- package/node_modules/parse5/node_modules/entities/src/generated/decode-data-xml.ts +8 -0
- package/node_modules/parse5/node_modules/entities/src/generated/encode-html.ts +17 -0
- package/node_modules/parse5/node_modules/entities/src/index.spec.ts +125 -0
- package/node_modules/parse5/node_modules/entities/src/index.ts +188 -0
- package/node_modules/parse5/package.json +3 -3
- package/node_modules/pump/index.js +1 -1
- package/node_modules/pump/package.json +1 -1
- package/node_modules/semver/bin/semver.js +2 -0
- package/node_modules/semver/classes/comparator.js +2 -0
- package/node_modules/semver/classes/index.js +2 -0
- package/node_modules/semver/classes/range.js +2 -0
- package/node_modules/semver/classes/semver.js +4 -3
- package/node_modules/semver/functions/clean.js +2 -0
- package/node_modules/semver/functions/cmp.js +2 -0
- package/node_modules/semver/functions/coerce.js +2 -0
- package/node_modules/semver/functions/compare-build.js +2 -0
- package/node_modules/semver/functions/compare-loose.js +2 -0
- package/node_modules/semver/functions/compare.js +2 -0
- package/node_modules/semver/functions/diff.js +2 -0
- package/node_modules/semver/functions/eq.js +2 -0
- package/node_modules/semver/functions/gt.js +2 -0
- package/node_modules/semver/functions/gte.js +2 -0
- package/node_modules/semver/functions/inc.js +2 -0
- package/node_modules/semver/functions/lt.js +2 -0
- package/node_modules/semver/functions/lte.js +2 -0
- package/node_modules/semver/functions/major.js +2 -0
- package/node_modules/semver/functions/minor.js +2 -0
- package/node_modules/semver/functions/neq.js +2 -0
- package/node_modules/semver/functions/parse.js +2 -0
- package/node_modules/semver/functions/patch.js +2 -0
- package/node_modules/semver/functions/prerelease.js +2 -0
- package/node_modules/semver/functions/rcompare.js +2 -0
- package/node_modules/semver/functions/rsort.js +2 -0
- package/node_modules/semver/functions/satisfies.js +2 -0
- package/node_modules/semver/functions/sort.js +2 -0
- package/node_modules/semver/functions/valid.js +2 -0
- package/node_modules/semver/index.js +2 -0
- package/node_modules/semver/internal/constants.js +2 -0
- package/node_modules/semver/internal/debug.js +2 -0
- package/node_modules/semver/internal/identifiers.js +2 -0
- package/node_modules/semver/internal/lrucache.js +2 -0
- package/node_modules/semver/internal/parse-options.js +2 -0
- package/node_modules/semver/internal/re.js +8 -4
- package/node_modules/semver/package.json +3 -3
- package/node_modules/semver/preload.js +2 -0
- package/node_modules/semver/ranges/gtr.js +2 -0
- package/node_modules/semver/ranges/intersects.js +2 -0
- package/node_modules/semver/ranges/ltr.js +2 -0
- package/node_modules/semver/ranges/max-satisfying.js +2 -0
- package/node_modules/semver/ranges/min-satisfying.js +2 -0
- package/node_modules/semver/ranges/min-version.js +2 -0
- package/node_modules/semver/ranges/outside.js +2 -0
- package/node_modules/semver/ranges/simplify.js +2 -0
- package/node_modules/semver/ranges/subset.js +2 -0
- package/node_modules/semver/ranges/to-comparators.js +2 -0
- package/node_modules/semver/ranges/valid.js +2 -0
- package/package.json +20 -20
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@slack/logger/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
- package/node_modules/@slack/logger/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/@slack/logger/node_modules/undici-types/filereader.d.ts +0 -54
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
- package/node_modules/@slack/web-api/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/@slack/web-api/node_modules/undici-types/filereader.d.ts +0 -54
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
- package/node_modules/@types/cacheable-request/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/@types/cacheable-request/node_modules/undici-types/filereader.d.ts +0 -54
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/keyv/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
- package/node_modules/@types/keyv/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +0 -54
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/node_modules/@types/responselike/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
- package/node_modules/@types/responselike/node_modules/undici-types/file.d.ts +0 -39
- package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +0 -54
- package/node_modules/regenerator-runtime/LICENSE +0 -21
- package/node_modules/regenerator-runtime/README.md +0 -31
- package/node_modules/regenerator-runtime/package.json +0 -19
- package/node_modules/regenerator-runtime/path.js +0 -11
- package/node_modules/regenerator-runtime/runtime.js +0 -761
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* ```js
|
|
7
7
|
* import util from 'node:util';
|
|
8
8
|
* ```
|
|
9
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/util.js)
|
|
10
10
|
*/
|
|
11
11
|
declare module "util" {
|
|
12
12
|
import * as types from "node:util/types";
|
|
@@ -133,6 +133,58 @@ declare module "util" {
|
|
|
133
133
|
*/
|
|
134
134
|
columnNumber: number;
|
|
135
135
|
}
|
|
136
|
+
export type DiffEntry = [operation: -1 | 0 | 1, value: string];
|
|
137
|
+
/**
|
|
138
|
+
* `util.diff()` compares two string or array values and returns an array of difference entries.
|
|
139
|
+
* It uses the Myers diff algorithm to compute minimal differences, which is the same algorithm
|
|
140
|
+
* used internally by assertion error messages.
|
|
141
|
+
*
|
|
142
|
+
* If the values are equal, an empty array is returned.
|
|
143
|
+
*
|
|
144
|
+
* ```js
|
|
145
|
+
* const { diff } = require('node:util');
|
|
146
|
+
*
|
|
147
|
+
* // Comparing strings
|
|
148
|
+
* const actualString = '12345678';
|
|
149
|
+
* const expectedString = '12!!5!7!';
|
|
150
|
+
* console.log(diff(actualString, expectedString));
|
|
151
|
+
* // [
|
|
152
|
+
* // [0, '1'],
|
|
153
|
+
* // [0, '2'],
|
|
154
|
+
* // [1, '3'],
|
|
155
|
+
* // [1, '4'],
|
|
156
|
+
* // [-1, '!'],
|
|
157
|
+
* // [-1, '!'],
|
|
158
|
+
* // [0, '5'],
|
|
159
|
+
* // [1, '6'],
|
|
160
|
+
* // [-1, '!'],
|
|
161
|
+
* // [0, '7'],
|
|
162
|
+
* // [1, '8'],
|
|
163
|
+
* // [-1, '!'],
|
|
164
|
+
* // ]
|
|
165
|
+
* // Comparing arrays
|
|
166
|
+
* const actualArray = ['1', '2', '3'];
|
|
167
|
+
* const expectedArray = ['1', '3', '4'];
|
|
168
|
+
* console.log(diff(actualArray, expectedArray));
|
|
169
|
+
* // [
|
|
170
|
+
* // [0, '1'],
|
|
171
|
+
* // [1, '2'],
|
|
172
|
+
* // [0, '3'],
|
|
173
|
+
* // [-1, '4'],
|
|
174
|
+
* // ]
|
|
175
|
+
* // Equal values return empty array
|
|
176
|
+
* console.log(diff('same', 'same'));
|
|
177
|
+
* // []
|
|
178
|
+
* ```
|
|
179
|
+
* @since v22.15.0
|
|
180
|
+
* @experimental
|
|
181
|
+
* @param actual The first value to compare
|
|
182
|
+
* @param expected The second value to compare
|
|
183
|
+
* @returns An array of difference entries. Each entry is an array with two elements:
|
|
184
|
+
* * Index 0: `number` Operation code: `-1` for delete, `0` for no-op/unchanged, `1` for insert
|
|
185
|
+
* * Index 1: `string` The value associated with the operation
|
|
186
|
+
*/
|
|
187
|
+
export function diff(actual: string | readonly string[], expected: string | readonly string[]): DiffEntry[];
|
|
136
188
|
/**
|
|
137
189
|
* The `util.format()` method returns a formatted string using the first argument
|
|
138
190
|
* as a `printf`-like format string which can contain zero or more format
|
|
@@ -203,10 +255,10 @@ declare module "util" {
|
|
|
203
255
|
* the caller function.
|
|
204
256
|
*
|
|
205
257
|
* ```js
|
|
206
|
-
*
|
|
258
|
+
* import { getCallSites } from 'node:util';
|
|
207
259
|
*
|
|
208
260
|
* function exampleFunction() {
|
|
209
|
-
* const callSites =
|
|
261
|
+
* const callSites = getCallSites();
|
|
210
262
|
*
|
|
211
263
|
* console.log('Call Sites:');
|
|
212
264
|
* callSites.forEach((callSite, index) => {
|
|
@@ -245,13 +297,13 @@ declare module "util" {
|
|
|
245
297
|
* `sourceMap` will be true by default.
|
|
246
298
|
*
|
|
247
299
|
* ```ts
|
|
248
|
-
* import
|
|
300
|
+
* import { getCallSites } from 'node:util';
|
|
249
301
|
*
|
|
250
302
|
* interface Foo {
|
|
251
303
|
* foo: string;
|
|
252
304
|
* }
|
|
253
305
|
*
|
|
254
|
-
* const callSites =
|
|
306
|
+
* const callSites = getCallSites({ sourceMap: true });
|
|
255
307
|
*
|
|
256
308
|
* // With sourceMap:
|
|
257
309
|
* // Function Name: ''
|
|
@@ -308,26 +360,13 @@ declare module "util" {
|
|
|
308
360
|
*
|
|
309
361
|
* ```js
|
|
310
362
|
* fs.access('file/that/does/not/exist', (err) => {
|
|
311
|
-
* const
|
|
312
|
-
* console.error(
|
|
363
|
+
* const message = util.getSystemErrorMessage(err.errno);
|
|
364
|
+
* console.error(message); // no such file or directory
|
|
313
365
|
* });
|
|
314
366
|
* ```
|
|
315
367
|
* @since v22.12.0
|
|
316
368
|
*/
|
|
317
369
|
export function getSystemErrorMessage(err: number): string;
|
|
318
|
-
/**
|
|
319
|
-
* The `util.log()` method prints the given `string` to `stdout` with an included
|
|
320
|
-
* timestamp.
|
|
321
|
-
*
|
|
322
|
-
* ```js
|
|
323
|
-
* import util from 'node:util';
|
|
324
|
-
*
|
|
325
|
-
* util.log('Timestamped message.');
|
|
326
|
-
* ```
|
|
327
|
-
* @since v0.3.0
|
|
328
|
-
* @deprecated Since v6.0.0 - Use a third party module instead.
|
|
329
|
-
*/
|
|
330
|
-
export function log(string: string): void;
|
|
331
370
|
/**
|
|
332
371
|
* Returns the `string` after replacing any surrogate code points
|
|
333
372
|
* (or equivalently, any unpaired surrogate code units) with the
|
|
@@ -339,7 +378,6 @@ declare module "util" {
|
|
|
339
378
|
* Creates and returns an `AbortController` instance whose `AbortSignal` is marked
|
|
340
379
|
* as transferable and can be used with `structuredClone()` or `postMessage()`.
|
|
341
380
|
* @since v18.11.0
|
|
342
|
-
* @experimental
|
|
343
381
|
* @returns A transferable AbortController
|
|
344
382
|
*/
|
|
345
383
|
export function transferableAbortController(): AbortController;
|
|
@@ -352,7 +390,6 @@ declare module "util" {
|
|
|
352
390
|
* channel.port2.postMessage(signal, [signal]);
|
|
353
391
|
* ```
|
|
354
392
|
* @since v18.11.0
|
|
355
|
-
* @experimental
|
|
356
393
|
* @param signal The AbortSignal
|
|
357
394
|
* @returns The same AbortSignal
|
|
358
395
|
*/
|
|
@@ -383,7 +420,6 @@ declare module "util" {
|
|
|
383
420
|
* });
|
|
384
421
|
* ```
|
|
385
422
|
* @since v19.7.0
|
|
386
|
-
* @experimental
|
|
387
423
|
* @param resource Any non-null object tied to the abortable operation and held weakly.
|
|
388
424
|
* If `resource` is garbage collected before the `signal` aborts, the promise remains pending,
|
|
389
425
|
* allowing Node.js to stop tracking it.
|
|
@@ -394,7 +430,8 @@ declare module "util" {
|
|
|
394
430
|
* The `util.inspect()` method returns a string representation of `object` that is
|
|
395
431
|
* intended for debugging. The output of `util.inspect` may change at any time
|
|
396
432
|
* and should not be depended upon programmatically. Additional `options` may be
|
|
397
|
-
* passed that alter the result.
|
|
433
|
+
* passed that alter the result.
|
|
434
|
+
* `util.inspect()` will use the constructor's name and/or `@@toStringTag` to make
|
|
398
435
|
* an identifiable tag for an inspected value.
|
|
399
436
|
*
|
|
400
437
|
* ```js
|
|
@@ -442,7 +479,7 @@ declare module "util" {
|
|
|
442
479
|
* The following example highlights the effect of the `compact` option:
|
|
443
480
|
*
|
|
444
481
|
* ```js
|
|
445
|
-
* import
|
|
482
|
+
* import { inspect } from 'node:util';
|
|
446
483
|
*
|
|
447
484
|
* const o = {
|
|
448
485
|
* a: [1, 2, [[
|
|
@@ -452,7 +489,7 @@ declare module "util" {
|
|
|
452
489
|
* 'foo']], 4],
|
|
453
490
|
* b: new Map([['za', 1], ['zb', 'test']]),
|
|
454
491
|
* };
|
|
455
|
-
* console.log(
|
|
492
|
+
* console.log(inspect(o, { compact: true, depth: 5, breakLength: 80 }));
|
|
456
493
|
*
|
|
457
494
|
* // { a:
|
|
458
495
|
* // [ 1,
|
|
@@ -464,7 +501,7 @@ declare module "util" {
|
|
|
464
501
|
* // b: Map(2) { 'za' => 1, 'zb' => 'test' } }
|
|
465
502
|
*
|
|
466
503
|
* // Setting `compact` to false or an integer creates more reader friendly output.
|
|
467
|
-
* console.log(
|
|
504
|
+
* console.log(inspect(o, { compact: false, depth: 5, breakLength: 80 }));
|
|
468
505
|
*
|
|
469
506
|
* // {
|
|
470
507
|
* // a: [
|
|
@@ -491,11 +528,10 @@ declare module "util" {
|
|
|
491
528
|
* // single line.
|
|
492
529
|
* ```
|
|
493
530
|
*
|
|
494
|
-
* The `showHidden` option allows
|
|
495
|
-
* [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries to be
|
|
531
|
+
* The `showHidden` option allows `WeakMap` and `WeakSet` entries to be
|
|
496
532
|
* inspected. If there are more entries than `maxArrayLength`, there is no
|
|
497
|
-
* guarantee which entries are displayed. That means retrieving the same
|
|
498
|
-
* result in different output. Furthermore, entries
|
|
533
|
+
* guarantee which entries are displayed. That means retrieving the same
|
|
534
|
+
* `WeakSet` entries twice may result in different output. Furthermore, entries
|
|
499
535
|
* with no remaining strong references may be garbage collected at any time.
|
|
500
536
|
*
|
|
501
537
|
* ```js
|
|
@@ -543,10 +579,10 @@ declare module "util" {
|
|
|
543
579
|
* ```js
|
|
544
580
|
* import { inspect } from 'node:util';
|
|
545
581
|
*
|
|
546
|
-
* const thousand =
|
|
547
|
-
* const million =
|
|
548
|
-
* const bigNumber =
|
|
549
|
-
* const bigDecimal =
|
|
582
|
+
* const thousand = 1000;
|
|
583
|
+
* const million = 1000000;
|
|
584
|
+
* const bigNumber = 123456789n;
|
|
585
|
+
* const bigDecimal = 1234.12345;
|
|
550
586
|
*
|
|
551
587
|
* console.log(inspect(thousand, { numericSeparator: true }));
|
|
552
588
|
* // 1_000
|
|
@@ -602,84 +638,23 @@ declare module "util" {
|
|
|
602
638
|
*/
|
|
603
639
|
export function isArray(object: unknown): object is unknown[];
|
|
604
640
|
/**
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
* ```js
|
|
608
|
-
* import util from 'node:util';
|
|
609
|
-
*
|
|
610
|
-
* util.isRegExp(/some regexp/);
|
|
611
|
-
* // Returns: true
|
|
612
|
-
* util.isRegExp(new RegExp('another regexp'));
|
|
613
|
-
* // Returns: true
|
|
614
|
-
* util.isRegExp({});
|
|
615
|
-
* // Returns: false
|
|
616
|
-
* ```
|
|
617
|
-
* @since v0.6.0
|
|
618
|
-
* @deprecated Since v4.0.0 - Deprecated
|
|
619
|
-
*/
|
|
620
|
-
export function isRegExp(object: unknown): object is RegExp;
|
|
621
|
-
/**
|
|
622
|
-
* Returns `true` if the given `object` is a `Date`. Otherwise, returns `false`.
|
|
623
|
-
*
|
|
624
|
-
* ```js
|
|
625
|
-
* import util from 'node:util';
|
|
626
|
-
*
|
|
627
|
-
* util.isDate(new Date());
|
|
628
|
-
* // Returns: true
|
|
629
|
-
* util.isDate(Date());
|
|
630
|
-
* // false (without 'new' returns a String)
|
|
631
|
-
* util.isDate({});
|
|
632
|
-
* // Returns: false
|
|
633
|
-
* ```
|
|
634
|
-
* @since v0.6.0
|
|
635
|
-
* @deprecated Since v4.0.0 - Use {@link types.isDate} instead.
|
|
636
|
-
*/
|
|
637
|
-
export function isDate(object: unknown): object is Date;
|
|
638
|
-
/**
|
|
639
|
-
* Returns `true` if the given `object` is an `Error`. Otherwise, returns `false`.
|
|
640
|
-
*
|
|
641
|
-
* ```js
|
|
642
|
-
* import util from 'node:util';
|
|
643
|
-
*
|
|
644
|
-
* util.isError(new Error());
|
|
645
|
-
* // Returns: true
|
|
646
|
-
* util.isError(new TypeError());
|
|
647
|
-
* // Returns: true
|
|
648
|
-
* util.isError({ name: 'Error', message: 'an error occurred' });
|
|
649
|
-
* // Returns: false
|
|
650
|
-
* ```
|
|
651
|
-
*
|
|
652
|
-
* This method relies on `Object.prototype.toString()` behavior. It is
|
|
653
|
-
* possible to obtain an incorrect result when the `object` argument manipulates `@@toStringTag`.
|
|
654
|
-
*
|
|
655
|
-
* ```js
|
|
656
|
-
* import util from 'node:util';
|
|
657
|
-
* const obj = { name: 'Error', message: 'an error occurred' };
|
|
658
|
-
*
|
|
659
|
-
* util.isError(obj);
|
|
660
|
-
* // Returns: false
|
|
661
|
-
* obj[Symbol.toStringTag] = 'Error';
|
|
662
|
-
* util.isError(obj);
|
|
663
|
-
* // Returns: true
|
|
664
|
-
* ```
|
|
665
|
-
* @since v0.6.0
|
|
666
|
-
* @deprecated Since v4.0.0 - Use {@link types.isNativeError} instead.
|
|
667
|
-
*/
|
|
668
|
-
export function isError(object: unknown): object is Error;
|
|
669
|
-
/**
|
|
670
|
-
* Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and `extends` keywords to get language level inheritance support. Also note
|
|
641
|
+
* Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and
|
|
642
|
+
* `extends` keywords to get language level inheritance support. Also note
|
|
671
643
|
* that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179).
|
|
672
644
|
*
|
|
673
|
-
* Inherit the prototype methods from one
|
|
674
|
-
*
|
|
645
|
+
* Inherit the prototype methods from one
|
|
646
|
+
* [constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor) into another. The
|
|
647
|
+
* prototype of `constructor` will be set to a new object created from
|
|
648
|
+
* `superConstructor`.
|
|
675
649
|
*
|
|
676
|
-
* This mainly adds some input validation on top of
|
|
650
|
+
* This mainly adds some input validation on top of
|
|
651
|
+
* `Object.setPrototypeOf(constructor.prototype, superConstructor.prototype)`.
|
|
677
652
|
* As an additional convenience, `superConstructor` will be accessible
|
|
678
653
|
* through the `constructor.super_` property.
|
|
679
654
|
*
|
|
680
655
|
* ```js
|
|
681
|
-
*
|
|
682
|
-
*
|
|
656
|
+
* const util = require('node:util');
|
|
657
|
+
* const EventEmitter = require('node:events');
|
|
683
658
|
*
|
|
684
659
|
* function MyStream() {
|
|
685
660
|
* EventEmitter.call(this);
|
|
@@ -726,18 +701,42 @@ declare module "util" {
|
|
|
726
701
|
export function inherits(constructor: unknown, superConstructor: unknown): void;
|
|
727
702
|
export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void;
|
|
728
703
|
export interface DebugLogger extends DebugLoggerFunction {
|
|
704
|
+
/**
|
|
705
|
+
* The `util.debuglog().enabled` getter is used to create a test that can be used
|
|
706
|
+
* in conditionals based on the existence of the `NODE_DEBUG` environment variable.
|
|
707
|
+
* If the `section` name appears within the value of that environment variable,
|
|
708
|
+
* then the returned value will be `true`. If not, then the returned value will be
|
|
709
|
+
* `false`.
|
|
710
|
+
*
|
|
711
|
+
* ```js
|
|
712
|
+
* import { debuglog } from 'node:util';
|
|
713
|
+
* const enabled = debuglog('foo').enabled;
|
|
714
|
+
* if (enabled) {
|
|
715
|
+
* console.log('hello from foo [%d]', 123);
|
|
716
|
+
* }
|
|
717
|
+
* ```
|
|
718
|
+
*
|
|
719
|
+
* If this program is run with `NODE_DEBUG=foo` in the environment, then it will
|
|
720
|
+
* output something like:
|
|
721
|
+
*
|
|
722
|
+
* ```console
|
|
723
|
+
* hello from foo [123]
|
|
724
|
+
* ```
|
|
725
|
+
*/
|
|
729
726
|
enabled: boolean;
|
|
730
727
|
}
|
|
731
728
|
/**
|
|
732
729
|
* The `util.debuglog()` method is used to create a function that conditionally
|
|
733
|
-
* writes debug messages to `stderr` based on the existence of the `NODE_DEBUG`
|
|
734
|
-
* environment variable
|
|
730
|
+
* writes debug messages to `stderr` based on the existence of the `NODE_DEBUG`
|
|
731
|
+
* environment variable. If the `section` name appears within the value of that
|
|
732
|
+
* environment variable, then the returned function operates similar to
|
|
733
|
+
* `console.error()`. If not, then the returned function is a no-op.
|
|
735
734
|
*
|
|
736
735
|
* ```js
|
|
737
|
-
* import
|
|
738
|
-
* const
|
|
736
|
+
* import { debuglog } from 'node:util';
|
|
737
|
+
* const log = debuglog('foo');
|
|
739
738
|
*
|
|
740
|
-
*
|
|
739
|
+
* log('hello from foo [%d]', 123);
|
|
741
740
|
* ```
|
|
742
741
|
*
|
|
743
742
|
* If this program is run with `NODE_DEBUG=foo` in the environment, then
|
|
@@ -753,10 +752,10 @@ declare module "util" {
|
|
|
753
752
|
* The `section` supports wildcard also:
|
|
754
753
|
*
|
|
755
754
|
* ```js
|
|
756
|
-
* import
|
|
757
|
-
* const
|
|
755
|
+
* import { debuglog } from 'node:util';
|
|
756
|
+
* const log = debuglog('foo');
|
|
758
757
|
*
|
|
759
|
-
*
|
|
758
|
+
* log('hi there, it\'s foo-bar [%d]', 2333);
|
|
760
759
|
* ```
|
|
761
760
|
*
|
|
762
761
|
* if it is run with `NODE_DEBUG=foo*` in the environment, then it will output
|
|
@@ -766,18 +765,19 @@ declare module "util" {
|
|
|
766
765
|
* FOO-BAR 3257: hi there, it's foo-bar [2333]
|
|
767
766
|
* ```
|
|
768
767
|
*
|
|
769
|
-
* Multiple comma-separated `section` names may be specified in the `NODE_DEBUG`
|
|
768
|
+
* Multiple comma-separated `section` names may be specified in the `NODE_DEBUG`
|
|
769
|
+
* environment variable: `NODE_DEBUG=fs,net,tls`.
|
|
770
770
|
*
|
|
771
771
|
* The optional `callback` argument can be used to replace the logging function
|
|
772
772
|
* with a different function that doesn't have any initialization or
|
|
773
773
|
* unnecessary wrapping.
|
|
774
774
|
*
|
|
775
775
|
* ```js
|
|
776
|
-
* import
|
|
777
|
-
* let
|
|
776
|
+
* import { debuglog } from 'node:util';
|
|
777
|
+
* let log = debuglog('internals', (debug) => {
|
|
778
778
|
* // Replace with a logging function that optimizes out
|
|
779
779
|
* // testing if the section is enabled
|
|
780
|
-
*
|
|
780
|
+
* log = debug;
|
|
781
781
|
* });
|
|
782
782
|
* ```
|
|
783
783
|
* @since v0.11.3
|
|
@@ -786,231 +786,21 @@ declare module "util" {
|
|
|
786
786
|
* @return The logging function
|
|
787
787
|
*/
|
|
788
788
|
export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
|
|
789
|
-
export
|
|
790
|
-
/**
|
|
791
|
-
* Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`.
|
|
792
|
-
*
|
|
793
|
-
* ```js
|
|
794
|
-
* import util from 'node:util';
|
|
795
|
-
*
|
|
796
|
-
* util.isBoolean(1);
|
|
797
|
-
* // Returns: false
|
|
798
|
-
* util.isBoolean(0);
|
|
799
|
-
* // Returns: false
|
|
800
|
-
* util.isBoolean(false);
|
|
801
|
-
* // Returns: true
|
|
802
|
-
* ```
|
|
803
|
-
* @since v0.11.5
|
|
804
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'boolean'` instead.
|
|
805
|
-
*/
|
|
806
|
-
export function isBoolean(object: unknown): object is boolean;
|
|
807
|
-
/**
|
|
808
|
-
* Returns `true` if the given `object` is a `Buffer`. Otherwise, returns `false`.
|
|
809
|
-
*
|
|
810
|
-
* ```js
|
|
811
|
-
* import util from 'node:util';
|
|
812
|
-
*
|
|
813
|
-
* util.isBuffer({ length: 0 });
|
|
814
|
-
* // Returns: false
|
|
815
|
-
* util.isBuffer([]);
|
|
816
|
-
* // Returns: false
|
|
817
|
-
* util.isBuffer(Buffer.from('hello world'));
|
|
818
|
-
* // Returns: true
|
|
819
|
-
* ```
|
|
820
|
-
* @since v0.11.5
|
|
821
|
-
* @deprecated Since v4.0.0 - Use `isBuffer` instead.
|
|
822
|
-
*/
|
|
823
|
-
export function isBuffer(object: unknown): object is Buffer;
|
|
824
|
-
/**
|
|
825
|
-
* Returns `true` if the given `object` is a `Function`. Otherwise, returns `false`.
|
|
826
|
-
*
|
|
827
|
-
* ```js
|
|
828
|
-
* import util from 'node:util';
|
|
829
|
-
*
|
|
830
|
-
* function Foo() {}
|
|
831
|
-
* const Bar = () => {};
|
|
832
|
-
*
|
|
833
|
-
* util.isFunction({});
|
|
834
|
-
* // Returns: false
|
|
835
|
-
* util.isFunction(Foo);
|
|
836
|
-
* // Returns: true
|
|
837
|
-
* util.isFunction(Bar);
|
|
838
|
-
* // Returns: true
|
|
839
|
-
* ```
|
|
840
|
-
* @since v0.11.5
|
|
841
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'function'` instead.
|
|
842
|
-
*/
|
|
843
|
-
export function isFunction(object: unknown): boolean;
|
|
844
|
-
/**
|
|
845
|
-
* Returns `true` if the given `object` is strictly `null`. Otherwise, returns`false`.
|
|
846
|
-
*
|
|
847
|
-
* ```js
|
|
848
|
-
* import util from 'node:util';
|
|
849
|
-
*
|
|
850
|
-
* util.isNull(0);
|
|
851
|
-
* // Returns: false
|
|
852
|
-
* util.isNull(undefined);
|
|
853
|
-
* // Returns: false
|
|
854
|
-
* util.isNull(null);
|
|
855
|
-
* // Returns: true
|
|
856
|
-
* ```
|
|
857
|
-
* @since v0.11.5
|
|
858
|
-
* @deprecated Since v4.0.0 - Use `value === null` instead.
|
|
859
|
-
*/
|
|
860
|
-
export function isNull(object: unknown): object is null;
|
|
861
|
-
/**
|
|
862
|
-
* Returns `true` if the given `object` is `null` or `undefined`. Otherwise,
|
|
863
|
-
* returns `false`.
|
|
864
|
-
*
|
|
865
|
-
* ```js
|
|
866
|
-
* import util from 'node:util';
|
|
867
|
-
*
|
|
868
|
-
* util.isNullOrUndefined(0);
|
|
869
|
-
* // Returns: false
|
|
870
|
-
* util.isNullOrUndefined(undefined);
|
|
871
|
-
* // Returns: true
|
|
872
|
-
* util.isNullOrUndefined(null);
|
|
873
|
-
* // Returns: true
|
|
874
|
-
* ```
|
|
875
|
-
* @since v0.11.5
|
|
876
|
-
* @deprecated Since v4.0.0 - Use `value === undefined || value === null` instead.
|
|
877
|
-
*/
|
|
878
|
-
export function isNullOrUndefined(object: unknown): object is null | undefined;
|
|
879
|
-
/**
|
|
880
|
-
* Returns `true` if the given `object` is a `Number`. Otherwise, returns `false`.
|
|
881
|
-
*
|
|
882
|
-
* ```js
|
|
883
|
-
* import util from 'node:util';
|
|
884
|
-
*
|
|
885
|
-
* util.isNumber(false);
|
|
886
|
-
* // Returns: false
|
|
887
|
-
* util.isNumber(Infinity);
|
|
888
|
-
* // Returns: true
|
|
889
|
-
* util.isNumber(0);
|
|
890
|
-
* // Returns: true
|
|
891
|
-
* util.isNumber(NaN);
|
|
892
|
-
* // Returns: true
|
|
893
|
-
* ```
|
|
894
|
-
* @since v0.11.5
|
|
895
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'number'` instead.
|
|
896
|
-
*/
|
|
897
|
-
export function isNumber(object: unknown): object is number;
|
|
898
|
-
/**
|
|
899
|
-
* Returns `true` if the given `object` is strictly an `Object`**and** not a`Function` (even though functions are objects in JavaScript).
|
|
900
|
-
* Otherwise, returns `false`.
|
|
901
|
-
*
|
|
902
|
-
* ```js
|
|
903
|
-
* import util from 'node:util';
|
|
904
|
-
*
|
|
905
|
-
* util.isObject(5);
|
|
906
|
-
* // Returns: false
|
|
907
|
-
* util.isObject(null);
|
|
908
|
-
* // Returns: false
|
|
909
|
-
* util.isObject({});
|
|
910
|
-
* // Returns: true
|
|
911
|
-
* util.isObject(() => {});
|
|
912
|
-
* // Returns: false
|
|
913
|
-
* ```
|
|
914
|
-
* @since v0.11.5
|
|
915
|
-
* @deprecated Since v4.0.0 - Use `value !== null && typeof value === 'object'` instead.
|
|
916
|
-
*/
|
|
917
|
-
export function isObject(object: unknown): boolean;
|
|
918
|
-
/**
|
|
919
|
-
* Returns `true` if the given `object` is a primitive type. Otherwise, returns`false`.
|
|
920
|
-
*
|
|
921
|
-
* ```js
|
|
922
|
-
* import util from 'node:util';
|
|
923
|
-
*
|
|
924
|
-
* util.isPrimitive(5);
|
|
925
|
-
* // Returns: true
|
|
926
|
-
* util.isPrimitive('foo');
|
|
927
|
-
* // Returns: true
|
|
928
|
-
* util.isPrimitive(false);
|
|
929
|
-
* // Returns: true
|
|
930
|
-
* util.isPrimitive(null);
|
|
931
|
-
* // Returns: true
|
|
932
|
-
* util.isPrimitive(undefined);
|
|
933
|
-
* // Returns: true
|
|
934
|
-
* util.isPrimitive({});
|
|
935
|
-
* // Returns: false
|
|
936
|
-
* util.isPrimitive(() => {});
|
|
937
|
-
* // Returns: false
|
|
938
|
-
* util.isPrimitive(/^$/);
|
|
939
|
-
* // Returns: false
|
|
940
|
-
* util.isPrimitive(new Date());
|
|
941
|
-
* // Returns: false
|
|
942
|
-
* ```
|
|
943
|
-
* @since v0.11.5
|
|
944
|
-
* @deprecated Since v4.0.0 - Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead.
|
|
945
|
-
*/
|
|
946
|
-
export function isPrimitive(object: unknown): boolean;
|
|
947
|
-
/**
|
|
948
|
-
* Returns `true` if the given `object` is a `string`. Otherwise, returns `false`.
|
|
949
|
-
*
|
|
950
|
-
* ```js
|
|
951
|
-
* import util from 'node:util';
|
|
952
|
-
*
|
|
953
|
-
* util.isString('');
|
|
954
|
-
* // Returns: true
|
|
955
|
-
* util.isString('foo');
|
|
956
|
-
* // Returns: true
|
|
957
|
-
* util.isString(String('foo'));
|
|
958
|
-
* // Returns: true
|
|
959
|
-
* util.isString(5);
|
|
960
|
-
* // Returns: false
|
|
961
|
-
* ```
|
|
962
|
-
* @since v0.11.5
|
|
963
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'string'` instead.
|
|
964
|
-
*/
|
|
965
|
-
export function isString(object: unknown): object is string;
|
|
966
|
-
/**
|
|
967
|
-
* Returns `true` if the given `object` is a `Symbol`. Otherwise, returns `false`.
|
|
968
|
-
*
|
|
969
|
-
* ```js
|
|
970
|
-
* import util from 'node:util';
|
|
971
|
-
*
|
|
972
|
-
* util.isSymbol(5);
|
|
973
|
-
* // Returns: false
|
|
974
|
-
* util.isSymbol('foo');
|
|
975
|
-
* // Returns: false
|
|
976
|
-
* util.isSymbol(Symbol('foo'));
|
|
977
|
-
* // Returns: true
|
|
978
|
-
* ```
|
|
979
|
-
* @since v0.11.5
|
|
980
|
-
* @deprecated Since v4.0.0 - Use `typeof value === 'symbol'` instead.
|
|
981
|
-
*/
|
|
982
|
-
export function isSymbol(object: unknown): object is symbol;
|
|
983
|
-
/**
|
|
984
|
-
* Returns `true` if the given `object` is `undefined`. Otherwise, returns `false`.
|
|
985
|
-
*
|
|
986
|
-
* ```js
|
|
987
|
-
* import util from 'node:util';
|
|
988
|
-
*
|
|
989
|
-
* const foo = undefined;
|
|
990
|
-
* util.isUndefined(5);
|
|
991
|
-
* // Returns: false
|
|
992
|
-
* util.isUndefined(foo);
|
|
993
|
-
* // Returns: true
|
|
994
|
-
* util.isUndefined(null);
|
|
995
|
-
* // Returns: false
|
|
996
|
-
* ```
|
|
997
|
-
* @since v0.11.5
|
|
998
|
-
* @deprecated Since v4.0.0 - Use `value === undefined` instead.
|
|
999
|
-
*/
|
|
1000
|
-
export function isUndefined(object: unknown): object is undefined;
|
|
789
|
+
export { debuglog as debug };
|
|
1001
790
|
/**
|
|
1002
791
|
* The `util.deprecate()` method wraps `fn` (which may be a function or class) in
|
|
1003
792
|
* such a way that it is marked as deprecated.
|
|
1004
793
|
*
|
|
1005
794
|
* ```js
|
|
1006
|
-
* import
|
|
795
|
+
* import { deprecate } from 'node:util';
|
|
1007
796
|
*
|
|
1008
|
-
*
|
|
797
|
+
* export const obsoleteFunction = deprecate(() => {
|
|
1009
798
|
* // Do something here.
|
|
1010
799
|
* }, 'obsoleteFunction() is deprecated. Use newShinyFunction() instead.');
|
|
1011
800
|
* ```
|
|
1012
801
|
*
|
|
1013
|
-
* When called, `util.deprecate()` will return a function that will emit a
|
|
802
|
+
* When called, `util.deprecate()` will return a function that will emit a
|
|
803
|
+
* `DeprecationWarning` using the `'warning'` event. The warning will
|
|
1014
804
|
* be emitted and printed to `stderr` the first time the returned function is
|
|
1015
805
|
* called. After the warning is emitted, the wrapped function is called without
|
|
1016
806
|
* emitting a warning.
|
|
@@ -1019,16 +809,24 @@ declare module "util" {
|
|
|
1019
809
|
* the warning will be emitted only once for that `code`.
|
|
1020
810
|
*
|
|
1021
811
|
* ```js
|
|
1022
|
-
* import
|
|
812
|
+
* import { deprecate } from 'node:util';
|
|
1023
813
|
*
|
|
1024
|
-
* const fn1 =
|
|
1025
|
-
*
|
|
814
|
+
* const fn1 = deprecate(
|
|
815
|
+
* () => 'a value',
|
|
816
|
+
* 'deprecation message',
|
|
817
|
+
* 'DEP0001',
|
|
818
|
+
* );
|
|
819
|
+
* const fn2 = deprecate(
|
|
820
|
+
* () => 'a different value',
|
|
821
|
+
* 'other dep message',
|
|
822
|
+
* 'DEP0001',
|
|
823
|
+
* );
|
|
1026
824
|
* fn1(); // Emits a deprecation warning with code DEP0001
|
|
1027
825
|
* fn2(); // Does not emit a deprecation warning because it has the same code
|
|
1028
826
|
* ```
|
|
1029
827
|
*
|
|
1030
828
|
* If either the `--no-deprecation` or `--no-warnings` command-line flags are
|
|
1031
|
-
* used, or if the `process.noDeprecation` property is set to `true`_prior_ to
|
|
829
|
+
* used, or if the `process.noDeprecation` property is set to `true` _prior_ to
|
|
1032
830
|
* the first deprecation warning, the `util.deprecate()` method does nothing.
|
|
1033
831
|
*
|
|
1034
832
|
* If the `--trace-deprecation` or `--trace-warnings` command-line flags are set,
|
|
@@ -1036,10 +834,13 @@ declare module "util" {
|
|
|
1036
834
|
* stack trace are printed to `stderr` the first time the deprecated function is
|
|
1037
835
|
* called.
|
|
1038
836
|
*
|
|
1039
|
-
* If the `--throw-deprecation` command-line flag is set, or the
|
|
837
|
+
* If the `--throw-deprecation` command-line flag is set, or the
|
|
838
|
+
* `process.throwDeprecation` property is set to `true`, then an exception will be
|
|
1040
839
|
* thrown when the deprecated function is called.
|
|
1041
840
|
*
|
|
1042
|
-
* The `--throw-deprecation` command-line flag and `process.throwDeprecation`
|
|
841
|
+
* The `--throw-deprecation` command-line flag and `process.throwDeprecation`
|
|
842
|
+
* property take precedence over `--trace-deprecation` and
|
|
843
|
+
* `process.traceDeprecation`.
|
|
1043
844
|
* @since v0.8.0
|
|
1044
845
|
* @param fn The function that is being deprecated.
|
|
1045
846
|
* @param msg A warning message to display when the deprecated function is invoked.
|
|
@@ -1070,15 +871,16 @@ declare module "util" {
|
|
|
1070
871
|
* Takes an `async` function (or a function that returns a `Promise`) and returns a
|
|
1071
872
|
* function following the error-first callback style, i.e. taking
|
|
1072
873
|
* an `(err, value) => ...` callback as the last argument. In the callback, the
|
|
1073
|
-
* first argument will be the rejection reason (or `null` if the `Promise`
|
|
874
|
+
* first argument will be the rejection reason (or `null` if the `Promise`
|
|
875
|
+
* resolved), and the second argument will be the resolved value.
|
|
1074
876
|
*
|
|
1075
877
|
* ```js
|
|
1076
|
-
* import
|
|
878
|
+
* import { callbackify } from 'node:util';
|
|
1077
879
|
*
|
|
1078
880
|
* async function fn() {
|
|
1079
881
|
* return 'hello world';
|
|
1080
882
|
* }
|
|
1081
|
-
* const callbackFunction =
|
|
883
|
+
* const callbackFunction = callbackify(fn);
|
|
1082
884
|
*
|
|
1083
885
|
* callbackFunction((err, ret) => {
|
|
1084
886
|
* if (err) throw err;
|
|
@@ -1093,11 +895,13 @@ declare module "util" {
|
|
|
1093
895
|
* ```
|
|
1094
896
|
*
|
|
1095
897
|
* The callback is executed asynchronously, and will have a limited stack trace.
|
|
1096
|
-
* If the callback throws, the process will emit an `'uncaughtException'`
|
|
898
|
+
* If the callback throws, the process will emit an `'uncaughtException'`
|
|
899
|
+
* event, and if not handled will exit.
|
|
1097
900
|
*
|
|
1098
901
|
* Since `null` has a special meaning as the first argument to a callback, if a
|
|
1099
902
|
* wrapped function rejects a `Promise` with a falsy value as a reason, the value
|
|
1100
|
-
* is wrapped in an `Error` with the original value stored in a field named
|
|
903
|
+
* is wrapped in an `Error` with the original value stored in a field named
|
|
904
|
+
* `reason`.
|
|
1101
905
|
*
|
|
1102
906
|
* ```js
|
|
1103
907
|
* function fn() {
|
|
@@ -1108,7 +912,7 @@ declare module "util" {
|
|
|
1108
912
|
* callbackFunction((err, ret) => {
|
|
1109
913
|
* // When the Promise was rejected with `null` it is wrapped with an Error and
|
|
1110
914
|
* // the original value is stored in `reason`.
|
|
1111
|
-
* err
|
|
915
|
+
* err && Object.hasOwn(err, 'reason') && err.reason === null; // true
|
|
1112
916
|
* });
|
|
1113
917
|
* ```
|
|
1114
918
|
* @since v8.2.0
|
|
@@ -1199,11 +1003,11 @@ declare module "util" {
|
|
|
1199
1003
|
* that returns promises.
|
|
1200
1004
|
*
|
|
1201
1005
|
* ```js
|
|
1202
|
-
* import
|
|
1203
|
-
* import
|
|
1006
|
+
* import { promisify } from 'node:util';
|
|
1007
|
+
* import { stat } from 'node:fs';
|
|
1204
1008
|
*
|
|
1205
|
-
* const
|
|
1206
|
-
*
|
|
1009
|
+
* const promisifiedStat = promisify(stat);
|
|
1010
|
+
* promisifiedStat('.').then((stats) => {
|
|
1207
1011
|
* // Do something with `stats`
|
|
1208
1012
|
* }).catch((error) => {
|
|
1209
1013
|
* // Handle the error.
|
|
@@ -1213,23 +1017,25 @@ declare module "util" {
|
|
|
1213
1017
|
* Or, equivalently using `async function`s:
|
|
1214
1018
|
*
|
|
1215
1019
|
* ```js
|
|
1216
|
-
* import
|
|
1217
|
-
* import
|
|
1020
|
+
* import { promisify } from 'node:util';
|
|
1021
|
+
* import { stat } from 'node:fs';
|
|
1218
1022
|
*
|
|
1219
|
-
* const
|
|
1023
|
+
* const promisifiedStat = promisify(stat);
|
|
1220
1024
|
*
|
|
1221
1025
|
* async function callStat() {
|
|
1222
|
-
* const stats = await
|
|
1026
|
+
* const stats = await promisifiedStat('.');
|
|
1223
1027
|
* console.log(`This directory is owned by ${stats.uid}`);
|
|
1224
1028
|
* }
|
|
1225
1029
|
*
|
|
1226
1030
|
* callStat();
|
|
1227
1031
|
* ```
|
|
1228
1032
|
*
|
|
1229
|
-
* If there is an `original[util.promisify.custom]` property present, `promisify`
|
|
1033
|
+
* If there is an `original[util.promisify.custom]` property present, `promisify`
|
|
1034
|
+
* will return its value, see [Custom promisified functions](https://nodejs.org/docs/latest-v24.x/api/util.html#custom-promisified-functions).
|
|
1230
1035
|
*
|
|
1231
1036
|
* `promisify()` assumes that `original` is a function taking a callback as its
|
|
1232
|
-
* final argument in all cases. If `original` is not a function, `promisify()`
|
|
1037
|
+
* final argument in all cases. If `original` is not a function, `promisify()`
|
|
1038
|
+
* will throw an error. If `original` is a function but its last argument is not
|
|
1233
1039
|
* an error-first callback, it will still be passed an error-first
|
|
1234
1040
|
* callback as its last argument.
|
|
1235
1041
|
*
|
|
@@ -1237,7 +1043,7 @@ declare module "util" {
|
|
|
1237
1043
|
* work as expected unless handled specially:
|
|
1238
1044
|
*
|
|
1239
1045
|
* ```js
|
|
1240
|
-
* import
|
|
1046
|
+
* import { promisify } from 'node:util';
|
|
1241
1047
|
*
|
|
1242
1048
|
* class Foo {
|
|
1243
1049
|
* constructor() {
|
|
@@ -1251,8 +1057,8 @@ declare module "util" {
|
|
|
1251
1057
|
*
|
|
1252
1058
|
* const foo = new Foo();
|
|
1253
1059
|
*
|
|
1254
|
-
* const naiveBar =
|
|
1255
|
-
* // TypeError: Cannot read
|
|
1060
|
+
* const naiveBar = promisify(foo.bar);
|
|
1061
|
+
* // TypeError: Cannot read properties of undefined (reading 'a')
|
|
1256
1062
|
* // naiveBar().then(a => console.log(a));
|
|
1257
1063
|
*
|
|
1258
1064
|
* naiveBar.call(foo).then((a) => console.log(a)); // '42'
|
|
@@ -1315,7 +1121,7 @@ declare module "util" {
|
|
|
1315
1121
|
* @param content The raw contents of a `.env` file.
|
|
1316
1122
|
* @since v20.12.0
|
|
1317
1123
|
*/
|
|
1318
|
-
export function parseEnv(content: string):
|
|
1124
|
+
export function parseEnv(content: string): NodeJS.Dict<string>;
|
|
1319
1125
|
// https://nodejs.org/docs/latest/api/util.html#foreground-colors
|
|
1320
1126
|
type ForegroundColors =
|
|
1321
1127
|
| "black"
|
|
@@ -1370,16 +1176,42 @@ declare module "util" {
|
|
|
1370
1176
|
| "reset"
|
|
1371
1177
|
| "strikethrough"
|
|
1372
1178
|
| "underline";
|
|
1179
|
+
export interface StyleTextOptions {
|
|
1180
|
+
/**
|
|
1181
|
+
* When true, `stream` is checked to see if it can handle colors.
|
|
1182
|
+
* @default true
|
|
1183
|
+
*/
|
|
1184
|
+
validateStream?: boolean | undefined;
|
|
1185
|
+
/**
|
|
1186
|
+
* A stream that will be validated if it can be colored.
|
|
1187
|
+
* @default process.stdout
|
|
1188
|
+
*/
|
|
1189
|
+
stream?: NodeJS.WritableStream | undefined;
|
|
1190
|
+
}
|
|
1373
1191
|
/**
|
|
1374
|
-
* This function returns a formatted text considering the `format` passed
|
|
1192
|
+
* This function returns a formatted text considering the `format` passed
|
|
1193
|
+
* for printing in a terminal. It is aware of the terminal's capabilities
|
|
1194
|
+
* and acts according to the configuration set via `NO_COLOR`,
|
|
1195
|
+
* `NODE_DISABLE_COLORS` and `FORCE_COLOR` environment variables.
|
|
1375
1196
|
*
|
|
1376
1197
|
* ```js
|
|
1377
1198
|
* import { styleText } from 'node:util';
|
|
1378
|
-
*
|
|
1379
|
-
*
|
|
1199
|
+
* import { stderr } from 'node:process';
|
|
1200
|
+
*
|
|
1201
|
+
* const successMessage = styleText('green', 'Success!');
|
|
1202
|
+
* console.log(successMessage);
|
|
1203
|
+
*
|
|
1204
|
+
* const errorMessage = styleText(
|
|
1205
|
+
* 'red',
|
|
1206
|
+
* 'Error! Error!',
|
|
1207
|
+
* // Validate if process.stderr has TTY
|
|
1208
|
+
* { stream: stderr },
|
|
1209
|
+
* );
|
|
1210
|
+
* console.error(errorMessage);
|
|
1380
1211
|
* ```
|
|
1381
1212
|
*
|
|
1382
|
-
* `util.inspect.colors` also provides text formats such as `italic`, and
|
|
1213
|
+
* `util.inspect.colors` also provides text formats such as `italic`, and
|
|
1214
|
+
* `underline` and you can combine both:
|
|
1383
1215
|
*
|
|
1384
1216
|
* ```js
|
|
1385
1217
|
* console.log(
|
|
@@ -1387,8 +1219,8 @@ declare module "util" {
|
|
|
1387
1219
|
* );
|
|
1388
1220
|
* ```
|
|
1389
1221
|
*
|
|
1390
|
-
* When passing an array of formats, the order of the format applied
|
|
1391
|
-
* might overwrite the previous one.
|
|
1222
|
+
* When passing an array of formats, the order of the format applied
|
|
1223
|
+
* is left to right so the following style might overwrite the previous one.
|
|
1392
1224
|
*
|
|
1393
1225
|
* ```js
|
|
1394
1226
|
* console.log(
|
|
@@ -1396,7 +1228,7 @@ declare module "util" {
|
|
|
1396
1228
|
* );
|
|
1397
1229
|
* ```
|
|
1398
1230
|
*
|
|
1399
|
-
* The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-
|
|
1231
|
+
* The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v24.x/api/util.html#modifiers).
|
|
1400
1232
|
* @param format A text format or an Array of text formats defined in `util.inspect.colors`.
|
|
1401
1233
|
* @param text The text to to be formatted.
|
|
1402
1234
|
* @since v20.12.0
|
|
@@ -1408,6 +1240,7 @@ declare module "util" {
|
|
|
1408
1240
|
| Modifiers
|
|
1409
1241
|
| Array<ForegroundColors | BackgroundColors | Modifiers>,
|
|
1410
1242
|
text: string,
|
|
1243
|
+
options?: StyleTextOptions,
|
|
1411
1244
|
): string;
|
|
1412
1245
|
/**
|
|
1413
1246
|
* An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API.
|
|
@@ -1768,7 +1601,6 @@ declare module "util" {
|
|
|
1768
1601
|
* components. When parsed, a `MIMEType` object is returned containing
|
|
1769
1602
|
* properties for each of these components.
|
|
1770
1603
|
* @since v19.1.0, v18.13.0
|
|
1771
|
-
* @experimental
|
|
1772
1604
|
*/
|
|
1773
1605
|
export class MIMEType {
|
|
1774
1606
|
/**
|
|
@@ -2067,7 +1899,9 @@ declare module "util/types" {
|
|
|
2067
1899
|
* A native `External` value is a special type of object that contains a
|
|
2068
1900
|
* raw C++ pointer (`void*`) for access from native code, and has no other
|
|
2069
1901
|
* properties. Such objects are created either by Node.js internals or native
|
|
2070
|
-
* addons. In JavaScript, they are
|
|
1902
|
+
* addons. In JavaScript, they are
|
|
1903
|
+
* [frozen](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) objects with a
|
|
1904
|
+
* `null` prototype.
|
|
2071
1905
|
*
|
|
2072
1906
|
* ```c
|
|
2073
1907
|
* #include <js_native_api.h>
|
|
@@ -2075,7 +1909,7 @@ declare module "util/types" {
|
|
|
2075
1909
|
* napi_value result;
|
|
2076
1910
|
* static napi_value MyNapi(napi_env env, napi_callback_info info) {
|
|
2077
1911
|
* int* raw = (int*) malloc(1024);
|
|
2078
|
-
* napi_status status = napi_create_external(env, (void*) raw, NULL, NULL,
|
|
1912
|
+
* napi_status status = napi_create_external(env, (void*) raw, NULL, NULL, &result);
|
|
2079
1913
|
* if (status != napi_ok) {
|
|
2080
1914
|
* napi_throw_error(env, NULL, "napi_create_external failed");
|
|
2081
1915
|
* return NULL;
|
|
@@ -2088,17 +1922,31 @@ declare module "util/types" {
|
|
|
2088
1922
|
* ```
|
|
2089
1923
|
*
|
|
2090
1924
|
* ```js
|
|
2091
|
-
*
|
|
1925
|
+
* import native from 'napi_addon.node';
|
|
1926
|
+
* import { types } from 'node:util';
|
|
1927
|
+
*
|
|
2092
1928
|
* const data = native.myNapi();
|
|
2093
|
-
*
|
|
2094
|
-
*
|
|
2095
|
-
*
|
|
1929
|
+
* types.isExternal(data); // returns true
|
|
1930
|
+
* types.isExternal(0); // returns false
|
|
1931
|
+
* types.isExternal(new String('foo')); // returns false
|
|
2096
1932
|
* ```
|
|
2097
1933
|
*
|
|
2098
|
-
* For further information on `napi_create_external`, refer to
|
|
1934
|
+
* For further information on `napi_create_external`, refer to
|
|
1935
|
+
* [`napi_create_external()`](https://nodejs.org/docs/latest-v24.x/api/n-api.html#napi_create_external).
|
|
2099
1936
|
* @since v10.0.0
|
|
2100
1937
|
*/
|
|
2101
1938
|
function isExternal(object: unknown): boolean;
|
|
1939
|
+
/**
|
|
1940
|
+
* Returns `true` if the value is a built-in [`Float16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float16Array) instance.
|
|
1941
|
+
*
|
|
1942
|
+
* ```js
|
|
1943
|
+
* util.types.isFloat16Array(new ArrayBuffer()); // Returns false
|
|
1944
|
+
* util.types.isFloat16Array(new Float16Array()); // Returns true
|
|
1945
|
+
* util.types.isFloat16Array(new Float32Array()); // Returns false
|
|
1946
|
+
* ```
|
|
1947
|
+
* @since v24.0.0
|
|
1948
|
+
*/
|
|
1949
|
+
function isFloat16Array(object: unknown): object is Float16Array;
|
|
2102
1950
|
/**
|
|
2103
1951
|
* Returns `true` if the value is a built-in [`Float32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array) instance.
|
|
2104
1952
|
*
|
|
@@ -2219,7 +2067,8 @@ declare module "util/types" {
|
|
|
2219
2067
|
*/
|
|
2220
2068
|
function isModuleNamespaceObject(value: unknown): boolean;
|
|
2221
2069
|
/**
|
|
2222
|
-
* Returns `true` if the value was returned by the constructor of a
|
|
2070
|
+
* Returns `true` if the value was returned by the constructor of a
|
|
2071
|
+
* [built-in `Error` type](https://tc39.es/ecma262/#sec-error-objects).
|
|
2223
2072
|
*
|
|
2224
2073
|
* ```js
|
|
2225
2074
|
* console.log(util.types.isNativeError(new Error())); // true
|
|
@@ -2234,14 +2083,18 @@ declare module "util/types" {
|
|
|
2234
2083
|
* console.log(util.types.isNativeError(new MyError())); // true
|
|
2235
2084
|
* ```
|
|
2236
2085
|
*
|
|
2237
|
-
* A value being `instanceof` a native error class is not equivalent to `isNativeError()`
|
|
2238
|
-
*
|
|
2086
|
+
* A value being `instanceof` a native error class is not equivalent to `isNativeError()`
|
|
2087
|
+
* returning `true` for that value. `isNativeError()` returns `true` for errors
|
|
2088
|
+
* which come from a different [realm](https://tc39.es/ecma262/#realm) while `instanceof Error` returns `false`
|
|
2089
|
+
* for these errors:
|
|
2239
2090
|
*
|
|
2240
2091
|
* ```js
|
|
2241
|
-
* import
|
|
2242
|
-
*
|
|
2243
|
-
*
|
|
2244
|
-
*
|
|
2092
|
+
* import { createContext, runInContext } from 'node:vm';
|
|
2093
|
+
* import { types } from 'node:util';
|
|
2094
|
+
*
|
|
2095
|
+
* const context = createContext({});
|
|
2096
|
+
* const myError = runInContext('new Error()', context);
|
|
2097
|
+
* console.log(types.isNativeError(myError)); // true
|
|
2245
2098
|
* console.log(myError instanceof Error); // false
|
|
2246
2099
|
* ```
|
|
2247
2100
|
*
|