@zuplo/cli 6.69.4 → 6.69.5
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/jest-mocks-setup.js +29 -10
- package/dist/__tests__/integration/jest-mocks-setup.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/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/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/tsconfig.tsbuildinfo +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
|
@@ -19,11 +19,14 @@ export default function mergeConfig(config1, config2) {
|
|
|
19
19
|
config2 = config2 || {};
|
|
20
20
|
|
|
21
21
|
// Use a null-prototype object so that downstream reads such as `config.auth`
|
|
22
|
-
// or `config.baseURL` cannot inherit polluted values from Object.prototype
|
|
23
|
-
//
|
|
24
|
-
//
|
|
22
|
+
// or `config.baseURL` cannot inherit polluted values from Object.prototype.
|
|
23
|
+
// `hasOwnProperty` is restored as a non-enumerable own slot to preserve
|
|
24
|
+
// ergonomics for user code that relies on it.
|
|
25
25
|
const config = Object.create(null);
|
|
26
26
|
Object.defineProperty(config, 'hasOwnProperty', {
|
|
27
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
28
|
+
// this data descriptor into an accessor descriptor on the way in.
|
|
29
|
+
__proto__: null,
|
|
27
30
|
value: Object.prototype.hasOwnProperty,
|
|
28
31
|
enumerable: false,
|
|
29
32
|
writable: true,
|
|
@@ -16,16 +16,12 @@ export default function settle(resolve, reject, response) {
|
|
|
16
16
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
17
17
|
resolve(response);
|
|
18
18
|
} else {
|
|
19
|
-
reject(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
response.request,
|
|
27
|
-
response
|
|
28
|
-
)
|
|
29
|
-
);
|
|
19
|
+
reject(new AxiosError(
|
|
20
|
+
'Request failed with status code ' + response.status,
|
|
21
|
+
response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE,
|
|
22
|
+
response.config,
|
|
23
|
+
response.request,
|
|
24
|
+
response
|
|
25
|
+
));
|
|
30
26
|
}
|
|
31
27
|
}
|
|
@@ -170,7 +170,7 @@ const defaults = {
|
|
|
170
170
|
},
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
|
|
173
|
+
utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query'], (method) => {
|
|
174
174
|
defaults.headers[method] = {};
|
|
175
175
|
});
|
|
176
176
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.16.0";
|
|
@@ -11,7 +11,7 @@ import AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';
|
|
|
11
11
|
*
|
|
12
12
|
* @returns {string} The encoded value.
|
|
13
13
|
*/
|
|
14
|
-
function encode(val) {
|
|
14
|
+
export function encode(val) {
|
|
15
15
|
return encodeURIComponent(val)
|
|
16
16
|
.replace(/%3A/gi, ':')
|
|
17
17
|
.replace(/%24/g, '$')
|
|
@@ -30,8 +30,20 @@ export default platform.hasStandardBrowserEnv
|
|
|
30
30
|
|
|
31
31
|
read(name) {
|
|
32
32
|
if (typeof document === 'undefined') return null;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
// Match name=value by splitting on the semicolon separator instead of building a
|
|
34
|
+
// RegExp from `name` — interpolating an unescaped string into a RegExp would let
|
|
35
|
+
// metacharacters (e.g. `.+?` in an attacker-influenced cookie name) cause ReDoS or
|
|
36
|
+
// match the wrong cookie. Browsers may serialize cookie pairs as either ";" or
|
|
37
|
+
// "; ", so ignore optional whitespace before each cookie name.
|
|
38
|
+
const cookies = document.cookie.split(';');
|
|
39
|
+
for (let i = 0; i < cookies.length; i++) {
|
|
40
|
+
const cookie = cookies[i].replace(/^\s+/, '');
|
|
41
|
+
const eq = cookie.indexOf('=');
|
|
42
|
+
if (eq !== -1 && cookie.slice(0, eq) === name) {
|
|
43
|
+
return decodeURIComponent(cookie.slice(eq + 1));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return null;
|
|
35
47
|
},
|
|
36
48
|
|
|
37
49
|
remove(name) {
|
|
@@ -69,5 +69,32 @@ export default function estimateDataURLDecodedBytes(url) {
|
|
|
69
69
|
return bytes > 0 ? bytes : 0;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
if (typeof Buffer !== 'undefined' && typeof Buffer.byteLength === 'function') {
|
|
73
|
+
return Buffer.byteLength(body, 'utf8');
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Compute UTF-8 byte length directly from UTF-16 code units without allocating
|
|
77
|
+
// a byte buffer (TextEncoder.encode would defeat the DoS guard on large bodies).
|
|
78
|
+
// Using body.length here would undercount non-ASCII (e.g. '€' is 1 code unit
|
|
79
|
+
// but 3 UTF-8 bytes).
|
|
80
|
+
let bytes = 0;
|
|
81
|
+
for (let i = 0, len = body.length; i < len; i++) {
|
|
82
|
+
const c = body.charCodeAt(i);
|
|
83
|
+
if (c < 0x80) {
|
|
84
|
+
bytes += 1;
|
|
85
|
+
} else if (c < 0x800) {
|
|
86
|
+
bytes += 2;
|
|
87
|
+
} else if (c >= 0xd800 && c <= 0xdbff && i + 1 < len) {
|
|
88
|
+
const next = body.charCodeAt(i + 1);
|
|
89
|
+
if (next >= 0xdc00 && next <= 0xdfff) {
|
|
90
|
+
bytes += 4;
|
|
91
|
+
i++;
|
|
92
|
+
} else {
|
|
93
|
+
bytes += 3;
|
|
94
|
+
}
|
|
95
|
+
} else {
|
|
96
|
+
bytes += 3;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return bytes;
|
|
73
100
|
}
|
|
@@ -77,7 +77,7 @@ const formDataToStream = (form, headersHandler, options) => {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
if (boundary.length < 1 || boundary.length > 70) {
|
|
80
|
-
throw Error('boundary must be
|
|
80
|
+
throw Error('boundary must be 1-70 characters long');
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
|
|
@@ -7,11 +7,39 @@ import mergeConfig from '../core/mergeConfig.js';
|
|
|
7
7
|
import AxiosHeaders from '../core/AxiosHeaders.js';
|
|
8
8
|
import buildURL from './buildURL.js';
|
|
9
9
|
|
|
10
|
+
const FORM_DATA_CONTENT_HEADERS = ['content-type', 'content-length'];
|
|
11
|
+
|
|
12
|
+
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
13
|
+
if (policy !== 'content-only') {
|
|
14
|
+
headers.set(formHeaders);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
19
|
+
if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
|
|
20
|
+
headers.set(key, val);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
|
|
27
|
+
* This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
|
|
28
|
+
*
|
|
29
|
+
* @param {string} str The string to encode
|
|
30
|
+
*
|
|
31
|
+
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
32
|
+
*/
|
|
33
|
+
const encodeUTF8 = (str) =>
|
|
34
|
+
encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>
|
|
35
|
+
String.fromCharCode(parseInt(hex, 16))
|
|
36
|
+
);
|
|
37
|
+
|
|
10
38
|
export default (config) => {
|
|
11
39
|
const newConfig = mergeConfig({}, config);
|
|
12
40
|
|
|
13
41
|
// Read only own properties to prevent prototype pollution gadgets
|
|
14
|
-
// (e.g. Object.prototype.baseURL = 'https://evil.com').
|
|
42
|
+
// (e.g. Object.prototype.baseURL = 'https://evil.com').
|
|
15
43
|
const own = (key) => (utils.hasOwnProp(newConfig, key) ? newConfig[key] : undefined);
|
|
16
44
|
|
|
17
45
|
const data = own('data');
|
|
@@ -37,11 +65,7 @@ export default (config) => {
|
|
|
37
65
|
headers.set(
|
|
38
66
|
'Authorization',
|
|
39
67
|
'Basic ' +
|
|
40
|
-
btoa(
|
|
41
|
-
(auth.username || '') +
|
|
42
|
-
':' +
|
|
43
|
-
(auth.password ? unescape(encodeURIComponent(auth.password)) : '')
|
|
44
|
-
)
|
|
68
|
+
btoa((auth.username || '') + ':' + (auth.password ? encodeUTF8(auth.password) : ''))
|
|
45
69
|
);
|
|
46
70
|
}
|
|
47
71
|
|
|
@@ -50,14 +74,7 @@ export default (config) => {
|
|
|
50
74
|
headers.setContentType(undefined); // browser handles it
|
|
51
75
|
} else if (utils.isFunction(data.getHeaders)) {
|
|
52
76
|
// Node.js FormData (like form-data package)
|
|
53
|
-
|
|
54
|
-
// Only set safe headers to avoid overwriting security headers
|
|
55
|
-
const allowedHeaders = ['content-type', 'content-length'];
|
|
56
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
57
|
-
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
58
|
-
headers.set(key, val);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
77
|
+
setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));
|
|
61
78
|
}
|
|
62
79
|
}
|
|
63
80
|
|
|
@@ -72,10 +89,9 @@ export default (config) => {
|
|
|
72
89
|
|
|
73
90
|
// Strict boolean check — prevents proto-pollution gadgets (e.g. Object.prototype.withXSRFToken = 1)
|
|
74
91
|
// and misconfigurations (e.g. "false") from short-circuiting the same-origin check and leaking
|
|
75
|
-
// the XSRF token cross-origin.
|
|
92
|
+
// the XSRF token cross-origin.
|
|
76
93
|
const shouldSendXSRF =
|
|
77
|
-
withXSRFToken === true ||
|
|
78
|
-
(withXSRFToken == null && isURLSameOrigin(newConfig.url));
|
|
94
|
+
withXSRFToken === true || (withXSRFToken == null && isURLSameOrigin(newConfig.url));
|
|
79
95
|
|
|
80
96
|
if (shouldSendXSRF) {
|
|
81
97
|
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
@@ -87,6 +87,31 @@ const parseNoProxyEntry = (entry) => {
|
|
|
87
87
|
return [entryHost, entryPort];
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
+
// Convert IPv4-mapped IPv6 (::ffff:0:0/96 prefix) to IPv4 dotted form so both
|
|
91
|
+
// sides of a NO_PROXY comparison see the same canonical address. Without this,
|
|
92
|
+
// `NO_PROXY=192.168.1.5` would not match a request to `http://[::ffff:192.168.1.5]/`
|
|
93
|
+
// (Node's URL parser normalises that to `[::ffff:c0a8:105]`), and vice-versa,
|
|
94
|
+
// allowing the proxy-bypass policy to be circumvented by using the alternate
|
|
95
|
+
// representation. Returns the input unchanged when not IPv4-mapped.
|
|
96
|
+
const IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
|
|
97
|
+
const IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
|
|
98
|
+
|
|
99
|
+
const unmapIPv4MappedIPv6 = (host) => {
|
|
100
|
+
if (typeof host !== 'string' || host.indexOf(':') === -1) return host;
|
|
101
|
+
|
|
102
|
+
const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
|
|
103
|
+
if (dotted) return dotted[1];
|
|
104
|
+
|
|
105
|
+
const hex = host.match(IPV4_MAPPED_HEX_RE);
|
|
106
|
+
if (hex) {
|
|
107
|
+
const high = parseInt(hex[1], 16);
|
|
108
|
+
const low = parseInt(hex[2], 16);
|
|
109
|
+
return `${high >> 8}.${high & 0xff}.${low >> 8}.${low & 0xff}`;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return host;
|
|
113
|
+
};
|
|
114
|
+
|
|
90
115
|
const normalizeNoProxyHost = (hostname) => {
|
|
91
116
|
if (!hostname) {
|
|
92
117
|
return hostname;
|
|
@@ -96,7 +121,7 @@ const normalizeNoProxyHost = (hostname) => {
|
|
|
96
121
|
hostname = hostname.slice(1, -1);
|
|
97
122
|
}
|
|
98
123
|
|
|
99
|
-
return hostname.replace(/\.+$/, '');
|
|
124
|
+
return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ''));
|
|
100
125
|
};
|
|
101
126
|
|
|
102
127
|
export default function shouldBypassProxy(location) {
|
|
@@ -87,7 +87,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
87
87
|
while (i-- > 0) {
|
|
88
88
|
const opt = keys[i];
|
|
89
89
|
// Use hasOwnProperty so a polluted Object.prototype.<opt> cannot supply
|
|
90
|
-
// a non-function validator and cause a TypeError.
|
|
90
|
+
// a non-function validator and cause a TypeError.
|
|
91
91
|
const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : undefined;
|
|
92
92
|
if (validator) {
|
|
93
93
|
const value = options[opt];
|
|
@@ -192,21 +192,21 @@ const isFile = kindOfTest('File');
|
|
|
192
192
|
* also have a `name` and `type` attribute to specify filename and content type
|
|
193
193
|
*
|
|
194
194
|
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
|
195
|
-
*
|
|
195
|
+
*
|
|
196
196
|
* @param {*} value The value to test
|
|
197
|
-
*
|
|
197
|
+
*
|
|
198
198
|
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
|
199
199
|
*/
|
|
200
200
|
const isReactNativeBlob = (value) => {
|
|
201
201
|
return !!(value && typeof value.uri !== 'undefined');
|
|
202
|
-
}
|
|
202
|
+
};
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* Determine if environment is React Native
|
|
206
206
|
* ReactNative `FormData` has a non-standard `getParts()` method
|
|
207
|
-
*
|
|
207
|
+
*
|
|
208
208
|
* @param {*} formData The formData to test
|
|
209
|
-
*
|
|
209
|
+
*
|
|
210
210
|
* @returns {boolean} True if environment is React Native, otherwise false
|
|
211
211
|
*/
|
|
212
212
|
const isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';
|
|
@@ -225,7 +225,7 @@ const isBlob = kindOfTest('Blob');
|
|
|
225
225
|
*
|
|
226
226
|
* @param {*} val The value to test
|
|
227
227
|
*
|
|
228
|
-
* @returns {boolean} True if value is a
|
|
228
|
+
* @returns {boolean} True if value is a FileList, otherwise false
|
|
229
229
|
*/
|
|
230
230
|
const isFileList = kindOfTest('FileList');
|
|
231
231
|
|
|
@@ -259,14 +259,16 @@ const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
|
|
|
259
259
|
const isFormData = (thing) => {
|
|
260
260
|
if (!thing) return false;
|
|
261
261
|
if (FormDataCtor && thing instanceof FormDataCtor) return true;
|
|
262
|
-
// Reject plain objects inheriting directly from Object.prototype so prototype-pollution gadgets can't spoof FormData
|
|
262
|
+
// Reject plain objects inheriting directly from Object.prototype so prototype-pollution gadgets can't spoof FormData.
|
|
263
263
|
const proto = getPrototypeOf(thing);
|
|
264
264
|
if (!proto || proto === Object.prototype) return false;
|
|
265
265
|
if (!isFunction(thing.append)) return false;
|
|
266
266
|
const kind = kindOf(thing);
|
|
267
|
-
return
|
|
267
|
+
return (
|
|
268
|
+
kind === 'formdata' ||
|
|
268
269
|
// detect form-data instance
|
|
269
|
-
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
|
|
270
|
+
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
|
|
271
|
+
);
|
|
270
272
|
};
|
|
271
273
|
|
|
272
274
|
/**
|
|
@@ -401,7 +403,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
401
403
|
*
|
|
402
404
|
* @returns {Object} Result of all merge properties
|
|
403
405
|
*/
|
|
404
|
-
function merge(
|
|
406
|
+
function merge(...objs) {
|
|
405
407
|
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
406
408
|
const result = {};
|
|
407
409
|
const assignValue = (val, key) => {
|
|
@@ -411,8 +413,12 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
411
413
|
}
|
|
412
414
|
|
|
413
415
|
const targetKey = (caseless && findKey(result, key)) || key;
|
|
414
|
-
|
|
415
|
-
|
|
416
|
+
// Read via own-prop only — a bare `result[targetKey]` walks the prototype
|
|
417
|
+
// chain, so a polluted Object.prototype value could surface here and get
|
|
418
|
+
// copied into the merged result.
|
|
419
|
+
const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : undefined;
|
|
420
|
+
if (isPlainObject(existing) && isPlainObject(val)) {
|
|
421
|
+
result[targetKey] = merge(existing, val);
|
|
416
422
|
} else if (isPlainObject(val)) {
|
|
417
423
|
result[targetKey] = merge({}, val);
|
|
418
424
|
} else if (isArray(val)) {
|
|
@@ -422,8 +428,8 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
422
428
|
}
|
|
423
429
|
};
|
|
424
430
|
|
|
425
|
-
for (let i = 0, l =
|
|
426
|
-
|
|
431
|
+
for (let i = 0, l = objs.length; i < l; i++) {
|
|
432
|
+
objs[i] && forEach(objs[i], assignValue);
|
|
427
433
|
}
|
|
428
434
|
return result;
|
|
429
435
|
}
|
|
@@ -445,6 +451,9 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
|
445
451
|
(val, key) => {
|
|
446
452
|
if (thisArg && isFunction(val)) {
|
|
447
453
|
Object.defineProperty(a, key, {
|
|
454
|
+
// Null-proto descriptor so a polluted Object.prototype.get cannot
|
|
455
|
+
// hijack defineProperty's accessor-vs-data resolution.
|
|
456
|
+
__proto__: null,
|
|
448
457
|
value: bind(val, thisArg),
|
|
449
458
|
writable: true,
|
|
450
459
|
enumerable: true,
|
|
@@ -452,6 +461,7 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
|
452
461
|
});
|
|
453
462
|
} else {
|
|
454
463
|
Object.defineProperty(a, key, {
|
|
464
|
+
__proto__: null,
|
|
455
465
|
value: val,
|
|
456
466
|
writable: true,
|
|
457
467
|
enumerable: true,
|
|
@@ -490,12 +500,14 @@ const stripBOM = (content) => {
|
|
|
490
500
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
491
501
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
492
502
|
Object.defineProperty(constructor.prototype, 'constructor', {
|
|
503
|
+
__proto__: null,
|
|
493
504
|
value: constructor,
|
|
494
505
|
writable: true,
|
|
495
506
|
enumerable: false,
|
|
496
507
|
configurable: true,
|
|
497
508
|
});
|
|
498
509
|
Object.defineProperty(constructor, 'super', {
|
|
510
|
+
__proto__: null,
|
|
499
511
|
value: superConstructor.prototype,
|
|
500
512
|
});
|
|
501
513
|
props && Object.assign(constructor.prototype, props);
|
|
@@ -677,7 +689,7 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
677
689
|
const freezeMethods = (obj) => {
|
|
678
690
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
679
691
|
// skip restricted props in strict mode
|
|
680
|
-
if (isFunction(obj) && ['arguments', 'caller', 'callee'].
|
|
692
|
+
if (isFunction(obj) && ['arguments', 'caller', 'callee'].includes(name)) {
|
|
681
693
|
return false;
|
|
682
694
|
}
|
|
683
695
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axios",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "Promise based HTTP client for the browser and node.js",
|
|
5
5
|
"main": "./dist/node/axios.cjs",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
"Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
|
|
83
83
|
"Nick Uraltsev (https://github.com/nickuraltsev)",
|
|
84
84
|
"Emily Morehouse (https://github.com/emilyemorehouse)",
|
|
85
|
-
"Justin Beckwith (https://github.com/JustinBeckwith)",
|
|
86
85
|
"Rubén Norte (https://github.com/rubennorte)",
|
|
86
|
+
"Justin Beckwith (https://github.com/JustinBeckwith)",
|
|
87
87
|
"Martti Laine (https://github.com/codeclown)",
|
|
88
88
|
"Xianming Zhong (https://github.com/chinesedfan)",
|
|
89
|
-
"Remco Haszing (https://github.com/remcohaszing)",
|
|
90
|
-
"Shaan Majid (https://github.com/shaanmajid)",
|
|
91
89
|
"Willian Agostini (https://github.com/WillianAgostini)",
|
|
90
|
+
"Shaan Majid (https://github.com/shaanmajid)",
|
|
91
|
+
"Remco Haszing (https://github.com/remcohaszing)",
|
|
92
92
|
"Rikki Gibson (https://github.com/RikkiGibson)"
|
|
93
93
|
],
|
|
94
94
|
"sideEffects": false,
|
|
@@ -121,15 +121,15 @@
|
|
|
121
121
|
"prepare": "husky"
|
|
122
122
|
},
|
|
123
123
|
"dependencies": {
|
|
124
|
-
"follow-redirects": "^1.
|
|
124
|
+
"follow-redirects": "^1.16.0",
|
|
125
125
|
"form-data": "^4.0.5",
|
|
126
126
|
"proxy-from-env": "^2.1.0"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
129
|
"@babel/core": "^7.29.0",
|
|
130
|
-
"@babel/preset-env": "^7.29.
|
|
131
|
-
"@commitlint/cli": "^20.
|
|
132
|
-
"@commitlint/config-conventional": "^20.
|
|
130
|
+
"@babel/preset-env": "^7.29.2",
|
|
131
|
+
"@commitlint/cli": "^20.5.0",
|
|
132
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
133
133
|
"@eslint/js": "^10.0.1",
|
|
134
134
|
"@rollup/plugin-alias": "^6.0.0",
|
|
135
135
|
"@rollup/plugin-babel": "^7.0.0",
|
|
@@ -137,40 +137,33 @@
|
|
|
137
137
|
"@rollup/plugin-json": "^6.1.0",
|
|
138
138
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
139
139
|
"@rollup/plugin-terser": "^1.0.0",
|
|
140
|
-
"@vitest/browser": "^4.1.
|
|
141
|
-
"@vitest/browser-playwright": "^4.1.
|
|
140
|
+
"@vitest/browser": "^4.1.5",
|
|
141
|
+
"@vitest/browser-playwright": "^4.1.5",
|
|
142
142
|
"abortcontroller-polyfill": "^1.7.8",
|
|
143
|
-
"auto-changelog": "^2.5.0",
|
|
144
143
|
"body-parser": "^2.2.2",
|
|
145
144
|
"chalk": "^5.6.2",
|
|
146
145
|
"cross-env": "^10.1.0",
|
|
147
146
|
"dev-null": "^0.1.1",
|
|
148
|
-
"eslint": "^10.1
|
|
147
|
+
"eslint": "^10.2.1",
|
|
149
148
|
"express": "^5.2.1",
|
|
150
149
|
"formdata-node": "^6.0.3",
|
|
151
|
-
"formidable": "^3.
|
|
150
|
+
"formidable": "^3.5.4",
|
|
152
151
|
"fs-extra": "^11.3.4",
|
|
153
152
|
"get-stream": "^9.0.1",
|
|
154
|
-
"globals": "^17.
|
|
153
|
+
"globals": "^17.5.0",
|
|
155
154
|
"gulp": "^5.0.1",
|
|
156
|
-
"handlebars": "^4.7.8",
|
|
157
155
|
"husky": "^9.1.7",
|
|
158
156
|
"lint-staged": "^16.4.0",
|
|
159
|
-
"memoizee": "^0.4.17",
|
|
160
157
|
"minimist": "^1.2.8",
|
|
161
158
|
"multer": "^2.1.1",
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"pretty-bytes": "^7.1.0",
|
|
166
|
-
"rollup": "^4.60.0",
|
|
159
|
+
"playwright": "^1.59.1",
|
|
160
|
+
"prettier": "^3.8.3",
|
|
161
|
+
"rollup": "^4.60.2",
|
|
167
162
|
"rollup-plugin-bundle-size": "^1.0.3",
|
|
168
163
|
"selfsigned": "^5.5.0",
|
|
169
164
|
"stream-throttle": "^0.1.3",
|
|
170
|
-
"string-replace-async": "^3.0.2",
|
|
171
|
-
"tar-stream": "^3.1.8",
|
|
172
165
|
"typescript": "^5.9.3",
|
|
173
|
-
"vitest": "^4.1.
|
|
166
|
+
"vitest": "^4.1.5"
|
|
174
167
|
},
|
|
175
168
|
"commitlint": {
|
|
176
169
|
"rules": {
|
|
@@ -14,6 +14,11 @@ on:
|
|
|
14
14
|
- 'docs/**'
|
|
15
15
|
- '*.md'
|
|
16
16
|
|
|
17
|
+
# This allows a subsequently queued workflow run to interrupt previous runs
|
|
18
|
+
concurrency:
|
|
19
|
+
group: "${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
|
|
20
|
+
cancel-in-progress: true
|
|
21
|
+
|
|
17
22
|
permissions:
|
|
18
23
|
contents: read
|
|
19
24
|
|
|
@@ -24,11 +29,11 @@ jobs:
|
|
|
24
29
|
permissions:
|
|
25
30
|
contents: read
|
|
26
31
|
steps:
|
|
27
|
-
- uses: actions/checkout@
|
|
32
|
+
- uses: actions/checkout@v6
|
|
28
33
|
with:
|
|
29
34
|
persist-credentials: false
|
|
30
35
|
|
|
31
|
-
- uses: actions/setup-node@
|
|
36
|
+
- uses: actions/setup-node@v6
|
|
32
37
|
with:
|
|
33
38
|
node-version: '10'
|
|
34
39
|
cache: 'npm'
|
|
@@ -66,11 +71,11 @@ jobs:
|
|
|
66
71
|
permissions:
|
|
67
72
|
contents: read
|
|
68
73
|
steps:
|
|
69
|
-
- uses: actions/checkout@
|
|
74
|
+
- uses: actions/checkout@v6
|
|
70
75
|
with:
|
|
71
76
|
persist-credentials: false
|
|
72
77
|
|
|
73
|
-
- uses: actions/setup-node@
|
|
78
|
+
- uses: actions/setup-node@v6
|
|
74
79
|
with:
|
|
75
80
|
node-version: '24'
|
|
76
81
|
cache: 'npm'
|
|
@@ -80,21 +85,21 @@ jobs:
|
|
|
80
85
|
- name: Install dependencies
|
|
81
86
|
run: |
|
|
82
87
|
npm install --ignore-scripts
|
|
83
|
-
|
|
88
|
+
|
|
84
89
|
- if: ${{ matrix.os == 'windows-latest' }}
|
|
85
90
|
run: npx playwright install winldd
|
|
86
91
|
|
|
87
92
|
- name: Run browser tests
|
|
88
93
|
run: |
|
|
89
94
|
npm run test:browser:${{ matrix.browser }}
|
|
90
|
-
|
|
95
|
+
|
|
91
96
|
test:
|
|
92
97
|
needs:
|
|
93
98
|
- test-regression-check-node10
|
|
94
99
|
permissions:
|
|
95
100
|
contents: write
|
|
96
101
|
pull-requests: write
|
|
97
|
-
uses: fastify/workflows/.github/workflows/plugins-ci.yml@
|
|
102
|
+
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v6
|
|
98
103
|
with:
|
|
99
104
|
license-check: true
|
|
100
105
|
lint: true
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: Lock Threads
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: '0 0 1 * *'
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: lock
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
lock-threads:
|
|
16
|
+
permissions:
|
|
17
|
+
issues: write
|
|
18
|
+
pull-requests: write
|
|
19
|
+
uses: fastify/workflows/.github/workflows/lock-threads.yml@v6
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
|
|
2
|
-
Copyright (c) 2021-present The Fastify team
|
|
2
|
+
Copyright (c) 2021-present The Fastify team <https://github.com/fastify/fastify#team>
|
|
3
3
|
All rights reserved.
|
|
4
4
|
|
|
5
|
-
The Fastify team members are listed at https://github.com/fastify/fastify#team.
|
|
6
|
-
|
|
7
5
|
Redistribution and use in source and binary forms, with or without
|
|
8
6
|
modification, are permitted provided that the following conditions are met:
|
|
9
7
|
* Redistributions of source code must retain the above copyright
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
# fast-uri
|
|
2
2
|
|
|
3
|
-
<div align="center">
|
|
4
|
-
|
|
5
3
|
[](https://www.npmjs.com/package/fast-uri)
|
|
6
4
|
[](https://github.com/fastify/fast-uri/actions/workflows/ci.yml)
|
|
7
5
|
[](https://github.com/neostandard/neostandard)
|
|
8
6
|
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
7
|
Dependency-free RFC 3986 URI toolbox.
|
|
12
8
|
|
|
13
9
|
## Usage
|
|
@@ -16,6 +12,8 @@ Dependency-free RFC 3986 URI toolbox.
|
|
|
16
12
|
|
|
17
13
|
All of the above functions can accept an additional options argument that is an object that can contain one or more of the following properties:
|
|
18
14
|
|
|
15
|
+
Malformed authorities and out-of-range ports are reported through the parsed component's `error` field. `normalize()` leaves malformed string inputs unchanged, and `equal()` returns `false` when either string input is malformed.
|
|
16
|
+
|
|
19
17
|
* `scheme` (string)
|
|
20
18
|
Indicates the scheme that the URI should be treated as, overriding the URI's normal scheme parsing behavior.
|
|
21
19
|
|
|
@@ -70,6 +68,17 @@ uri.resolve("uri://a/b/c/d?q", "../../g")
|
|
|
70
68
|
"uri://a/g"
|
|
71
69
|
```
|
|
72
70
|
|
|
71
|
+
### Normalize
|
|
72
|
+
|
|
73
|
+
```js
|
|
74
|
+
const uri = require('fast-uri')
|
|
75
|
+
uri.normalize('http://example.com/a%2Fb')
|
|
76
|
+
// Output
|
|
77
|
+
"http://example.com/a%2Fb"
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Reserved path escapes such as `%2F` and `%2E` are preserved as path data during normalization and comparison.
|
|
81
|
+
|
|
73
82
|
### Equal
|
|
74
83
|
|
|
75
84
|
```js
|