@zuplo/cli 6.69.4 → 6.69.6
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/dist/__tests__/integration/custom-domain.integration.test.js +4 -4
- package/dist/__tests__/integration/custom-domain.integration.test.js.map +1 -1
- package/dist/__tests__/integration/jest-mocks-setup.js +30 -10
- package/dist/__tests__/integration/jest-mocks-setup.js.map +1 -1
- package/dist/__tests__/integration/list.integration.test.js +2 -2
- package/dist/__tests__/integration/list.integration.test.js.map +1 -1
- package/dist/__tests__/integration/tunnel.integration.test.js +14 -14
- package/dist/__tests__/integration/tunnel.integration.test.js.map +1 -1
- package/dist/__tests__/integration/variable.integration.test.js +4 -4
- package/dist/__tests__/integration/variable.integration.test.js.map +1 -1
- package/dist/__tests__/integration/whoami.integration.test.js +2 -5
- package/dist/__tests__/integration/whoami.integration.test.js.map +1 -1
- package/dist/cli.js +12 -6
- package/dist/cli.js.map +1 -1
- package/dist/cmds/custom-domain/index.d.ts.map +1 -1
- package/dist/cmds/custom-domain/index.js +6 -10
- package/dist/cmds/custom-domain/index.js.map +1 -1
- package/dist/cmds/mtls-certificates/index.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/index.js +8 -12
- package/dist/cmds/mtls-certificates/index.js.map +1 -1
- package/dist/cmds/open-api/index.d.ts.map +1 -1
- package/dist/cmds/open-api/index.js +2 -5
- package/dist/cmds/open-api/index.js.map +1 -1
- package/dist/cmds/project/index.d.ts.map +1 -1
- package/dist/cmds/project/index.js +2 -5
- package/dist/cmds/project/index.js.map +1 -1
- package/dist/cmds/proxies/index.d.ts +4 -4
- package/dist/cmds/proxies/index.d.ts.map +1 -1
- package/dist/cmds/proxies/index.js +6 -10
- package/dist/cmds/proxies/index.js.map +1 -1
- package/dist/cmds/source/index.d.ts.map +1 -1
- package/dist/cmds/source/index.js +2 -9
- package/dist/cmds/source/index.js.map +1 -1
- package/dist/cmds/source/migrate.d.ts +4 -4
- package/dist/cmds/source/migrate.d.ts.map +1 -1
- package/dist/cmds/source/migrate.js +3 -6
- package/dist/cmds/source/migrate.js.map +1 -1
- package/dist/cmds/tunnel/index.d.ts.map +1 -1
- package/dist/cmds/tunnel/index.js +8 -12
- package/dist/cmds/tunnel/index.js.map +1 -1
- package/dist/cmds/tunnel/services/index.d.ts.map +1 -1
- package/dist/cmds/tunnel/services/index.js +2 -5
- package/dist/cmds/tunnel/services/index.js.map +1 -1
- package/dist/cmds/variable/index.d.ts.map +1 -1
- package/dist/cmds/variable/index.js +2 -5
- package/dist/cmds/variable/index.js.map +1 -1
- package/dist/common/api/client.d.ts +40 -0
- package/dist/common/api/client.d.ts.map +1 -0
- package/dist/common/api/client.js +92 -0
- package/dist/common/api/client.js.map +1 -0
- package/dist/common/handler.d.ts +4 -1
- package/dist/common/handler.d.ts.map +1 -1
- package/dist/common/handler.js +11 -2
- package/dist/common/handler.js.map +1 -1
- package/dist/common/middleware/get-environment-param.d.ts.map +1 -1
- package/dist/common/middleware/get-environment-param.js +2 -18
- package/dist/common/middleware/get-environment-param.js.map +1 -1
- package/dist/common/output.d.ts +4 -0
- package/dist/common/output.d.ts.map +1 -1
- package/dist/common/output.js +4 -1
- package/dist/common/output.js.map +1 -1
- package/dist/common/utils/build-environment-prompt-choices.d.ts +13 -0
- package/dist/common/utils/build-environment-prompt-choices.d.ts.map +1 -0
- package/dist/common/utils/build-environment-prompt-choices.js +66 -0
- package/dist/common/utils/build-environment-prompt-choices.js.map +1 -0
- package/dist/common/utils/build-environment-prompt-choices.test.d.ts +2 -0
- package/dist/common/utils/build-environment-prompt-choices.test.d.ts.map +1 -0
- package/dist/common/utils/build-environment-prompt-choices.test.js +97 -0
- package/dist/common/utils/build-environment-prompt-choices.test.js.map +1 -0
- package/dist/common/utils/pretty-print-environment-prompt.d.ts +1 -4
- package/dist/common/utils/pretty-print-environment-prompt.d.ts.map +1 -1
- package/dist/common/utils/pretty-print-environment-prompt.js +3 -8
- package/dist/common/utils/pretty-print-environment-prompt.js.map +1 -1
- package/dist/common/utils/pretty-print-environment-prompt.test.js +15 -17
- package/dist/common/utils/pretty-print-environment-prompt.test.js.map +1 -1
- package/dist/common/utils/sort-environments-for-prompt.d.ts +5 -0
- package/dist/common/utils/sort-environments-for-prompt.d.ts.map +1 -0
- package/dist/common/utils/sort-environments-for-prompt.js +27 -0
- package/dist/common/utils/sort-environments-for-prompt.js.map +1 -0
- package/dist/common/utils/sort-environments-for-prompt.test.d.ts +2 -0
- package/dist/common/utils/sort-environments-for-prompt.test.d.ts.map +1 -0
- package/dist/common/utils/sort-environments-for-prompt.test.js +82 -0
- package/dist/common/utils/sort-environments-for-prompt.test.js.map +1 -0
- package/dist/custom-domain/create/handler.d.ts.map +1 -1
- package/dist/custom-domain/create/handler.js +12 -27
- package/dist/custom-domain/create/handler.js.map +1 -1
- package/dist/custom-domain/delete/handler.d.ts.map +1 -1
- package/dist/custom-domain/delete/handler.js +25 -54
- package/dist/custom-domain/delete/handler.js.map +1 -1
- package/dist/custom-domain/list/handler.d.ts.map +1 -1
- package/dist/custom-domain/list/handler.js +15 -29
- package/dist/custom-domain/list/handler.js.map +1 -1
- package/dist/custom-domain/update/handler.d.ts.map +1 -1
- package/dist/custom-domain/update/handler.js +12 -27
- package/dist/custom-domain/update/handler.js.map +1 -1
- package/dist/list/handler.d.ts.map +1 -1
- package/dist/list/handler.js +41 -59
- package/dist/list/handler.js.map +1 -1
- package/dist/mtls-certificates/create/handler.d.ts.map +1 -1
- package/dist/mtls-certificates/create/handler.js +9 -23
- package/dist/mtls-certificates/create/handler.js.map +1 -1
- package/dist/mtls-certificates/delete/handler.d.ts.map +1 -1
- package/dist/mtls-certificates/delete/handler.js +8 -20
- package/dist/mtls-certificates/delete/handler.js.map +1 -1
- package/dist/mtls-certificates/describe/handler.d.ts.map +1 -1
- package/dist/mtls-certificates/describe/handler.js +17 -31
- package/dist/mtls-certificates/describe/handler.js.map +1 -1
- package/dist/mtls-certificates/disable/handler.d.ts.map +1 -1
- package/dist/mtls-certificates/disable/handler.js +9 -26
- package/dist/mtls-certificates/disable/handler.js.map +1 -1
- package/dist/mtls-certificates/list/handler.d.ts.map +1 -1
- package/dist/mtls-certificates/list/handler.js +22 -36
- package/dist/mtls-certificates/list/handler.js.map +1 -1
- package/dist/mtls-certificates/update/handler.d.ts.map +1 -1
- package/dist/mtls-certificates/update/handler.js +14 -29
- package/dist/mtls-certificates/update/handler.js.map +1 -1
- package/dist/proxies/create/handler.d.ts.map +1 -1
- package/dist/proxies/create/handler.js +9 -22
- package/dist/proxies/create/handler.js.map +1 -1
- package/dist/proxies/delete/handler.d.ts.map +1 -1
- package/dist/proxies/delete/handler.js +8 -21
- package/dist/proxies/delete/handler.js.map +1 -1
- package/dist/proxies/describe/handler.d.ts.map +1 -1
- package/dist/proxies/describe/handler.js +7 -22
- package/dist/proxies/describe/handler.js.map +1 -1
- package/dist/proxies/update/handler.d.ts.map +1 -1
- package/dist/proxies/update/handler.js +9 -22
- package/dist/proxies/update/handler.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/tunnel/create/handler.d.ts.map +1 -1
- package/dist/tunnel/create/handler.js +8 -22
- package/dist/tunnel/create/handler.js.map +1 -1
- package/dist/tunnel/delete/handler.d.ts.map +1 -1
- package/dist/tunnel/delete/handler.js +16 -30
- package/dist/tunnel/delete/handler.js.map +1 -1
- package/dist/tunnel/describe/handler.d.ts.map +1 -1
- package/dist/tunnel/describe/handler.js +7 -21
- package/dist/tunnel/describe/handler.js.map +1 -1
- package/dist/tunnel/list/handler.d.ts.map +1 -1
- package/dist/tunnel/list/handler.js +13 -28
- package/dist/tunnel/list/handler.js.map +1 -1
- package/dist/tunnel/rotate-token/handler.d.ts.map +1 -1
- package/dist/tunnel/rotate-token/handler.js +7 -21
- package/dist/tunnel/rotate-token/handler.js.map +1 -1
- package/dist/tunnel/services/describe/handler.d.ts.map +1 -1
- package/dist/tunnel/services/describe/handler.js +7 -21
- package/dist/tunnel/services/describe/handler.js.map +1 -1
- package/dist/tunnel/services/update/handler.d.ts.map +1 -1
- package/dist/tunnel/services/update/handler.js +18 -32
- package/dist/tunnel/services/update/handler.js.map +1 -1
- package/dist/variable/create/handler.d.ts.map +1 -1
- package/dist/variable/create/handler.js +9 -24
- package/dist/variable/create/handler.js.map +1 -1
- package/dist/variable/update/handler.d.ts.map +1 -1
- package/dist/variable/update/handler.js +9 -24
- package/dist/variable/update/handler.js.map +1 -1
- package/dist/whoami/handler.d.ts.map +1 -1
- package/dist/whoami/handler.js +6 -18
- package/dist/whoami/handler.js.map +1 -1
- package/node_modules/@fastify/proxy-addr/node_modules/ipaddr.js/README.md +1 -5
- package/node_modules/@fastify/proxy-addr/node_modules/ipaddr.js/ipaddr.min.js +1 -1
- package/node_modules/@fastify/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js +21 -6
- package/node_modules/@fastify/proxy-addr/node_modules/ipaddr.js/package.json +1 -1
- package/node_modules/@zuplo/core/index.minified.js +141 -137
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/.github/workflows/ci.yml +1 -1
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/LICENSE +1 -3
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/benchmark/bench-cmp-lib.js +60 -44
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/index.js +2 -2
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/package.json +7 -7
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/anyof.test.js +20 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/array.test.js +22 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/debug-mode.test.js +21 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/if-then-else.test.js +72 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/invalidSchema.test.js +20 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/issue-836.test.js +183 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/json-add-comma.test.js +57 -57
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/oneof.test.js +20 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/ref.test.js +31 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/typebox.test.js +1 -1
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/types/{index.test-d.ts → index.tst.ts} +17 -17
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1380 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.js +1686 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.js +11 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +2 -2
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +4 -7
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.d.ts +2 -3
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.js +10 -16
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.min.js.map +4 -4
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1380 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.js +1686 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.js +11 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.js +11 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.d.ts +2 -3
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.js +9 -15
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.min.js.map +4 -4
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.js +8 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.d.ts +2 -3
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.js +9 -15
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.js.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.min.js.map +4 -4
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +2 -3
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.d.ts +2 -3
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.js +9 -15
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.min.js.map +4 -4
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.js +8 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.js +8 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/package.json +44 -16
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/index.js +54 -54
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +4 -0
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/axios/CHANGELOG.md +32 -6
- package/node_modules/axios/README.md +356 -20
- package/node_modules/axios/dist/axios.js +1389 -1071
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +3 -3
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +1486 -1123
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +1488 -1124
- 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 +1230 -871
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +25 -13
- package/node_modules/axios/index.d.ts +21 -4
- package/node_modules/axios/index.js +2 -0
- package/node_modules/axios/lib/adapters/adapters.js +4 -2
- package/node_modules/axios/lib/adapters/fetch.js +126 -10
- package/node_modules/axios/lib/adapters/http.js +178 -59
- package/node_modules/axios/lib/adapters/xhr.js +6 -2
- package/node_modules/axios/lib/core/Axios.js +7 -3
- package/node_modules/axios/lib/core/AxiosError.js +86 -1
- package/node_modules/axios/lib/core/AxiosHeaders.js +3 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +19 -7
- package/node_modules/axios/lib/core/mergeConfig.js +6 -3
- package/node_modules/axios/lib/core/settle.js +7 -11
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +1 -1
- package/node_modules/axios/lib/helpers/cookies.js +14 -2
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +28 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +1 -1
- package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
- package/node_modules/axios/lib/helpers/resolveConfig.js +33 -17
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +26 -1
- package/node_modules/axios/lib/helpers/validator.js +1 -1
- package/node_modules/axios/lib/utils.js +27 -15
- package/node_modules/axios/package.json +17 -24
- package/node_modules/fast-uri/.github/workflows/ci.yml +12 -7
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +1 -1
- package/node_modules/fast-uri/LICENSE +1 -3
- package/node_modules/fast-uri/README.md +13 -4
- package/node_modules/fast-uri/index.js +90 -24
- package/node_modules/fast-uri/lib/utils.js +129 -22
- package/node_modules/fast-uri/package.json +3 -4
- package/node_modules/fast-uri/test/equal.test.js +9 -0
- package/node_modules/fast-uri/test/parse.test.js +5 -0
- package/node_modules/fast-uri/test/resolve.test.js +9 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +39 -0
- package/node_modules/fast-uri/test/security.test.js +133 -0
- package/node_modules/is-core-module/CHANGELOG.md +244 -113
- package/node_modules/is-core-module/README.md +1 -1
- package/node_modules/is-core-module/core.json +12 -12
- package/node_modules/is-core-module/package.json +5 -5
- package/node_modules/is-core-module/test/index.js +101 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1380 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.js +1686 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.js +11 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +2 -2
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +4 -7
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts +2 -3
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js +10 -16
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js.map +4 -4
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1380 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.js +1686 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.js +11 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.js +11 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.d.ts +2 -3
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.js +9 -15
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.min.js.map +4 -4
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.js +8 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts +2 -3
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js +9 -15
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js.map +4 -4
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +2 -3
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.d.ts +2 -3
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.js +9 -15
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.min.js.map +4 -4
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.js +8 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.js +8 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/package.json +44 -16
- package/package.json +6 -6
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/.github/stale.yml +0 -21
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts.map +0 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js.map +0 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.mts.map +0 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.mjs.map +0 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +0 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.mjs.map +0 -1
- package/node_modules/fast-uri/.github/.stale.yml +0 -21
- package/node_modules/fast-uri/.github/tests_checker.yml +0 -8
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.mts.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.mjs.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.mjs.map +0 -1
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
interface RawAxiosHeaders {
|
|
2
|
-
[key: string]: axios.AxiosHeaderValue;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
type MethodsHeaders = Partial<
|
|
6
2
|
{
|
|
7
3
|
[Key in axios.Method as Lowercase<Key>]: AxiosHeaders;
|
|
@@ -44,7 +40,7 @@ type CommonResponseHeaderKey = CommonResponseHeadersList | Lowercase<CommonRespo
|
|
|
44
40
|
type BrowserProgressEvent = any;
|
|
45
41
|
|
|
46
42
|
declare class AxiosHeaders {
|
|
47
|
-
constructor(headers?: RawAxiosHeaders | AxiosHeaders | string);
|
|
43
|
+
constructor(headers?: axios.RawAxiosHeaders | AxiosHeaders | string);
|
|
48
44
|
|
|
49
45
|
[key: string]: any;
|
|
50
46
|
|
|
@@ -53,7 +49,7 @@ declare class AxiosHeaders {
|
|
|
53
49
|
value?: axios.AxiosHeaderValue,
|
|
54
50
|
rewrite?: boolean | AxiosHeaderMatcher
|
|
55
51
|
): AxiosHeaders;
|
|
56
|
-
set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
|
|
52
|
+
set(headers?: axios.RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders;
|
|
57
53
|
|
|
58
54
|
get(headerName: string, parser: RegExp): RegExpExecArray | null;
|
|
59
55
|
get(headerName: string, matcher?: true | AxiosHeaderParser): axios.AxiosHeaderValue;
|
|
@@ -67,17 +63,17 @@ declare class AxiosHeaders {
|
|
|
67
63
|
normalize(format: boolean): AxiosHeaders;
|
|
68
64
|
|
|
69
65
|
concat(
|
|
70
|
-
...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>
|
|
66
|
+
...targets: Array<AxiosHeaders | axios.RawAxiosHeaders | string | undefined | null>
|
|
71
67
|
): AxiosHeaders;
|
|
72
68
|
|
|
73
|
-
toJSON(asStrings?: boolean): RawAxiosHeaders;
|
|
69
|
+
toJSON(asStrings?: boolean): axios.RawAxiosHeaders;
|
|
74
70
|
|
|
75
|
-
static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
|
|
71
|
+
static from(thing?: AxiosHeaders | axios.RawAxiosHeaders | string): AxiosHeaders;
|
|
76
72
|
|
|
77
73
|
static accessor(header: string | string[]): AxiosHeaders;
|
|
78
74
|
|
|
79
75
|
static concat(
|
|
80
|
-
...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>
|
|
76
|
+
...targets: Array<AxiosHeaders | axios.RawAxiosHeaders | string | undefined | null>
|
|
81
77
|
): AxiosHeaders;
|
|
82
78
|
|
|
83
79
|
setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders;
|
|
@@ -162,6 +158,7 @@ declare class AxiosError<T = unknown, D = any> extends Error {
|
|
|
162
158
|
static readonly ERR_CANCELED = 'ERR_CANCELED';
|
|
163
159
|
static readonly ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
|
|
164
160
|
static readonly ECONNABORTED = 'ECONNABORTED';
|
|
161
|
+
static readonly ECONNREFUSED = 'ECONNREFUSED';
|
|
165
162
|
static readonly ETIMEDOUT = 'ETIMEDOUT';
|
|
166
163
|
}
|
|
167
164
|
|
|
@@ -224,6 +221,11 @@ declare class Axios {
|
|
|
224
221
|
data?: D,
|
|
225
222
|
config?: axios.AxiosRequestConfig<D>
|
|
226
223
|
): Promise<R>;
|
|
224
|
+
query<T = any, R = axios.AxiosResponse<T>, D = any>(
|
|
225
|
+
url: string,
|
|
226
|
+
data?: D,
|
|
227
|
+
config?: axios.AxiosRequestConfig<D>
|
|
228
|
+
): Promise<R>;
|
|
227
229
|
}
|
|
228
230
|
|
|
229
231
|
declare enum HttpStatusCode {
|
|
@@ -297,6 +299,10 @@ type InternalAxiosError<T = unknown, D = any> = AxiosError<T, D>;
|
|
|
297
299
|
declare namespace axios {
|
|
298
300
|
type AxiosError<T = unknown, D = any> = InternalAxiosError<T, D>;
|
|
299
301
|
|
|
302
|
+
interface RawAxiosHeaders {
|
|
303
|
+
[key: string]: AxiosHeaderValue;
|
|
304
|
+
}
|
|
305
|
+
|
|
300
306
|
type RawAxiosRequestHeaders = Partial<
|
|
301
307
|
RawAxiosHeaders & {
|
|
302
308
|
[Key in CommonRequestHeadersList]: AxiosHeaderValue;
|
|
@@ -358,7 +364,8 @@ declare namespace axios {
|
|
|
358
364
|
| 'PATCH'
|
|
359
365
|
| 'PURGE'
|
|
360
366
|
| 'LINK'
|
|
361
|
-
| 'UNLINK'
|
|
367
|
+
| 'UNLINK'
|
|
368
|
+
| 'QUERY';
|
|
362
369
|
|
|
363
370
|
type Method = (UppercaseMethod | Lowercase<UppercaseMethod>) & {};
|
|
364
371
|
|
|
@@ -494,7 +501,8 @@ declare namespace axios {
|
|
|
494
501
|
maxRate?: number | [MaxUploadRate, MaxDownloadRate];
|
|
495
502
|
beforeRedirect?: (
|
|
496
503
|
options: Record<string, any>,
|
|
497
|
-
responseDetails: { headers: Record<string, string>; statusCode: HttpStatusCode }
|
|
504
|
+
responseDetails: { headers: Record<string, string>; statusCode: HttpStatusCode },
|
|
505
|
+
requestDetails: { headers: Record<string, string>; url: string; method: string },
|
|
498
506
|
) => void;
|
|
499
507
|
socketPath?: string | null;
|
|
500
508
|
allowedSocketPaths?: string | string[] | null;
|
|
@@ -502,7 +510,7 @@ declare namespace axios {
|
|
|
502
510
|
httpAgent?: any;
|
|
503
511
|
httpsAgent?: any;
|
|
504
512
|
proxy?: AxiosProxyConfig | false;
|
|
505
|
-
cancelToken?: CancelToken;
|
|
513
|
+
cancelToken?: CancelToken | undefined;
|
|
506
514
|
decompress?: boolean;
|
|
507
515
|
transitional?: TransitionalOptions;
|
|
508
516
|
signal?: GenericAbortSignal;
|
|
@@ -536,6 +544,7 @@ declare namespace axios {
|
|
|
536
544
|
| LookupAddress
|
|
537
545
|
>);
|
|
538
546
|
withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined);
|
|
547
|
+
parseReviver?: (this: any, key: string, value: any, context?: { source: string }) => any;
|
|
539
548
|
fetchOptions?:
|
|
540
549
|
| Omit<RequestInit, 'body' | 'headers' | 'method' | 'signal'>
|
|
541
550
|
| Record<string, any>;
|
|
@@ -543,6 +552,8 @@ declare namespace axios {
|
|
|
543
552
|
http2Options?: Record<string, any> & {
|
|
544
553
|
sessionTimeout?: number;
|
|
545
554
|
};
|
|
555
|
+
formDataHeaderPolicy?: 'legacy' | 'content-only';
|
|
556
|
+
redact?: string[];
|
|
546
557
|
}
|
|
547
558
|
|
|
548
559
|
// Alias
|
|
@@ -564,6 +575,7 @@ declare namespace axios {
|
|
|
564
575
|
purge?: RawAxiosRequestHeaders;
|
|
565
576
|
link?: RawAxiosRequestHeaders;
|
|
566
577
|
unlink?: RawAxiosRequestHeaders;
|
|
578
|
+
query?: RawAxiosRequestHeaders;
|
|
567
579
|
}
|
|
568
580
|
|
|
569
581
|
interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
|
|
@@ -3,7 +3,7 @@ type StringLiteralsOrString<Literals extends string> = Literals | (string & {});
|
|
|
3
3
|
|
|
4
4
|
export type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
|
|
5
5
|
|
|
6
|
-
interface RawAxiosHeaders {
|
|
6
|
+
export interface RawAxiosHeaders {
|
|
7
7
|
[key: string]: AxiosHeaderValue;
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -243,7 +243,8 @@ type UppercaseMethod =
|
|
|
243
243
|
| 'PATCH'
|
|
244
244
|
| 'PURGE'
|
|
245
245
|
| 'LINK'
|
|
246
|
-
| 'UNLINK'
|
|
246
|
+
| 'UNLINK'
|
|
247
|
+
| 'QUERY';
|
|
247
248
|
|
|
248
249
|
export type Method = (UppercaseMethod | Lowercase<UppercaseMethod>) & {};
|
|
249
250
|
|
|
@@ -394,7 +395,12 @@ export interface AxiosRequestConfig<D = any> {
|
|
|
394
395
|
responseDetails: {
|
|
395
396
|
headers: Record<string, string>;
|
|
396
397
|
statusCode: HttpStatusCode;
|
|
397
|
-
}
|
|
398
|
+
},
|
|
399
|
+
requestDetails: {
|
|
400
|
+
headers: Record<string, string>;
|
|
401
|
+
url: string;
|
|
402
|
+
method: string;
|
|
403
|
+
},
|
|
398
404
|
) => void;
|
|
399
405
|
socketPath?: string | null;
|
|
400
406
|
allowedSocketPaths?: string | string[] | null;
|
|
@@ -435,12 +441,14 @@ export interface AxiosRequestConfig<D = any> {
|
|
|
435
441
|
[address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily] | LookupAddress
|
|
436
442
|
>);
|
|
437
443
|
withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined);
|
|
438
|
-
parseReviver?: (this: any, key: string, value: any) => any;
|
|
444
|
+
parseReviver?: (this: any, key: string, value: any, context?: { source: string }) => any;
|
|
439
445
|
fetchOptions?: Omit<RequestInit, 'body' | 'headers' | 'method' | 'signal'> | Record<string, any>;
|
|
440
446
|
httpVersion?: 1 | 2;
|
|
441
447
|
http2Options?: Record<string, any> & {
|
|
442
448
|
sessionTimeout?: number;
|
|
443
449
|
};
|
|
450
|
+
formDataHeaderPolicy?: 'legacy' | 'content-only';
|
|
451
|
+
redact?: string[];
|
|
444
452
|
}
|
|
445
453
|
|
|
446
454
|
// Alias
|
|
@@ -462,6 +470,7 @@ export interface HeadersDefaults {
|
|
|
462
470
|
purge?: RawAxiosRequestHeaders;
|
|
463
471
|
link?: RawAxiosRequestHeaders;
|
|
464
472
|
unlink?: RawAxiosRequestHeaders;
|
|
473
|
+
query?: RawAxiosRequestHeaders;
|
|
465
474
|
}
|
|
466
475
|
|
|
467
476
|
export interface AxiosDefaults<D = any> extends Omit<AxiosRequestConfig<D>, 'headers'> {
|
|
@@ -519,6 +528,7 @@ export class AxiosError<T = unknown, D = any> extends Error {
|
|
|
519
528
|
static readonly ERR_CANCELED = 'ERR_CANCELED';
|
|
520
529
|
static readonly ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
|
|
521
530
|
static readonly ECONNABORTED = 'ECONNABORTED';
|
|
531
|
+
static readonly ECONNREFUSED = 'ECONNREFUSED';
|
|
522
532
|
static readonly ETIMEDOUT = 'ETIMEDOUT';
|
|
523
533
|
}
|
|
524
534
|
|
|
@@ -644,6 +654,11 @@ export class Axios {
|
|
|
644
654
|
data?: D,
|
|
645
655
|
config?: AxiosRequestConfig<D>
|
|
646
656
|
): Promise<R>;
|
|
657
|
+
query<T = any, R = AxiosResponse<T>, D = any>(
|
|
658
|
+
url: string,
|
|
659
|
+
data?: D,
|
|
660
|
+
config?: AxiosRequestConfig<D>
|
|
661
|
+
): Promise<R>;
|
|
647
662
|
}
|
|
648
663
|
|
|
649
664
|
export interface AxiosInstance extends Axios {
|
|
@@ -693,6 +708,8 @@ export function mergeConfig<D = any>(
|
|
|
693
708
|
config2: AxiosRequestConfig<D>
|
|
694
709
|
): AxiosRequestConfig<D>;
|
|
695
710
|
|
|
711
|
+
export function create(config?: CreateAxiosDefaults): AxiosInstance;
|
|
712
|
+
|
|
696
713
|
export interface AxiosStatic extends AxiosInstance {
|
|
697
714
|
Cancel: CancelStatic;
|
|
698
715
|
CancelToken: CancelTokenStatic;
|
|
@@ -25,11 +25,13 @@ const knownAdapters = {
|
|
|
25
25
|
utils.forEach(knownAdapters, (fn, value) => {
|
|
26
26
|
if (fn) {
|
|
27
27
|
try {
|
|
28
|
-
Object.
|
|
28
|
+
// Null-proto descriptors so a polluted Object.prototype.get cannot turn
|
|
29
|
+
// these data descriptors into accessor descriptors on the way in.
|
|
30
|
+
Object.defineProperty(fn, 'name', { __proto__: null, value });
|
|
29
31
|
} catch (e) {
|
|
30
32
|
// eslint-disable-next-line no-empty
|
|
31
33
|
}
|
|
32
|
-
Object.defineProperty(fn, 'adapterName', { value });
|
|
34
|
+
Object.defineProperty(fn, 'adapterName', { __proto__: null, value });
|
|
33
35
|
}
|
|
34
36
|
});
|
|
35
37
|
|
|
@@ -11,18 +11,13 @@ import {
|
|
|
11
11
|
} from '../helpers/progressEventReducer.js';
|
|
12
12
|
import resolveConfig from '../helpers/resolveConfig.js';
|
|
13
13
|
import settle from '../core/settle.js';
|
|
14
|
+
import estimateDataURLDecodedBytes from '../helpers/estimateDataURLDecodedBytes.js';
|
|
15
|
+
import { VERSION } from '../env/data.js';
|
|
14
16
|
|
|
15
17
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
16
18
|
|
|
17
19
|
const { isFunction } = utils;
|
|
18
20
|
|
|
19
|
-
const globalFetchAPI = (({ Request, Response }) => ({
|
|
20
|
-
Request,
|
|
21
|
-
Response,
|
|
22
|
-
}))(utils.global);
|
|
23
|
-
|
|
24
|
-
const { ReadableStream, TextEncoder } = utils.global;
|
|
25
|
-
|
|
26
21
|
const test = (fn, ...args) => {
|
|
27
22
|
try {
|
|
28
23
|
return !!fn(...args);
|
|
@@ -32,11 +27,17 @@ const test = (fn, ...args) => {
|
|
|
32
27
|
};
|
|
33
28
|
|
|
34
29
|
const factory = (env) => {
|
|
30
|
+
const globalObject = utils.global ?? globalThis;
|
|
31
|
+
const { ReadableStream, TextEncoder } = globalObject;
|
|
32
|
+
|
|
35
33
|
env = utils.merge.call(
|
|
36
34
|
{
|
|
37
35
|
skipUndefined: true,
|
|
38
36
|
},
|
|
39
|
-
|
|
37
|
+
{
|
|
38
|
+
Request: globalObject.Request,
|
|
39
|
+
Response: globalObject.Response,
|
|
40
|
+
},
|
|
40
41
|
env
|
|
41
42
|
);
|
|
42
43
|
|
|
@@ -163,8 +164,13 @@ const factory = (env) => {
|
|
|
163
164
|
headers,
|
|
164
165
|
withCredentials = 'same-origin',
|
|
165
166
|
fetchOptions,
|
|
167
|
+
maxContentLength,
|
|
168
|
+
maxBodyLength,
|
|
166
169
|
} = resolveConfig(config);
|
|
167
170
|
|
|
171
|
+
const hasMaxContentLength = utils.isNumber(maxContentLength) && maxContentLength > -1;
|
|
172
|
+
const hasMaxBodyLength = utils.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
173
|
+
|
|
168
174
|
let _fetch = envFetch || fetch;
|
|
169
175
|
|
|
170
176
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
@@ -186,6 +192,41 @@ const factory = (env) => {
|
|
|
186
192
|
let requestContentLength;
|
|
187
193
|
|
|
188
194
|
try {
|
|
195
|
+
// Enforce maxContentLength for data: URLs up-front so we never materialize
|
|
196
|
+
// an oversized payload. The HTTP adapter applies the same check (see http.js
|
|
197
|
+
// "if (protocol === 'data:')" branch).
|
|
198
|
+
if (hasMaxContentLength && typeof url === 'string' && url.startsWith('data:')) {
|
|
199
|
+
const estimated = estimateDataURLDecodedBytes(url);
|
|
200
|
+
if (estimated > maxContentLength) {
|
|
201
|
+
throw new AxiosError(
|
|
202
|
+
'maxContentLength size of ' + maxContentLength + ' exceeded',
|
|
203
|
+
AxiosError.ERR_BAD_RESPONSE,
|
|
204
|
+
config,
|
|
205
|
+
request
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// Enforce maxBodyLength against the outbound request body before dispatch.
|
|
211
|
+
// Mirrors http.js behavior (ERR_BAD_REQUEST / 'Request body larger than
|
|
212
|
+
// maxBodyLength limit'). Skip when the body length cannot be determined
|
|
213
|
+
// (e.g. a live ReadableStream supplied by the caller).
|
|
214
|
+
if (hasMaxBodyLength && method !== 'get' && method !== 'head') {
|
|
215
|
+
const outboundLength = await resolveBodyLength(headers, data);
|
|
216
|
+
if (
|
|
217
|
+
typeof outboundLength === 'number' &&
|
|
218
|
+
isFinite(outboundLength) &&
|
|
219
|
+
outboundLength > maxBodyLength
|
|
220
|
+
) {
|
|
221
|
+
throw new AxiosError(
|
|
222
|
+
'Request body larger than maxBodyLength limit',
|
|
223
|
+
AxiosError.ERR_BAD_REQUEST,
|
|
224
|
+
config,
|
|
225
|
+
request
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
189
230
|
if (
|
|
190
231
|
onUploadProgress &&
|
|
191
232
|
supportsRequestStream &&
|
|
@@ -236,6 +277,9 @@ const factory = (env) => {
|
|
|
236
277
|
}
|
|
237
278
|
}
|
|
238
279
|
|
|
280
|
+
// Set User-Agent header if not already set (fetch defaults to 'node' in Node.js)
|
|
281
|
+
headers.set('User-Agent', 'axios/' + VERSION, false);
|
|
282
|
+
|
|
239
283
|
const resolvedOptions = {
|
|
240
284
|
...fetchOptions,
|
|
241
285
|
signal: composedSignal,
|
|
@@ -252,10 +296,28 @@ const factory = (env) => {
|
|
|
252
296
|
? _fetch(request, fetchOptions)
|
|
253
297
|
: _fetch(url, resolvedOptions));
|
|
254
298
|
|
|
299
|
+
// Cheap pre-check: if the server honestly declares a content-length that
|
|
300
|
+
// already exceeds the cap, reject before we start streaming.
|
|
301
|
+
if (hasMaxContentLength) {
|
|
302
|
+
const declaredLength = utils.toFiniteNumber(response.headers.get('content-length'));
|
|
303
|
+
if (declaredLength != null && declaredLength > maxContentLength) {
|
|
304
|
+
throw new AxiosError(
|
|
305
|
+
'maxContentLength size of ' + maxContentLength + ' exceeded',
|
|
306
|
+
AxiosError.ERR_BAD_RESPONSE,
|
|
307
|
+
config,
|
|
308
|
+
request
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
255
313
|
const isStreamResponse =
|
|
256
314
|
supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
257
315
|
|
|
258
|
-
if (
|
|
316
|
+
if (
|
|
317
|
+
supportsResponseStream &&
|
|
318
|
+
response.body &&
|
|
319
|
+
(onDownloadProgress || hasMaxContentLength || (isStreamResponse && unsubscribe))
|
|
320
|
+
) {
|
|
259
321
|
const options = {};
|
|
260
322
|
|
|
261
323
|
['status', 'statusText', 'headers'].forEach((prop) => {
|
|
@@ -272,8 +334,24 @@ const factory = (env) => {
|
|
|
272
334
|
)) ||
|
|
273
335
|
[];
|
|
274
336
|
|
|
337
|
+
let bytesRead = 0;
|
|
338
|
+
const onChunkProgress = (loadedBytes) => {
|
|
339
|
+
if (hasMaxContentLength) {
|
|
340
|
+
bytesRead = loadedBytes;
|
|
341
|
+
if (bytesRead > maxContentLength) {
|
|
342
|
+
throw new AxiosError(
|
|
343
|
+
'maxContentLength size of ' + maxContentLength + ' exceeded',
|
|
344
|
+
AxiosError.ERR_BAD_RESPONSE,
|
|
345
|
+
config,
|
|
346
|
+
request
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
onProgress && onProgress(loadedBytes);
|
|
351
|
+
};
|
|
352
|
+
|
|
275
353
|
response = new Response(
|
|
276
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE,
|
|
354
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
|
|
277
355
|
flush && flush();
|
|
278
356
|
unsubscribe && unsubscribe();
|
|
279
357
|
}),
|
|
@@ -288,6 +366,33 @@ const factory = (env) => {
|
|
|
288
366
|
config
|
|
289
367
|
);
|
|
290
368
|
|
|
369
|
+
// Fallback enforcement for environments without ReadableStream support
|
|
370
|
+
// (legacy runtimes). Detect materialized size from typed output; skip
|
|
371
|
+
// streams/Response passthrough since the user will read those themselves.
|
|
372
|
+
if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
|
|
373
|
+
let materializedSize;
|
|
374
|
+
if (responseData != null) {
|
|
375
|
+
if (typeof responseData.byteLength === 'number') {
|
|
376
|
+
materializedSize = responseData.byteLength;
|
|
377
|
+
} else if (typeof responseData.size === 'number') {
|
|
378
|
+
materializedSize = responseData.size;
|
|
379
|
+
} else if (typeof responseData === 'string') {
|
|
380
|
+
materializedSize =
|
|
381
|
+
typeof TextEncoder === 'function'
|
|
382
|
+
? new TextEncoder().encode(responseData).byteLength
|
|
383
|
+
: responseData.length;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
if (typeof materializedSize === 'number' && materializedSize > maxContentLength) {
|
|
387
|
+
throw new AxiosError(
|
|
388
|
+
'maxContentLength size of ' + maxContentLength + ' exceeded',
|
|
389
|
+
AxiosError.ERR_BAD_RESPONSE,
|
|
390
|
+
config,
|
|
391
|
+
request
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
291
396
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
292
397
|
|
|
293
398
|
return await new Promise((resolve, reject) => {
|
|
@@ -303,6 +408,17 @@ const factory = (env) => {
|
|
|
303
408
|
} catch (err) {
|
|
304
409
|
unsubscribe && unsubscribe();
|
|
305
410
|
|
|
411
|
+
// Safari can surface fetch aborts as a DOMException-like object whose
|
|
412
|
+
// branded getters throw. Prefer our composed signal reason before reading
|
|
413
|
+
// the caught error, preserving timeout vs cancellation semantics.
|
|
414
|
+
if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError) {
|
|
415
|
+
const canceledError = composedSignal.reason;
|
|
416
|
+
canceledError.config = config;
|
|
417
|
+
request && (canceledError.request = request);
|
|
418
|
+
err !== canceledError && (canceledError.cause = err);
|
|
419
|
+
throw canceledError;
|
|
420
|
+
}
|
|
421
|
+
|
|
306
422
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
307
423
|
throw Object.assign(
|
|
308
424
|
new AxiosError(
|