cloudstructs 0.9.42 → 0.9.44
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 +5 -5
- package/API.md +209 -13
- package/assets/slack-textract/detect.lambda/index.js +354 -90
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +36 -1
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@slack/logger/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@slack/logger/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@slack/logger/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@slack/logger/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@slack/logger/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts +4 -0
- package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts +36 -2
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/composition-objects.d.ts +14 -0
- package/node_modules/@slack/types/dist/block-kit/composition-objects.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/extensions.d.ts +2 -0
- package/node_modules/@slack/types/dist/block-kit/extensions.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/entity-details-requested.d.ts +21 -0
- package/node_modules/@slack/types/dist/events/entity-details-requested.d.ts.map +1 -0
- package/node_modules/@slack/types/dist/events/entity-details-requested.js +3 -0
- package/node_modules/@slack/types/dist/events/entity-details-requested.js.map +1 -0
- package/node_modules/@slack/types/dist/events/index.d.ts +2 -1
- package/node_modules/@slack/types/dist/events/index.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/index.js.map +1 -1
- package/node_modules/@slack/types/dist/message-metadata.d.ts +260 -1
- package/node_modules/@slack/types/dist/message-metadata.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/message-metadata.js +24 -0
- package/node_modules/@slack/types/dist/message-metadata.js.map +1 -1
- package/node_modules/@slack/types/package.json +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.d.ts +2 -0
- package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.js +2 -0
- package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.d.ts +80 -2
- package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.js +78 -0
- package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/chat.d.ts +37 -9
- package/node_modules/@slack/web-api/dist/types/request/chat.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/entity.d.ts +46 -0
- package/node_modules/@slack/web-api/dist/types/request/entity.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/request/entity.js +3 -0
- package/node_modules/@slack/web-api/dist/types/request/entity.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts +2 -0
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/search.d.ts +10 -1
- package/node_modules/@slack/web-api/dist/types/request/search.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/slackLists.d.ts +806 -0
- package/node_modules/@slack/web-api/dist/types/request/slackLists.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/request/slackLists.js +3 -0
- package/node_modules/@slack/web-api/dist/types/request/slackLists.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.d.ts +9 -0
- package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.d.ts +8 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.d.ts +8 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.d.ts +14 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.d.ts +10 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.d.ts +9 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.d.ts +10 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.d.ts +8 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.d.ts +8 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.d.ts +12 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.d.ts +13 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.d.ts +8 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.d.ts +8 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts +13 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +36 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@slack/web-api/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@slack/web-api/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/@slack/web-api/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +36 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +36 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +36 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +50 -33
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +3 -2
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +198 -164
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +89 -76
- package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +52 -22
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +29 -22
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +82 -50
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +7 -6
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +3 -2
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +13 -5
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +221 -7
- package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +88 -64
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +34 -10
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +11 -2
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +20 -3
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +24 -3
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +40 -3
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +82 -21
- package/node_modules/axios/CHANGELOG.md +410 -346
- package/node_modules/axios/README.md +79 -51
- package/node_modules/axios/dist/axios.js +121 -46
- 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 +126 -57
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +126 -57
- 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 +351 -97
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +4 -0
- package/node_modules/axios/index.d.ts +4 -0
- package/node_modules/axios/lib/adapters/adapters.js +85 -40
- package/node_modules/axios/lib/adapters/fetch.js +1 -1
- package/node_modules/axios/lib/adapters/http.js +224 -42
- package/node_modules/axios/lib/core/InterceptorManager.js +1 -1
- package/node_modules/axios/lib/core/mergeConfig.js +4 -4
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +6 -0
- package/node_modules/axios/lib/helpers/bind.js +7 -0
- package/node_modules/axios/lib/helpers/cookies.js +24 -13
- package/node_modules/axios/package.json +9 -4
- package/node_modules/form-data/CHANGELOG.md +60 -2
- package/node_modules/form-data/README.md +4 -4
- package/node_modules/form-data/lib/form_data.js +2 -2
- package/node_modules/form-data/package.json +4 -4
- package/node_modules/js-beautify/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/glob/dist/commonjs/index.d.ts +2 -2
- package/node_modules/js-beautify/node_modules/glob/dist/esm/bin.mjs +111 -35
- package/node_modules/js-beautify/node_modules/glob/dist/esm/bin.mjs.map +1 -1
- package/node_modules/js-beautify/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/glob/dist/esm/index.d.ts +2 -2
- package/node_modules/js-beautify/node_modules/glob/package.json +1 -1
- package/node_modules/mjml/LICENSE.md +21 -0
- package/node_modules/mjml/package.json +9 -8
- package/node_modules/mjml-accordion/LICENSE.md +21 -0
- package/node_modules/mjml-accordion/README.md +2 -2
- package/node_modules/mjml-accordion/lib/Accordion.js +8 -0
- package/node_modules/mjml-accordion/lib/AccordionElement.js +8 -0
- package/node_modules/mjml-accordion/lib/AccordionText.js +17 -3
- package/node_modules/mjml-accordion/lib/AccordionTitle.js +17 -3
- package/node_modules/mjml-accordion/package.json +4 -3
- package/node_modules/mjml-body/LICENSE.md +21 -0
- package/node_modules/mjml-body/package.json +4 -3
- package/node_modules/mjml-button/LICENSE.md +21 -0
- package/node_modules/mjml-button/README.md +1 -1
- package/node_modules/mjml-button/package.json +4 -3
- package/node_modules/mjml-carousel/LICENSE.md +21 -0
- package/node_modules/mjml-carousel/README.md +5 -5
- package/node_modules/mjml-carousel/lib/Carousel.js +15 -2
- package/node_modules/mjml-carousel/lib/CarouselImage.js +8 -1
- package/node_modules/mjml-carousel/package.json +4 -3
- package/node_modules/mjml-cli/LICENSE.md +21 -0
- package/node_modules/mjml-cli/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/glob/dist/commonjs/index.d.ts +2 -2
- package/node_modules/mjml-cli/node_modules/glob/dist/esm/bin.mjs +111 -35
- package/node_modules/mjml-cli/node_modules/glob/dist/esm/bin.mjs.map +1 -1
- package/node_modules/mjml-cli/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/glob/dist/esm/index.d.ts +2 -2
- package/node_modules/mjml-cli/node_modules/glob/package.json +1 -1
- package/node_modules/mjml-cli/package.json +7 -6
- package/node_modules/mjml-column/LICENSE.md +21 -0
- package/node_modules/mjml-column/lib/index.js +29 -3
- package/node_modules/mjml-column/package.json +4 -3
- package/node_modules/mjml-core/LICENSE.md +21 -0
- package/node_modules/mjml-core/lib/createComponent.js +4 -2
- package/node_modules/mjml-core/lib/index.js +3 -0
- package/node_modules/mjml-core/package.json +6 -5
- package/node_modules/mjml-divider/LICENSE.md +21 -0
- package/node_modules/mjml-divider/package.json +4 -3
- package/node_modules/mjml-group/LICENSE.md +21 -0
- package/node_modules/mjml-group/README.md +4 -4
- package/node_modules/mjml-group/package.json +4 -3
- package/node_modules/mjml-head/LICENSE.md +21 -0
- package/node_modules/mjml-head/package.json +4 -3
- package/node_modules/mjml-head-attributes/LICENSE.md +21 -0
- package/node_modules/mjml-head-attributes/package.json +4 -3
- package/node_modules/mjml-head-breakpoint/LICENSE.md +21 -0
- package/node_modules/mjml-head-breakpoint/package.json +4 -3
- package/node_modules/mjml-head-font/LICENSE.md +21 -0
- package/node_modules/mjml-head-font/package.json +4 -3
- package/node_modules/mjml-head-html-attributes/LICENSE.md +21 -0
- package/node_modules/mjml-head-html-attributes/package.json +4 -3
- package/node_modules/mjml-head-preview/LICENSE.md +21 -0
- package/node_modules/mjml-head-preview/package.json +4 -3
- package/node_modules/mjml-head-style/LICENSE.md +21 -0
- package/node_modules/mjml-head-style/package.json +4 -3
- package/node_modules/mjml-head-title/LICENSE.md +21 -0
- package/node_modules/mjml-head-title/package.json +4 -3
- package/node_modules/mjml-hero/LICENSE.md +21 -0
- package/node_modules/mjml-hero/README.md +4 -4
- package/node_modules/mjml-hero/package.json +4 -3
- package/node_modules/mjml-image/LICENSE.md +21 -0
- package/node_modules/mjml-image/README.md +1 -1
- package/node_modules/mjml-image/package.json +4 -3
- package/node_modules/mjml-migrate/package.json +5 -4
- package/node_modules/mjml-navbar/LICENSE.md +21 -0
- package/node_modules/mjml-navbar/README.md +4 -4
- package/node_modules/mjml-navbar/lib/Navbar.js +2 -2
- package/node_modules/mjml-navbar/package.json +4 -3
- package/node_modules/mjml-parser-xml/package.json +4 -4
- package/node_modules/mjml-preset-core/LICENSE.md +21 -0
- package/node_modules/mjml-preset-core/package.json +28 -27
- package/node_modules/mjml-raw/LICENSE.md +21 -0
- package/node_modules/mjml-raw/package.json +4 -3
- package/node_modules/mjml-section/LICENSE.md +21 -0
- package/node_modules/mjml-section/lib/index.js +20 -4
- package/node_modules/mjml-section/package.json +4 -3
- package/node_modules/mjml-social/LICENSE.md +21 -0
- package/node_modules/mjml-social/README.md +1 -1
- package/node_modules/mjml-social/lib/SocialElement.js +3 -4
- package/node_modules/mjml-social/package.json +4 -3
- package/node_modules/mjml-spacer/LICENSE.md +21 -0
- package/node_modules/mjml-spacer/package.json +4 -3
- package/node_modules/mjml-table/LICENSE.md +21 -0
- package/node_modules/mjml-table/lib/index.js +12 -1
- package/node_modules/mjml-table/package.json +4 -3
- package/node_modules/mjml-text/LICENSE.md +21 -0
- package/node_modules/mjml-text/package.json +4 -3
- package/node_modules/mjml-validator/package.json +2 -2
- package/node_modules/mjml-wrapper/LICENSE.md +21 -0
- package/node_modules/mjml-wrapper/README.md +2 -1
- package/node_modules/mjml-wrapper/lib/index.js +12 -0
- package/node_modules/mjml-wrapper/package.json +5 -4
- package/package.json +19 -19
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
<h3 align="center"> 🥇 Gold sponsors <br> </h3> <table align="center" width="100%"><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://
|
|
3
|
-
</td><td align="center" width="33.333333333333336%"> <a href="https://stytch.com/?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http" style="padding: 10px; display: inline-block" target="_blank"> <picture> <source width="200px" height="38px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/stytch_white.png"> <img width="200px" height="38px" src="https://axios-http.com/assets/sponsors/stytch.png" alt="Stytch"/> </picture> </a> <p align="center" title="API-first authentication, authorization, and fraud prevention">API-first authentication, authorization, and fraud prevention</p> <p align="center"> <a href="https://stytch.com/?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http" target="_blank"><b>Website</b></a> | <a href="https://stytch.com/docs?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=docs-link&utm_campaign=axios-http" target="_blank"><b>Documentation</b></a> | <a href="https://github.com/stytchauth/stytch-node?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=node-sdk&utm_campaign=axios-http" target="_blank"><b>Node.js</b></a> </p>
|
|
2
|
+
<h3 align="center"> 🥇 Gold sponsors <br> </h3> <table align="center" width="100%"><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://stytch.com/?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http" style="padding: 10px; display: inline-block" target="_blank"> <picture> <source width="200px" height="38px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/stytch_white.png"> <img width="200px" height="38px" src="https://axios-http.com/assets/sponsors/stytch.png" alt="Stytch"/> </picture> </a> <p align="center" title="API-first authentication, authorization, and fraud prevention">API-first authentication, authorization, and fraud prevention</p> <p align="center"> <a href="https://stytch.com/?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http" target="_blank"><b>Website</b></a> | <a href="https://stytch.com/docs?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=docs-link&utm_campaign=axios-http" target="_blank"><b>Documentation</b></a> | <a href="https://github.com/stytchauth/stytch-node?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=node-sdk&utm_campaign=axios-http" target="_blank"><b>Node.js</b></a> </p>
|
|
4
3
|
</td><td align="center" width="33.333333333333336%"> <a href="https://www.principal.com/about-us?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="133px" height="43px" src="https://axios-http.com/assets/sponsors/principal.svg" alt="Principal Financial Group"/> </a> <p align="center" title="We’re bound by one common purpose: to give you the financial tools, resources and information you need to live your best life.">We’re bound by one common purpose: to give you the financial tools, resources and information you ne...</p> <p align="center"> <a href="https://www.principal.com/about-us?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>www.principal.com</b></a> </p>
|
|
5
|
-
</td
|
|
6
|
-
</td><td align="center" width="33.333333333333336%"> <a href="https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <picture> <source width="200px" height="52px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/descope_white.png"> <img width="200px" height="52px" src="https://axios-http.com/assets/sponsors/descope.png" alt="Descope"/> </picture> </a> <p align="center" title="Hi, we're Descope! We are building something in the authentication space for app developers and can’t wait to place it in your hands.">Hi, we're Descope! We are building something in the authentication space for app developers and...</p> <p align="center"> <a href="https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" target="_blank"><b>Website</b></a> | <a href="https://docs.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" target="_blank"><b>Docs</b></a> | <a href="https://www.descope.com/community?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" target="_blank"><b>Community</b></a> </p>
|
|
4
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://twicsy.com/buy-instagram-followers?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="85px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/dfa9670ad5e66eea17315332453c7f4e3a3b5905.png" alt="Buy Instagram Followers Twicsy"/> </a> <p align="center" title="Buy real Instagram followers from Twicsy starting at only $2.97. Twicsy has been voted the best site to buy followers from the likes of US Magazine.">Buy real Instagram followers from Twicsy starting at only $2.97. Twicsy has been voted the best site...</p> <p align="center"> <a href="https://twicsy.com/buy-instagram-followers?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>twicsy.com</b></a> </p>
|
|
5
|
+
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <picture> <source width="200px" height="52px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/descope_white.png"> <img width="200px" height="52px" src="https://axios-http.com/assets/sponsors/descope.png" alt="Descope"/> </picture> </a> <p align="center" title="Hi, we're Descope! We are building something in the authentication space for app developers and can’t wait to place it in your hands.">Hi, we're Descope! We are building something in the authentication space for app developers and...</p> <p align="center"> <a href="https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" target="_blank"><b>Website</b></a> | <a href="https://docs.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" target="_blank"><b>Docs</b></a> | <a href="https://www.descope.com/community?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship" target="_blank"><b>Community</b></a> </p>
|
|
7
6
|
</td><td align="center" width="33.333333333333336%"> <a href="https://route4me.com/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <picture> <source width="200px" height="51px" media="(prefers-color-scheme: dark)" srcset="https://axios-http.com/assets/sponsors/route4me_white.png"> <img width="200px" height="51px" src="https://axios-http.com/assets/sponsors/route4me.png" alt="Route4Me"/> </picture> </a> <p align="center" title="Best Route Planning And Route Optimization Software">Best Route Planning And Route Optimization Software</p> <p align="center"> <a href="https://route4me.com/platform/route-optimization-software?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>Explore</b></a> | <a href="https://route4me.com/platform/marketplace/pricing?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>Free Trial</b></a> | <a href="https://route4me.com/contact?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>Contact</b></a> </p>
|
|
8
|
-
</td
|
|
9
|
-
</td><td align="center" width="33.333333333333336%"> <a href="https://
|
|
10
|
-
</td><td align="center" width="33.333333333333336%"> <a href="https://
|
|
11
|
-
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://ssmarket.net/buy-youtube-subscribers?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/0845614102b0c6602707ca2983de05a0098faad4.png" alt="Buy Youtube Subscribers"/> </a> <p align="center" title="SS Market offers professional social media services that rapidly increase your YouTube subscriber count, elevating your channel to a powerful position.">SS Market offers professional social media services that rapidly increase your YouTube subscriber co...</p> <p align="center"> <a href="https://ssmarket.net/buy-youtube-subscribers?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>ssmarket.net</b></a> </p>
|
|
12
|
-
</td><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute" target="_blank" >💜 Become a sponsor</a>
|
|
7
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://buzzoid.com/buy-instagram-followers/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="62px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/e1625cb54e10ee40180c99d1495a462e9d6664a4.png" alt="Buzzoid - Buy Instagram Followers"/> </a> <p align="center" title="At Buzzoid, you can buy Instagram followers quickly, safely, and easily with just a few clicks. Rated world's #1 IG service since 2012.">At Buzzoid, you can buy Instagram followers quickly, safely, and easily with just a few clicks. Rate...</p> <p align="center"> <a href="https://buzzoid.com/buy-instagram-followers/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>buzzoid.com</b></a> </p>
|
|
8
|
+
</td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://poprey.com/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="70px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/e699ec99f7df3a203ddbc49d3c7712a907e628ea.png" alt="Poprey - Buy Instagram Likes"/> </a> <p align="center" title="Buy Instagram Likes">Buy Instagram Likes</p> <p align="center"> <a href="https://poprey.com/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>poprey.com</b></a> </p>
|
|
9
|
+
</td><td align="center" width="33.333333333333336%"> <a href="https://requestly.com/?utm_source=axios&utm_medium=sponsorlist&utm_campaign=sponsorship" style="padding: 10px; display: inline-block" target="_blank"> <img width="71px" height="70px" src="https://axios-http.com/assets/sponsors/opencollective/16450b4dc0deb9dab5a511bf2bc8b8b4ac33412f.png" alt="Requestly"/> </a> <p align="center" title="A lightweight open-source API Development, Testing & Mocking platform">A lightweight open-source API Development, Testing & Mocking platform</p> <p align="center"> <a href="https://requestly.com/?utm_source=axios&utm_medium=readme_sponsorlist&utm_campaign=sponsorship" target="_blank"><b>requestly.com</b></a> </p>
|
|
13
10
|
</td><td align="center" width="33.333333333333336%"> <a href="https://opencollective.com/axios/contribute" target="_blank" >💜 Become a sponsor</a>
|
|
14
11
|
</td></tr></table>
|
|
15
12
|
|
|
16
13
|
<!--<div>marker</div>-->
|
|
17
14
|
<br><br>
|
|
18
15
|
<div align="center">
|
|
19
|
-
<a href="https://axios-http.com"><img src="https://axios-http.com/assets/logo.svg" /></a><br>
|
|
16
|
+
<a href="https://axios-http.com"><img src="https://axios-http.com/assets/logo.svg" alt="Axios" /></a><br>
|
|
20
17
|
</div>
|
|
21
18
|
|
|
22
19
|
<p align="center">Promise based HTTP client for the browser and node.js</p>
|
|
@@ -39,6 +36,7 @@
|
|
|
39
36
|
[](https://gitter.im/mzabriskie/axios)
|
|
40
37
|
[](https://www.codetriage.com/axios/axios)
|
|
41
38
|
[](https://snyk.io/test/npm/axios)
|
|
39
|
+
[](CONTRIBUTORS.md)
|
|
42
40
|
|
|
43
41
|
|
|
44
42
|
|
|
@@ -80,12 +78,13 @@
|
|
|
80
78
|
- [Files Posting](#files-posting)
|
|
81
79
|
- [HTML Form Posting](#-html-form-posting-browser)
|
|
82
80
|
- [🆕 Progress capturing](#-progress-capturing)
|
|
83
|
-
- [🆕 Rate limiting](#-
|
|
81
|
+
- [🆕 Rate limiting](#-rate-limiting)
|
|
84
82
|
- [🆕 AxiosHeaders](#-axiosheaders)
|
|
85
83
|
- [🔥 Fetch adapter](#-fetch-adapter)
|
|
86
84
|
- [🔥 Custom fetch](#-custom-fetch)
|
|
87
85
|
- [🔥 Using with Tauri](#-using-with-tauri)
|
|
88
86
|
- [🔥 Using with SvelteKit](#-using-with-sveltekit-)
|
|
87
|
+
- [🔥 HTTP2](#-http2)
|
|
89
88
|
- [Semver](#semver)
|
|
90
89
|
- [Promises](#promises)
|
|
91
90
|
- [TypeScript](#typescript)
|
|
@@ -95,21 +94,22 @@
|
|
|
95
94
|
|
|
96
95
|
## Features
|
|
97
96
|
|
|
98
|
-
- Make [XMLHttpRequests](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) from the browser
|
|
99
|
-
- Make [http](https://nodejs.org/api/http.html) requests from
|
|
100
|
-
-
|
|
101
|
-
- Intercept
|
|
102
|
-
- Transform request and response data
|
|
103
|
-
- Cancel requests
|
|
104
|
-
- Automatic
|
|
105
|
-
- 🆕
|
|
106
|
-
- Client
|
|
97
|
+
- **Browser Requests:** Make [XMLHttpRequests](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) directly from the browser.
|
|
98
|
+
- **Node.js Requests:** Make [http](https://nodejs.org/api/http.html) requests from Node.js environments.
|
|
99
|
+
- **Promise-based:** Fully supports the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) API for easier asynchronous code.
|
|
100
|
+
- **Interceptors:** Intercept requests and responses to add custom logic or transform data.
|
|
101
|
+
- **Data Transformation:** Transform request and response data automatically.
|
|
102
|
+
- **Request Cancellation:** Cancel requests using built-in mechanisms.
|
|
103
|
+
- **Automatic JSON Handling:** Automatically serializes and parses [JSON](https://www.json.org/json-en.html) data.
|
|
104
|
+
- **Form Serialization:** 🆕 Automatically serializes data objects to `multipart/form-data` or `x-www-form-urlencoded` formats.
|
|
105
|
+
- **XSRF Protection:** Client-side support to protect against [Cross-Site Request Forgery](https://en.wikipedia.org/wiki/Cross-site_request_forgery).
|
|
107
106
|
|
|
108
107
|
## Browser Support
|
|
109
108
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
| Chrome | Firefox | Safari | Opera | Edge |
|
|
110
|
+
|:------:|:-------:|:------:|:-----:|:----:|
|
|
111
|
+
|  |  |  |  |  |
|
|
112
|
+
| Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
|
|
113
113
|
|
|
114
114
|
[](https://saucelabs.com/u/axios)
|
|
115
115
|
|
|
@@ -199,7 +199,7 @@ Using unpkg CDN:
|
|
|
199
199
|
|
|
200
200
|
## Example
|
|
201
201
|
|
|
202
|
-
> **Note**: CommonJS usage
|
|
202
|
+
> **Note**: CommonJS usage
|
|
203
203
|
> In order to gain the TypeScript typings (for intellisense / autocomplete) while using CommonJS imports with `require()`, use the following approach:
|
|
204
204
|
|
|
205
205
|
```js
|
|
@@ -421,18 +421,18 @@ These are the available config options for making requests. Only the `url` is re
|
|
|
421
421
|
params: {
|
|
422
422
|
ID: 12345
|
|
423
423
|
},
|
|
424
|
-
|
|
425
|
-
// `paramsSerializer` is an optional config that allows you to customize serializing `params`.
|
|
424
|
+
|
|
425
|
+
// `paramsSerializer` is an optional config that allows you to customize serializing `params`.
|
|
426
426
|
paramsSerializer: {
|
|
427
427
|
|
|
428
428
|
// Custom encoder function which sends key/value pairs in an iterative fashion.
|
|
429
|
-
encode?: (param: string): string => { /* Do custom operations here and return transformed string */ },
|
|
430
|
-
|
|
429
|
+
encode?: (param: string): string => { /* Do custom operations here and return transformed string */ },
|
|
430
|
+
|
|
431
431
|
// Custom serializer function for the entire parameter. Allows user to mimic pre 1.x behaviour.
|
|
432
|
-
serialize?: (params: Record<string, any>, options?: ParamsSerializerOptions ),
|
|
433
|
-
|
|
434
|
-
// Configuration for formatting array indexes in the params.
|
|
435
|
-
indexes: false // Three available options: (1) indexes: null (leads to no brackets), (2) (default) indexes: false (leads to empty brackets), (3) indexes: true (leads to brackets with indexes).
|
|
432
|
+
serialize?: (params: Record<string, any>, options?: ParamsSerializerOptions ),
|
|
433
|
+
|
|
434
|
+
// Configuration for formatting array indexes in the params.
|
|
435
|
+
indexes: false // Three available options: (1) indexes: null (leads to no brackets), (2) (default) indexes: false (leads to empty brackets), (3) indexes: true (leads to brackets with indexes).
|
|
436
436
|
},
|
|
437
437
|
|
|
438
438
|
// `data` is the data to be sent as the request body
|
|
@@ -494,7 +494,7 @@ These are the available config options for making requests. Only the `url` is re
|
|
|
494
494
|
|
|
495
495
|
// `xsrfHeaderName` is the name of the http header that carries the xsrf token value
|
|
496
496
|
xsrfHeaderName: 'X-XSRF-TOKEN', // default
|
|
497
|
-
|
|
497
|
+
|
|
498
498
|
// `undefined` (default) - set XSRF header only for the same origin requests
|
|
499
499
|
withXSRFToken: boolean | undefined | ((config: InternalAxiosRequestConfig) => boolean | undefined),
|
|
500
500
|
|
|
@@ -544,7 +544,7 @@ These are the available config options for making requests. Only the `url` is re
|
|
|
544
544
|
// Only either `socketPath` or `proxy` can be specified.
|
|
545
545
|
// If both are specified, `socketPath` is used.
|
|
546
546
|
socketPath: null, // default
|
|
547
|
-
|
|
547
|
+
|
|
548
548
|
// `transport` determines the transport method that will be used to make the request.
|
|
549
549
|
// If defined, it will be used. Otherwise, if `maxRedirects` is 0,
|
|
550
550
|
// the default `http` or `https` library will be used, depending on the protocol specified in `protocol`.
|
|
@@ -837,10 +837,10 @@ The general structure of axios errors is as follows:
|
|
|
837
837
|
| -------- | ---------- |
|
|
838
838
|
| message | A quick summary of the error message and the status it failed with. |
|
|
839
839
|
| name | This defines where the error originated from. For axios, it will always be an 'AxiosError'. |
|
|
840
|
-
| stack | Provides the stack trace of the error. |
|
|
840
|
+
| stack | Provides the stack trace of the error. |
|
|
841
841
|
| config | An axios config object with specific instance configurations defined by the user from when the request was made |
|
|
842
842
|
| code | Represents an axios identified error. The table below lists out specific definitions for internal axios error. |
|
|
843
|
-
| status | HTTP response status code. See [here](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) for common HTTP response status code meanings.
|
|
843
|
+
| status | HTTP response status code. See [here](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) for common HTTP response status code meanings.
|
|
844
844
|
|
|
845
845
|
Below is a list of potential axios identified error:
|
|
846
846
|
|
|
@@ -1285,7 +1285,7 @@ Sending `Blobs`/`Files` as JSON (`base64`) is not currently supported.
|
|
|
1285
1285
|
Axios supports both browser and node environments to capture request upload/download progress.
|
|
1286
1286
|
The frequency of progress events is forced to be limited to `3` times per second.
|
|
1287
1287
|
|
|
1288
|
-
```js
|
|
1288
|
+
```js
|
|
1289
1289
|
await axios.post(url, data, {
|
|
1290
1290
|
onUploadProgress: function (axiosProgressEvent) {
|
|
1291
1291
|
/*{
|
|
@@ -1304,13 +1304,13 @@ await axios.post(url, data, {
|
|
|
1304
1304
|
loaded: number;
|
|
1305
1305
|
total?: number;
|
|
1306
1306
|
progress?: number;
|
|
1307
|
-
bytes: number;
|
|
1307
|
+
bytes: number;
|
|
1308
1308
|
estimated?: number;
|
|
1309
1309
|
rate?: number; // download speed in bytes
|
|
1310
1310
|
download: true; // download sign
|
|
1311
1311
|
}*/
|
|
1312
1312
|
}
|
|
1313
|
-
});
|
|
1313
|
+
});
|
|
1314
1314
|
```
|
|
1315
1315
|
|
|
1316
1316
|
You can also track stream upload/download progress in node.js:
|
|
@@ -1320,7 +1320,7 @@ const {data} = await axios.post(SERVER_URL, readableStream, {
|
|
|
1320
1320
|
onUploadProgress: ({progress}) => {
|
|
1321
1321
|
console.log((progress * 100).toFixed(2));
|
|
1322
1322
|
},
|
|
1323
|
-
|
|
1323
|
+
|
|
1324
1324
|
headers: {
|
|
1325
1325
|
'Content-Length': contentLength
|
|
1326
1326
|
},
|
|
@@ -1346,7 +1346,7 @@ const {data} = await axios.post(LOCAL_SERVER_URL, myBuffer, {
|
|
|
1346
1346
|
onUploadProgress: ({progress, rate}) => {
|
|
1347
1347
|
console.log(`Upload [${(progress*100).toFixed(2)}%]: ${(rate / 1024).toFixed(2)}KB/s`)
|
|
1348
1348
|
},
|
|
1349
|
-
|
|
1349
|
+
|
|
1350
1350
|
maxRate: [100 * 1024], // 100KB/s limit
|
|
1351
1351
|
});
|
|
1352
1352
|
```
|
|
@@ -1384,13 +1384,13 @@ The headers object is always initialized inside interceptors and transformers:
|
|
|
1384
1384
|
"My-set-header1": "my-set-value1",
|
|
1385
1385
|
"My-set-header2": "my-set-value2"
|
|
1386
1386
|
});
|
|
1387
|
-
|
|
1387
|
+
|
|
1388
1388
|
request.headers.set('User-Agent', false); // disable subsequent setting the header by Axios
|
|
1389
1389
|
|
|
1390
1390
|
request.headers.setContentType('text/plain');
|
|
1391
|
-
|
|
1391
|
+
|
|
1392
1392
|
request.headers['My-set-header2'] = 'newValue' // direct access is deprecated
|
|
1393
|
-
|
|
1393
|
+
|
|
1394
1394
|
return request;
|
|
1395
1395
|
}
|
|
1396
1396
|
);
|
|
@@ -1416,7 +1416,7 @@ for(const [header, value] of headers) {
|
|
|
1416
1416
|
|
|
1417
1417
|
### new AxiosHeaders(headers?)
|
|
1418
1418
|
|
|
1419
|
-
Constructs a new `AxiosHeaders` instance.
|
|
1419
|
+
Constructs a new `AxiosHeaders` instance.
|
|
1420
1420
|
|
|
1421
1421
|
```
|
|
1422
1422
|
constructor(headers?: RawAxiosHeaders | AxiosHeaders | string);
|
|
@@ -1471,7 +1471,7 @@ const headers = new AxiosHeaders({
|
|
|
1471
1471
|
'Content-Type': 'multipart/form-data; boundary=Asrf456BGe4h'
|
|
1472
1472
|
});
|
|
1473
1473
|
|
|
1474
|
-
console.log(headers.get('Content-Type'));
|
|
1474
|
+
console.log(headers.get('Content-Type'));
|
|
1475
1475
|
// multipart/form-data; boundary=Asrf456BGe4h
|
|
1476
1476
|
|
|
1477
1477
|
console.log(headers.get('Content-Type', true)); // parse key-value pairs from a string separated with \s,;= delimiters:
|
|
@@ -1515,7 +1515,7 @@ Returns `true` if at least one header has been removed.
|
|
|
1515
1515
|
clear(matcher?: AxiosHeaderMatcher): boolean;
|
|
1516
1516
|
```
|
|
1517
1517
|
|
|
1518
|
-
Removes all headers.
|
|
1518
|
+
Removes all headers.
|
|
1519
1519
|
Unlike the `delete` method matcher, this optional matcher will be used to match against the header name rather than the value.
|
|
1520
1520
|
|
|
1521
1521
|
```ts
|
|
@@ -1570,7 +1570,7 @@ Returns a new `AxiosHeaders` instance.
|
|
|
1570
1570
|
toJSON(asStrings?: boolean): RawAxiosHeaders;
|
|
1571
1571
|
````
|
|
1572
1572
|
|
|
1573
|
-
Resolve all internal headers values into a new null prototype object.
|
|
1573
|
+
Resolve all internal headers values into a new null prototype object.
|
|
1574
1574
|
Set `asStrings` to true to resolve arrays as a string containing all elements, separated by commas.
|
|
1575
1575
|
|
|
1576
1576
|
### AxiosHeaders.from(thing?)
|
|
@@ -1626,7 +1626,7 @@ const fetchAxios = axios.create({
|
|
|
1626
1626
|
const {data} = fetchAxios.get(url);
|
|
1627
1627
|
```
|
|
1628
1628
|
|
|
1629
|
-
The adapter supports the same functionality as `xhr` adapter, **including upload and download progress capturing**.
|
|
1629
|
+
The adapter supports the same functionality as `xhr` adapter, **including upload and download progress capturing**.
|
|
1630
1630
|
Also, it supports additional response types such as `stream` and `formdata` (if supported by the environment).
|
|
1631
1631
|
|
|
1632
1632
|
### 🔥 Custom fetch
|
|
@@ -1680,7 +1680,7 @@ const instance = axios.create({
|
|
|
1680
1680
|
const {data} = await instance.get("https://google.com");
|
|
1681
1681
|
```
|
|
1682
1682
|
|
|
1683
|
-
#### 🔥 Using with SvelteKit
|
|
1683
|
+
#### 🔥 Using with SvelteKit
|
|
1684
1684
|
|
|
1685
1685
|
[SvelteKit](https://svelte.dev/docs/kit/web-standards#Fetch-APIs) framework has a custom implementation of the fetch function for server rendering (so called `load` functions), and also uses relative paths,
|
|
1686
1686
|
which makes it incompatible with the standard URL API. So, Axios must be configured to use the custom fetch API:
|
|
@@ -1700,6 +1700,34 @@ export async function load({ fetch }) {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
```
|
|
1702
1702
|
|
|
1703
|
+
## 🔥 HTTP2
|
|
1704
|
+
|
|
1705
|
+
In version `1.13.0`, experimental `HTTP2` support was added to the `http` adapter.
|
|
1706
|
+
The `httpVersion` option is now available to select the protocol version used.
|
|
1707
|
+
Additional native options for the internal `session.request()` call can be passed via the `http2Options` config.
|
|
1708
|
+
This config also includes the custom `sessionTimeout` parameter, which defaults to `1000ms`.
|
|
1709
|
+
|
|
1710
|
+
```js
|
|
1711
|
+
const form = new FormData();
|
|
1712
|
+
|
|
1713
|
+
form.append('foo', '123');
|
|
1714
|
+
|
|
1715
|
+
const {data, headers, status} = await axios.post('https://httpbin.org/post', form, {
|
|
1716
|
+
httpVersion: 2,
|
|
1717
|
+
http2Options: {
|
|
1718
|
+
// rejectUnauthorized: false,
|
|
1719
|
+
// sessionTimeout: 1000
|
|
1720
|
+
},
|
|
1721
|
+
onUploadProgress(e) {
|
|
1722
|
+
console.log('upload progress', e);
|
|
1723
|
+
},
|
|
1724
|
+
onDownloadProgress(e) {
|
|
1725
|
+
console.log('download progress', e);
|
|
1726
|
+
},
|
|
1727
|
+
responseType: 'arraybuffer'
|
|
1728
|
+
});
|
|
1729
|
+
```
|
|
1730
|
+
|
|
1703
1731
|
## Semver
|
|
1704
1732
|
|
|
1705
1733
|
Since Axios has reached a `v.1.0.0` we will fully embrace semver as per the spec [here](https://semver.org/)
|
|
@@ -1753,4 +1781,4 @@ axios is heavily inspired by the [$http service](https://docs.angularjs.org/api/
|
|
|
1753
1781
|
|
|
1754
1782
|
## License
|
|
1755
1783
|
|
|
1756
|
-
[MIT](LICENSE)
|
|
1784
|
+
[](LICENSE)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Axios v1.
|
|
1
|
+
/*! Axios v1.13.2 Copyright (c) 2025 Matt Zabriskie and contributors */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -668,6 +668,13 @@
|
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
670
|
|
|
671
|
+
/**
|
|
672
|
+
* Create a bound version of a function with a specified `this` context
|
|
673
|
+
*
|
|
674
|
+
* @param {Function} fn - The function to bind
|
|
675
|
+
* @param {*} thisArg - The value to be passed as the `this` parameter
|
|
676
|
+
* @returns {Function} A new function that will call the original function with the specified `this` context
|
|
677
|
+
*/
|
|
671
678
|
function bind(fn, thisArg) {
|
|
672
679
|
return function wrap() {
|
|
673
680
|
return fn.apply(thisArg, arguments);
|
|
@@ -1831,7 +1838,7 @@
|
|
|
1831
1838
|
*
|
|
1832
1839
|
* @param {Number} id The ID that was returned by `use`
|
|
1833
1840
|
*
|
|
1834
|
-
* @returns {
|
|
1841
|
+
* @returns {void}
|
|
1835
1842
|
*/
|
|
1836
1843
|
}, {
|
|
1837
1844
|
key: "eject",
|
|
@@ -2702,20 +2709,33 @@
|
|
|
2702
2709
|
var cookies = platform.hasStandardBrowserEnv ?
|
|
2703
2710
|
// Standard browser envs support document.cookie
|
|
2704
2711
|
{
|
|
2705
|
-
write: function write(name, value, expires, path, domain, secure) {
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
utils$1.
|
|
2709
|
-
|
|
2710
|
-
|
|
2712
|
+
write: function write(name, value, expires, path, domain, secure, sameSite) {
|
|
2713
|
+
if (typeof document === 'undefined') return;
|
|
2714
|
+
var cookie = ["".concat(name, "=").concat(encodeURIComponent(value))];
|
|
2715
|
+
if (utils$1.isNumber(expires)) {
|
|
2716
|
+
cookie.push("expires=".concat(new Date(expires).toUTCString()));
|
|
2717
|
+
}
|
|
2718
|
+
if (utils$1.isString(path)) {
|
|
2719
|
+
cookie.push("path=".concat(path));
|
|
2720
|
+
}
|
|
2721
|
+
if (utils$1.isString(domain)) {
|
|
2722
|
+
cookie.push("domain=".concat(domain));
|
|
2723
|
+
}
|
|
2724
|
+
if (secure === true) {
|
|
2725
|
+
cookie.push('secure');
|
|
2726
|
+
}
|
|
2727
|
+
if (utils$1.isString(sameSite)) {
|
|
2728
|
+
cookie.push("SameSite=".concat(sameSite));
|
|
2729
|
+
}
|
|
2711
2730
|
document.cookie = cookie.join('; ');
|
|
2712
2731
|
},
|
|
2713
2732
|
read: function read(name) {
|
|
2714
|
-
|
|
2715
|
-
|
|
2733
|
+
if (typeof document === 'undefined') return null;
|
|
2734
|
+
var match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
|
|
2735
|
+
return match ? decodeURIComponent(match[1]) : null;
|
|
2716
2736
|
},
|
|
2717
2737
|
remove: function remove(name) {
|
|
2718
|
-
this.write(name, '', Date.now() - 86400000);
|
|
2738
|
+
this.write(name, '', Date.now() - 86400000, '/');
|
|
2719
2739
|
}
|
|
2720
2740
|
} :
|
|
2721
2741
|
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
@@ -3639,7 +3659,7 @@
|
|
|
3639
3659
|
};
|
|
3640
3660
|
var seedCache = new Map();
|
|
3641
3661
|
var getFetch = function getFetch(config) {
|
|
3642
|
-
var env = config
|
|
3662
|
+
var env = config && config.env || {};
|
|
3643
3663
|
var fetch = env.fetch,
|
|
3644
3664
|
Request = env.Request,
|
|
3645
3665
|
Response = env.Response;
|
|
@@ -3659,6 +3679,15 @@
|
|
|
3659
3679
|
};
|
|
3660
3680
|
getFetch();
|
|
3661
3681
|
|
|
3682
|
+
/**
|
|
3683
|
+
* Known adapters mapping.
|
|
3684
|
+
* Provides environment-specific adapters for Axios:
|
|
3685
|
+
* - `http` for Node.js
|
|
3686
|
+
* - `xhr` for browsers
|
|
3687
|
+
* - `fetch` for fetch API-based requests
|
|
3688
|
+
*
|
|
3689
|
+
* @type {Object<string, Function|Object>}
|
|
3690
|
+
*/
|
|
3662
3691
|
var knownAdapters = {
|
|
3663
3692
|
http: httpAdapter,
|
|
3664
3693
|
xhr: xhrAdapter,
|
|
@@ -3666,6 +3695,8 @@
|
|
|
3666
3695
|
get: getFetch
|
|
3667
3696
|
}
|
|
3668
3697
|
};
|
|
3698
|
+
|
|
3699
|
+
// Assign adapter names for easier debugging and identification
|
|
3669
3700
|
utils$1.forEach(knownAdapters, function (fn, value) {
|
|
3670
3701
|
if (fn) {
|
|
3671
3702
|
try {
|
|
@@ -3680,47 +3711,85 @@
|
|
|
3680
3711
|
});
|
|
3681
3712
|
}
|
|
3682
3713
|
});
|
|
3714
|
+
|
|
3715
|
+
/**
|
|
3716
|
+
* Render a rejection reason string for unknown or unsupported adapters
|
|
3717
|
+
*
|
|
3718
|
+
* @param {string} reason
|
|
3719
|
+
* @returns {string}
|
|
3720
|
+
*/
|
|
3683
3721
|
var renderReason = function renderReason(reason) {
|
|
3684
3722
|
return "- ".concat(reason);
|
|
3685
3723
|
};
|
|
3724
|
+
|
|
3725
|
+
/**
|
|
3726
|
+
* Check if the adapter is resolved (function, null, or false)
|
|
3727
|
+
*
|
|
3728
|
+
* @param {Function|null|false} adapter
|
|
3729
|
+
* @returns {boolean}
|
|
3730
|
+
*/
|
|
3686
3731
|
var isResolvedHandle = function isResolvedHandle(adapter) {
|
|
3687
3732
|
return utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
3688
3733
|
};
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3734
|
+
|
|
3735
|
+
/**
|
|
3736
|
+
* Get the first suitable adapter from the provided list.
|
|
3737
|
+
* Tries each adapter in order until a supported one is found.
|
|
3738
|
+
* Throws an AxiosError if no adapter is suitable.
|
|
3739
|
+
*
|
|
3740
|
+
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
|
3741
|
+
* @param {Object} config - Axios request configuration
|
|
3742
|
+
* @throws {AxiosError} If no suitable adapter is available
|
|
3743
|
+
* @returns {Function} The resolved adapter function
|
|
3744
|
+
*/
|
|
3745
|
+
function getAdapter(adapters, config) {
|
|
3746
|
+
adapters = utils$1.isArray(adapters) ? adapters : [adapters];
|
|
3747
|
+
var _adapters = adapters,
|
|
3748
|
+
length = _adapters.length;
|
|
3749
|
+
var nameOrAdapter;
|
|
3750
|
+
var adapter;
|
|
3751
|
+
var rejectedReasons = {};
|
|
3752
|
+
for (var i = 0; i < length; i++) {
|
|
3753
|
+
nameOrAdapter = adapters[i];
|
|
3754
|
+
var id = void 0;
|
|
3755
|
+
adapter = nameOrAdapter;
|
|
3756
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
3757
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
3758
|
+
if (adapter === undefined) {
|
|
3759
|
+
throw new AxiosError("Unknown adapter '".concat(id, "'"));
|
|
3709
3760
|
}
|
|
3710
|
-
rejectedReasons[id || '#' + i] = adapter;
|
|
3711
3761
|
}
|
|
3712
|
-
if (
|
|
3713
|
-
|
|
3714
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
3715
|
-
id = _ref2[0],
|
|
3716
|
-
state = _ref2[1];
|
|
3717
|
-
return "adapter ".concat(id, " ") + (state === false ? 'is not supported by the environment' : 'is not available in the build');
|
|
3718
|
-
});
|
|
3719
|
-
var s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
|
3720
|
-
throw new AxiosError("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT');
|
|
3762
|
+
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
3763
|
+
break;
|
|
3721
3764
|
}
|
|
3722
|
-
|
|
3723
|
-
}
|
|
3765
|
+
rejectedReasons[id || '#' + i] = adapter;
|
|
3766
|
+
}
|
|
3767
|
+
if (!adapter) {
|
|
3768
|
+
var reasons = Object.entries(rejectedReasons).map(function (_ref) {
|
|
3769
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
3770
|
+
id = _ref2[0],
|
|
3771
|
+
state = _ref2[1];
|
|
3772
|
+
return "adapter ".concat(id, " ") + (state === false ? 'is not supported by the environment' : 'is not available in the build');
|
|
3773
|
+
});
|
|
3774
|
+
var s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
|
3775
|
+
throw new AxiosError("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT');
|
|
3776
|
+
}
|
|
3777
|
+
return adapter;
|
|
3778
|
+
}
|
|
3779
|
+
|
|
3780
|
+
/**
|
|
3781
|
+
* Exports Axios adapters and utility to resolve an adapter
|
|
3782
|
+
*/
|
|
3783
|
+
var adapters = {
|
|
3784
|
+
/**
|
|
3785
|
+
* Resolve an adapter from a list of adapter names or functions.
|
|
3786
|
+
* @type {Function}
|
|
3787
|
+
*/
|
|
3788
|
+
getAdapter: getAdapter,
|
|
3789
|
+
/**
|
|
3790
|
+
* Exposes all known adapters
|
|
3791
|
+
* @type {Object<string, Function|Object>}
|
|
3792
|
+
*/
|
|
3724
3793
|
adapters: knownAdapters
|
|
3725
3794
|
};
|
|
3726
3795
|
|
|
@@ -3778,7 +3847,7 @@
|
|
|
3778
3847
|
});
|
|
3779
3848
|
}
|
|
3780
3849
|
|
|
3781
|
-
var VERSION = "1.
|
|
3850
|
+
var VERSION = "1.13.2";
|
|
3782
3851
|
|
|
3783
3852
|
var validators$1 = {};
|
|
3784
3853
|
|
|
@@ -4314,7 +4383,13 @@
|
|
|
4314
4383
|
InsufficientStorage: 507,
|
|
4315
4384
|
LoopDetected: 508,
|
|
4316
4385
|
NotExtended: 510,
|
|
4317
|
-
NetworkAuthenticationRequired: 511
|
|
4386
|
+
NetworkAuthenticationRequired: 511,
|
|
4387
|
+
WebServerIsDown: 521,
|
|
4388
|
+
ConnectionTimedOut: 522,
|
|
4389
|
+
OriginIsUnreachable: 523,
|
|
4390
|
+
TimeoutOccurred: 524,
|
|
4391
|
+
SslHandshakeFailed: 525,
|
|
4392
|
+
InvalidSslCertificate: 526
|
|
4318
4393
|
};
|
|
4319
4394
|
Object.entries(HttpStatusCode).forEach(function (_ref) {
|
|
4320
4395
|
var _ref2 = _slicedToArray(_ref, 2),
|