cloudstructs 0.9.32 → 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 +4 -4
- 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
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { DecodingMode } from "./decode.js";
|
|
2
|
+
/** The level of entities to support. */
|
|
3
|
+
export declare enum EntityLevel {
|
|
4
|
+
/** Support only XML entities. */
|
|
5
|
+
XML = 0,
|
|
6
|
+
/** Support HTML entities, which are a superset of XML entities. */
|
|
7
|
+
HTML = 1
|
|
8
|
+
}
|
|
9
|
+
export declare enum EncodingMode {
|
|
10
|
+
/**
|
|
11
|
+
* The output is UTF-8 encoded. Only characters that need escaping within
|
|
12
|
+
* XML will be escaped.
|
|
13
|
+
*/
|
|
14
|
+
UTF8 = 0,
|
|
15
|
+
/**
|
|
16
|
+
* The output consists only of ASCII characters. Characters that need
|
|
17
|
+
* escaping within HTML, and characters that aren't ASCII characters will
|
|
18
|
+
* be escaped.
|
|
19
|
+
*/
|
|
20
|
+
ASCII = 1,
|
|
21
|
+
/**
|
|
22
|
+
* Encode all characters that have an equivalent entity, as well as all
|
|
23
|
+
* characters that are not ASCII characters.
|
|
24
|
+
*/
|
|
25
|
+
Extensive = 2,
|
|
26
|
+
/**
|
|
27
|
+
* Encode all characters that have to be escaped in HTML attributes,
|
|
28
|
+
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
|
|
29
|
+
*/
|
|
30
|
+
Attribute = 3,
|
|
31
|
+
/**
|
|
32
|
+
* Encode all characters that have to be escaped in HTML text,
|
|
33
|
+
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
|
|
34
|
+
*/
|
|
35
|
+
Text = 4
|
|
36
|
+
}
|
|
37
|
+
export interface DecodingOptions {
|
|
38
|
+
/**
|
|
39
|
+
* The level of entities to support.
|
|
40
|
+
* @default {@link EntityLevel.XML}
|
|
41
|
+
*/
|
|
42
|
+
level?: EntityLevel;
|
|
43
|
+
/**
|
|
44
|
+
* Decoding mode. If `Legacy`, will support legacy entities not terminated
|
|
45
|
+
* with a semicolon (`;`).
|
|
46
|
+
*
|
|
47
|
+
* Always `Strict` for XML. For HTML, set this to `true` if you are parsing
|
|
48
|
+
* an attribute value.
|
|
49
|
+
*
|
|
50
|
+
* The deprecated `decodeStrict` function defaults this to `Strict`.
|
|
51
|
+
*
|
|
52
|
+
* @default {@link DecodingMode.Legacy}
|
|
53
|
+
*/
|
|
54
|
+
mode?: DecodingMode | undefined;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Decodes a string with entities.
|
|
58
|
+
*
|
|
59
|
+
* @param input String to decode.
|
|
60
|
+
* @param options Decoding options.
|
|
61
|
+
*/
|
|
62
|
+
export declare function decode(input: string, options?: DecodingOptions | EntityLevel): string;
|
|
63
|
+
/**
|
|
64
|
+
* Decodes a string with entities. Does not allow missing trailing semicolons for entities.
|
|
65
|
+
*
|
|
66
|
+
* @param input String to decode.
|
|
67
|
+
* @param options Decoding options.
|
|
68
|
+
* @deprecated Use `decode` with the `mode` set to `Strict`.
|
|
69
|
+
*/
|
|
70
|
+
export declare function decodeStrict(input: string, options?: DecodingOptions | EntityLevel): string;
|
|
71
|
+
/**
|
|
72
|
+
* Options for `encode`.
|
|
73
|
+
*/
|
|
74
|
+
export interface EncodingOptions {
|
|
75
|
+
/**
|
|
76
|
+
* The level of entities to support.
|
|
77
|
+
* @default {@link EntityLevel.XML}
|
|
78
|
+
*/
|
|
79
|
+
level?: EntityLevel;
|
|
80
|
+
/**
|
|
81
|
+
* Output format.
|
|
82
|
+
* @default {@link EncodingMode.Extensive}
|
|
83
|
+
*/
|
|
84
|
+
mode?: EncodingMode;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Encodes a string with entities.
|
|
88
|
+
*
|
|
89
|
+
* @param input String to encode.
|
|
90
|
+
* @param options Encoding options.
|
|
91
|
+
*/
|
|
92
|
+
export declare function encode(input: string, options?: EncodingOptions | EntityLevel): string;
|
|
93
|
+
export { encodeXML, escape, escapeUTF8, escapeAttribute, escapeText, } from "./escape.js";
|
|
94
|
+
export { encodeHTML, encodeNonAsciiHTML, encodeHTML as encodeHTML4, encodeHTML as encodeHTML5, } from "./encode.js";
|
|
95
|
+
export { EntityDecoder, DecodingMode, decodeXML, decodeHTML, decodeHTMLStrict, decodeHTMLAttribute, decodeHTML as decodeHTML4, decodeHTML as decodeHTML5, decodeHTMLStrict as decodeHTML4Strict, decodeHTMLStrict as decodeHTML5Strict, decodeXML as decodeXMLStrict, } from "./decode.js";
|
|
96
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,YAAY,EAAE,MAAM,aAAa,CAAC;AASlE,wCAAwC;AACxC,oBAAY,WAAW;IACnB,iCAAiC;IACjC,GAAG,IAAI;IACP,mEAAmE;IACnE,IAAI,IAAI;CACX;AAED,oBAAY,YAAY;IACpB;;;OAGG;IACH,IAAI,IAAA;IACJ;;;;OAIG;IACH,KAAK,IAAA;IACL;;;OAGG;IACH,SAAS,IAAA;IACT;;;OAGG;IACH,SAAS,IAAA;IACT;;;OAGG;IACH,IAAI,IAAA;CACP;AAED,MAAM,WAAW,eAAe;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAClB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,eAAe,GAAG,WAA6B,GACzD,MAAM,CASR;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CACxB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,eAAe,GAAG,WAA6B,GACzD,MAAM,CAMR;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAClB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,eAAe,GAAG,WAA6B,GACzD,MAAM,CA2BR;AAED,OAAO,EACH,SAAS,EACT,MAAM,EACN,UAAU,EACV,eAAe,EACf,UAAU,GACb,MAAM,aAAa,CAAC;AAErB,OAAO,EACH,UAAU,EACV,kBAAkB,EAElB,UAAU,IAAI,WAAW,EACzB,UAAU,IAAI,WAAW,GAC5B,MAAM,aAAa,CAAC;AAErB,OAAO,EACH,aAAa,EACb,YAAY,EACZ,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EAEnB,UAAU,IAAI,WAAW,EACzB,UAAU,IAAI,WAAW,EACzB,gBAAgB,IAAI,iBAAiB,EACrC,gBAAgB,IAAI,iBAAiB,EACrC,SAAS,IAAI,eAAe,GAC/B,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLAttribute = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.DecodingMode = exports.EntityDecoder = exports.encodeHTML5 = exports.encodeHTML4 = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.encodeXML = exports.EncodingMode = exports.EntityLevel = void 0;
|
|
4
|
+
exports.decode = decode;
|
|
5
|
+
exports.decodeStrict = decodeStrict;
|
|
6
|
+
exports.encode = encode;
|
|
7
|
+
const decode_js_1 = require("./decode.js");
|
|
8
|
+
const encode_js_1 = require("./encode.js");
|
|
9
|
+
const escape_js_1 = require("./escape.js");
|
|
10
|
+
/** The level of entities to support. */
|
|
11
|
+
var EntityLevel;
|
|
12
|
+
(function (EntityLevel) {
|
|
13
|
+
/** Support only XML entities. */
|
|
14
|
+
EntityLevel[EntityLevel["XML"] = 0] = "XML";
|
|
15
|
+
/** Support HTML entities, which are a superset of XML entities. */
|
|
16
|
+
EntityLevel[EntityLevel["HTML"] = 1] = "HTML";
|
|
17
|
+
})(EntityLevel || (exports.EntityLevel = EntityLevel = {}));
|
|
18
|
+
var EncodingMode;
|
|
19
|
+
(function (EncodingMode) {
|
|
20
|
+
/**
|
|
21
|
+
* The output is UTF-8 encoded. Only characters that need escaping within
|
|
22
|
+
* XML will be escaped.
|
|
23
|
+
*/
|
|
24
|
+
EncodingMode[EncodingMode["UTF8"] = 0] = "UTF8";
|
|
25
|
+
/**
|
|
26
|
+
* The output consists only of ASCII characters. Characters that need
|
|
27
|
+
* escaping within HTML, and characters that aren't ASCII characters will
|
|
28
|
+
* be escaped.
|
|
29
|
+
*/
|
|
30
|
+
EncodingMode[EncodingMode["ASCII"] = 1] = "ASCII";
|
|
31
|
+
/**
|
|
32
|
+
* Encode all characters that have an equivalent entity, as well as all
|
|
33
|
+
* characters that are not ASCII characters.
|
|
34
|
+
*/
|
|
35
|
+
EncodingMode[EncodingMode["Extensive"] = 2] = "Extensive";
|
|
36
|
+
/**
|
|
37
|
+
* Encode all characters that have to be escaped in HTML attributes,
|
|
38
|
+
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
|
|
39
|
+
*/
|
|
40
|
+
EncodingMode[EncodingMode["Attribute"] = 3] = "Attribute";
|
|
41
|
+
/**
|
|
42
|
+
* Encode all characters that have to be escaped in HTML text,
|
|
43
|
+
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
|
|
44
|
+
*/
|
|
45
|
+
EncodingMode[EncodingMode["Text"] = 4] = "Text";
|
|
46
|
+
})(EncodingMode || (exports.EncodingMode = EncodingMode = {}));
|
|
47
|
+
/**
|
|
48
|
+
* Decodes a string with entities.
|
|
49
|
+
*
|
|
50
|
+
* @param input String to decode.
|
|
51
|
+
* @param options Decoding options.
|
|
52
|
+
*/
|
|
53
|
+
function decode(input, options = EntityLevel.XML) {
|
|
54
|
+
const level = typeof options === "number" ? options : options.level;
|
|
55
|
+
if (level === EntityLevel.HTML) {
|
|
56
|
+
const mode = typeof options === "object" ? options.mode : undefined;
|
|
57
|
+
return (0, decode_js_1.decodeHTML)(input, mode);
|
|
58
|
+
}
|
|
59
|
+
return (0, decode_js_1.decodeXML)(input);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Decodes a string with entities. Does not allow missing trailing semicolons for entities.
|
|
63
|
+
*
|
|
64
|
+
* @param input String to decode.
|
|
65
|
+
* @param options Decoding options.
|
|
66
|
+
* @deprecated Use `decode` with the `mode` set to `Strict`.
|
|
67
|
+
*/
|
|
68
|
+
function decodeStrict(input, options = EntityLevel.XML) {
|
|
69
|
+
var _a;
|
|
70
|
+
const normalizedOptions = typeof options === "number" ? { level: options } : options;
|
|
71
|
+
(_a = normalizedOptions.mode) !== null && _a !== void 0 ? _a : (normalizedOptions.mode = decode_js_1.DecodingMode.Strict);
|
|
72
|
+
return decode(input, normalizedOptions);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Encodes a string with entities.
|
|
76
|
+
*
|
|
77
|
+
* @param input String to encode.
|
|
78
|
+
* @param options Encoding options.
|
|
79
|
+
*/
|
|
80
|
+
function encode(input, options = EntityLevel.XML) {
|
|
81
|
+
const { mode = EncodingMode.Extensive, level = EntityLevel.XML } = typeof options === "number" ? { level: options } : options;
|
|
82
|
+
switch (mode) {
|
|
83
|
+
case EncodingMode.UTF8: {
|
|
84
|
+
return (0, escape_js_1.escapeUTF8)(input);
|
|
85
|
+
}
|
|
86
|
+
case EncodingMode.Attribute: {
|
|
87
|
+
return (0, escape_js_1.escapeAttribute)(input);
|
|
88
|
+
}
|
|
89
|
+
case EncodingMode.Text: {
|
|
90
|
+
return (0, escape_js_1.escapeText)(input);
|
|
91
|
+
}
|
|
92
|
+
case EncodingMode.ASCII: {
|
|
93
|
+
return level === EntityLevel.HTML
|
|
94
|
+
? (0, encode_js_1.encodeNonAsciiHTML)(input)
|
|
95
|
+
: (0, escape_js_1.encodeXML)(input);
|
|
96
|
+
}
|
|
97
|
+
// eslint-disable-next-line unicorn/no-useless-switch-case
|
|
98
|
+
case EncodingMode.Extensive:
|
|
99
|
+
default: {
|
|
100
|
+
return level === EntityLevel.HTML
|
|
101
|
+
? (0, encode_js_1.encodeHTML)(input)
|
|
102
|
+
: (0, escape_js_1.encodeXML)(input);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
var escape_js_2 = require("./escape.js");
|
|
107
|
+
Object.defineProperty(exports, "encodeXML", { enumerable: true, get: function () { return escape_js_2.encodeXML; } });
|
|
108
|
+
Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return escape_js_2.escape; } });
|
|
109
|
+
Object.defineProperty(exports, "escapeUTF8", { enumerable: true, get: function () { return escape_js_2.escapeUTF8; } });
|
|
110
|
+
Object.defineProperty(exports, "escapeAttribute", { enumerable: true, get: function () { return escape_js_2.escapeAttribute; } });
|
|
111
|
+
Object.defineProperty(exports, "escapeText", { enumerable: true, get: function () { return escape_js_2.escapeText; } });
|
|
112
|
+
var encode_js_2 = require("./encode.js");
|
|
113
|
+
Object.defineProperty(exports, "encodeHTML", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
|
|
114
|
+
Object.defineProperty(exports, "encodeNonAsciiHTML", { enumerable: true, get: function () { return encode_js_2.encodeNonAsciiHTML; } });
|
|
115
|
+
// Legacy aliases (deprecated)
|
|
116
|
+
Object.defineProperty(exports, "encodeHTML4", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
|
|
117
|
+
Object.defineProperty(exports, "encodeHTML5", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
|
|
118
|
+
var decode_js_2 = require("./decode.js");
|
|
119
|
+
Object.defineProperty(exports, "EntityDecoder", { enumerable: true, get: function () { return decode_js_2.EntityDecoder; } });
|
|
120
|
+
Object.defineProperty(exports, "DecodingMode", { enumerable: true, get: function () { return decode_js_2.DecodingMode; } });
|
|
121
|
+
Object.defineProperty(exports, "decodeXML", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
|
|
122
|
+
Object.defineProperty(exports, "decodeHTML", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
|
|
123
|
+
Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
|
|
124
|
+
Object.defineProperty(exports, "decodeHTMLAttribute", { enumerable: true, get: function () { return decode_js_2.decodeHTMLAttribute; } });
|
|
125
|
+
// Legacy aliases (deprecated)
|
|
126
|
+
Object.defineProperty(exports, "decodeHTML4", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
|
|
127
|
+
Object.defineProperty(exports, "decodeHTML5", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
|
|
128
|
+
Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
|
|
129
|
+
Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
|
|
130
|
+
Object.defineProperty(exports, "decodeXMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
|
|
131
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAwEA,wBAYC;AASD,oCASC;AAwBD,wBA8BC;AA5JD,2CAAkE;AAClE,2CAA6D;AAC7D,2CAKqB;AAErB,wCAAwC;AACxC,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,iCAAiC;IACjC,2CAAO,CAAA;IACP,mEAAmE;IACnE,6CAAQ,CAAA;AACZ,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED,IAAY,YA2BX;AA3BD,WAAY,YAAY;IACpB;;;OAGG;IACH,+CAAI,CAAA;IACJ;;;;OAIG;IACH,iDAAK,CAAA;IACL;;;OAGG;IACH,yDAAS,CAAA;IACT;;;OAGG;IACH,yDAAS,CAAA;IACT;;;OAGG;IACH,+CAAI,CAAA;AACR,CAAC,EA3BW,YAAY,4BAAZ,YAAY,QA2BvB;AAsBD;;;;;GAKG;AACH,SAAgB,MAAM,CAClB,KAAa,EACb,UAAyC,WAAW,CAAC,GAAG;IAExD,MAAM,KAAK,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAEpE,IAAI,KAAK,KAAK,WAAW,CAAC,IAAI,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;QACpE,OAAO,IAAA,sBAAU,EAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC;IAED,OAAO,IAAA,qBAAS,EAAC,KAAK,CAAC,CAAC;AAC5B,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,YAAY,CACxB,KAAa,EACb,UAAyC,WAAW,CAAC,GAAG;;IAExD,MAAM,iBAAiB,GACnB,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IAC/D,MAAA,iBAAiB,CAAC,IAAI,oCAAtB,iBAAiB,CAAC,IAAI,GAAK,wBAAY,CAAC,MAAM,EAAC;IAE/C,OAAO,MAAM,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;AAC5C,CAAC;AAkBD;;;;;GAKG;AACH,SAAgB,MAAM,CAClB,KAAa,EACb,UAAyC,WAAW,CAAC,GAAG;IAExD,MAAM,EAAE,IAAI,GAAG,YAAY,CAAC,SAAS,EAAE,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE,GAC5D,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IAE/D,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;YACrB,OAAO,IAAA,sBAAU,EAAC,KAAK,CAAC,CAAC;QAC7B,CAAC;QACD,KAAK,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;YAC1B,OAAO,IAAA,2BAAe,EAAC,KAAK,CAAC,CAAC;QAClC,CAAC;QACD,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;YACrB,OAAO,IAAA,sBAAU,EAAC,KAAK,CAAC,CAAC;QAC7B,CAAC;QACD,KAAK,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;YACtB,OAAO,KAAK,KAAK,WAAW,CAAC,IAAI;gBAC7B,CAAC,CAAC,IAAA,8BAAkB,EAAC,KAAK,CAAC;gBAC3B,CAAC,CAAC,IAAA,qBAAS,EAAC,KAAK,CAAC,CAAC;QAC3B,CAAC;QACD,0DAA0D;QAC1D,KAAK,YAAY,CAAC,SAAS,CAAC;QAC5B,OAAO,CAAC,CAAC,CAAC;YACN,OAAO,KAAK,KAAK,WAAW,CAAC,IAAI;gBAC7B,CAAC,CAAC,IAAA,sBAAU,EAAC,KAAK,CAAC;gBACnB,CAAC,CAAC,IAAA,qBAAS,EAAC,KAAK,CAAC,CAAC;QAC3B,CAAC;IACL,CAAC;AACL,CAAC;AAED,yCAMqB;AALjB,sGAAA,SAAS,OAAA;AACT,mGAAA,MAAM,OAAA;AACN,uGAAA,UAAU,OAAA;AACV,4GAAA,eAAe,OAAA;AACf,uGAAA,UAAU,OAAA;AAGd,yCAMqB;AALjB,uGAAA,UAAU,OAAA;AACV,+GAAA,kBAAkB,OAAA;AAClB,8BAA8B;AAC9B,wGAAA,UAAU,OAAe;AACzB,wGAAA,UAAU,OAAe;AAG7B,yCAaqB;AAZjB,0GAAA,aAAa,OAAA;AACb,yGAAA,YAAY,OAAA;AACZ,sGAAA,SAAS,OAAA;AACT,uGAAA,UAAU,OAAA;AACV,6GAAA,gBAAgB,OAAA;AAChB,gHAAA,mBAAmB,OAAA;AACnB,8BAA8B;AAC9B,wGAAA,UAAU,OAAe;AACzB,wGAAA,UAAU,OAAe;AACzB,8GAAA,gBAAgB,OAAqB;AACrC,8GAAA,gBAAgB,OAAqB;AACrC,4GAAA,SAAS,OAAmB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Polyfill for `String.fromCodePoint`. It is used to create a string from a Unicode code point.
|
|
3
|
+
*/
|
|
4
|
+
export declare const fromCodePoint: (...codePoints: number[]) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Replace the given code point with a replacement character if it is a
|
|
7
|
+
* surrogate or is outside the valid range. Otherwise return the code
|
|
8
|
+
* point unchanged.
|
|
9
|
+
*/
|
|
10
|
+
export declare function replaceCodePoint(codePoint: number): number;
|
|
11
|
+
/**
|
|
12
|
+
* Replace the code point if relevant, then convert it to a string.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated Use `fromCodePoint(replaceCodePoint(codePoint))` instead.
|
|
15
|
+
* @param codePoint The code point to decode.
|
|
16
|
+
* @returns The decoded code point.
|
|
17
|
+
*/
|
|
18
|
+
export declare function decodeCodePoint(codePoint: number): string;
|
|
19
|
+
//# sourceMappingURL=decode-codepoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decode-codepoint.d.ts","sourceRoot":"","sources":["../../src/decode-codepoint.ts"],"names":[],"mappings":"AAkCA;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,CAAC,GAAG,UAAU,EAAE,MAAM,EAAE,KAAK,MAgBpD,CAAC;AAEN;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAS1D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEzD"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Adapted from https://github.com/mathiasbynens/he/blob/36afe179392226cf1b6ccdb16ebbb7a5a844d93a/src/he.js#L106-L134
|
|
2
|
+
var _a;
|
|
3
|
+
const decodeMap = new Map([
|
|
4
|
+
[0, 65533],
|
|
5
|
+
// C1 Unicode control character reference replacements
|
|
6
|
+
[128, 8364],
|
|
7
|
+
[130, 8218],
|
|
8
|
+
[131, 402],
|
|
9
|
+
[132, 8222],
|
|
10
|
+
[133, 8230],
|
|
11
|
+
[134, 8224],
|
|
12
|
+
[135, 8225],
|
|
13
|
+
[136, 710],
|
|
14
|
+
[137, 8240],
|
|
15
|
+
[138, 352],
|
|
16
|
+
[139, 8249],
|
|
17
|
+
[140, 338],
|
|
18
|
+
[142, 381],
|
|
19
|
+
[145, 8216],
|
|
20
|
+
[146, 8217],
|
|
21
|
+
[147, 8220],
|
|
22
|
+
[148, 8221],
|
|
23
|
+
[149, 8226],
|
|
24
|
+
[150, 8211],
|
|
25
|
+
[151, 8212],
|
|
26
|
+
[152, 732],
|
|
27
|
+
[153, 8482],
|
|
28
|
+
[154, 353],
|
|
29
|
+
[155, 8250],
|
|
30
|
+
[156, 339],
|
|
31
|
+
[158, 382],
|
|
32
|
+
[159, 376],
|
|
33
|
+
]);
|
|
34
|
+
/**
|
|
35
|
+
* Polyfill for `String.fromCodePoint`. It is used to create a string from a Unicode code point.
|
|
36
|
+
*/
|
|
37
|
+
export const fromCodePoint =
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, n/no-unsupported-features/es-builtins
|
|
39
|
+
(_a = String.fromCodePoint) !== null && _a !== void 0 ? _a : function (codePoint) {
|
|
40
|
+
let output = "";
|
|
41
|
+
if (codePoint > 65535) {
|
|
42
|
+
codePoint -= 65536;
|
|
43
|
+
output += String.fromCharCode(((codePoint >>> 10) & 1023) | 55296);
|
|
44
|
+
codePoint = 56320 | (codePoint & 1023);
|
|
45
|
+
}
|
|
46
|
+
output += String.fromCharCode(codePoint);
|
|
47
|
+
return output;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Replace the given code point with a replacement character if it is a
|
|
51
|
+
* surrogate or is outside the valid range. Otherwise return the code
|
|
52
|
+
* point unchanged.
|
|
53
|
+
*/
|
|
54
|
+
export function replaceCodePoint(codePoint) {
|
|
55
|
+
var _a;
|
|
56
|
+
if ((codePoint >= 55296 && codePoint <= 57343) ||
|
|
57
|
+
codePoint > 1114111) {
|
|
58
|
+
return 65533;
|
|
59
|
+
}
|
|
60
|
+
return (_a = decodeMap.get(codePoint)) !== null && _a !== void 0 ? _a : codePoint;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Replace the code point if relevant, then convert it to a string.
|
|
64
|
+
*
|
|
65
|
+
* @deprecated Use `fromCodePoint(replaceCodePoint(codePoint))` instead.
|
|
66
|
+
* @param codePoint The code point to decode.
|
|
67
|
+
* @returns The decoded code point.
|
|
68
|
+
*/
|
|
69
|
+
export function decodeCodePoint(codePoint) {
|
|
70
|
+
return fromCodePoint(replaceCodePoint(codePoint));
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=decode-codepoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decode-codepoint.js","sourceRoot":"","sources":["../../src/decode-codepoint.ts"],"names":[],"mappings":"AAAA,qHAAqH;;AAErH,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC;IACtB,CAAC,CAAC,EAAE,KAAM,CAAC;IACX,sDAAsD;IACtD,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,IAAI,CAAC;IACX,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,GAAG,CAAC;IACV,CAAC,GAAG,EAAE,GAAG,CAAC;CACb,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa;AACtB,8GAA8G;AAC9G,MAAA,MAAM,CAAC,aAAa,mCACpB,UAAU,SAAiB;IACvB,IAAI,MAAM,GAAG,EAAE,CAAC;IAEhB,IAAI,SAAS,GAAG,KAAO,EAAE,CAAC;QACtB,SAAS,IAAI,KAAS,CAAC;QACvB,MAAM,IAAI,MAAM,CAAC,YAAY,CACzB,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC,GAAG,IAAM,CAAC,GAAG,KAAO,CAC1C,CAAC;QACF,SAAS,GAAG,KAAO,GAAG,CAAC,SAAS,GAAG,IAAM,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IACzC,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAEN;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAiB;;IAC9C,IACI,CAAC,SAAS,IAAI,KAAO,IAAI,SAAS,IAAI,KAAO,CAAC;QAC9C,SAAS,GAAG,OAAU,EACxB,CAAC;QACC,OAAO,KAAO,CAAC;IACnB,CAAC;IAED,OAAO,MAAA,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAC;AACjD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,SAAiB;IAC7C,OAAO,aAAa,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
export declare enum BinTrieFlags {
|
|
2
|
+
VALUE_LENGTH = 49152,
|
|
3
|
+
BRANCH_LENGTH = 16256,
|
|
4
|
+
JUMP_TABLE = 127
|
|
5
|
+
}
|
|
6
|
+
export declare enum DecodingMode {
|
|
7
|
+
/** Entities in text nodes that can end with any character. */
|
|
8
|
+
Legacy = 0,
|
|
9
|
+
/** Only allow entities terminated with a semicolon. */
|
|
10
|
+
Strict = 1,
|
|
11
|
+
/** Entities in attributes have limitations on ending characters. */
|
|
12
|
+
Attribute = 2
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Producers for character reference errors as defined in the HTML spec.
|
|
16
|
+
*/
|
|
17
|
+
export interface EntityErrorProducer {
|
|
18
|
+
missingSemicolonAfterCharacterReference(): void;
|
|
19
|
+
absenceOfDigitsInNumericCharacterReference(consumedCharacters: number): void;
|
|
20
|
+
validateNumericCharacterReference(code: number): void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Token decoder with support of writing partial entities.
|
|
24
|
+
*/
|
|
25
|
+
export declare class EntityDecoder {
|
|
26
|
+
/** The tree used to decode entities. */
|
|
27
|
+
private readonly decodeTree;
|
|
28
|
+
/**
|
|
29
|
+
* The function that is called when a codepoint is decoded.
|
|
30
|
+
*
|
|
31
|
+
* For multi-byte named entities, this will be called multiple times,
|
|
32
|
+
* with the second codepoint, and the same `consumed` value.
|
|
33
|
+
*
|
|
34
|
+
* @param codepoint The decoded codepoint.
|
|
35
|
+
* @param consumed The number of bytes consumed by the decoder.
|
|
36
|
+
*/
|
|
37
|
+
private readonly emitCodePoint;
|
|
38
|
+
/** An object that is used to produce errors. */
|
|
39
|
+
private readonly errors?;
|
|
40
|
+
constructor(
|
|
41
|
+
/** The tree used to decode entities. */
|
|
42
|
+
decodeTree: Uint16Array,
|
|
43
|
+
/**
|
|
44
|
+
* The function that is called when a codepoint is decoded.
|
|
45
|
+
*
|
|
46
|
+
* For multi-byte named entities, this will be called multiple times,
|
|
47
|
+
* with the second codepoint, and the same `consumed` value.
|
|
48
|
+
*
|
|
49
|
+
* @param codepoint The decoded codepoint.
|
|
50
|
+
* @param consumed The number of bytes consumed by the decoder.
|
|
51
|
+
*/
|
|
52
|
+
emitCodePoint: (cp: number, consumed: number) => void,
|
|
53
|
+
/** An object that is used to produce errors. */
|
|
54
|
+
errors?: EntityErrorProducer | undefined);
|
|
55
|
+
/** The current state of the decoder. */
|
|
56
|
+
private state;
|
|
57
|
+
/** Characters that were consumed while parsing an entity. */
|
|
58
|
+
private consumed;
|
|
59
|
+
/**
|
|
60
|
+
* The result of the entity.
|
|
61
|
+
*
|
|
62
|
+
* Either the result index of a numeric entity, or the codepoint of a
|
|
63
|
+
* numeric entity.
|
|
64
|
+
*/
|
|
65
|
+
private result;
|
|
66
|
+
/** The current index in the decode tree. */
|
|
67
|
+
private treeIndex;
|
|
68
|
+
/** The number of characters that were consumed in excess. */
|
|
69
|
+
private excess;
|
|
70
|
+
/** The mode in which the decoder is operating. */
|
|
71
|
+
private decodeMode;
|
|
72
|
+
/** Resets the instance to make it reusable. */
|
|
73
|
+
startEntity(decodeMode: DecodingMode): void;
|
|
74
|
+
/**
|
|
75
|
+
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
76
|
+
* If the entity is incomplete, the decoder will return -1.
|
|
77
|
+
*
|
|
78
|
+
* Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
|
|
79
|
+
* entity is incomplete, and resume when the next string is written.
|
|
80
|
+
*
|
|
81
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
82
|
+
* @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
|
|
83
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
84
|
+
*/
|
|
85
|
+
write(input: string, offset: number): number;
|
|
86
|
+
/**
|
|
87
|
+
* Switches between the numeric decimal and hexadecimal states.
|
|
88
|
+
*
|
|
89
|
+
* Equivalent to the `Numeric character reference state` in the HTML spec.
|
|
90
|
+
*
|
|
91
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
92
|
+
* @param offset The current offset.
|
|
93
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
94
|
+
*/
|
|
95
|
+
private stateNumericStart;
|
|
96
|
+
private addToNumericResult;
|
|
97
|
+
/**
|
|
98
|
+
* Parses a hexadecimal numeric entity.
|
|
99
|
+
*
|
|
100
|
+
* Equivalent to the `Hexademical character reference state` in the HTML spec.
|
|
101
|
+
*
|
|
102
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
103
|
+
* @param offset The current offset.
|
|
104
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
105
|
+
*/
|
|
106
|
+
private stateNumericHex;
|
|
107
|
+
/**
|
|
108
|
+
* Parses a decimal numeric entity.
|
|
109
|
+
*
|
|
110
|
+
* Equivalent to the `Decimal character reference state` in the HTML spec.
|
|
111
|
+
*
|
|
112
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
113
|
+
* @param offset The current offset.
|
|
114
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
115
|
+
*/
|
|
116
|
+
private stateNumericDecimal;
|
|
117
|
+
/**
|
|
118
|
+
* Validate and emit a numeric entity.
|
|
119
|
+
*
|
|
120
|
+
* Implements the logic from the `Hexademical character reference start
|
|
121
|
+
* state` and `Numeric character reference end state` in the HTML spec.
|
|
122
|
+
*
|
|
123
|
+
* @param lastCp The last code point of the entity. Used to see if the
|
|
124
|
+
* entity was terminated with a semicolon.
|
|
125
|
+
* @param expectedLength The minimum number of characters that should be
|
|
126
|
+
* consumed. Used to validate that at least one digit
|
|
127
|
+
* was consumed.
|
|
128
|
+
* @returns The number of characters that were consumed.
|
|
129
|
+
*/
|
|
130
|
+
private emitNumericEntity;
|
|
131
|
+
/**
|
|
132
|
+
* Parses a named entity.
|
|
133
|
+
*
|
|
134
|
+
* Equivalent to the `Named character reference state` in the HTML spec.
|
|
135
|
+
*
|
|
136
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
137
|
+
* @param offset The current offset.
|
|
138
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
139
|
+
*/
|
|
140
|
+
private stateNamedEntity;
|
|
141
|
+
/**
|
|
142
|
+
* Emit a named entity that was not terminated with a semicolon.
|
|
143
|
+
*
|
|
144
|
+
* @returns The number of characters consumed.
|
|
145
|
+
*/
|
|
146
|
+
private emitNotTerminatedNamedEntity;
|
|
147
|
+
/**
|
|
148
|
+
* Emit a named entity.
|
|
149
|
+
*
|
|
150
|
+
* @param result The index of the entity in the decode tree.
|
|
151
|
+
* @param valueLength The number of bytes in the entity.
|
|
152
|
+
* @param consumed The number of characters consumed.
|
|
153
|
+
*
|
|
154
|
+
* @returns The number of characters consumed.
|
|
155
|
+
*/
|
|
156
|
+
private emitNamedEntityData;
|
|
157
|
+
/**
|
|
158
|
+
* Signal to the parser that the end of the input was reached.
|
|
159
|
+
*
|
|
160
|
+
* Remaining data will be emitted and relevant errors will be produced.
|
|
161
|
+
*
|
|
162
|
+
* @returns The number of characters consumed.
|
|
163
|
+
*/
|
|
164
|
+
end(): number;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Determines the branch of the current node that is taken given the current
|
|
168
|
+
* character. This function is used to traverse the trie.
|
|
169
|
+
*
|
|
170
|
+
* @param decodeTree The trie.
|
|
171
|
+
* @param current The current node.
|
|
172
|
+
* @param nodeIdx The index right after the current node and its value.
|
|
173
|
+
* @param char The current character.
|
|
174
|
+
* @returns The index of the next node, or -1 if no branch is taken.
|
|
175
|
+
*/
|
|
176
|
+
export declare function determineBranch(decodeTree: Uint16Array, current: number, nodeIndex: number, char: number): number;
|
|
177
|
+
/**
|
|
178
|
+
* Decodes an HTML string.
|
|
179
|
+
*
|
|
180
|
+
* @param htmlString The string to decode.
|
|
181
|
+
* @param mode The decoding mode.
|
|
182
|
+
* @returns The decoded string.
|
|
183
|
+
*/
|
|
184
|
+
export declare function decodeHTML(htmlString: string, mode?: DecodingMode): string;
|
|
185
|
+
/**
|
|
186
|
+
* Decodes an HTML string in an attribute.
|
|
187
|
+
*
|
|
188
|
+
* @param htmlAttribute The string to decode.
|
|
189
|
+
* @returns The decoded string.
|
|
190
|
+
*/
|
|
191
|
+
export declare function decodeHTMLAttribute(htmlAttribute: string): string;
|
|
192
|
+
/**
|
|
193
|
+
* Decodes an HTML string, requiring all entities to be terminated by a semicolon.
|
|
194
|
+
*
|
|
195
|
+
* @param htmlString The string to decode.
|
|
196
|
+
* @returns The decoded string.
|
|
197
|
+
*/
|
|
198
|
+
export declare function decodeHTMLStrict(htmlString: string): string;
|
|
199
|
+
/**
|
|
200
|
+
* Decodes an XML string, requiring all entities to be terminated by a semicolon.
|
|
201
|
+
*
|
|
202
|
+
* @param xmlString The string to decode.
|
|
203
|
+
* @returns The decoded string.
|
|
204
|
+
*/
|
|
205
|
+
export declare function decodeXML(xmlString: string): string;
|
|
206
|
+
export { htmlDecodeTree } from "./generated/decode-data-html.js";
|
|
207
|
+
export { xmlDecodeTree } from "./generated/decode-data-xml.js";
|
|
208
|
+
export { decodeCodePoint, replaceCodePoint, fromCodePoint, } from "./decode-codepoint.js";
|
|
209
|
+
//# sourceMappingURL=decode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../src/decode.ts"],"names":[],"mappings":"AAsBA,oBAAY,YAAY;IACpB,YAAY,QAAwB;IACpC,aAAa,QAAwB;IACrC,UAAU,MAAwB;CACrC;AAuCD,oBAAY,YAAY;IACpB,8DAA8D;IAC9D,MAAM,IAAI;IACV,uDAAuD;IACvD,MAAM,IAAI;IACV,oEAAoE;IACpE,SAAS,IAAI;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,uCAAuC,IAAI,IAAI,CAAC;IAChD,0CAA0C,CACtC,kBAAkB,EAAE,MAAM,GAC3B,IAAI,CAAC;IACR,iCAAiC,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACzD;AAED;;GAEG;AACH,qBAAa,aAAa;IAElB,wCAAwC;IACxC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B;;;;;;;;OAQG;IACH,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,gDAAgD;IAChD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;;IAbxB,wCAAwC;IACvB,UAAU,EAAE,WAAW;IACxC;;;;;;;;OAQG;IACc,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI;IACtE,gDAAgD;IAC/B,MAAM,CAAC,EAAE,mBAAmB,GAAG,SAAS;IAG7D,wCAAwC;IACxC,OAAO,CAAC,KAAK,CAAkC;IAC/C,6DAA6D;IAC7D,OAAO,CAAC,QAAQ,CAAK;IACrB;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAK;IAEnB,4CAA4C;IAC5C,OAAO,CAAC,SAAS,CAAK;IACtB,6DAA6D;IAC7D,OAAO,CAAC,MAAM,CAAK;IACnB,kDAAkD;IAClD,OAAO,CAAC,UAAU,CAAuB;IAEzC,+CAA+C;IAC/C,WAAW,CAAC,UAAU,EAAE,YAAY,GAAG,IAAI;IAS3C;;;;;;;;;;OAUG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;IA8B5C;;;;;;;;OAQG;IACH,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,kBAAkB;IAe1B;;;;;;;;OAQG;IACH,OAAO,CAAC,eAAe;IAkBvB;;;;;;;;OAQG;IACH,OAAO,CAAC,mBAAmB;IAkB3B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,iBAAiB;IA6BzB;;;;;;;;OAQG;IACH,OAAO,CAAC,gBAAgB;IAsDxB;;;;OAIG;IACH,OAAO,CAAC,4BAA4B;IAYpC;;;;;;;;OAQG;IACH,OAAO,CAAC,mBAAmB;IAqB3B;;;;;;OAMG;IACH,GAAG,IAAI,MAAM;CA6BhB;AAoDD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC3B,UAAU,EAAE,WAAW,EACvB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,GACb,MAAM,CAsCR;AAKD;;;;;;GAMG;AACH,wBAAgB,UAAU,CACtB,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,YAAkC,GACzC,MAAM,CAER;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEnD;AAGD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EACH,eAAe,EACf,gBAAgB,EAChB,aAAa,GAChB,MAAM,uBAAuB,CAAC"}
|