cloudstructs 0.9.33 → 0.9.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +4 -4
- package/assets/slack-app/provider.lambda/index.js +209 -33
- package/assets/slack-textract/detect.lambda/index.js +385 -163
- package/assets/ssl-server-test/analyze.lambda/index.js +209 -33
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +2 -2
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +19 -24
- package/node_modules/@babel/runtime/helpers/esm/regenerator.js +89 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +33 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +24 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +66 -293
- package/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +19 -0
- package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +19 -24
- package/node_modules/@babel/runtime/helpers/regenerator.js +89 -0
- package/node_modules/@babel/runtime/helpers/regeneratorAsync.js +8 -0
- package/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +6 -0
- package/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +33 -0
- package/node_modules/@babel/runtime/helpers/regeneratorDefine.js +24 -0
- package/node_modules/@babel/runtime/helpers/regeneratorKeys.js +10 -0
- package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +66 -293
- package/node_modules/@babel/runtime/helpers/regeneratorValues.js +19 -0
- package/node_modules/@babel/runtime/package.json +52 -10
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +15 -54
- package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +90 -8
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +3 -0
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +3 -4
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +16 -16
- package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +17 -17
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +43 -37
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +38 -14
- package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +27 -1
- package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +72 -18
- 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 +149 -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 +143 -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/promises.d.ts +27 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +72 -18
- 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 +149 -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 +143 -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/promises.d.ts +27 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +72 -18
- 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 +149 -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 +143 -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/promises.d.ts +27 -1
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +72 -18
- 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 +149 -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 +143 -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/promises.d.ts +27 -1
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +72 -18
- 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 +149 -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 +143 -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,497 @@
|
|
|
1
|
+
import { htmlDecodeTree } from "./generated/decode-data-html.js";
|
|
2
|
+
import { xmlDecodeTree } from "./generated/decode-data-xml.js";
|
|
3
|
+
import { replaceCodePoint, fromCodePoint } from "./decode-codepoint.js";
|
|
4
|
+
var CharCodes;
|
|
5
|
+
(function (CharCodes) {
|
|
6
|
+
CharCodes[CharCodes["NUM"] = 35] = "NUM";
|
|
7
|
+
CharCodes[CharCodes["SEMI"] = 59] = "SEMI";
|
|
8
|
+
CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS";
|
|
9
|
+
CharCodes[CharCodes["ZERO"] = 48] = "ZERO";
|
|
10
|
+
CharCodes[CharCodes["NINE"] = 57] = "NINE";
|
|
11
|
+
CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A";
|
|
12
|
+
CharCodes[CharCodes["LOWER_F"] = 102] = "LOWER_F";
|
|
13
|
+
CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X";
|
|
14
|
+
CharCodes[CharCodes["LOWER_Z"] = 122] = "LOWER_Z";
|
|
15
|
+
CharCodes[CharCodes["UPPER_A"] = 65] = "UPPER_A";
|
|
16
|
+
CharCodes[CharCodes["UPPER_F"] = 70] = "UPPER_F";
|
|
17
|
+
CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
|
|
18
|
+
})(CharCodes || (CharCodes = {}));
|
|
19
|
+
/** Bit that needs to be set to convert an upper case ASCII character to lower case */
|
|
20
|
+
const TO_LOWER_BIT = 32;
|
|
21
|
+
export var BinTrieFlags;
|
|
22
|
+
(function (BinTrieFlags) {
|
|
23
|
+
BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
|
|
24
|
+
BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH";
|
|
25
|
+
BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE";
|
|
26
|
+
})(BinTrieFlags || (BinTrieFlags = {}));
|
|
27
|
+
function isNumber(code) {
|
|
28
|
+
return code >= CharCodes.ZERO && code <= CharCodes.NINE;
|
|
29
|
+
}
|
|
30
|
+
function isHexadecimalCharacter(code) {
|
|
31
|
+
return ((code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F) ||
|
|
32
|
+
(code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F));
|
|
33
|
+
}
|
|
34
|
+
function isAsciiAlphaNumeric(code) {
|
|
35
|
+
return ((code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z) ||
|
|
36
|
+
(code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z) ||
|
|
37
|
+
isNumber(code));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Checks if the given character is a valid end character for an entity in an attribute.
|
|
41
|
+
*
|
|
42
|
+
* Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.
|
|
43
|
+
* See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state
|
|
44
|
+
*/
|
|
45
|
+
function isEntityInAttributeInvalidEnd(code) {
|
|
46
|
+
return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);
|
|
47
|
+
}
|
|
48
|
+
var EntityDecoderState;
|
|
49
|
+
(function (EntityDecoderState) {
|
|
50
|
+
EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart";
|
|
51
|
+
EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart";
|
|
52
|
+
EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal";
|
|
53
|
+
EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex";
|
|
54
|
+
EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity";
|
|
55
|
+
})(EntityDecoderState || (EntityDecoderState = {}));
|
|
56
|
+
export var DecodingMode;
|
|
57
|
+
(function (DecodingMode) {
|
|
58
|
+
/** Entities in text nodes that can end with any character. */
|
|
59
|
+
DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy";
|
|
60
|
+
/** Only allow entities terminated with a semicolon. */
|
|
61
|
+
DecodingMode[DecodingMode["Strict"] = 1] = "Strict";
|
|
62
|
+
/** Entities in attributes have limitations on ending characters. */
|
|
63
|
+
DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute";
|
|
64
|
+
})(DecodingMode || (DecodingMode = {}));
|
|
65
|
+
/**
|
|
66
|
+
* Token decoder with support of writing partial entities.
|
|
67
|
+
*/
|
|
68
|
+
export class EntityDecoder {
|
|
69
|
+
constructor(
|
|
70
|
+
/** The tree used to decode entities. */
|
|
71
|
+
decodeTree,
|
|
72
|
+
/**
|
|
73
|
+
* The function that is called when a codepoint is decoded.
|
|
74
|
+
*
|
|
75
|
+
* For multi-byte named entities, this will be called multiple times,
|
|
76
|
+
* with the second codepoint, and the same `consumed` value.
|
|
77
|
+
*
|
|
78
|
+
* @param codepoint The decoded codepoint.
|
|
79
|
+
* @param consumed The number of bytes consumed by the decoder.
|
|
80
|
+
*/
|
|
81
|
+
emitCodePoint,
|
|
82
|
+
/** An object that is used to produce errors. */
|
|
83
|
+
errors) {
|
|
84
|
+
this.decodeTree = decodeTree;
|
|
85
|
+
this.emitCodePoint = emitCodePoint;
|
|
86
|
+
this.errors = errors;
|
|
87
|
+
/** The current state of the decoder. */
|
|
88
|
+
this.state = EntityDecoderState.EntityStart;
|
|
89
|
+
/** Characters that were consumed while parsing an entity. */
|
|
90
|
+
this.consumed = 1;
|
|
91
|
+
/**
|
|
92
|
+
* The result of the entity.
|
|
93
|
+
*
|
|
94
|
+
* Either the result index of a numeric entity, or the codepoint of a
|
|
95
|
+
* numeric entity.
|
|
96
|
+
*/
|
|
97
|
+
this.result = 0;
|
|
98
|
+
/** The current index in the decode tree. */
|
|
99
|
+
this.treeIndex = 0;
|
|
100
|
+
/** The number of characters that were consumed in excess. */
|
|
101
|
+
this.excess = 1;
|
|
102
|
+
/** The mode in which the decoder is operating. */
|
|
103
|
+
this.decodeMode = DecodingMode.Strict;
|
|
104
|
+
}
|
|
105
|
+
/** Resets the instance to make it reusable. */
|
|
106
|
+
startEntity(decodeMode) {
|
|
107
|
+
this.decodeMode = decodeMode;
|
|
108
|
+
this.state = EntityDecoderState.EntityStart;
|
|
109
|
+
this.result = 0;
|
|
110
|
+
this.treeIndex = 0;
|
|
111
|
+
this.excess = 1;
|
|
112
|
+
this.consumed = 1;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
116
|
+
* If the entity is incomplete, the decoder will return -1.
|
|
117
|
+
*
|
|
118
|
+
* Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
|
|
119
|
+
* entity is incomplete, and resume when the next string is written.
|
|
120
|
+
*
|
|
121
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
122
|
+
* @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
|
|
123
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
124
|
+
*/
|
|
125
|
+
write(input, offset) {
|
|
126
|
+
switch (this.state) {
|
|
127
|
+
case EntityDecoderState.EntityStart: {
|
|
128
|
+
if (input.charCodeAt(offset) === CharCodes.NUM) {
|
|
129
|
+
this.state = EntityDecoderState.NumericStart;
|
|
130
|
+
this.consumed += 1;
|
|
131
|
+
return this.stateNumericStart(input, offset + 1);
|
|
132
|
+
}
|
|
133
|
+
this.state = EntityDecoderState.NamedEntity;
|
|
134
|
+
return this.stateNamedEntity(input, offset);
|
|
135
|
+
}
|
|
136
|
+
case EntityDecoderState.NumericStart: {
|
|
137
|
+
return this.stateNumericStart(input, offset);
|
|
138
|
+
}
|
|
139
|
+
case EntityDecoderState.NumericDecimal: {
|
|
140
|
+
return this.stateNumericDecimal(input, offset);
|
|
141
|
+
}
|
|
142
|
+
case EntityDecoderState.NumericHex: {
|
|
143
|
+
return this.stateNumericHex(input, offset);
|
|
144
|
+
}
|
|
145
|
+
case EntityDecoderState.NamedEntity: {
|
|
146
|
+
return this.stateNamedEntity(input, offset);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Switches between the numeric decimal and hexadecimal states.
|
|
152
|
+
*
|
|
153
|
+
* Equivalent to the `Numeric character reference state` in the HTML spec.
|
|
154
|
+
*
|
|
155
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
156
|
+
* @param offset The current offset.
|
|
157
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
158
|
+
*/
|
|
159
|
+
stateNumericStart(input, offset) {
|
|
160
|
+
if (offset >= input.length) {
|
|
161
|
+
return -1;
|
|
162
|
+
}
|
|
163
|
+
if ((input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
|
|
164
|
+
this.state = EntityDecoderState.NumericHex;
|
|
165
|
+
this.consumed += 1;
|
|
166
|
+
return this.stateNumericHex(input, offset + 1);
|
|
167
|
+
}
|
|
168
|
+
this.state = EntityDecoderState.NumericDecimal;
|
|
169
|
+
return this.stateNumericDecimal(input, offset);
|
|
170
|
+
}
|
|
171
|
+
addToNumericResult(input, start, end, base) {
|
|
172
|
+
if (start !== end) {
|
|
173
|
+
const digitCount = end - start;
|
|
174
|
+
this.result =
|
|
175
|
+
this.result * Math.pow(base, digitCount) +
|
|
176
|
+
Number.parseInt(input.substr(start, digitCount), base);
|
|
177
|
+
this.consumed += digitCount;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Parses a hexadecimal numeric entity.
|
|
182
|
+
*
|
|
183
|
+
* Equivalent to the `Hexademical character reference state` in the HTML spec.
|
|
184
|
+
*
|
|
185
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
186
|
+
* @param offset The current offset.
|
|
187
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
188
|
+
*/
|
|
189
|
+
stateNumericHex(input, offset) {
|
|
190
|
+
const startIndex = offset;
|
|
191
|
+
while (offset < input.length) {
|
|
192
|
+
const char = input.charCodeAt(offset);
|
|
193
|
+
if (isNumber(char) || isHexadecimalCharacter(char)) {
|
|
194
|
+
offset += 1;
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
this.addToNumericResult(input, startIndex, offset, 16);
|
|
198
|
+
return this.emitNumericEntity(char, 3);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
this.addToNumericResult(input, startIndex, offset, 16);
|
|
202
|
+
return -1;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Parses a decimal numeric entity.
|
|
206
|
+
*
|
|
207
|
+
* Equivalent to the `Decimal character reference state` in the HTML spec.
|
|
208
|
+
*
|
|
209
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
210
|
+
* @param offset The current offset.
|
|
211
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
212
|
+
*/
|
|
213
|
+
stateNumericDecimal(input, offset) {
|
|
214
|
+
const startIndex = offset;
|
|
215
|
+
while (offset < input.length) {
|
|
216
|
+
const char = input.charCodeAt(offset);
|
|
217
|
+
if (isNumber(char)) {
|
|
218
|
+
offset += 1;
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
this.addToNumericResult(input, startIndex, offset, 10);
|
|
222
|
+
return this.emitNumericEntity(char, 2);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
this.addToNumericResult(input, startIndex, offset, 10);
|
|
226
|
+
return -1;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Validate and emit a numeric entity.
|
|
230
|
+
*
|
|
231
|
+
* Implements the logic from the `Hexademical character reference start
|
|
232
|
+
* state` and `Numeric character reference end state` in the HTML spec.
|
|
233
|
+
*
|
|
234
|
+
* @param lastCp The last code point of the entity. Used to see if the
|
|
235
|
+
* entity was terminated with a semicolon.
|
|
236
|
+
* @param expectedLength The minimum number of characters that should be
|
|
237
|
+
* consumed. Used to validate that at least one digit
|
|
238
|
+
* was consumed.
|
|
239
|
+
* @returns The number of characters that were consumed.
|
|
240
|
+
*/
|
|
241
|
+
emitNumericEntity(lastCp, expectedLength) {
|
|
242
|
+
var _a;
|
|
243
|
+
// Ensure we consumed at least one digit.
|
|
244
|
+
if (this.consumed <= expectedLength) {
|
|
245
|
+
(_a = this.errors) === null || _a === void 0 ? void 0 : _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
|
|
246
|
+
return 0;
|
|
247
|
+
}
|
|
248
|
+
// Figure out if this is a legit end of the entity
|
|
249
|
+
if (lastCp === CharCodes.SEMI) {
|
|
250
|
+
this.consumed += 1;
|
|
251
|
+
}
|
|
252
|
+
else if (this.decodeMode === DecodingMode.Strict) {
|
|
253
|
+
return 0;
|
|
254
|
+
}
|
|
255
|
+
this.emitCodePoint(replaceCodePoint(this.result), this.consumed);
|
|
256
|
+
if (this.errors) {
|
|
257
|
+
if (lastCp !== CharCodes.SEMI) {
|
|
258
|
+
this.errors.missingSemicolonAfterCharacterReference();
|
|
259
|
+
}
|
|
260
|
+
this.errors.validateNumericCharacterReference(this.result);
|
|
261
|
+
}
|
|
262
|
+
return this.consumed;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Parses a named entity.
|
|
266
|
+
*
|
|
267
|
+
* Equivalent to the `Named character reference state` in the HTML spec.
|
|
268
|
+
*
|
|
269
|
+
* @param input The string containing the entity (or a continuation of the entity).
|
|
270
|
+
* @param offset The current offset.
|
|
271
|
+
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
272
|
+
*/
|
|
273
|
+
stateNamedEntity(input, offset) {
|
|
274
|
+
const { decodeTree } = this;
|
|
275
|
+
let current = decodeTree[this.treeIndex];
|
|
276
|
+
// The mask is the number of bytes of the value, including the current byte.
|
|
277
|
+
let valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
278
|
+
for (; offset < input.length; offset++, this.excess++) {
|
|
279
|
+
const char = input.charCodeAt(offset);
|
|
280
|
+
this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char);
|
|
281
|
+
if (this.treeIndex < 0) {
|
|
282
|
+
return this.result === 0 ||
|
|
283
|
+
// If we are parsing an attribute
|
|
284
|
+
(this.decodeMode === DecodingMode.Attribute &&
|
|
285
|
+
// We shouldn't have consumed any characters after the entity,
|
|
286
|
+
(valueLength === 0 ||
|
|
287
|
+
// And there should be no invalid characters.
|
|
288
|
+
isEntityInAttributeInvalidEnd(char)))
|
|
289
|
+
? 0
|
|
290
|
+
: this.emitNotTerminatedNamedEntity();
|
|
291
|
+
}
|
|
292
|
+
current = decodeTree[this.treeIndex];
|
|
293
|
+
valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
294
|
+
// If the branch is a value, store it and continue
|
|
295
|
+
if (valueLength !== 0) {
|
|
296
|
+
// If the entity is terminated by a semicolon, we are done.
|
|
297
|
+
if (char === CharCodes.SEMI) {
|
|
298
|
+
return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
|
|
299
|
+
}
|
|
300
|
+
// If we encounter a non-terminated (legacy) entity while parsing strictly, then ignore it.
|
|
301
|
+
if (this.decodeMode !== DecodingMode.Strict) {
|
|
302
|
+
this.result = this.treeIndex;
|
|
303
|
+
this.consumed += this.excess;
|
|
304
|
+
this.excess = 0;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
return -1;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Emit a named entity that was not terminated with a semicolon.
|
|
312
|
+
*
|
|
313
|
+
* @returns The number of characters consumed.
|
|
314
|
+
*/
|
|
315
|
+
emitNotTerminatedNamedEntity() {
|
|
316
|
+
var _a;
|
|
317
|
+
const { result, decodeTree } = this;
|
|
318
|
+
const valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
319
|
+
this.emitNamedEntityData(result, valueLength, this.consumed);
|
|
320
|
+
(_a = this.errors) === null || _a === void 0 ? void 0 : _a.missingSemicolonAfterCharacterReference();
|
|
321
|
+
return this.consumed;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Emit a named entity.
|
|
325
|
+
*
|
|
326
|
+
* @param result The index of the entity in the decode tree.
|
|
327
|
+
* @param valueLength The number of bytes in the entity.
|
|
328
|
+
* @param consumed The number of characters consumed.
|
|
329
|
+
*
|
|
330
|
+
* @returns The number of characters consumed.
|
|
331
|
+
*/
|
|
332
|
+
emitNamedEntityData(result, valueLength, consumed) {
|
|
333
|
+
const { decodeTree } = this;
|
|
334
|
+
this.emitCodePoint(valueLength === 1
|
|
335
|
+
? decodeTree[result] & ~BinTrieFlags.VALUE_LENGTH
|
|
336
|
+
: decodeTree[result + 1], consumed);
|
|
337
|
+
if (valueLength === 3) {
|
|
338
|
+
// For multi-byte values, we need to emit the second byte.
|
|
339
|
+
this.emitCodePoint(decodeTree[result + 2], consumed);
|
|
340
|
+
}
|
|
341
|
+
return consumed;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Signal to the parser that the end of the input was reached.
|
|
345
|
+
*
|
|
346
|
+
* Remaining data will be emitted and relevant errors will be produced.
|
|
347
|
+
*
|
|
348
|
+
* @returns The number of characters consumed.
|
|
349
|
+
*/
|
|
350
|
+
end() {
|
|
351
|
+
var _a;
|
|
352
|
+
switch (this.state) {
|
|
353
|
+
case EntityDecoderState.NamedEntity: {
|
|
354
|
+
// Emit a named entity if we have one.
|
|
355
|
+
return this.result !== 0 &&
|
|
356
|
+
(this.decodeMode !== DecodingMode.Attribute ||
|
|
357
|
+
this.result === this.treeIndex)
|
|
358
|
+
? this.emitNotTerminatedNamedEntity()
|
|
359
|
+
: 0;
|
|
360
|
+
}
|
|
361
|
+
// Otherwise, emit a numeric entity if we have one.
|
|
362
|
+
case EntityDecoderState.NumericDecimal: {
|
|
363
|
+
return this.emitNumericEntity(0, 2);
|
|
364
|
+
}
|
|
365
|
+
case EntityDecoderState.NumericHex: {
|
|
366
|
+
return this.emitNumericEntity(0, 3);
|
|
367
|
+
}
|
|
368
|
+
case EntityDecoderState.NumericStart: {
|
|
369
|
+
(_a = this.errors) === null || _a === void 0 ? void 0 : _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
|
|
370
|
+
return 0;
|
|
371
|
+
}
|
|
372
|
+
case EntityDecoderState.EntityStart: {
|
|
373
|
+
// Return 0 if we have no entity.
|
|
374
|
+
return 0;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Creates a function that decodes entities in a string.
|
|
381
|
+
*
|
|
382
|
+
* @param decodeTree The decode tree.
|
|
383
|
+
* @returns A function that decodes entities in a string.
|
|
384
|
+
*/
|
|
385
|
+
function getDecoder(decodeTree) {
|
|
386
|
+
let returnValue = "";
|
|
387
|
+
const decoder = new EntityDecoder(decodeTree, (data) => (returnValue += fromCodePoint(data)));
|
|
388
|
+
return function decodeWithTrie(input, decodeMode) {
|
|
389
|
+
let lastIndex = 0;
|
|
390
|
+
let offset = 0;
|
|
391
|
+
while ((offset = input.indexOf("&", offset)) >= 0) {
|
|
392
|
+
returnValue += input.slice(lastIndex, offset);
|
|
393
|
+
decoder.startEntity(decodeMode);
|
|
394
|
+
const length = decoder.write(input,
|
|
395
|
+
// Skip the "&"
|
|
396
|
+
offset + 1);
|
|
397
|
+
if (length < 0) {
|
|
398
|
+
lastIndex = offset + decoder.end();
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
401
|
+
lastIndex = offset + length;
|
|
402
|
+
// If `length` is 0, skip the current `&` and continue.
|
|
403
|
+
offset = length === 0 ? lastIndex + 1 : lastIndex;
|
|
404
|
+
}
|
|
405
|
+
const result = returnValue + input.slice(lastIndex);
|
|
406
|
+
// Make sure we don't keep a reference to the final string.
|
|
407
|
+
returnValue = "";
|
|
408
|
+
return result;
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Determines the branch of the current node that is taken given the current
|
|
413
|
+
* character. This function is used to traverse the trie.
|
|
414
|
+
*
|
|
415
|
+
* @param decodeTree The trie.
|
|
416
|
+
* @param current The current node.
|
|
417
|
+
* @param nodeIdx The index right after the current node and its value.
|
|
418
|
+
* @param char The current character.
|
|
419
|
+
* @returns The index of the next node, or -1 if no branch is taken.
|
|
420
|
+
*/
|
|
421
|
+
export function determineBranch(decodeTree, current, nodeIndex, char) {
|
|
422
|
+
const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
|
|
423
|
+
const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
|
|
424
|
+
// Case 1: Single branch encoded in jump offset
|
|
425
|
+
if (branchCount === 0) {
|
|
426
|
+
return jumpOffset !== 0 && char === jumpOffset ? nodeIndex : -1;
|
|
427
|
+
}
|
|
428
|
+
// Case 2: Multiple branches encoded in jump table
|
|
429
|
+
if (jumpOffset) {
|
|
430
|
+
const value = char - jumpOffset;
|
|
431
|
+
return value < 0 || value >= branchCount
|
|
432
|
+
? -1
|
|
433
|
+
: decodeTree[nodeIndex + value] - 1;
|
|
434
|
+
}
|
|
435
|
+
// Case 3: Multiple branches encoded in dictionary
|
|
436
|
+
// Binary search for the character.
|
|
437
|
+
let lo = nodeIndex;
|
|
438
|
+
let hi = lo + branchCount - 1;
|
|
439
|
+
while (lo <= hi) {
|
|
440
|
+
const mid = (lo + hi) >>> 1;
|
|
441
|
+
const midValue = decodeTree[mid];
|
|
442
|
+
if (midValue < char) {
|
|
443
|
+
lo = mid + 1;
|
|
444
|
+
}
|
|
445
|
+
else if (midValue > char) {
|
|
446
|
+
hi = mid - 1;
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
return decodeTree[mid + branchCount];
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
return -1;
|
|
453
|
+
}
|
|
454
|
+
const htmlDecoder = /* #__PURE__ */ getDecoder(htmlDecodeTree);
|
|
455
|
+
const xmlDecoder = /* #__PURE__ */ getDecoder(xmlDecodeTree);
|
|
456
|
+
/**
|
|
457
|
+
* Decodes an HTML string.
|
|
458
|
+
*
|
|
459
|
+
* @param htmlString The string to decode.
|
|
460
|
+
* @param mode The decoding mode.
|
|
461
|
+
* @returns The decoded string.
|
|
462
|
+
*/
|
|
463
|
+
export function decodeHTML(htmlString, mode = DecodingMode.Legacy) {
|
|
464
|
+
return htmlDecoder(htmlString, mode);
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Decodes an HTML string in an attribute.
|
|
468
|
+
*
|
|
469
|
+
* @param htmlAttribute The string to decode.
|
|
470
|
+
* @returns The decoded string.
|
|
471
|
+
*/
|
|
472
|
+
export function decodeHTMLAttribute(htmlAttribute) {
|
|
473
|
+
return htmlDecoder(htmlAttribute, DecodingMode.Attribute);
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Decodes an HTML string, requiring all entities to be terminated by a semicolon.
|
|
477
|
+
*
|
|
478
|
+
* @param htmlString The string to decode.
|
|
479
|
+
* @returns The decoded string.
|
|
480
|
+
*/
|
|
481
|
+
export function decodeHTMLStrict(htmlString) {
|
|
482
|
+
return htmlDecoder(htmlString, DecodingMode.Strict);
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Decodes an XML string, requiring all entities to be terminated by a semicolon.
|
|
486
|
+
*
|
|
487
|
+
* @param xmlString The string to decode.
|
|
488
|
+
* @returns The decoded string.
|
|
489
|
+
*/
|
|
490
|
+
export function decodeXML(xmlString) {
|
|
491
|
+
return xmlDecoder(xmlString, DecodingMode.Strict);
|
|
492
|
+
}
|
|
493
|
+
// Re-export for use by eg. htmlparser2
|
|
494
|
+
export { htmlDecodeTree } from "./generated/decode-data-html.js";
|
|
495
|
+
export { xmlDecodeTree } from "./generated/decode-data-xml.js";
|
|
496
|
+
export { decodeCodePoint, replaceCodePoint, fromCodePoint, } from "./decode-codepoint.js";
|
|
497
|
+
//# sourceMappingURL=decode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decode.js","sourceRoot":"","sources":["../../src/decode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAExE,IAAW,SAaV;AAbD,WAAW,SAAS;IAChB,wCAAQ,CAAA;IACR,0CAAS,CAAA;IACT,8CAAW,CAAA;IACX,0CAAS,CAAA;IACT,0CAAS,CAAA;IACT,gDAAY,CAAA;IACZ,iDAAa,CAAA;IACb,iDAAa,CAAA;IACb,iDAAa,CAAA;IACb,gDAAY,CAAA;IACZ,gDAAY,CAAA;IACZ,gDAAY,CAAA;AAChB,CAAC,EAbU,SAAS,KAA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AAI,QAAQ,GAAG,IAAI,EAAE,CAAC;YACzB,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC;QACjB,CAAC;aAAM,CAAC;YACJ,OAAO,UAAU,CAAC,GAAG,GAAG,WAAW,CAAC,CAAC;QACzC,CAAC;IACL,CAAC;IAED,OAAO,CAAC,CAAC,CAAC;AACd,CAAC;AAED,MAAM,WAAW,GAAG,eAAe,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AAC/D,MAAM,UAAU,GAAG,eAAe,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CACtB,UAAkB,EAClB,OAAqB,YAAY,CAAC,MAAM;IAExC,OAAO,WAAW,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,aAAqB;IACrD,OAAO,WAAW,CAAC,aAAa,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;AAC9D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,UAAkB;IAC/C,OAAO,WAAW,CAAC,UAAU,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,SAAiB;IACvC,OAAO,UAAU,CAAC,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,uCAAuC;AACvC,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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Encodes all characters in the input using HTML entities. This includes
|
|
3
|
+
* characters that are valid ASCII characters in HTML documents, such as `#`.
|
|
4
|
+
*
|
|
5
|
+
* To get a more compact output, consider using the `encodeNonAsciiHTML`
|
|
6
|
+
* function, which will only encode characters that are not valid in HTML
|
|
7
|
+
* documents, as well as non-ASCII characters.
|
|
8
|
+
*
|
|
9
|
+
* If a character has no equivalent entity, a numeric hexadecimal reference
|
|
10
|
+
* (eg. `ü`) will be used.
|
|
11
|
+
*/
|
|
12
|
+
export declare function encodeHTML(input: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Encodes all non-ASCII characters, as well as characters not valid in HTML
|
|
15
|
+
* documents using HTML entities. This function will not encode characters that
|
|
16
|
+
* are valid in HTML documents, such as `#`.
|
|
17
|
+
*
|
|
18
|
+
* If a character has no equivalent entity, a numeric hexadecimal reference
|
|
19
|
+
* (eg. `ü`) will be used.
|
|
20
|
+
*/
|
|
21
|
+
export declare function encodeNonAsciiHTML(input: string): string;
|
|
22
|
+
//# sourceMappingURL=encode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["../../src/encode.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD;AACD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAExD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { htmlTrie } from "./generated/encode-html.js";
|
|
2
|
+
import { xmlReplacer, getCodePoint } from "./escape.js";
|
|
3
|
+
const htmlReplacer = /[\t\n\f!-,./:-@[-`{-}\u0080-\uFFFF]/g;
|
|
4
|
+
/**
|
|
5
|
+
* Encodes all characters in the input using HTML entities. This includes
|
|
6
|
+
* characters that are valid ASCII characters in HTML documents, such as `#`.
|
|
7
|
+
*
|
|
8
|
+
* To get a more compact output, consider using the `encodeNonAsciiHTML`
|
|
9
|
+
* function, which will only encode characters that are not valid in HTML
|
|
10
|
+
* documents, as well as non-ASCII characters.
|
|
11
|
+
*
|
|
12
|
+
* If a character has no equivalent entity, a numeric hexadecimal reference
|
|
13
|
+
* (eg. `ü`) will be used.
|
|
14
|
+
*/
|
|
15
|
+
export function encodeHTML(input) {
|
|
16
|
+
return encodeHTMLTrieRe(htmlReplacer, input);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Encodes all non-ASCII characters, as well as characters not valid in HTML
|
|
20
|
+
* documents using HTML entities. This function will not encode characters that
|
|
21
|
+
* are valid in HTML documents, such as `#`.
|
|
22
|
+
*
|
|
23
|
+
* If a character has no equivalent entity, a numeric hexadecimal reference
|
|
24
|
+
* (eg. `ü`) will be used.
|
|
25
|
+
*/
|
|
26
|
+
export function encodeNonAsciiHTML(input) {
|
|
27
|
+
return encodeHTMLTrieRe(xmlReplacer, input);
|
|
28
|
+
}
|
|
29
|
+
function encodeHTMLTrieRe(regExp, input) {
|
|
30
|
+
let returnValue = "";
|
|
31
|
+
let lastIndex = 0;
|
|
32
|
+
let match;
|
|
33
|
+
while ((match = regExp.exec(input)) !== null) {
|
|
34
|
+
const { index } = match;
|
|
35
|
+
returnValue += input.substring(lastIndex, index);
|
|
36
|
+
const char = input.charCodeAt(index);
|
|
37
|
+
let next = htmlTrie.get(char);
|
|
38
|
+
if (typeof next === "object") {
|
|
39
|
+
// We are in a branch. Try to match the next char.
|
|
40
|
+
if (index + 1 < input.length) {
|
|
41
|
+
const nextChar = input.charCodeAt(index + 1);
|
|
42
|
+
const value = typeof next.n === "number"
|
|
43
|
+
? next.n === nextChar
|
|
44
|
+
? next.o
|
|
45
|
+
: undefined
|
|
46
|
+
: next.n.get(nextChar);
|
|
47
|
+
if (value !== undefined) {
|
|
48
|
+
returnValue += value;
|
|
49
|
+
lastIndex = regExp.lastIndex += 1;
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
next = next.v;
|
|
54
|
+
}
|
|
55
|
+
// We might have a tree node without a value; skip and use a numeric entity.
|
|
56
|
+
if (next === undefined) {
|
|
57
|
+
const cp = getCodePoint(input, index);
|
|
58
|
+
returnValue += `&#x${cp.toString(16)};`;
|
|
59
|
+
// Increase by 1 if we have a surrogate pair
|
|
60
|
+
lastIndex = regExp.lastIndex += Number(cp !== char);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
returnValue += next;
|
|
64
|
+
lastIndex = index + 1;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return returnValue + input.substr(lastIndex);
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=encode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encode.js","sourceRoot":"","sources":["../../src/encode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,YAAY,GAAG,sCAAsC,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa;IACpC,OAAO,gBAAgB,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AACD;;;;;;;GAOG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAa;IAC5C,OAAO,gBAAgB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,gBAAgB,CAAC,MAAc,EAAE,KAAa;IACnD,IAAI,WAAW,GAAG,EAAE,CAAC;IACrB,IAAI,SAAS,GAAG,CAAC,CAAC;IAClB,IAAI,KAAK,CAAC;IAEV,OAAO,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;QAC3C,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;QACxB,WAAW,IAAI,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACjD,MAAM,IAAI,GAA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,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const xmlReplacer: RegExp;
|
|
2
|
+
export declare const getCodePoint: (c: string, index: number) => number;
|
|
3
|
+
/**
|
|
4
|
+
* Encodes all non-ASCII characters, as well as characters not valid in XML
|
|
5
|
+
* documents using XML entities.
|
|
6
|
+
*
|
|
7
|
+
* If a character has no equivalent entity, a
|
|
8
|
+
* numeric hexadecimal reference (eg. `ü`) will be used.
|
|
9
|
+
*/
|
|
10
|
+
export declare function encodeXML(input: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Encodes all non-ASCII characters, as well as characters not valid in XML
|
|
13
|
+
* documents using numeric hexadecimal reference (eg. `ü`).
|
|
14
|
+
*
|
|
15
|
+
* Have a look at `escapeUTF8` if you want a more concise output at the expense
|
|
16
|
+
* of reduced transportability.
|
|
17
|
+
*
|
|
18
|
+
* @param data String to escape.
|
|
19
|
+
*/
|
|
20
|
+
export declare const escape: typeof encodeXML;
|
|
21
|
+
/**
|
|
22
|
+
* Encodes all characters not valid in XML documents using XML entities.
|
|
23
|
+
*
|
|
24
|
+
* Note that the output will be character-set dependent.
|
|
25
|
+
*
|
|
26
|
+
* @param data String to escape.
|
|
27
|
+
*/
|
|
28
|
+
export declare const escapeUTF8: (data: string) => string;
|
|
29
|
+
/**
|
|
30
|
+
* Encodes all characters that have to be escaped in HTML attributes,
|
|
31
|
+
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
|
|
32
|
+
*
|
|
33
|
+
* @param data String to escape.
|
|
34
|
+
*/
|
|
35
|
+
export declare const escapeAttribute: (data: string) => string;
|
|
36
|
+
/**
|
|
37
|
+
* Encodes all characters that have to be escaped in HTML text,
|
|
38
|
+
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
|
|
39
|
+
*
|
|
40
|
+
* @param data String to escape.
|
|
41
|
+
*/
|
|
42
|
+
export declare const escapeText: (data: string) => string;
|
|
43
|
+
//# sourceMappingURL=escape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../src/escape.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,EAAE,MAAiC,CAAC;AAW5D,eAAO,MAAM,YAAY,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAWoB,CAAC;AAE9E;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA0B/C;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,SAAqB,CAAC;AAqClD;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAG1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAQ3C,CAAC;AAEN;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAQ1C,CAAC"}
|