@automattic/vip 4.1.5 → 4.1.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/assets/dev-env.lando.template.yml.ejs +6 -2
- package/config/config.local.json +6 -0
- package/dist/bin/vip-config-software-get.js +9 -0
- package/dist/bin/vip-wp.js +128 -39
- package/dist/lib/client-file-uploader.js +34 -5
- package/dist/lib/config/software.js +42 -2
- package/dist/lib/dev-environment/dev-environment-core.js +1 -1
- package/helpers/generate-docs.js +9 -3
- package/node_modules/@apollo/client/CHANGELOG.md +32 -0
- package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/core/cache.d.cts +4 -1
- package/node_modules/@apollo/client/__cjs/cache/core/types/Cache.d.cts +5 -0
- package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.cjs +4 -4
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs +15 -5
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.d.cts +3 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/key-extractor.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs +5 -5
- package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs +28 -10
- package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/types.d.cts +7 -2
- package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs +29 -14
- package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.d.cts +5 -2
- package/node_modules/@apollo/client/__cjs/core/ApolloClient.cjs +14 -14
- package/node_modules/@apollo/client/__cjs/core/ObservableQuery.cjs +8 -8
- package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs +13 -32
- package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs +12 -12
- package/node_modules/@apollo/client/__cjs/core/RefetchEventManager.cjs +3 -3
- package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs +15 -2
- package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.d.cts +5 -1
- package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs +58 -14
- package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.d.cts +23 -12
- package/node_modules/@apollo/client/__cjs/incremental/handlers/notImplemented.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/types.d.cts +19 -1
- package/node_modules/@apollo/client/__cjs/invariantErrorCodes.cjs +64 -58
- package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/index.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/index.d.cts +0 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs +24 -26
- package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.d.cts +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs +24 -20
- package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.d.cts +1 -1
- package/node_modules/@apollo/client/__cjs/version.cjs +1 -1
- package/node_modules/@apollo/client/cache/core/cache.d.ts +4 -1
- package/node_modules/@apollo/client/cache/core/cache.js +1 -1
- package/node_modules/@apollo/client/cache/core/cache.js.map +1 -1
- package/node_modules/@apollo/client/cache/core/types/Cache.d.ts +5 -0
- package/node_modules/@apollo/client/cache/core/types/Cache.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/entityStore.js +4 -4
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.d.ts +3 -1
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js +15 -5
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/key-extractor.js +1 -1
- package/node_modules/@apollo/client/cache/inmemory/policies.js +5 -5
- package/node_modules/@apollo/client/cache/inmemory/readFromStore.js +28 -10
- package/node_modules/@apollo/client/cache/inmemory/readFromStore.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/types.d.ts +7 -2
- package/node_modules/@apollo/client/cache/inmemory/types.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/writeToStore.d.ts +5 -2
- package/node_modules/@apollo/client/cache/inmemory/writeToStore.js +30 -15
- package/node_modules/@apollo/client/cache/inmemory/writeToStore.js.map +1 -1
- package/node_modules/@apollo/client/core/ApolloClient.js +14 -14
- package/node_modules/@apollo/client/core/ObservableQuery.js +8 -8
- package/node_modules/@apollo/client/core/QueryInfo.js +14 -33
- package/node_modules/@apollo/client/core/QueryInfo.js.map +1 -1
- package/node_modules/@apollo/client/core/QueryManager.js +12 -12
- package/node_modules/@apollo/client/core/RefetchEventManager.js +3 -3
- package/node_modules/@apollo/client/incremental/handlers/defer20220824.d.ts +5 -1
- package/node_modules/@apollo/client/incremental/handlers/defer20220824.js +15 -2
- package/node_modules/@apollo/client/incremental/handlers/defer20220824.js.map +1 -1
- package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.d.ts +23 -12
- package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js +58 -14
- package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js.map +1 -1
- package/node_modules/@apollo/client/incremental/handlers/notImplemented.js +1 -1
- package/node_modules/@apollo/client/incremental/types.d.ts +19 -1
- package/node_modules/@apollo/client/incremental/types.js.map +1 -1
- package/node_modules/@apollo/client/invariantErrorCodes.js +64 -58
- package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js +1 -1
- package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js.map +1 -1
- package/node_modules/@apollo/client/package.json +1 -1
- package/node_modules/@apollo/client/utilities/internal/index.d.ts +0 -1
- package/node_modules/@apollo/client/utilities/internal/index.js.map +1 -1
- package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.d.ts +1 -1
- package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js +23 -25
- package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js.map +1 -1
- package/node_modules/@apollo/client/utilities/internal/isStreamField.d.ts +1 -1
- package/node_modules/@apollo/client/utilities/internal/isStreamField.js +23 -19
- package/node_modules/@apollo/client/utilities/internal/isStreamField.js.map +1 -1
- package/node_modules/@apollo/client/version.js +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/crypto.d.ts +2 -2
- package/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/util.d.ts +6 -3
- package/node_modules/@types/node/zlib.d.ts +6 -0
- package/node_modules/axios/CHANGELOG.md +62 -0
- package/node_modules/axios/README.md +297 -5
- package/node_modules/axios/dist/axios.js +728 -170
- 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 +871 -188
- package/node_modules/axios/dist/esm/axios.js +871 -188
- 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 +1037 -225
- package/node_modules/axios/index.d.cts +102 -74
- package/node_modules/axios/index.d.ts +100 -68
- package/node_modules/axios/lib/adapters/fetch.js +64 -11
- package/node_modules/axios/lib/adapters/http.js +140 -67
- package/node_modules/axios/lib/adapters/xhr.js +52 -3
- package/node_modules/axios/lib/core/Axios.js +43 -20
- package/node_modules/axios/lib/core/AxiosError.js +33 -2
- package/node_modules/axios/lib/core/AxiosHeaders.js +124 -1
- package/node_modules/axios/lib/core/InterceptorManager.js +107 -8
- package/node_modules/axios/lib/core/buildFullPath.js +41 -15
- package/node_modules/axios/lib/core/dispatchRequest.js +8 -2
- package/node_modules/axios/lib/core/mergeConfig.js +19 -4
- package/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/node_modules/axios/lib/defaults/index.js +2 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/Http2Sessions.js +2 -0
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +12 -1
- package/node_modules/axios/lib/helpers/combineURLs.js +11 -3
- package/node_modules/axios/lib/helpers/composeSignals.js +12 -1
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +115 -54
- package/node_modules/axios/lib/helpers/formDataToJSON.js +11 -5
- package/node_modules/axios/lib/helpers/fromDataURI.js +5 -4
- package/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +5 -3
- package/node_modules/axios/lib/helpers/progressEventReducer.js +4 -4
- package/node_modules/axios/lib/helpers/resolveConfig.js +5 -17
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +300 -5
- package/node_modules/axios/lib/helpers/throttle.js +3 -2
- package/node_modules/axios/lib/helpers/toFormData.js +17 -23
- package/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/node_modules/axios/lib/utils.js +151 -18
- package/node_modules/axios/package.json +21 -19
- package/node_modules/chalk/package.json +1 -1
- package/node_modules/chalk/source/index.js +2 -1
- package/node_modules/cpu-features/build/config.gypi +2 -2
- package/node_modules/ejs/README.md +64 -28
- package/node_modules/ejs/bin/cli.js +220 -158
- package/node_modules/ejs/ejs.js +64 -94
- package/node_modules/ejs/ejs.min.js +1 -1
- package/node_modules/ejs/jakefile.js +44 -0
- package/node_modules/ejs/lib/cjs/ejs.js +64 -63
- package/node_modules/ejs/lib/cjs/parseargs.js +129 -77
- package/node_modules/ejs/lib/cjs/utils.js +0 -31
- package/node_modules/ejs/lib/esm/ejs.js +66 -65
- package/node_modules/ejs/lib/esm/parseargs.js +136 -82
- package/node_modules/ejs/lib/esm/utils.js +0 -32
- package/node_modules/ejs/package.json +3 -2
- package/node_modules/ejs/usage.txt +9 -9
- package/node_modules/follow-redirects/index.js +10 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/graphql-ws/dist/client.cjs +28 -13
- package/node_modules/graphql-ws/dist/client.js +28 -13
- package/node_modules/graphql-ws/dist/index.cjs +1 -1
- package/node_modules/graphql-ws/dist/index.d.cts +1 -1
- package/node_modules/graphql-ws/dist/index.d.ts +1 -1
- package/node_modules/graphql-ws/dist/index.js +1 -1
- package/node_modules/graphql-ws/dist/{server-B8ZBs9OC.d.ts → server-BzBeHlSW.d.ts} +26 -1
- package/node_modules/graphql-ws/dist/{server-DN5-9C2B.cjs → server-Ce-Z86Ys.cjs} +10 -4
- package/node_modules/graphql-ws/dist/{server-ChpuX357.d.cts → server-u6zrlwzL.d.cts} +26 -1
- package/node_modules/graphql-ws/dist/{server-DHPI7HHW.js → server-zBhvXJ_Z.js} +10 -4
- package/node_modules/graphql-ws/dist/use/@fastify/websocket.cjs +2 -2
- package/node_modules/graphql-ws/dist/use/@fastify/websocket.d.cts +8 -2
- package/node_modules/graphql-ws/dist/use/@fastify/websocket.d.ts +8 -2
- package/node_modules/graphql-ws/dist/use/@fastify/websocket.js +2 -2
- package/node_modules/graphql-ws/dist/use/bun.cjs +1 -1
- package/node_modules/graphql-ws/dist/use/bun.d.cts +2 -2
- package/node_modules/graphql-ws/dist/use/bun.d.ts +2 -2
- package/node_modules/graphql-ws/dist/use/bun.js +2 -2
- package/node_modules/graphql-ws/dist/use/crossws.cjs +16 -4
- package/node_modules/graphql-ws/dist/use/crossws.d.cts +6 -1
- package/node_modules/graphql-ws/dist/use/crossws.d.ts +6 -1
- package/node_modules/graphql-ws/dist/use/crossws.js +16 -4
- package/node_modules/graphql-ws/dist/use/deno.d.ts +1 -1
- package/node_modules/graphql-ws/dist/use/deno.js +1 -1
- package/node_modules/graphql-ws/dist/use/uWebSockets.cjs +2 -2
- package/node_modules/graphql-ws/dist/use/uWebSockets.d.cts +8 -2
- package/node_modules/graphql-ws/dist/use/uWebSockets.d.ts +8 -2
- package/node_modules/graphql-ws/dist/use/uWebSockets.js +2 -2
- package/node_modules/graphql-ws/dist/use/ws.cjs +2 -2
- package/node_modules/graphql-ws/dist/use/ws.d.cts +8 -2
- package/node_modules/graphql-ws/dist/use/ws.d.ts +8 -2
- package/node_modules/graphql-ws/dist/use/ws.js +2 -2
- package/node_modules/graphql-ws/package.json +3 -3
- package/node_modules/graphql-ws/umd/graphql-ws.js +28 -13
- package/node_modules/graphql-ws/umd/graphql-ws.min.js +1 -1
- package/node_modules/graphql-ws/umd/graphql-ws.min.js.gz +0 -0
- package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs +522 -495
- package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs.map +1 -1
- package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js +24 -24
- package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.cjs.js +135 -78
- package/node_modules/js-yaml/dist/js-yaml.cjs.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.mjs +129 -72
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
- package/node_modules/js-yaml/node_modules/argparse/LICENSE +47 -0
- package/node_modules/js-yaml/node_modules/argparse/README.md +89 -0
- package/node_modules/js-yaml/node_modules/argparse/lib/_colorize.js +72 -0
- package/node_modules/js-yaml/node_modules/argparse/lib/argparse.d.ts +292 -0
- package/node_modules/{argparse → js-yaml/node_modules/argparse/lib}/argparse.js +1142 -1029
- package/node_modules/js-yaml/node_modules/argparse/lib/difflib.js +190 -0
- package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/sub.js +4 -4
- package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/textwrap.js +28 -28
- package/node_modules/js-yaml/node_modules/argparse/package.json +38 -0
- package/node_modules/js-yaml/package.json +12 -12
- package/node_modules/lando/.github/dependabot.yml +4 -0
- package/node_modules/lando/.github/workflows/build-util-images.yml +1 -1
- package/node_modules/lando/.github/workflows/pr-core-tests.yml +4 -2
- package/node_modules/lando/.github/workflows/pr-db-tools-tests.yml +4 -2
- package/node_modules/lando/.github/workflows/pr-django-tests.yml +4 -2
- package/node_modules/lando/.github/workflows/pr-linter.yml +2 -2
- package/node_modules/lando/.github/workflows/pr-unit-tests.yml +2 -2
- package/node_modules/lando/.node-version +1 -1
- package/node_modules/lando/bin/lando.js +3 -83
- package/node_modules/lando/config.yml +0 -1
- package/node_modules/lando/eslint.config.mjs +4 -0
- package/node_modules/lando/examples/django/.lando.yml +1 -1
- package/node_modules/lando/examples/django/README.md +1 -1
- package/node_modules/lando/examples/django/requirements.txt +1 -1
- package/node_modules/lando/examples/sql-export/README.md +5 -0
- package/node_modules/lando/lib/app.js +78 -84
- package/node_modules/lando/lib/art.js +86 -30
- package/node_modules/lando/lib/bootstrap.js +148 -45
- package/node_modules/lando/lib/cache.js +14 -15
- package/node_modules/lando/lib/cli.js +67 -63
- package/node_modules/lando/lib/compose.js +76 -45
- package/node_modules/lando/lib/config.js +51 -33
- package/node_modules/lando/lib/daemon.js +27 -10
- package/node_modules/lando/lib/docker.js +46 -19
- package/node_modules/lando/lib/engine.js +131 -144
- package/node_modules/lando/lib/env.js +25 -46
- package/node_modules/lando/lib/error.js +15 -6
- package/node_modules/lando/lib/esm/package.json +3 -0
- package/node_modules/lando/lib/esm/string-argv.js +2 -0
- package/node_modules/lando/lib/esm/yargs.js +2 -0
- package/node_modules/lando/lib/events.js +15 -15
- package/node_modules/lando/lib/factory.js +43 -14
- package/node_modules/lando/lib/formatters.js +19 -31
- package/node_modules/lando/lib/lando.js +59 -48
- package/node_modules/lando/lib/logger.js +12 -24
- package/node_modules/lando/lib/plugins.js +27 -15
- package/node_modules/lando/lib/promise.js +17 -17
- package/node_modules/lando/lib/router.js +75 -21
- package/node_modules/lando/lib/scan.js +29 -12
- package/node_modules/lando/lib/shell.js +44 -20
- package/node_modules/lando/lib/user.js +14 -20
- package/node_modules/lando/lib/utils.js +87 -44
- package/node_modules/lando/lib/yaml.js +11 -9
- package/node_modules/lando/node_modules/ansi-regex/index.d.ts +33 -0
- package/node_modules/lando/node_modules/ansi-regex/index.js +15 -0
- package/node_modules/lando/node_modules/ansi-regex/package.json +61 -0
- package/node_modules/lando/node_modules/ansi-regex/readme.md +66 -0
- package/node_modules/lando/node_modules/cliui/README.md +26 -6
- package/node_modules/lando/node_modules/cliui/build/lib/index.js +2 -2
- package/node_modules/lando/node_modules/cliui/build/tsconfig.tsbuildinfo +1 -0
- package/node_modules/lando/node_modules/cliui/index.mjs +7 -5
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/index.d.ts +39 -0
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/index.js +82 -0
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/license +9 -0
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/package.json +64 -0
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/readme.md +66 -0
- package/node_modules/lando/node_modules/cliui/package.json +21 -32
- package/node_modules/lando/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/lando/node_modules/emoji-regex/README.md +107 -0
- package/node_modules/lando/node_modules/emoji-regex/index.d.ts +3 -0
- package/node_modules/lando/node_modules/emoji-regex/index.js +4 -0
- package/node_modules/lando/node_modules/emoji-regex/index.mjs +4 -0
- package/node_modules/lando/node_modules/emoji-regex/package.json +45 -0
- package/node_modules/lando/node_modules/string-width/index.d.ts +39 -0
- package/node_modules/lando/node_modules/string-width/index.js +203 -0
- package/node_modules/lando/node_modules/string-width/license +9 -0
- package/node_modules/lando/node_modules/string-width/package.json +65 -0
- package/node_modules/lando/node_modules/string-width/readme.md +66 -0
- package/node_modules/lando/node_modules/strip-ansi/index.d.ts +15 -0
- package/node_modules/lando/node_modules/strip-ansi/index.js +19 -0
- package/node_modules/lando/node_modules/strip-ansi/license +9 -0
- package/node_modules/lando/node_modules/strip-ansi/package.json +59 -0
- package/node_modules/lando/node_modules/strip-ansi/readme.md +37 -0
- package/node_modules/lando/node_modules/yargs/README.md +16 -36
- package/node_modules/lando/node_modules/yargs/browser.d.ts +5 -0
- package/node_modules/lando/node_modules/yargs/browser.mjs +2 -2
- package/node_modules/lando/node_modules/yargs/build/lib/command.js +308 -211
- package/node_modules/lando/node_modules/yargs/build/lib/completion-templates.js +28 -9
- package/node_modules/lando/node_modules/yargs/build/lib/completion.js +233 -91
- package/node_modules/lando/node_modules/yargs/build/lib/middleware.js +51 -16
- package/node_modules/lando/node_modules/yargs/build/lib/usage.js +88 -52
- package/node_modules/lando/node_modules/yargs/build/lib/utils/apply-extends.js +4 -2
- package/node_modules/lando/node_modules/yargs/build/lib/utils/levenshtein.js +9 -1
- package/node_modules/lando/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
- package/node_modules/lando/node_modules/yargs/build/lib/validation.js +51 -54
- package/node_modules/lando/node_modules/yargs/build/lib/yargs-factory.js +1261 -887
- package/node_modules/lando/node_modules/yargs/build/lib/yerror.js +3 -1
- package/node_modules/lando/node_modules/yargs/index.mjs +4 -2
- package/node_modules/lando/node_modules/yargs/lib/platform-shims/browser.mjs +9 -2
- package/node_modules/lando/node_modules/yargs/lib/platform-shims/esm.mjs +22 -22
- package/node_modules/lando/node_modules/yargs/locales/cs.json +51 -0
- package/node_modules/lando/node_modules/yargs/locales/de.json +1 -1
- package/node_modules/lando/node_modules/yargs/locales/en.json +4 -0
- package/node_modules/lando/node_modules/yargs/locales/fi.json +1 -1
- package/node_modules/lando/node_modules/yargs/locales/he.json +55 -0
- package/node_modules/lando/node_modules/yargs/locales/ka.json +55 -0
- package/node_modules/lando/node_modules/yargs/locales/ko.json +25 -25
- package/node_modules/lando/node_modules/yargs/locales/ru.json +6 -1
- package/node_modules/lando/node_modules/yargs/locales/uk_UA.json +51 -0
- package/node_modules/lando/node_modules/yargs/locales/uz.json +52 -0
- package/node_modules/lando/node_modules/yargs/locales/zh_TW.json +50 -46
- package/node_modules/lando/node_modules/yargs/package.json +41 -60
- package/node_modules/lando/node_modules/yargs-parser/build/lib/index.js +13 -8
- package/node_modules/lando/node_modules/yargs-parser/build/lib/yargs-parser.js +21 -12
- package/node_modules/lando/node_modules/yargs-parser/package.json +31 -40
- package/node_modules/lando/package.json +59 -22
- package/node_modules/lando/plugins/lando-compose/index.js +4 -0
- package/node_modules/lando/plugins/lando-compose/lib/utils.js +16 -7
- package/node_modules/lando/plugins/lando-core/index.js +1 -2
- package/node_modules/lando/plugins/lando-core/lib/utils.js +35 -15
- package/node_modules/lando/plugins/lando-core/lib/warnings.js +27 -0
- package/node_modules/lando/plugins/lando-core/tasks/destroy.js +1 -1
- package/node_modules/lando/plugins/lando-core/tasks/rebuild.js +1 -1
- package/node_modules/lando/plugins/lando-events/index.js +4 -0
- package/node_modules/lando/plugins/lando-events/lib/utils.js +27 -6
- package/node_modules/lando/plugins/lando-networking/app.js +2 -2
- package/node_modules/lando/plugins/lando-networking/index.js +9 -2
- package/node_modules/lando/plugins/lando-networking/test/app.spec.js +87 -0
- package/node_modules/lando/plugins/lando-proxy/index.js +6 -1
- package/node_modules/lando/plugins/lando-proxy/lib/utils.js +63 -28
- package/node_modules/lando/plugins/lando-proxy/lib/warnings.js +10 -0
- package/node_modules/lando/plugins/lando-recipes/index.js +4 -0
- package/node_modules/lando/plugins/lando-recipes/lib/build.js +22 -4
- package/node_modules/lando/plugins/lando-recipes/lib/options.js +42 -66
- package/node_modules/lando/plugins/lando-recipes/lib/utils.js +30 -13
- package/node_modules/lando/plugins/lando-recipes/lib/warnings.js +5 -0
- package/node_modules/lando/plugins/lando-recipes/sources/remote.js +0 -26
- package/node_modules/lando/plugins/lando-recipes/tasks/init.js +1 -1
- package/node_modules/lando/plugins/lando-services/index.js +4 -0
- package/node_modules/lando/plugins/lando-services/lib/utils.js +38 -15
- package/node_modules/lando/plugins/lando-sharing/index.js +4 -0
- package/node_modules/lando/plugins/lando-sharing/lib/utils.js +28 -5
- package/node_modules/lando/plugins/lando-tooling/index.js +5 -0
- package/node_modules/lando/plugins/lando-tooling/lib/build.js +5 -2
- package/node_modules/lando/plugins/lando-tooling/lib/utils.js +83 -47
- package/node_modules/lando/test/cli.spec.js +59 -21
- package/node_modules/lando/test/docker.spec.js +24 -28
- package/node_modules/lando/test/env.spec.js +8 -0
- package/node_modules/lando/test/error.spec.js +1 -1
- package/node_modules/lando/test/events.spec.js +6 -7
- package/node_modules/lando/test/lando.spec.js +1 -1
- package/node_modules/lando/test/plugins.spec.js +2 -3
- package/node_modules/lando/test/promise.spec.js +1 -1
- package/node_modules/lando/test/scan.spec.js +1 -1
- package/node_modules/lando/test/shell.spec.js +19 -2
- package/node_modules/lando/test/utils.spec.js +52 -0
- package/node_modules/open/index.js +3 -5
- package/node_modules/open/package.json +1 -1
- package/node_modules/string-argv/CHANGELOG.md +38 -0
- package/node_modules/string-argv/README.md +96 -50
- package/node_modules/string-argv/index.d.ts +2 -0
- package/node_modules/string-argv/index.js +55 -35
- package/node_modules/string-argv/package.json +50 -40
- package/node_modules/undici/README.md +25 -3
- package/node_modules/undici/docs/docs/api/CacheStore.md +24 -9
- package/node_modules/undici/docs/docs/api/Client.md +11 -6
- package/node_modules/undici/docs/docs/api/Dispatcher.md +3 -0
- package/node_modules/undici/docs/docs/api/Errors.md +76 -1
- package/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
- package/node_modules/undici/docs/docs/api/Interceptors.md +13 -6
- package/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
- package/node_modules/undici/docs/docs/index.md +12 -12
- package/node_modules/undici/docs/docs/type-map.json +66 -66
- package/node_modules/undici/lib/cache/memory-cache-store.js +48 -13
- package/node_modules/undici/lib/cache/sqlite-cache-store.js +83 -5
- package/node_modules/undici/lib/core/connect.js +10 -4
- package/node_modules/undici/lib/core/constants.js +12 -1
- package/node_modules/undici/lib/core/errors.js +38 -1
- package/node_modules/undici/lib/core/request.js +16 -1
- package/node_modules/undici/lib/core/symbols.js +2 -0
- package/node_modules/undici/lib/core/util.js +26 -1
- package/node_modules/undici/lib/dispatcher/agent.js +6 -2
- package/node_modules/undici/lib/dispatcher/client-h1.js +116 -80
- package/node_modules/undici/lib/dispatcher/client-h2.js +46 -14
- package/node_modules/undici/lib/dispatcher/client.js +4 -1
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +3 -2
- package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +20 -3
- package/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
- package/node_modules/undici/lib/dispatcher/pool-base.js +65 -28
- package/node_modules/undici/lib/dispatcher/pool.js +11 -8
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -8
- package/node_modules/undici/lib/dispatcher/retry-agent.js +10 -0
- package/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -5
- package/node_modules/undici/lib/handler/cache-handler.js +153 -15
- package/node_modules/undici/lib/handler/deduplication-handler.js +112 -51
- package/node_modules/undici/lib/handler/redirect-handler.js +28 -8
- package/node_modules/undici/lib/handler/retry-handler.js +44 -11
- package/node_modules/undici/lib/interceptor/cache.js +11 -3
- package/node_modules/undici/lib/interceptor/decompress.js +22 -9
- package/node_modules/undici/lib/interceptor/dns.js +11 -0
- package/node_modules/undici/lib/interceptor/response-error.js +72 -28
- package/node_modules/undici/lib/milo/LICENSE.md +7 -0
- package/node_modules/undici/lib/milo/no-simd.js +1002 -0
- package/node_modules/undici/lib/milo/simd.js +1002 -0
- package/node_modules/undici/lib/mock/mock-agent.js +11 -0
- package/node_modules/undici/lib/mock/snapshot-recorder.js +3 -2
- package/node_modules/undici/lib/mock/snapshot-utils.js +3 -2
- package/node_modules/undici/lib/util/cache.js +11 -5
- package/node_modules/undici/lib/web/cookies/util.js +19 -2
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
- package/node_modules/undici/lib/web/eventsource/eventsource.js +25 -2
- package/node_modules/undici/lib/web/fetch/body.js +47 -38
- package/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
- package/node_modules/undici/lib/web/fetch/headers.js +2 -2
- package/node_modules/undici/lib/web/fetch/index.js +8 -4
- package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
- package/node_modules/undici/lib/web/websocket/receiver.js +25 -4
- package/node_modules/undici/package.json +7 -5
- package/node_modules/undici/types/cache-interceptor.d.ts +10 -0
- package/node_modules/undici/types/client.d.ts +10 -4
- package/node_modules/undici/types/errors.d.ts +16 -1
- package/node_modules/undici/types/h2c-client.d.ts +1 -1
- package/node_modules/undici/types/interceptors.d.ts +6 -1
- package/node_modules/{lando/node_modules/js-yaml → unicode-segmenter}/LICENSE +6 -6
- package/node_modules/unicode-segmenter/README.md +324 -0
- package/node_modules/unicode-segmenter/_emoji_data.cjs +24 -0
- package/node_modules/unicode-segmenter/_emoji_data.d.cts +1 -0
- package/node_modules/unicode-segmenter/_emoji_data.d.ts +12 -0
- package/node_modules/unicode-segmenter/_emoji_data.js +26 -0
- package/node_modules/unicode-segmenter/_general_data.cjs +30 -0
- package/node_modules/unicode-segmenter/_general_data.d.cts +1 -0
- package/node_modules/unicode-segmenter/_general_data.d.ts +16 -0
- package/node_modules/unicode-segmenter/_general_data.js +34 -0
- package/node_modules/unicode-segmenter/_grapheme_data.cjs +125 -0
- package/node_modules/unicode-segmenter/_grapheme_data.d.cts +1 -0
- package/node_modules/unicode-segmenter/_grapheme_data.d.ts +112 -0
- package/node_modules/unicode-segmenter/_grapheme_data.js +123 -0
- package/node_modules/unicode-segmenter/core.cjs +135 -0
- package/node_modules/unicode-segmenter/core.d.cts +1 -0
- package/node_modules/unicode-segmenter/core.d.ts +118 -0
- package/node_modules/unicode-segmenter/core.js +129 -0
- package/node_modules/unicode-segmenter/emoji.cjs +43 -0
- package/node_modules/unicode-segmenter/emoji.d.cts +1 -0
- package/node_modules/unicode-segmenter/emoji.d.ts +23 -0
- package/node_modules/unicode-segmenter/emoji.js +42 -0
- package/node_modules/unicode-segmenter/general.cjs +51 -0
- package/node_modules/unicode-segmenter/general.d.cts +1 -0
- package/node_modules/unicode-segmenter/general.d.ts +26 -0
- package/node_modules/unicode-segmenter/general.js +50 -0
- package/node_modules/unicode-segmenter/grapheme.cjs +405 -0
- package/node_modules/unicode-segmenter/grapheme.d.cts +1 -0
- package/node_modules/unicode-segmenter/grapheme.d.ts +64 -0
- package/node_modules/unicode-segmenter/grapheme.js +438 -0
- package/node_modules/unicode-segmenter/index.cjs +26 -0
- package/node_modules/unicode-segmenter/index.d.cts +1 -0
- package/node_modules/unicode-segmenter/index.d.ts +4 -0
- package/node_modules/unicode-segmenter/index.js +6 -0
- package/node_modules/unicode-segmenter/intl-adapter.cjs +124 -0
- package/node_modules/unicode-segmenter/intl-adapter.d.cts +1 -0
- package/node_modules/unicode-segmenter/intl-adapter.d.ts +62 -0
- package/node_modules/unicode-segmenter/intl-adapter.js +113 -0
- package/node_modules/unicode-segmenter/intl-polyfill.cjs +17 -0
- package/node_modules/unicode-segmenter/intl-polyfill.d.cts +1 -0
- package/node_modules/unicode-segmenter/intl-polyfill.d.ts +1 -0
- package/node_modules/unicode-segmenter/intl-polyfill.js +16 -0
- package/node_modules/unicode-segmenter/package.json +165 -0
- package/node_modules/unicode-segmenter/utils.cjs +99 -0
- package/node_modules/unicode-segmenter/utils.d.cts +1 -0
- package/node_modules/unicode-segmenter/utils.d.ts +64 -0
- package/node_modules/unicode-segmenter/utils.js +89 -0
- package/package.json +6 -6
- package/.buildkite/build-linux.sh +0 -68
- package/.buildkite/build-macos-installer.sh +0 -34
- package/.buildkite/build-macos.sh +0 -67
- package/.buildkite/build-windows-installer.ps1 +0 -65
- package/.buildkite/build-windows.ps1 +0 -59
- package/.buildkite/fetch-search-replace.sh +0 -65
- package/.buildkite/pack-release.sh +0 -26
- package/.buildkite/pipeline.yml +0 -81
- package/.buildkite/shared-pipeline-vars +0 -16
- package/.buildkite/sign-windows.ps1 +0 -21
- package/.buildkite/test-windows-installer-download.ps1 +0 -54
- package/.buildkite/test_pipeline.py +0 -69
- package/.bundle/config +0 -4
- package/.editorconfig +0 -11
- package/.prettierignore +0 -13
- package/.ruby-version +0 -1
- package/.sonarcloud.properties +0 -2
- package/.xcode-version +0 -1
- package/AGENTS.md +0 -101
- package/CLAUDE.md +0 -4
- package/Gemfile +0 -8
- package/Gemfile.lock +0 -377
- package/Makefile +0 -293
- package/cmd/installer-payload/main.go +0 -19
- package/cmd/installer-version/main.go +0 -22
- package/cmd/stamp-version/main.go +0 -25
- package/cmd/vip-next/auth_bootstrap.go +0 -139
- package/cmd/vip-next/auth_bootstrap_test.go +0 -379
- package/cmd/vip-next/auth_bypass_wiring_test.go +0 -162
- package/cmd/vip-next/cli_error_hook_test.go +0 -91
- package/cmd/vip-next/commands/app.go +0 -23
- package/cmd/vip-next/commands/app_debug_test.go +0 -89
- package/cmd/vip-next/commands/app_deploy.go +0 -217
- package/cmd/vip-next/commands/app_deploy_test.go +0 -297
- package/cmd/vip-next/commands/app_deploy_validate.go +0 -58
- package/cmd/vip-next/commands/app_get.go +0 -293
- package/cmd/vip-next/commands/app_get_test.go +0 -226
- package/cmd/vip-next/commands/app_list.go +0 -93
- package/cmd/vip-next/commands/app_list_test.go +0 -95
- package/cmd/vip-next/commands/backup.go +0 -16
- package/cmd/vip-next/commands/backup_db.go +0 -137
- package/cmd/vip-next/commands/backup_db_test.go +0 -187
- package/cmd/vip-next/commands/cache.go +0 -16
- package/cmd/vip-next/commands/cache_purge_url.go +0 -90
- package/cmd/vip-next/commands/cache_purge_url_test.go +0 -154
- package/cmd/vip-next/commands/config.go +0 -17
- package/cmd/vip-next/commands/config_debug_test.go +0 -137
- package/cmd/vip-next/commands/config_envvar.go +0 -16
- package/cmd/vip-next/commands/config_envvar_delete.go +0 -135
- package/cmd/vip-next/commands/config_envvar_delete_test.go +0 -140
- package/cmd/vip-next/commands/config_envvar_get.go +0 -72
- package/cmd/vip-next/commands/config_envvar_get_all.go +0 -58
- package/cmd/vip-next/commands/config_envvar_get_all_test.go +0 -83
- package/cmd/vip-next/commands/config_envvar_get_test.go +0 -79
- package/cmd/vip-next/commands/config_envvar_list.go +0 -70
- package/cmd/vip-next/commands/config_envvar_list_test.go +0 -134
- package/cmd/vip-next/commands/config_envvar_set.go +0 -162
- package/cmd/vip-next/commands/config_envvar_set_test.go +0 -251
- package/cmd/vip-next/commands/config_software.go +0 -229
- package/cmd/vip-next/commands/config_software_test.go +0 -161
- package/cmd/vip-next/commands/config_software_update.go +0 -270
- package/cmd/vip-next/commands/config_software_update_test.go +0 -334
- package/cmd/vip-next/commands/db.go +0 -16
- package/cmd/vip-next/commands/db_phpmyadmin.go +0 -122
- package/cmd/vip-next/commands/db_phpmyadmin_test.go +0 -277
- package/cmd/vip-next/commands/defensive_mode.go +0 -106
- package/cmd/vip-next/commands/defensive_mode_configure.go +0 -150
- package/cmd/vip-next/commands/defensive_mode_disable.go +0 -62
- package/cmd/vip-next/commands/defensive_mode_enable.go +0 -62
- package/cmd/vip-next/commands/defensive_mode_test.go +0 -389
- package/cmd/vip-next/commands/devenv.go +0 -49
- package/cmd/vip-next/commands/devenv_create_appinfo.go +0 -158
- package/cmd/vip-next/commands/devenv_create_appinfo_test.go +0 -29
- package/cmd/vip-next/commands/devenv_create_test.go +0 -269
- package/cmd/vip-next/commands/devenv_data.go +0 -86
- package/cmd/vip-next/commands/devenv_data_confirm_test.go +0 -49
- package/cmd/vip-next/commands/devenv_debug_test.go +0 -34
- package/cmd/vip-next/commands/devenv_e2e_gate_test.go +0 -17
- package/cmd/vip-next/commands/devenv_e2e_test.go +0 -34
- package/cmd/vip-next/commands/devenv_envvar.go +0 -186
- package/cmd/vip-next/commands/devenv_envvar_test.go +0 -183
- package/cmd/vip-next/commands/devenv_exec.go +0 -75
- package/cmd/vip-next/commands/devenv_exec_test.go +0 -39
- package/cmd/vip-next/commands/devenv_flag_grammar_test.go +0 -241
- package/cmd/vip-next/commands/devenv_lifecycle.go +0 -785
- package/cmd/vip-next/commands/devenv_logs.go +0 -29
- package/cmd/vip-next/commands/devenv_resolve.go +0 -118
- package/cmd/vip-next/commands/devenv_resolve_test.go +0 -221
- package/cmd/vip-next/commands/devenv_sync.go +0 -256
- package/cmd/vip-next/commands/devenv_sync_sites.go +0 -116
- package/cmd/vip-next/commands/devenv_sync_sites_test.go +0 -151
- package/cmd/vip-next/commands/devenv_sync_test.go +0 -63
- package/cmd/vip-next/commands/devenv_telemetry.go +0 -265
- package/cmd/vip-next/commands/devenv_telemetry_test.go +0 -322
- package/cmd/vip-next/commands/devenv_test.go +0 -60
- package/cmd/vip-next/commands/devenv_update.go +0 -207
- package/cmd/vip-next/commands/devenv_update_test.go +0 -109
- package/cmd/vip-next/commands/devenv_versions_proxy_test.go +0 -133
- package/cmd/vip-next/commands/edge_workers.go +0 -197
- package/cmd/vip-next/commands/edge_workers_flags.go +0 -56
- package/cmd/vip-next/commands/edge_workers_local.go +0 -127
- package/cmd/vip-next/commands/edge_workers_mutation.go +0 -130
- package/cmd/vip-next/commands/edge_workers_read.go +0 -103
- package/cmd/vip-next/commands/edge_workers_test.go +0 -272
- package/cmd/vip-next/commands/export.go +0 -16
- package/cmd/vip-next/commands/export_sql.go +0 -333
- package/cmd/vip-next/commands/export_sql_test.go +0 -321
- package/cmd/vip-next/commands/format_env.go +0 -17
- package/cmd/vip-next/commands/import.go +0 -19
- package/cmd/vip-next/commands/import_debug_test.go +0 -110
- package/cmd/vip-next/commands/import_media.go +0 -433
- package/cmd/vip-next/commands/import_media_abort.go +0 -76
- package/cmd/vip-next/commands/import_media_confirm.go +0 -83
- package/cmd/vip-next/commands/import_media_confirm_test.go +0 -249
- package/cmd/vip-next/commands/import_media_fetch_test.go +0 -98
- package/cmd/vip-next/commands/import_media_status.go +0 -58
- package/cmd/vip-next/commands/import_media_test.go +0 -370
- package/cmd/vip-next/commands/import_sql.go +0 -1161
- package/cmd/vip-next/commands/import_sql_status.go +0 -67
- package/cmd/vip-next/commands/import_sql_test.go +0 -746
- package/cmd/vip-next/commands/import_validate_files.go +0 -157
- package/cmd/vip-next/commands/import_validate_files_test.go +0 -157
- package/cmd/vip-next/commands/import_validate_sql.go +0 -207
- package/cmd/vip-next/commands/import_validate_sql_test.go +0 -293
- package/cmd/vip-next/commands/login.go +0 -53
- package/cmd/vip-next/commands/login_test.go +0 -25
- package/cmd/vip-next/commands/logout.go +0 -43
- package/cmd/vip-next/commands/logout_test.go +0 -158
- package/cmd/vip-next/commands/logs.go +0 -169
- package/cmd/vip-next/commands/logs_test.go +0 -174
- package/cmd/vip-next/commands/nodeflag_aliases.go +0 -59
- package/cmd/vip-next/commands/progress_renderer.go +0 -118
- package/cmd/vip-next/commands/progress_renderer_test.go +0 -28
- package/cmd/vip-next/commands/searchreplace.go +0 -75
- package/cmd/vip-next/commands/searchreplace_debug_test.go +0 -82
- package/cmd/vip-next/commands/searchreplace_test.go +0 -155
- package/cmd/vip-next/commands/slowlogs.go +0 -167
- package/cmd/vip-next/commands/slowlogs_test.go +0 -159
- package/cmd/vip-next/commands/sqlreport.go +0 -183
- package/cmd/vip-next/commands/sqlreport_test.go +0 -66
- package/cmd/vip-next/commands/sync.go +0 -189
- package/cmd/vip-next/commands/sync_confirm.go +0 -121
- package/cmd/vip-next/commands/sync_confirm_test.go +0 -202
- package/cmd/vip-next/commands/sync_render.go +0 -207
- package/cmd/vip-next/commands/sync_render_test.go +0 -101
- package/cmd/vip-next/commands/sync_test.go +0 -148
- package/cmd/vip-next/commands/update.go +0 -85
- package/cmd/vip-next/commands/update_test.go +0 -49
- package/cmd/vip-next/commands/whoami.go +0 -161
- package/cmd/vip-next/commands/whoami_debug_test.go +0 -79
- package/cmd/vip-next/commands/whoami_test.go +0 -85
- package/cmd/vip-next/commands/wp.go +0 -376
- package/cmd/vip-next/commands/wp_debug_test.go +0 -32
- package/cmd/vip-next/commands/wp_test.go +0 -276
- package/cmd/vip-next/debug_args.go +0 -63
- package/cmd/vip-next/debug_test.go +0 -122
- package/cmd/vip-next/edge_workers_test.go +0 -108
- package/cmd/vip-next/flags_node_parity_test.go +0 -434
- package/cmd/vip-next/main.go +0 -391
- package/cmd/vip-next/main_test.go +0 -202
- package/cmd/vip-next/pendo_wiring_test.go +0 -148
- package/cmd/vip-next/root.go +0 -211
- package/cmd/vip-next/update_bootstrap.go +0 -94
- package/cmd/vip-next/update_bootstrap_test.go +0 -85
- package/cmd/vip-next/update_integration_test.go +0 -137
- package/cmd/vip-next-prerelease/main.go +0 -108
- package/cmd/vip-next-prerelease/main_test.go +0 -46
- package/docs/ARCHITECTURE.md +0 -95
- package/docs/BUILD-SIGNING.md +0 -501
- package/docs/CHANGELOG.md +0 -1844
- package/docs/COMMANDER-MIGRATION.md +0 -45
- package/docs/CONTRIBUTING.md +0 -29
- package/docs/CUTOVER-BREAKING-CHANGES.md +0 -261
- package/docs/DEBUGGING.md +0 -94
- package/docs/EDGE-WORKERS.md +0 -256
- package/docs/GO-UPDATES.md +0 -97
- package/docs/NPM-RELEASE-RECOVERY.md +0 -47
- package/docs/RELEASING.md +0 -211
- package/docs/SECURITY.md +0 -9
- package/docs/SETUP.md +0 -154
- package/docs/TESTING.md +0 -67
- package/docs/decisions/0001-operation-scoped-elevated-token-reuse.md +0 -87
- package/docs/dev-env-windows-wsl-testing.md +0 -191
- package/docs/vip-next-vip-command-reference.md +0 -257
- package/docs/vip-wp-line-parse-dfa.dot +0 -31
- package/eslint.config.js +0 -35
- package/fastlane/Fastfile +0 -204
- package/fastlane/example.env +0 -8
- package/fastlane/test_signing.rb +0 -83
- package/go.mod +0 -39
- package/go.sum +0 -127
- package/internal/appctx/app_resolver.go +0 -202
- package/internal/appctx/app_resolver_test.go +0 -187
- package/internal/appctx/confirm.go +0 -180
- package/internal/appctx/confirm_payload_test.go +0 -201
- package/internal/appctx/confirm_test.go +0 -120
- package/internal/appctx/context.go +0 -94
- package/internal/appctx/context_test.go +0 -56
- package/internal/appctx/env_resolver.go +0 -110
- package/internal/appctx/env_resolver_test.go +0 -215
- package/internal/appctx/format.go +0 -72
- package/internal/appctx/format_test.go +0 -75
- package/internal/appctx/interactive.go +0 -50
- package/internal/appctx/interactive_test.go +0 -134
- package/internal/appctx/middleware.go +0 -56
- package/internal/appctx/middleware_test.go +0 -88
- package/internal/appctx/prompts.go +0 -70
- package/internal/appctx/prompts_test.go +0 -97
- package/internal/appctx/required_args.go +0 -24
- package/internal/appctx/required_args_test.go +0 -38
- package/internal/appctx/telemetry.go +0 -22
- package/internal/appctx/telemetry_test.go +0 -42
- package/internal/appctx/wildcard.go +0 -29
- package/internal/appctx/wildcard_test.go +0 -53
- package/internal/auth/bypass.go +0 -84
- package/internal/auth/bypass_test.go +0 -97
- package/internal/auth/login.go +0 -156
- package/internal/auth/login_test.go +0 -184
- package/internal/auth/logout.go +0 -44
- package/internal/auth/logout_test.go +0 -78
- package/internal/auth/store.go +0 -130
- package/internal/auth/store_test.go +0 -339
- package/internal/auth/token.go +0 -117
- package/internal/auth/token_test.go +0 -90
- package/internal/backup/backup.go +0 -194
- package/internal/backup/backup_test.go +0 -228
- package/internal/cachepurge/cachepurge.go +0 -38
- package/internal/cachepurge/cachepurge_test.go +0 -92
- package/internal/customdeploy/archive.go +0 -205
- package/internal/customdeploy/archive_test.go +0 -174
- package/internal/customdeploy/customdeploy.go +0 -91
- package/internal/customdeploy/customdeploy_test.go +0 -82
- package/internal/debuglog/debuglog.go +0 -85
- package/internal/debuglog/debuglog_test.go +0 -44
- package/internal/defensivemode/api.go +0 -89
- package/internal/defensivemode/api_test.go +0 -122
- package/internal/devenv/adapters.go +0 -168
- package/internal/devenv/adapters_test.go +0 -44
- package/internal/devenv/adopt.go +0 -20
- package/internal/devenv/adopt_setup_test.go +0 -30
- package/internal/devenv/compose/labels.go +0 -90
- package/internal/devenv/compose/labels_test.go +0 -136
- package/internal/devenv/compose/project.go +0 -88
- package/internal/devenv/compose/project_test.go +0 -148
- package/internal/devenv/compose/render.go +0 -54
- package/internal/devenv/compose/render_test.go +0 -90
- package/internal/devenv/compose/services.go +0 -337
- package/internal/devenv/compose/services_test.go +0 -258
- package/internal/devenv/compose/testdata/full.golden.yml +0 -265
- package/internal/devenv/compose/types.go +0 -97
- package/internal/devenv/compose/types_test.go +0 -61
- package/internal/devenv/compose/view.go +0 -205
- package/internal/devenv/compose/view_test.go +0 -120
- package/internal/devenv/configfile.go +0 -300
- package/internal/devenv/configfile_test.go +0 -246
- package/internal/devenv/create.go +0 -130
- package/internal/devenv/create_test.go +0 -98
- package/internal/devenv/debug.go +0 -4
- package/internal/devenv/debug_test.go +0 -103
- package/internal/devenv/devenv.go +0 -434
- package/internal/devenv/devenv_test.go +0 -77
- package/internal/devenv/devexec.go +0 -140
- package/internal/devenv/devexec_test.go +0 -91
- package/internal/devenv/devlog/devlog.go +0 -219
- package/internal/devenv/devlog/devlog_test.go +0 -112
- package/internal/devenv/devterm/devterm.go +0 -65
- package/internal/devenv/devterm/devterm_pty.go +0 -58
- package/internal/devenv/devterm/devterm_stub.go +0 -20
- package/internal/devenv/devterm/devterm_test.go +0 -78
- package/internal/devenv/dockercli/capture.go +0 -84
- package/internal/devenv/dockercli/capture_test.go +0 -33
- package/internal/devenv/dockercli/compose.go +0 -30
- package/internal/devenv/dockercli/compose_test.go +0 -35
- package/internal/devenv/dockercli/runner.go +0 -214
- package/internal/devenv/dockercli/runner_test.go +0 -157
- package/internal/devenv/dockercli/socket.go +0 -56
- package/internal/devenv/dockercli/socket_test.go +0 -52
- package/internal/devenv/e2e_gate_test.go +0 -17
- package/internal/devenv/e2e_test.go +0 -499
- package/internal/devenv/e2esafety/gate_wiring_test.go +0 -90
- package/internal/devenv/e2esafety/safety.go +0 -52
- package/internal/devenv/e2esafety/safety_test.go +0 -71
- package/internal/devenv/eachenv_test.go +0 -132
- package/internal/devenv/editor.go +0 -82
- package/internal/devenv/editor_test.go +0 -60
- package/internal/devenv/envfile.go +0 -287
- package/internal/devenv/envvar.go +0 -165
- package/internal/devenv/envvar_test.go +0 -178
- package/internal/devenv/hostops/context.go +0 -38
- package/internal/devenv/hostops/context_test.go +0 -24
- package/internal/devenv/hostops/e2e_gate_test.go +0 -17
- package/internal/devenv/hostops/e2e_test.go +0 -429
- package/internal/devenv/hostops/elevate.go +0 -248
- package/internal/devenv/hostops/elevate_message_test.go +0 -35
- package/internal/devenv/hostops/elevate_test.go +0 -111
- package/internal/devenv/hostops/hosts.go +0 -255
- package/internal/devenv/hostops/hosts_test.go +0 -178
- package/internal/devenv/hostops/thumbprint_test.go +0 -57
- package/internal/devenv/hostops/trust.go +0 -115
- package/internal/devenv/hostops/trust_test.go +0 -90
- package/internal/devenv/hostrefresh.go +0 -127
- package/internal/devenv/hostrefresh_test.go +0 -123
- package/internal/devenv/importdata.go +0 -491
- package/internal/devenv/importdata_test.go +0 -142
- package/internal/devenv/importdecompress_test.go +0 -90
- package/internal/devenv/importgate_test.go +0 -166
- package/internal/devenv/importvalidate.go +0 -437
- package/internal/devenv/importvalidate_test.go +0 -293
- package/internal/devenv/info_table.go +0 -165
- package/internal/devenv/info_table_test.go +0 -111
- package/internal/devenv/instancedata/instancedata.go +0 -239
- package/internal/devenv/instancedata/instancedata_test.go +0 -281
- package/internal/devenv/instancedata/testdata/legacy_keys.json +0 -16
- package/internal/devenv/instancedata/testdata/unknown_keys.json +0 -19
- package/internal/devenv/lifecycle/adopt.go +0 -24
- package/internal/devenv/lifecycle/adopt_test.go +0 -43
- package/internal/devenv/lifecycle/health.go +0 -28
- package/internal/devenv/lifecycle/health_test.go +0 -34
- package/internal/devenv/lifecycle/hosts.go +0 -42
- package/internal/devenv/lifecycle/hosts_test.go +0 -41
- package/internal/devenv/lifecycle/migrate.go +0 -44
- package/internal/devenv/lifecycle/migrate_test.go +0 -78
- package/internal/devenv/lifecycle/pull.go +0 -19
- package/internal/devenv/lifecycle/pull_test.go +0 -29
- package/internal/devenv/lifecycle/setup.go +0 -35
- package/internal/devenv/lifecycle/setup_test.go +0 -46
- package/internal/devenv/lifecycle/start.go +0 -132
- package/internal/devenv/lifecycle/start_test.go +0 -350
- package/internal/devenv/lifecycle/teardown.go +0 -32
- package/internal/devenv/lifecycle/teardown_test.go +0 -83
- package/internal/devenv/lifecycle/types.go +0 -86
- package/internal/devenv/lifecycle/waiter.go +0 -49
- package/internal/devenv/lifecycle/waiter_test.go +0 -98
- package/internal/devenv/list.go +0 -49
- package/internal/devenv/list_test.go +0 -24
- package/internal/devenv/logs.go +0 -43
- package/internal/devenv/logs_test.go +0 -28
- package/internal/devenv/materialize.go +0 -44
- package/internal/devenv/materialize_test.go +0 -112
- package/internal/devenv/paths/paths.go +0 -42
- package/internal/devenv/paths/paths_test.go +0 -39
- package/internal/devenv/postimport.go +0 -134
- package/internal/devenv/postimport_test.go +0 -389
- package/internal/devenv/proxy/ca.go +0 -110
- package/internal/devenv/proxy/ca_test.go +0 -111
- package/internal/devenv/proxy/network.go +0 -28
- package/internal/devenv/proxy/network_test.go +0 -68
- package/internal/devenv/proxy/ports.go +0 -104
- package/internal/devenv/proxy/ports_test.go +0 -76
- package/internal/devenv/proxy/proxy.go +0 -143
- package/internal/devenv/proxy/proxy_test.go +0 -149
- package/internal/devenv/proxy/scripts/gen-certs.sh +0 -73
- package/internal/devenv/proxy/spec.go +0 -60
- package/internal/devenv/proxy/spec_test.go +0 -44
- package/internal/devenv/proxy/testhelpers_test.go +0 -7
- package/internal/devenv/proxy_policy_test.go +0 -155
- package/internal/devenv/syncplan.go +0 -573
- package/internal/devenv/syncplan_test.go +0 -256
- package/internal/devenv/syncsql.go +0 -247
- package/internal/devenv/syncsql_repair.go +0 -169
- package/internal/devenv/syncsql_repair_test.go +0 -150
- package/internal/devenv/syncsql_test.go +0 -220
- package/internal/devenv/update.go +0 -87
- package/internal/devenv/update_test.go +0 -47
- package/internal/edgeworkers/api.go +0 -173
- package/internal/edgeworkers/api_test.go +0 -256
- package/internal/edgeworkers/build.go +0 -188
- package/internal/edgeworkers/build_test.go +0 -175
- package/internal/edgeworkers/confirmation.go +0 -72
- package/internal/edgeworkers/deployment.go +0 -156
- package/internal/edgeworkers/deployment_test.go +0 -165
- package/internal/edgeworkers/output.go +0 -131
- package/internal/edgeworkers/output_test.go +0 -98
- package/internal/edgeworkers/project.go +0 -264
- package/internal/edgeworkers/project_test.go +0 -167
- package/internal/edgeworkers/scaffold.go +0 -88
- package/internal/edgeworkers/templates/README.md +0 -25
- package/internal/edgeworkers/templates/edge-workers.json +0 -4
- package/internal/edgeworkers/templates/gitignore +0 -2
- package/internal/edgeworkers/templates/package.json +0 -16
- package/internal/edgeworkers/templates/tsconfig.json +0 -6
- package/internal/edgeworkers/templates/worker.ts +0 -19
- package/internal/edgeworkers/types.go +0 -37
- package/internal/edgeworkers/validation.go +0 -177
- package/internal/envalias/envalias.go +0 -50
- package/internal/envalias/envalias_test.go +0 -147
- package/internal/envvar/envvar.go +0 -253
- package/internal/envvar/envvar_test.go +0 -274
- package/internal/envvar/reload_manifest.go +0 -99
- package/internal/envvar/reload_manifest_test.go +0 -44
- package/internal/envvar/value_confirm.go +0 -26
- package/internal/envvar/value_confirm_test.go +0 -22
- package/internal/exit/exit.go +0 -94
- package/internal/exit/exit_test.go +0 -119
- package/internal/gql/SCHEMA.md +0 -21
- package/internal/gql/client.go +0 -54
- package/internal/gql/client_test.go +0 -71
- package/internal/gql/debug_test.go +0 -79
- package/internal/gql/decoder_compat_helpers_test.go +0 -35
- package/internal/gql/decoder_compat_test.go +0 -78
- package/internal/gql/doc.go +0 -13
- package/internal/gql/edgeworkerinput/input.go +0 -58
- package/internal/gql/edgeworkerinput/input_test.go +0 -52
- package/internal/gql/error.go +0 -163
- package/internal/gql/error_test.go +0 -203
- package/internal/gql/generated.go +0 -10425
- package/internal/gql/genqlient.yaml +0 -26
- package/internal/gql/import_sql_marshal_test.go +0 -69
- package/internal/gql/operation.go +0 -67
- package/internal/gql/operation_test.go +0 -60
- package/internal/gql/operations/app_get.graphql +0 -43
- package/internal/gql/operations/app_list.graphql +0 -9
- package/internal/gql/operations/app_resolve.graphql +0 -37
- package/internal/gql/operations/backup_export_deploy.graphql +0 -123
- package/internal/gql/operations/cachepurge.graphql +0 -6
- package/internal/gql/operations/defensive_mode.graphql +0 -13
- package/internal/gql/operations/dev_env_create.graphql +0 -38
- package/internal/gql/operations/dev_env_sync.graphql +0 -15
- package/internal/gql/operations/edge_workers.graphql +0 -53
- package/internal/gql/operations/envvar.graphql +0 -52
- package/internal/gql/operations/fragments.graphql +0 -5
- package/internal/gql/operations/import_media.graphql +0 -61
- package/internal/gql/operations/import_sql.graphql +0 -135
- package/internal/gql/operations/logs.graphql +0 -22
- package/internal/gql/operations/me.graphql +0 -13
- package/internal/gql/operations/phpmyadmin.graphql +0 -21
- package/internal/gql/operations/slowlogs.graphql +0 -25
- package/internal/gql/operations/software.graphql +0 -53
- package/internal/gql/operations/sync.graphql +0 -51
- package/internal/gql/operations/wp.graphql +0 -37
- package/internal/gql/proxy_test.go +0 -62
- package/internal/gql/rechallenge.go +0 -218
- package/internal/gql/rechallenge_test.go +0 -471
- package/internal/gql/retry.go +0 -130
- package/internal/gql/retry_test.go +0 -230
- package/internal/gql/schema.gql +0 -9337
- package/internal/gql/transport.go +0 -65
- package/internal/gql/transport_helper.go +0 -24
- package/internal/httpproxy/callers_test.go +0 -211
- package/internal/httpproxy/debug_test.go +0 -32
- package/internal/httpproxy/httpproxy.go +0 -315
- package/internal/httpproxy/httpproxy_test.go +0 -435
- package/internal/installer/version.go +0 -41
- package/internal/installer/version_test.go +0 -33
- package/internal/keychain/fallback.go +0 -93
- package/internal/keychain/keychain.go +0 -197
- package/internal/keychain/keychain_select_test.go +0 -34
- package/internal/keychain/keychain_test.go +0 -112
- package/internal/logsapi/logsapi.go +0 -165
- package/internal/logsapi/logsapi_test.go +0 -82
- package/internal/mediaimport/mediaimport.go +0 -26
- package/internal/mediaimport/mediaimport_test.go +0 -46
- package/internal/mediaimport/status.go +0 -162
- package/internal/mediaimport/status_test.go +0 -159
- package/internal/mediaimport/tracker.go +0 -116
- package/internal/mediaimport/tracker_test.go +0 -62
- package/internal/nodeflags/nodeflags.go +0 -130
- package/internal/nodeflags/nodeflags_test.go +0 -138
- package/internal/nodeflags/optionalvalue.go +0 -123
- package/internal/nodeflags/optionalvalue_test.go +0 -158
- package/internal/output/csv.go +0 -178
- package/internal/output/fields.go +0 -22
- package/internal/output/fields_test.go +0 -21
- package/internal/output/ids.go +0 -26
- package/internal/output/ids_test.go +0 -32
- package/internal/output/json.go +0 -113
- package/internal/output/keyvalue.go +0 -35
- package/internal/output/keyvalue_block.go +0 -77
- package/internal/output/keyvalue_block_test.go +0 -95
- package/internal/output/keyvalue_test.go +0 -35
- package/internal/output/ordered.go +0 -44
- package/internal/output/ordered_test.go +0 -42
- package/internal/output/output.go +0 -62
- package/internal/output/output_test.go +0 -400
- package/internal/output/table.go +0 -231
- package/internal/output/table_layout.go +0 -472
- package/internal/output/table_layout_test.go +0 -107
- package/internal/output/table_layout_tty_test.go +0 -63
- package/internal/output/text.go +0 -24
- package/internal/output/text_test.go +0 -31
- package/internal/output/typename.go +0 -35
- package/internal/output/typename_test.go +0 -48
- package/internal/parity/backup_export_deploy_scenario_test.go +0 -285
- package/internal/parity/cache_scenario_test.go +0 -173
- package/internal/parity/command_surface_scenario_test.go +0 -530
- package/internal/parity/defensive_mode_scenario_test.go +0 -133
- package/internal/parity/diff.go +0 -128
- package/internal/parity/diff_test.go +0 -155
- package/internal/parity/differential_test.go +0 -166
- package/internal/parity/edge_workers_build_smoke_test.go +0 -69
- package/internal/parity/edge_workers_cases_test.go +0 -77
- package/internal/parity/edge_workers_debug_test.go +0 -87
- package/internal/parity/edge_workers_differential_test.go +0 -483
- package/internal/parity/edge_workers_prompt_test.go +0 -151
- package/internal/parity/env.go +0 -176
- package/internal/parity/env_test.go +0 -211
- package/internal/parity/envvar_mutation_scenario_test.go +0 -188
- package/internal/parity/harness.go +0 -28
- package/internal/parity/harness_test.go +0 -62
- package/internal/parity/import_media_scenario_test.go +0 -207
- package/internal/parity/import_sql_scenario_test.go +0 -198
- package/internal/parity/import_validate_sql_scenario_test.go +0 -68
- package/internal/parity/keychain.go +0 -538
- package/internal/parity/keychain_test.go +0 -201
- package/internal/parity/m5_differential_test.go +0 -185
- package/internal/parity/m5_scenarios_test.go +0 -225
- package/internal/parity/nodebin.go +0 -120
- package/internal/parity/nodebin_test.go +0 -148
- package/internal/parity/parker.go +0 -491
- package/internal/parity/parker_discovery.go +0 -373
- package/internal/parity/parker_discovery_test.go +0 -267
- package/internal/parity/parker_live_test.go +0 -164
- package/internal/parity/parker_test.go +0 -480
- package/internal/parity/pendo_test.go +0 -122
- package/internal/parity/phpmyadmin_scenario_test.go +0 -214
- package/internal/parity/runner.go +0 -56
- package/internal/parity/runner_test.go +0 -67
- package/internal/parity/scenario.go +0 -82
- package/internal/parity/scenario_test.go +0 -52
- package/internal/parity/surface_differential_test.go +0 -494
- package/internal/parity/sync_scenario_test.go +0 -172
- package/internal/parity/vendored_src_test.go +0 -84
- package/internal/parity/whoami_scenario_test.go +0 -69
- package/internal/parity/wp_scenario_test.go +0 -428
- package/internal/phpmyadmin/client.go +0 -221
- package/internal/phpmyadmin/client_test.go +0 -418
- package/internal/poll/poll.go +0 -85
- package/internal/poll/poll_test.go +0 -136
- package/internal/polling/polling.go +0 -97
- package/internal/polling/polling_test.go +0 -59
- package/internal/rechallenge/browser.go +0 -16
- package/internal/rechallenge/client.go +0 -198
- package/internal/rechallenge/client_test.go +0 -169
- package/internal/rechallenge/errors.go +0 -137
- package/internal/rechallenge/errors_test.go +0 -81
- package/internal/rechallenge/flow.go +0 -232
- package/internal/rechallenge/flow_noninteractive_test.go +0 -285
- package/internal/rechallenge/flow_test.go +0 -217
- package/internal/rechallenge/interactive.go +0 -90
- package/internal/rechallenge/interactive_test.go +0 -106
- package/internal/rechallenge/redact.go +0 -36
- package/internal/rechallenge/redact_test.go +0 -142
- package/internal/rechallenge/tokencache.go +0 -148
- package/internal/rechallenge/tokencache_test.go +0 -139
- package/internal/rechallenge/types.go +0 -100
- package/internal/rechallenge/types_test.go +0 -56
- package/internal/redact/redact.go +0 -99
- package/internal/redact/redact_test.go +0 -80
- package/internal/releasepromotion/buildkite.go +0 -233
- package/internal/releasepromotion/buildkite_test.go +0 -284
- package/internal/releasepromotion/contract.go +0 -165
- package/internal/releasepromotion/contract_test.go +0 -211
- package/internal/releasepromotion/github.go +0 -378
- package/internal/releasepromotion/github_test.go +0 -399
- package/internal/releasepromotion/optional_installers_test.go +0 -87
- package/internal/releasepromotion/promoter.go +0 -134
- package/internal/releasepromotion/promoter_test.go +0 -147
- package/internal/releasepromotion/verify.go +0 -239
- package/internal/releasepromotion/verify_test.go +0 -296
- package/internal/searchreplace/debug_test.go +0 -71
- package/internal/searchreplace/dumpdetails.go +0 -104
- package/internal/searchreplace/dumpdetails_test.go +0 -86
- package/internal/searchreplace/searchreplace.go +0 -261
- package/internal/searchreplace/searchreplace_test.go +0 -250
- package/internal/siteimport/debug_test.go +0 -34
- package/internal/siteimport/siteimport.go +0 -18
- package/internal/siteimport/siteimport_test.go +0 -19
- package/internal/siteimport/sitetype.go +0 -74
- package/internal/siteimport/sitetype_test.go +0 -62
- package/internal/siteimport/status.go +0 -282
- package/internal/siteimport/status_test.go +0 -234
- package/internal/slowlogsapi/slowlogsapi.go +0 -176
- package/internal/slowlogsapi/slowlogsapi_test.go +0 -93
- package/internal/softwaresettings/format.go +0 -192
- package/internal/softwaresettings/format_test.go +0 -123
- package/internal/sqlexport/diskspace.go +0 -36
- package/internal/sqlexport/diskspace_unix.go +0 -24
- package/internal/sqlexport/diskspace_windows.go +0 -26
- package/internal/sqlexport/download.go +0 -75
- package/internal/sqlexport/download_test.go +0 -103
- package/internal/sqlexport/export.go +0 -321
- package/internal/sqlexport/export_test.go +0 -313
- package/internal/sqlexport/format.go +0 -44
- package/internal/sqlexport/livecopy.go +0 -150
- package/internal/sqlexport/livecopy_test.go +0 -273
- package/internal/sqlvalidation/devenv_checks_test.go +0 -134
- package/internal/sqlvalidation/filename.go +0 -30
- package/internal/sqlvalidation/line_by_line.go +0 -91
- package/internal/sqlvalidation/line_by_line_test.go +0 -165
- package/internal/sqlvalidation/multisite.go +0 -31
- package/internal/sqlvalidation/multisite_test.go +0 -34
- package/internal/sqlvalidation/sql.go +0 -510
- package/internal/sqlvalidation/sql_test.go +0 -206
- package/internal/sync/sync.go +0 -246
- package/internal/sync/sync_test.go +0 -253
- package/internal/telemetry/config.go +0 -34
- package/internal/telemetry/default.go +0 -67
- package/internal/telemetry/default_endpoint_test.go +0 -111
- package/internal/telemetry/pendo.go +0 -185
- package/internal/telemetry/pendo_auth_test.go +0 -92
- package/internal/telemetry/pendo_test.go +0 -252
- package/internal/telemetry/scrub.go +0 -90
- package/internal/telemetry/scrub_test.go +0 -131
- package/internal/telemetry/tracker.go +0 -102
- package/internal/telemetry/tracker_test.go +0 -76
- package/internal/telemetry/tracks.go +0 -82
- package/internal/telemetry/tracks_test.go +0 -129
- package/internal/telemetry/uuid.go +0 -50
- package/internal/telemetry/uuid_test.go +0 -90
- package/internal/tui/progress.go +0 -153
- package/internal/tui/progress_test.go +0 -89
- package/internal/tui/progress_tracker.go +0 -299
- package/internal/tui/progress_tracker_test.go +0 -155
- package/internal/update/archive.go +0 -134
- package/internal/update/archive_test.go +0 -132
- package/internal/update/download.go +0 -138
- package/internal/update/download_test.go +0 -32
- package/internal/update/github.go +0 -121
- package/internal/update/install.go +0 -265
- package/internal/update/install_test.go +0 -151
- package/internal/update/lock_unix.go +0 -23
- package/internal/update/lock_windows.go +0 -22
- package/internal/update/native_test.go +0 -70
- package/internal/update/notify.go +0 -91
- package/internal/update/ownership.go +0 -117
- package/internal/update/ownership_test.go +0 -102
- package/internal/update/release.go +0 -120
- package/internal/update/release_test.go +0 -168
- package/internal/update/service.go +0 -197
- package/internal/update/service_test.go +0 -118
- package/internal/update/state.go +0 -116
- package/internal/update/state_test.go +0 -132
- package/internal/upload/debug_test.go +0 -76
- package/internal/upload/filemeta.go +0 -112
- package/internal/upload/filemeta_test.go +0 -94
- package/internal/upload/multipart.go +0 -215
- package/internal/upload/multipart_test.go +0 -210
- package/internal/upload/orchestrate.go +0 -81
- package/internal/upload/parts.go +0 -39
- package/internal/upload/parts_test.go +0 -39
- package/internal/upload/presign.go +0 -103
- package/internal/upload/presign_test.go +0 -128
- package/internal/upload/proxy_test.go +0 -55
- package/internal/upload/putobject.go +0 -92
- package/internal/upload/putobject_test.go +0 -79
- package/internal/upload/retry.go +0 -45
- package/internal/upload/upload.go +0 -22
- package/internal/upload/xmlerror.go +0 -28
- package/internal/validatefiles/files.go +0 -105
- package/internal/validatefiles/files_test.go +0 -143
- package/internal/validatefiles/report.go +0 -172
- package/internal/validatefiles/validatefiles.go +0 -271
- package/internal/validatefiles/validatefiles_test.go +0 -127
- package/internal/version/stamp.go +0 -15
- package/internal/version/stamp_test.go +0 -25
- package/internal/version/version.go +0 -14
- package/internal/version/version_test.go +0 -25
- package/internal/wpshell/parser.go +0 -68
- package/internal/wpshell/parser_test.go +0 -58
- package/internal/wpshell/repl.go +0 -81
- package/internal/wpshell/repl_test.go +0 -71
- package/internal/wpshell/requote.go +0 -13
- package/internal/wpshell/requote_test.go +0 -15
- package/internal/wpssh/debug_test.go +0 -67
- package/internal/wpssh/wpssh.go +0 -124
- package/internal/wpssh/wpssh_test.go +0 -203
- package/internal/wpstream/debug_test.go +0 -116
- package/internal/wpstream/e2e_test.go +0 -178
- package/internal/wpstream/engineio.go +0 -291
- package/internal/wpstream/engineio_test.go +0 -82
- package/internal/wpstream/iostream.go +0 -391
- package/internal/wpstream/iostream_test.go +0 -138
- package/internal/wpstream/run.go +0 -364
- package/internal/wpstream/run_test.go +0 -184
- package/internal/wpstream/socketio.go +0 -435
- package/internal/wpstream/socketio_test.go +0 -402
- package/internal/wpstream/testdata/fixture-server.js +0 -54
- package/make.ps1 +0 -155
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs +0 -3
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs.map +0 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.d.cts +0 -10
- package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.d.ts +0 -10
- package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js +0 -2
- package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js.map +0 -1
- package/node_modules/argparse/LICENSE +0 -254
- package/node_modules/argparse/README.md +0 -84
- package/node_modules/argparse/package.json +0 -31
- package/node_modules/lando/node_modules/cliui/build/index.cjs +0 -302
- package/node_modules/lando/node_modules/cliui/build/lib/string-utils.js +0 -27
- package/node_modules/lando/node_modules/js-yaml/README.md +0 -233
- package/node_modules/lando/node_modules/js-yaml/bin/js-yaml.js +0 -117
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js +0 -3022
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js.map +0 -1
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js.map +0 -1
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs +0 -3082
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs.map +0 -1
- package/node_modules/lando/node_modules/js-yaml/index.js +0 -44
- package/node_modules/lando/node_modules/js-yaml/lib/common.js +0 -50
- package/node_modules/lando/node_modules/js-yaml/lib/dumper.js +0 -937
- package/node_modules/lando/node_modules/js-yaml/lib/exception.js +0 -51
- package/node_modules/lando/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs +0 -37
- package/node_modules/lando/node_modules/js-yaml/lib/loader.js +0 -1803
- package/node_modules/lando/node_modules/js-yaml/lib/schema/core.js +0 -9
- package/node_modules/lando/node_modules/js-yaml/lib/schema/default.js +0 -20
- package/node_modules/lando/node_modules/js-yaml/lib/schema/failsafe.js +0 -14
- package/node_modules/lando/node_modules/js-yaml/lib/schema/json.js +0 -17
- package/node_modules/lando/node_modules/js-yaml/lib/schema.js +0 -109
- package/node_modules/lando/node_modules/js-yaml/lib/snippet.js +0 -96
- package/node_modules/lando/node_modules/js-yaml/lib/type/binary.js +0 -122
- package/node_modules/lando/node_modules/js-yaml/lib/type/bool.js +0 -35
- package/node_modules/lando/node_modules/js-yaml/lib/type/float.js +0 -99
- package/node_modules/lando/node_modules/js-yaml/lib/type/int.js +0 -142
- package/node_modules/lando/node_modules/js-yaml/lib/type/map.js +0 -8
- package/node_modules/lando/node_modules/js-yaml/lib/type/merge.js +0 -12
- package/node_modules/lando/node_modules/js-yaml/lib/type/null.js +0 -35
- package/node_modules/lando/node_modules/js-yaml/lib/type/omap.js +0 -45
- package/node_modules/lando/node_modules/js-yaml/lib/type/pairs.js +0 -50
- package/node_modules/lando/node_modules/js-yaml/lib/type/seq.js +0 -8
- package/node_modules/lando/node_modules/js-yaml/lib/type/set.js +0 -29
- package/node_modules/lando/node_modules/js-yaml/lib/type/str.js +0 -8
- package/node_modules/lando/node_modules/js-yaml/lib/type/timestamp.js +0 -88
- package/node_modules/lando/node_modules/js-yaml/lib/type.js +0 -66
- package/node_modules/lando/node_modules/js-yaml/package.json +0 -83
- package/node_modules/lando/node_modules/wrap-ansi/index.js +0 -216
- package/node_modules/lando/node_modules/wrap-ansi/package.json +0 -62
- package/node_modules/lando/node_modules/wrap-ansi/readme.md +0 -91
- package/node_modules/lando/node_modules/yargs/build/index.cjs +0 -2920
- package/node_modules/lando/node_modules/yargs/helpers/index.js +0 -14
- package/node_modules/lando/node_modules/yargs/index.cjs +0 -39
- package/node_modules/lando/node_modules/yargs/yargs +0 -9
- package/node_modules/lando/node_modules/yargs-parser/build/index.cjs +0 -1042
- package/node_modules/lando/plugins/lando-test/index.js +0 -3
- package/node_modules/lando/plugins/lando-test/plugin.yml +0 -2
- package/packaging/macos/build-pkg.sh +0 -53
- package/packaging/macos/preinstall +0 -33
- package/packaging/macos/test-install.sh +0 -51
- package/packaging/macos/test_package.py +0 -74
- package/packaging/macos/uninstall.sh +0 -24
- package/packaging/macos/verify-pkg.py +0 -61
- package/packaging/windows/build-msi.ps1 +0 -153
- package/packaging/windows/test-msi.ps1 +0 -225
- package/packaging/windows/verify-msi.ps1 +0 -74
- package/packaging/windows/vip-next.wxs +0 -79
- package/scripts/catalog_script_test.go +0 -123
- package/scripts/vip-next-command-catalog.sh +0 -506
- package/test-utils/undici-mock.js +0 -25
- package/testdata/installer-fixture/main.go +0 -40
- package/testdata/parity/app-deploy-completed.yaml +0 -14
- package/testdata/parity/app-deploy-missing-token.yaml +0 -21
- package/testdata/parity/app-deploy-validate-clean.yaml +0 -11
- package/testdata/parity/app-deploy-validate-missing-themes.yaml +0 -21
- package/testdata/parity/app-get-baseline.yaml +0 -14
- package/testdata/parity/app-get-custom-deploy.yaml +0 -14
- package/testdata/parity/app-get-json.yaml +0 -14
- package/testdata/parity/app-get-not-found.yaml +0 -13
- package/testdata/parity/app-list-baseline.yaml +0 -14
- package/testdata/parity/app-list-csv.yaml +0 -13
- package/testdata/parity/app-list-empty.yaml +0 -13
- package/testdata/parity/app-list-ids.yaml +0 -26
- package/testdata/parity/app-list-json.yaml +0 -13
- package/testdata/parity/app-list-unknown-format.yaml +0 -29
- package/testdata/parity/backup-db-already-in-progress.yaml +0 -15
- package/testdata/parity/backup-db-completed.yaml +0 -14
- package/testdata/parity/backup-db-help.yaml +0 -10
- package/testdata/parity/cache-purge-url-empty.yaml +0 -26
- package/testdata/parity/cache-purge-url-from-file.yaml +0 -21
- package/testdata/parity/cache-purge-url-multi.yaml +0 -19
- package/testdata/parity/cache-purge-url-single.yaml +0 -18
- package/testdata/parity/defensive-mode-enable-with-rechallenge.yaml +0 -20
- package/testdata/parity/edge-workers-artifact-symlink.yaml +0 -8
- package/testdata/parity/edge-workers-bare-location.yaml +0 -8
- package/testdata/parity/edge-workers-bare-path.yaml +0 -8
- package/testdata/parity/edge-workers-bare-type.yaml +0 -8
- package/testdata/parity/edge-workers-build-all.yaml +0 -8
- package/testdata/parity/edge-workers-build-compiler-error.yaml +0 -8
- package/testdata/parity/edge-workers-build-empty.yaml +0 -8
- package/testdata/parity/edge-workers-build-missing-compiler.yaml +0 -8
- package/testdata/parity/edge-workers-build-name-all.yaml +0 -8
- package/testdata/parity/edge-workers-build-one.yaml +0 -8
- package/testdata/parity/edge-workers-delete-force.yaml +0 -8
- package/testdata/parity/edge-workers-delete-rejected.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-active-update-enable.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-active-update.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-all-preparation-failure.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-create-enable.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-create.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-enable-failure.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-inactive-update-enable.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-inactive-update.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-location-clear.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-location-preserve.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-location-replace.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-name-all.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-production-refused.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-production-skip.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-skip-source-create.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-skip-source.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-skip-validate.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-source-empty.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-upload-failure.yaml +0 -8
- package/testdata/parity/edge-workers-disable.yaml +0 -8
- package/testdata/parity/edge-workers-double-dash.yaml +0 -8
- package/testdata/parity/edge-workers-duplicate-names.yaml +0 -8
- package/testdata/parity/edge-workers-enable-production-refused.yaml +0 -8
- package/testdata/parity/edge-workers-enable.yaml +0 -8
- package/testdata/parity/edge-workers-entry-escape.yaml +0 -8
- package/testdata/parity/edge-workers-get-empty-source.yaml +0 -8
- package/testdata/parity/edge-workers-get-missing.yaml +0 -8
- package/testdata/parity/edge-workers-get-no-source.yaml +0 -8
- package/testdata/parity/edge-workers-get-source.yaml +0 -8
- package/testdata/parity/edge-workers-get.yaml +0 -8
- package/testdata/parity/edge-workers-init-invalid-type.yaml +0 -8
- package/testdata/parity/edge-workers-init-nonempty.yaml +0 -8
- package/testdata/parity/edge-workers-init.yaml +0 -8
- package/testdata/parity/edge-workers-json-control-name.yaml +0 -8
- package/testdata/parity/edge-workers-list-csv.yaml +0 -8
- package/testdata/parity/edge-workers-list-empty-json.yaml +0 -8
- package/testdata/parity/edge-workers-list-empty.yaml +0 -8
- package/testdata/parity/edge-workers-list-json.yaml +0 -8
- package/testdata/parity/edge-workers-list-table.yaml +0 -8
- package/testdata/parity/edge-workers-mutation-graphql-error.yaml +0 -8
- package/testdata/parity/edge-workers-mutation-null.yaml +0 -8
- package/testdata/parity/edge-workers-new-invalid-location.yaml +0 -8
- package/testdata/parity/edge-workers-new-invalid-name.yaml +0 -8
- package/testdata/parity/edge-workers-new-location.yaml +0 -8
- package/testdata/parity/edge-workers-new.yaml +0 -8
- package/testdata/parity/edge-workers-read-null.yaml +0 -8
- package/testdata/parity/edge-workers-repeated-path.yaml +0 -8
- package/testdata/parity/edge-workers-repeated-type.yaml +0 -8
- package/testdata/parity/edge-workers-short-equals.yaml +0 -8
- package/testdata/parity/edge-workers-table-control-name.yaml +0 -8
- package/testdata/parity/edge-workers-unicode-order.yaml +0 -8
- package/testdata/parity/edge-workers-validate-all.yaml +0 -8
- package/testdata/parity/edge-workers-validate-invalid.yaml +0 -8
- package/testdata/parity/edge-workers-validate-name-all.yaml +0 -8
- package/testdata/parity/edge-workers-validate-no-artifact.yaml +0 -8
- package/testdata/parity/edge-workers-validate-no-name.yaml +0 -8
- package/testdata/parity/edge-workers-validate-null.yaml +0 -8
- package/testdata/parity/edge-workers-validate.yaml +0 -8
- package/testdata/parity/envvar-delete-baseline.yaml +0 -19
- package/testdata/parity/envvar-delete-prod-cancel.yaml +0 -41
- package/testdata/parity/envvar-delete-typed-mismatch.yaml +0 -44
- package/testdata/parity/envvar-get-baseline.yaml +0 -14
- package/testdata/parity/envvar-get-lowercase-input.yaml +0 -14
- package/testdata/parity/envvar-get-named-help.yaml +0 -24
- package/testdata/parity/envvar-get-not-found.yaml +0 -17
- package/testdata/parity/envvar-getall-baseline.yaml +0 -14
- package/testdata/parity/envvar-getall-empty.yaml +0 -15
- package/testdata/parity/envvar-getall-keyvalue.yaml +0 -22
- package/testdata/parity/envvar-list-baseline.yaml +0 -15
- package/testdata/parity/envvar-list-empty.yaml +0 -15
- package/testdata/parity/envvar-list-ids.yaml +0 -14
- package/testdata/parity/envvar-list-json.yaml +0 -14
- package/testdata/parity/envvar-list-keyvalue.yaml +0 -22
- package/testdata/parity/envvar-set-baseline.yaml +0 -21
- package/testdata/parity/envvar-set-invalid-name.yaml +0 -20
- package/testdata/parity/envvar-set-newrelic-blocked.yaml +0 -21
- package/testdata/parity/envvar-set-prod-cancel.yaml +0 -42
- package/testdata/parity/envvar-set-prod-confirm-skipped.yaml +0 -20
- package/testdata/parity/export-sql-completed.yaml +0 -14
- package/testdata/parity/export-sql-config-conflict.yaml +0 -21
- package/testdata/parity/export-sql-help.yaml +0 -11
- package/testdata/parity/import-media-abort-noninteractive.yaml +0 -19
- package/testdata/parity/import-media-help.yaml +0 -12
- package/testdata/parity/import-media-invalid-archive.yaml +0 -18
- package/testdata/parity/import-media-status-completed.yaml +0 -19
- package/testdata/parity/import-media-status-failed.yaml +0 -18
- package/testdata/parity/import-media-url-completed.yaml +0 -18
- package/testdata/parity/import-sql-bad-extension.yaml +0 -26
- package/testdata/parity/import-sql-help.yaml +0 -12
- package/testdata/parity/import-sql-in-progress.yaml +0 -26
- package/testdata/parity/import-sql-invalid-md5.yaml +0 -27
- package/testdata/parity/import-sql-noninteractive-abort.yaml +0 -20
- package/testdata/parity/import-sql-status-completed.yaml +0 -17
- package/testdata/parity/import-sql-status-no-job.yaml +0 -17
- package/testdata/parity/import-sql-validation-failure.yaml +0 -18
- package/testdata/parity/import-validate-files-clean.yaml +0 -18
- package/testdata/parity/import-validate-files-not-dir.yaml +0 -16
- package/testdata/parity/import-validate-sql-clean.yaml +0 -23
- package/testdata/parity/import-validate-sql-dangerous-stmt.yaml +0 -27
- package/testdata/parity/import-validate-sql-multisite-warn.yaml +0 -23
- package/testdata/parity/logs-baseline.yaml +0 -24
- package/testdata/parity/logs-batch.yaml +0 -24
- package/testdata/parity/logs-empty.yaml +0 -15
- package/testdata/parity/logs-format-json.yaml +0 -15
- package/testdata/parity/logs-limit-100.yaml +0 -24
- package/testdata/parity/phpmyadmin-error.yaml +0 -24
- package/testdata/parity/phpmyadmin-print.yaml +0 -22
- package/testdata/parity/phpmyadmin-silent.yaml +0 -16
- package/testdata/parity/recordings/app-get-baseline/app.json +0 -11
- package/testdata/parity/recordings/app-get-custom-deploy/app.json +0 -8
- package/testdata/parity/recordings/app-get-json/app.json +0 -11
- package/testdata/parity/recordings/app-get-not-found/app.json +0 -1
- package/testdata/parity/recordings/app-list-baseline/apps.json +0 -1
- package/testdata/parity/recordings/app-list-csv/apps.json +0 -1
- package/testdata/parity/recordings/app-list-empty/apps.json +0 -1
- package/testdata/parity/recordings/app-list-json/apps.json +0 -1
- package/testdata/parity/recordings/backup-db-already-in-progress/backup-status-1.json +0 -1
- package/testdata/parity/recordings/backup-db-already-in-progress/backup-status-2.json +0 -1
- package/testdata/parity/recordings/backup-db-completed/backup-status-1.json +0 -1
- package/testdata/parity/recordings/backup-db-completed/backup-status-2.json +0 -1
- package/testdata/parity/recordings/backup-db-completed/backup-status-3.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-from-file/purge.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-from-file/resolve-app.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-from-file/urls.txt +0 -2
- package/testdata/parity/recordings/cache-purge-url-multi/purge.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-multi/resolve-app.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-single/purge.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-single/resolve-app.json +0 -1
- package/testdata/parity/recordings/config-software-get/resolve-app.json +0 -1
- package/testdata/parity/recordings/config-software-update/resolve-app.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/mutation-elevated.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/mutation-success.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-create-session.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-exchange.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-status-verified.json +0 -1
- package/testdata/parity/recordings/envvar-delete-baseline/delete.json +0 -1
- package/testdata/parity/recordings/envvar-delete-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-delete-prod-cancel/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-delete-typed-mismatch/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-get-baseline/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-get-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-get-lowercase-input/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-get-lowercase-input/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-get-named-help/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-get-named-help/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-get-not-found/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-get-not-found/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-getall-baseline/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-getall-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-getall-empty/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-getall-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-getall-keyvalue/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-getall-keyvalue/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-baseline/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-empty/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-ids/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-ids/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-json/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-json/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-keyvalue/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-keyvalue/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-baseline/add.json +0 -1
- package/testdata/parity/recordings/envvar-set-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-baseline/value.txt +0 -1
- package/testdata/parity/recordings/envvar-set-invalid-name/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-invalid-name/value.txt +0 -1
- package/testdata/parity/recordings/envvar-set-newrelic-blocked/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-newrelic-blocked/value.txt +0 -1
- package/testdata/parity/recordings/envvar-set-prod-cancel/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-prod-cancel/value.txt +0 -1
- package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/add.json +0 -1
- package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/value.txt +0 -1
- package/testdata/parity/recordings/export-sql-completed/export-status-1.json +0 -1
- package/testdata/parity/recordings/export-sql-completed/export-status-2.json +0 -1
- package/testdata/parity/recordings/import-media-invalid-archive/file.sql +0 -1
- package/testdata/parity/recordings/import-media-shared/abort-media-import.json +0 -1
- package/testdata/parity/recordings/import-media-shared/env-info.json +0 -1
- package/testdata/parity/recordings/import-media-shared/resolve-app.json +0 -1
- package/testdata/parity/recordings/import-media-shared/start-media-import.json +0 -1
- package/testdata/parity/recordings/import-media-status-completed/progress.json +0 -1
- package/testdata/parity/recordings/import-media-status-failed/progress.json +0 -1
- package/testdata/parity/recordings/import-media-url-completed/progress.json +0 -1
- package/testdata/parity/recordings/import-sql-bad-extension/file.txt +0 -1
- package/testdata/parity/recordings/import-sql-in-progress/env-info.json +0 -1
- package/testdata/parity/recordings/import-sql-in-progress/resolve-app.json +0 -1
- package/testdata/parity/recordings/import-sql-noninteractive-abort/clean.sql +0 -5
- package/testdata/parity/recordings/import-sql-shared/env-info.json +0 -1
- package/testdata/parity/recordings/import-sql-shared/multisite.json +0 -1
- package/testdata/parity/recordings/import-sql-shared/resolve-app.json +0 -1
- package/testdata/parity/recordings/import-sql-status-completed/progress.json +0 -1
- package/testdata/parity/recordings/import-sql-status-no-job/progress.json +0 -1
- package/testdata/parity/recordings/import-sql-validation-failure/dirty.sql +0 -6
- package/testdata/parity/recordings/import-validate-files-clean/config.json +0 -1
- package/testdata/parity/recordings/import-validate-files-clean/uploads/2020/06/a.jpg +0 -1
- package/testdata/parity/recordings/import-validate-files-clean/uploads/2020/06/b.png +0 -1
- package/testdata/parity/recordings/import-validate-sql-clean/clean.sql +0 -17
- package/testdata/parity/recordings/import-validate-sql-dangerous-stmt/dangerous.sql +0 -11
- package/testdata/parity/recordings/import-validate-sql-multisite-warn/multisite.sql +0 -12
- package/testdata/parity/recordings/logs-baseline/logs.json +0 -1
- package/testdata/parity/recordings/logs-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/logs-batch/logs.json +0 -1
- package/testdata/parity/recordings/logs-batch/resolve-app.json +0 -1
- package/testdata/parity/recordings/logs-empty/logs.json +0 -1
- package/testdata/parity/recordings/logs-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/logs-format-json/logs.json +0 -1
- package/testdata/parity/recordings/logs-format-json/resolve-app.json +0 -1
- package/testdata/parity/recordings/logs-limit-100/logs.json +0 -1
- package/testdata/parity/recordings/logs-limit-100/resolve-app.json +0 -1
- package/testdata/parity/recordings/m7c-shared/resolve-app.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-error/enable.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-error/resolve-app.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-print/enable.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-print/generate.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-print/resolve-app.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-print/status.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-silent/enable.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-silent/generate.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-silent/resolve-app.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-silent/status.json +0 -1
- package/testdata/parity/recordings/slowlogs-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/slowlogs-baseline/slowlogs.json +0 -1
- package/testdata/parity/recordings/slowlogs-csv/resolve-app.json +0 -1
- package/testdata/parity/recordings/slowlogs-csv/slowlogs.json +0 -1
- package/testdata/parity/recordings/slowlogs-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/slowlogs-empty/slowlogs.json +0 -1
- package/testdata/parity/recordings/slowlogs-limit-50/resolve-app.json +0 -1
- package/testdata/parity/recordings/slowlogs-limit-50/slowlogs.json +0 -1
- package/testdata/parity/recordings/sync-already-syncing/resolve-app.json +0 -1
- package/testdata/parity/recordings/sync-already-syncing/sync-start.json +0 -1
- package/testdata/parity/recordings/sync-already-syncing/sync-status-1.json +0 -1
- package/testdata/parity/recordings/sync-already-syncing/sync-status-2.json +0 -1
- package/testdata/parity/recordings/sync-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/sync-baseline/sync-start.json +0 -1
- package/testdata/parity/recordings/sync-baseline/sync-status-1.json +0 -1
- package/testdata/parity/recordings/sync-baseline/sync-status-2.json +0 -1
- package/testdata/parity/recordings/whoami-baseline/me-response.json +0 -1
- package/testdata/parity/recordings/wp-nodejs-rejected/resolve-app.json +0 -1
- package/testdata/parity/recordings/wp-production-confirm-decline/resolve-app.json +0 -1
- package/testdata/parity/recordings/wp-ssh-happy/resolve-app.json +0 -1
- package/testdata/parity/recordings/wp-websocket-redirect/resolve-app.json +0 -1
- package/testdata/parity/slowlogs-baseline.yaml +0 -18
- package/testdata/parity/slowlogs-csv.yaml +0 -16
- package/testdata/parity/slowlogs-empty.yaml +0 -17
- package/testdata/parity/slowlogs-limit-50.yaml +0 -16
- package/testdata/parity/sync-already-syncing.yaml +0 -20
- package/testdata/parity/sync-baseline.yaml +0 -19
- package/testdata/parity/version-smoke.yaml +0 -14
- package/testdata/parity/whoami-baseline.yaml +0 -14
- package/testdata/parity/wp-help.yaml +0 -12
- package/testdata/parity/wp-nodejs-rejected.yaml +0 -13
- package/testdata/parity/wp-production-confirm-decline.yaml +0 -14
- package/testdata/parity/wp-ssh-happy.yaml +0 -15
- package/testdata/parity/wp-websocket-redirect.yaml +0 -14
- package/testdata/parity-local/app-get-csv.yaml +0 -8
- package/testdata/parity-local/app-get-json.yaml +0 -8
- package/testdata/parity-local/app-get-table.yaml +0 -8
- package/testdata/parity-local/app-list-csv.yaml +0 -8
- package/testdata/parity-local/app-list-json.yaml +0 -8
- package/testdata/parity-local/app-list-table.yaml +0 -8
- package/testdata/parity-local/edge-workers/basic/edge-workers.json +0 -1
- package/testdata/parity-local/edge-workers/basic/workers/headers/assembly/index.ts +0 -1
- package/testdata/parity-local/edge-workers/basic/workers/headers/worker.json +0 -1
- package/testdata/parity-local/edge-workers/two-workers/edge-workers.json +0 -1
- package/testdata/parity-local/edge-workers/two-workers/workers/a/assembly/index.ts +0 -1
- package/testdata/parity-local/edge-workers/two-workers/workers/a/worker.json +0 -1
- package/testdata/parity-local/edge-workers/two-workers/workers/b/assembly/index.ts +0 -1
- package/testdata/parity-local/edge-workers/two-workers/workers/b/worker.json +0 -1
- package/testdata/parity-local/envvar-list-csv.yaml +0 -8
- package/testdata/parity-local/envvar-list-ids.yaml +0 -8
- package/testdata/parity-local/envvar-list-json.yaml +0 -8
- package/testdata/parity-local/envvar-list-keyvalue.yaml +0 -8
- package/testdata/parity-local/envvar-list-table.yaml +0 -8
- package/testdata/parity-local/software-get-csv.yaml +0 -8
- package/testdata/parity-local/software-get-json.yaml +0 -8
- package/testdata/parity-local/software-get-table.yaml +0 -8
- package/testdata/parity-local/whoami.yaml +0 -8
- package/testdata/update-fixture/main.go +0 -62
- package/third_party/go-search-replace/MANIFEST +0 -33
- package/tsconfig.json +0 -25
- /package/node_modules/lando/node_modules/{wrap-ansi → ansi-regex}/license +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Axios v1.
|
|
1
|
+
/*! Axios v1.20.0 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -27,12 +27,65 @@ const hasOwnProperty = (
|
|
|
27
27
|
hasOwnProperty.call(obj, prop)
|
|
28
28
|
)(Object.prototype);
|
|
29
29
|
|
|
30
|
+
const isUnsafeObjectKey = (prop) =>
|
|
31
|
+
typeof prop === 'string' &&
|
|
32
|
+
(prop === '__proto__' || prop === 'constructor' || prop === 'prototype');
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Determine whether an inherited object must be treated as a shared-prototype
|
|
36
|
+
* boundary. Cross-realm Object.prototype objects cannot be distinguished
|
|
37
|
+
* reliably from application-created null-prototype objects because their
|
|
38
|
+
* properties are mutable, so all inherited terminal prototypes are excluded
|
|
39
|
+
* as a fail-closed boundary. A null-prototype source still keeps its own
|
|
40
|
+
* properties, as produced by mergeConfig and other safe materialization paths.
|
|
41
|
+
*
|
|
42
|
+
* @param {*} obj The object to inspect
|
|
43
|
+
* @param {*} prototype The object's prototype
|
|
44
|
+
* @param {boolean} source Whether obj is the original traversal source
|
|
45
|
+
*
|
|
46
|
+
* @returns {boolean} True when obj is a safe prototype traversal boundary
|
|
47
|
+
*/
|
|
48
|
+
const isPrototypeBoundary = (obj, prototype, source) =>
|
|
49
|
+
obj === Object.prototype || (!source && prototype === null);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Determine whether an object can retain its identity through code paths that
|
|
53
|
+
* add, replace, and remove config properties without bypassing unsafe-key
|
|
54
|
+
* filtering. Immutable objects, unsafe-key-bearing objects, and objects with
|
|
55
|
+
* accessor or restricted data properties must be materialized instead.
|
|
56
|
+
*
|
|
57
|
+
* @param {*} obj The object to inspect
|
|
58
|
+
*
|
|
59
|
+
* @returns {boolean} True when every own property is safe and fully mutable
|
|
60
|
+
*/
|
|
61
|
+
const isSafeAndFullyMutable = (obj) => {
|
|
62
|
+
if (!Object.isExtensible(obj)) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const props = Object.getOwnPropertyNames(obj);
|
|
67
|
+
|
|
68
|
+
if (Object.getOwnPropertySymbols) {
|
|
69
|
+
props.push(...Object.getOwnPropertySymbols(obj));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return props.every((prop) => {
|
|
73
|
+
if (isUnsafeObjectKey(prop)) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
78
|
+
|
|
79
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
|
|
30
83
|
/**
|
|
31
|
-
* Walk the prototype chain (excluding the
|
|
32
|
-
* an own `prop`. This distinguishes genuine own/inherited members
|
|
33
|
-
* class accessors and template prototypes — from members injected
|
|
34
|
-
* Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
|
|
35
|
-
* live on Object.prototype itself and are therefore never matched.
|
|
84
|
+
* Walk the prototype chain (excluding the source realm's Object.prototype)
|
|
85
|
+
* looking for an own `prop`. This distinguishes genuine own/inherited members
|
|
86
|
+
* — including class accessors and template prototypes — from members injected
|
|
87
|
+
* via Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
|
|
88
|
+
* which live on Object.prototype itself and are therefore never matched.
|
|
36
89
|
*
|
|
37
90
|
* @param {*} thing The value whose chain to inspect
|
|
38
91
|
* @param {string|symbol} prop The property key to look for
|
|
@@ -43,16 +96,22 @@ const hasOwnInPrototypeChain = (thing, prop) => {
|
|
|
43
96
|
let obj = thing;
|
|
44
97
|
const seen = [];
|
|
45
98
|
|
|
46
|
-
while (obj != null
|
|
99
|
+
while (obj != null) {
|
|
47
100
|
if (seen.indexOf(obj) !== -1) {
|
|
48
101
|
return false;
|
|
49
102
|
}
|
|
50
103
|
seen.push(obj);
|
|
51
104
|
|
|
105
|
+
const prototype = getPrototypeOf(obj);
|
|
106
|
+
|
|
107
|
+
if (isPrototypeBoundary(obj, prototype, obj === thing)) {
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
|
|
52
111
|
if (hasOwnProperty(obj, prop)) {
|
|
53
112
|
return true;
|
|
54
113
|
}
|
|
55
|
-
obj =
|
|
114
|
+
obj = prototype;
|
|
56
115
|
}
|
|
57
116
|
return false;
|
|
58
117
|
};
|
|
@@ -71,6 +130,69 @@ const hasOwnInPrototypeChain = (thing, prop) => {
|
|
|
71
130
|
const getSafeProp = (obj, prop) =>
|
|
72
131
|
obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;
|
|
73
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Flatten an object and its application-defined prototype chain into a
|
|
135
|
+
* null-prototype object. Members inherited only from the source realm's
|
|
136
|
+
* Object.prototype are deliberately excluded, while class/template members
|
|
137
|
+
* below that boundary are preserved.
|
|
138
|
+
*
|
|
139
|
+
* @param {*} thing The value to flatten
|
|
140
|
+
*
|
|
141
|
+
* @returns {*} A null-prototype copy, or the original value when it is already
|
|
142
|
+
* structurally safe or is not an object
|
|
143
|
+
*/
|
|
144
|
+
const toSafeFlatObject = (thing) => {
|
|
145
|
+
if (thing == null || (typeof thing !== 'object' && typeof thing !== 'function')) {
|
|
146
|
+
return thing;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const sourcePrototype = getPrototypeOf(thing);
|
|
150
|
+
|
|
151
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
|
|
152
|
+
return thing;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const result = Object.create(null);
|
|
156
|
+
const merged = Object.create(null);
|
|
157
|
+
const seen = [];
|
|
158
|
+
let current = thing;
|
|
159
|
+
|
|
160
|
+
while (current != null) {
|
|
161
|
+
if (seen.indexOf(current) !== -1) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
seen.push(current);
|
|
166
|
+
|
|
167
|
+
const prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
168
|
+
|
|
169
|
+
if (isPrototypeBoundary(current, prototype, current === thing)) {
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const props = Object.getOwnPropertyNames(current);
|
|
174
|
+
|
|
175
|
+
if (Object.getOwnPropertySymbols) {
|
|
176
|
+
props.push(...Object.getOwnPropertySymbols(current));
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
for (const prop of props) {
|
|
180
|
+
if (isUnsafeObjectKey(prop)) {
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (!hasOwnProperty(merged, prop)) {
|
|
185
|
+
result[prop] = thing[prop];
|
|
186
|
+
merged[prop] = true;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
current = prototype;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
return result;
|
|
194
|
+
};
|
|
195
|
+
|
|
74
196
|
const kindOf = ((cache) => (thing) => {
|
|
75
197
|
const str = toString.call(thing);
|
|
76
198
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -202,12 +324,10 @@ const isPlainObject = (val) => {
|
|
|
202
324
|
|
|
203
325
|
const prototype = getPrototypeOf(val);
|
|
204
326
|
return (
|
|
205
|
-
(prototype === null ||
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
//
|
|
209
|
-
// Symbol.iterator as evidence the value is a tagged/iterable type rather
|
|
210
|
-
// than a plain object, while ignoring keys injected onto Object.prototype.
|
|
327
|
+
(prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) &&
|
|
328
|
+
// Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
|
|
329
|
+
// evidence the value is tagged/iterable, while ignoring members reachable
|
|
330
|
+
// only through shared or terminal prototype boundaries.
|
|
211
331
|
!hasOwnInPrototypeChain(val, toStringTag) &&
|
|
212
332
|
!hasOwnInPrototypeChain(val, iterator)
|
|
213
333
|
);
|
|
@@ -294,6 +414,7 @@ const isBlob = kindOfTest('Blob');
|
|
|
294
414
|
* @returns {boolean} True if value is a FileList, otherwise false
|
|
295
415
|
*/
|
|
296
416
|
const isFileList = kindOfTest('FileList');
|
|
417
|
+
const isSet = kindOfTest('Set');
|
|
297
418
|
|
|
298
419
|
/**
|
|
299
420
|
* Determine if a value is a Stream
|
|
@@ -859,12 +980,23 @@ const toJSONObject = (obj) => {
|
|
|
859
980
|
if (!('toJSON' in source)) {
|
|
860
981
|
// add-on descent / delete-on-ascent: preserves path semantics, so DAG nodes serialise at every occurrence (see #7230).
|
|
861
982
|
visited.add(source);
|
|
862
|
-
const target = isArray(source) ? [] : {};
|
|
863
983
|
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
984
|
+
let target;
|
|
985
|
+
|
|
986
|
+
if (isSet(source)) {
|
|
987
|
+
target = [];
|
|
988
|
+
for (const value of source) {
|
|
989
|
+
const reducedValue = visit(value);
|
|
990
|
+
!isUndefined(reducedValue) && target.push(reducedValue);
|
|
991
|
+
}
|
|
992
|
+
} else {
|
|
993
|
+
target = isArray(source) ? [] : {};
|
|
994
|
+
|
|
995
|
+
forEach(source, (value, key) => {
|
|
996
|
+
const reducedValue = visit(value);
|
|
997
|
+
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
998
|
+
});
|
|
999
|
+
}
|
|
868
1000
|
|
|
869
1001
|
visited.delete(source);
|
|
870
1002
|
|
|
@@ -1009,6 +1141,7 @@ var utils$1 = {
|
|
|
1009
1141
|
hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
|
|
1010
1142
|
hasOwnInPrototypeChain,
|
|
1011
1143
|
getSafeProp,
|
|
1144
|
+
toSafeFlatObject,
|
|
1012
1145
|
reduceDescriptors,
|
|
1013
1146
|
freezeMethods,
|
|
1014
1147
|
toObjectSet,
|
|
@@ -1076,18 +1209,20 @@ var parseHeaders = (rawHeaders) => {
|
|
|
1076
1209
|
key = line.substring(0, i).trim().toLowerCase();
|
|
1077
1210
|
val = line.substring(i + 1).trim();
|
|
1078
1211
|
|
|
1079
|
-
|
|
1212
|
+
const hasKey = utils$1.hasOwnProp(parsed, key);
|
|
1213
|
+
|
|
1214
|
+
if (!key || (hasKey && utils$1.hasOwnProp(ignoreDuplicateOf, key))) {
|
|
1080
1215
|
return;
|
|
1081
1216
|
}
|
|
1082
1217
|
|
|
1083
1218
|
if (key === 'set-cookie') {
|
|
1084
|
-
if (
|
|
1219
|
+
if (hasKey) {
|
|
1085
1220
|
parsed[key].push(val);
|
|
1086
1221
|
} else {
|
|
1087
1222
|
parsed[key] = [val];
|
|
1088
1223
|
}
|
|
1089
1224
|
} else {
|
|
1090
|
-
parsed[key] =
|
|
1225
|
+
parsed[key] = hasKey ? parsed[key] + ', ' + val : val;
|
|
1091
1226
|
}
|
|
1092
1227
|
});
|
|
1093
1228
|
|
|
@@ -1151,7 +1286,7 @@ function toByteStringHeaderObject(headers) {
|
|
|
1151
1286
|
return byteStringHeaders;
|
|
1152
1287
|
}
|
|
1153
1288
|
|
|
1154
|
-
const $internals = Symbol('internals');
|
|
1289
|
+
const $internals$1 = Symbol('internals');
|
|
1155
1290
|
|
|
1156
1291
|
function normalizeHeader(header) {
|
|
1157
1292
|
return header && String(header).trim().toLowerCase();
|
|
@@ -1177,6 +1312,124 @@ function parseTokens(str) {
|
|
|
1177
1312
|
return tokens;
|
|
1178
1313
|
}
|
|
1179
1314
|
|
|
1315
|
+
const parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
1316
|
+
|
|
1317
|
+
function trimOWS(value) {
|
|
1318
|
+
let start = 0;
|
|
1319
|
+
let end = value.length;
|
|
1320
|
+
|
|
1321
|
+
while (start < end) {
|
|
1322
|
+
const code = value.charCodeAt(start);
|
|
1323
|
+
|
|
1324
|
+
if (code !== 0x09 && code !== 0x20) {
|
|
1325
|
+
break;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
start += 1;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
while (end > start) {
|
|
1332
|
+
const code = value.charCodeAt(end - 1);
|
|
1333
|
+
|
|
1334
|
+
if (code !== 0x09 && code !== 0x20) {
|
|
1335
|
+
break;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
end -= 1;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
return start === 0 && end === value.length ? value : value.slice(start, end);
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
function decodeQuotedString(value) {
|
|
1345
|
+
const last = value.length - 1;
|
|
1346
|
+
|
|
1347
|
+
if (last < 1 || value.charCodeAt(0) !== 0x22 || value.charCodeAt(last) !== 0x22) {
|
|
1348
|
+
return value;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
let decoded = '';
|
|
1352
|
+
|
|
1353
|
+
for (let i = 1; i < last; i++) {
|
|
1354
|
+
const code = value.charCodeAt(i);
|
|
1355
|
+
|
|
1356
|
+
if (code === 0x22) {
|
|
1357
|
+
return value;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
if (code === 0x5c) {
|
|
1361
|
+
i += 1;
|
|
1362
|
+
|
|
1363
|
+
if (i >= last) {
|
|
1364
|
+
return value;
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
decoded += value[i];
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
return decoded;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
function parseParameters(value) {
|
|
1375
|
+
const parameters = Object.create(null);
|
|
1376
|
+
const str = String(value);
|
|
1377
|
+
let start = 0;
|
|
1378
|
+
let quoted = false;
|
|
1379
|
+
let escaped = false;
|
|
1380
|
+
|
|
1381
|
+
function parseParameter(end) {
|
|
1382
|
+
const part = trimOWS(str.slice(start, end));
|
|
1383
|
+
const equals = part.indexOf('=');
|
|
1384
|
+
|
|
1385
|
+
if (equals < 1) {
|
|
1386
|
+
return;
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
const name = trimOWS(part.slice(0, equals));
|
|
1390
|
+
|
|
1391
|
+
if (!parameterNameRE.test(name)) {
|
|
1392
|
+
return;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
const normalizedName = name.toLowerCase();
|
|
1396
|
+
|
|
1397
|
+
if (
|
|
1398
|
+
normalizedName === '__proto__' ||
|
|
1399
|
+
normalizedName === 'constructor' ||
|
|
1400
|
+
normalizedName === 'prototype'
|
|
1401
|
+
) {
|
|
1402
|
+
return;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
const parameterValue = trimOWS(part.slice(equals + 1));
|
|
1406
|
+
parameters[normalizedName] = decodeQuotedString(parameterValue);
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
for (let i = 0; i < str.length; i++) {
|
|
1410
|
+
const code = str.charCodeAt(i);
|
|
1411
|
+
|
|
1412
|
+
if (quoted) {
|
|
1413
|
+
if (escaped) {
|
|
1414
|
+
escaped = false;
|
|
1415
|
+
} else if (code === 0x5c) {
|
|
1416
|
+
escaped = true;
|
|
1417
|
+
} else if (code === 0x22) {
|
|
1418
|
+
quoted = false;
|
|
1419
|
+
}
|
|
1420
|
+
} else if (code === 0x22) {
|
|
1421
|
+
quoted = true;
|
|
1422
|
+
} else if (code === 0x2c || code === 0x3b) {
|
|
1423
|
+
parseParameter(i);
|
|
1424
|
+
start = i + 1;
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
parseParameter(str.length);
|
|
1429
|
+
|
|
1430
|
+
return parameters;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1180
1433
|
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
1181
1434
|
|
|
1182
1435
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
@@ -1428,7 +1681,8 @@ class AxiosHeaders {
|
|
|
1428
1681
|
}
|
|
1429
1682
|
|
|
1430
1683
|
getSetCookie() {
|
|
1431
|
-
|
|
1684
|
+
const value = this.get('set-cookie');
|
|
1685
|
+
return utils$1.isArray(value) ? value : value == null || value === false ? [] : [value];
|
|
1432
1686
|
}
|
|
1433
1687
|
|
|
1434
1688
|
get [Symbol.toStringTag]() {
|
|
@@ -1439,6 +1693,10 @@ class AxiosHeaders {
|
|
|
1439
1693
|
return thing instanceof this ? thing : new this(thing);
|
|
1440
1694
|
}
|
|
1441
1695
|
|
|
1696
|
+
static parseParameters(value) {
|
|
1697
|
+
return parseParameters(value);
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1442
1700
|
static concat(first, ...targets) {
|
|
1443
1701
|
const computed = new this(first);
|
|
1444
1702
|
|
|
@@ -1449,8 +1707,8 @@ class AxiosHeaders {
|
|
|
1449
1707
|
|
|
1450
1708
|
static accessor(header) {
|
|
1451
1709
|
const internals =
|
|
1452
|
-
(this[$internals] =
|
|
1453
|
-
this[$internals] =
|
|
1710
|
+
(this[$internals$1] =
|
|
1711
|
+
this[$internals$1] =
|
|
1454
1712
|
{
|
|
1455
1713
|
accessors: {},
|
|
1456
1714
|
});
|
|
@@ -1564,9 +1822,40 @@ function redactConfig(config, redactKeys) {
|
|
|
1564
1822
|
return visit(config);
|
|
1565
1823
|
}
|
|
1566
1824
|
|
|
1825
|
+
function stringifySafely$1(value) {
|
|
1826
|
+
try {
|
|
1827
|
+
return String(value);
|
|
1828
|
+
} catch (err) {
|
|
1829
|
+
return '';
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
function aggregateErrorMessage(error) {
|
|
1834
|
+
const message = error.errors
|
|
1835
|
+
.map((entry) => {
|
|
1836
|
+
try {
|
|
1837
|
+
return entry && entry.message ? stringifySafely$1(entry.message) : stringifySafely$1(entry);
|
|
1838
|
+
} catch (err) {
|
|
1839
|
+
return '';
|
|
1840
|
+
}
|
|
1841
|
+
})
|
|
1842
|
+
.filter(Boolean)
|
|
1843
|
+
.join('; ');
|
|
1844
|
+
|
|
1845
|
+
return message || error.name || 'AggregateError';
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1567
1848
|
class AxiosError extends Error {
|
|
1568
1849
|
static from(error, code, config, request, response, customProps) {
|
|
1569
|
-
|
|
1850
|
+
// `AggregateError` (thrown by Node on dual-stack/Happy-Eyeballs connection
|
|
1851
|
+
// failures) has an empty `message`; its detail lives in `errors[]`. Without
|
|
1852
|
+
// this, the wrapped error surfaces with a blank message (see #6721).
|
|
1853
|
+
let message = error.message;
|
|
1854
|
+
if (!message && utils$1.isArray(error.errors) && error.errors.length) {
|
|
1855
|
+
message = aggregateErrorMessage(error);
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
const axiosError = new AxiosError(message, code || error.code, config, request, response);
|
|
1570
1859
|
// Match native `Error` `cause` semantics: non-enumerable. The wrapped
|
|
1571
1860
|
// error often carries circular internals (sockets, requests, agents), so
|
|
1572
1861
|
// an enumerable `cause` makes structured loggers (pino/winston) and any
|
|
@@ -1773,28 +2062,18 @@ function toFormData(obj, formData, options) {
|
|
|
1773
2062
|
// eslint-disable-next-line no-param-reassign
|
|
1774
2063
|
formData = formData || new (FormData)();
|
|
1775
2064
|
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
metaTokens: true,
|
|
1781
|
-
dots: false,
|
|
1782
|
-
indexes: false,
|
|
1783
|
-
},
|
|
1784
|
-
false,
|
|
1785
|
-
function defined(option, source) {
|
|
1786
|
-
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
1787
|
-
return !utils$1.isUndefined(source[option]);
|
|
1788
|
-
}
|
|
1789
|
-
);
|
|
2065
|
+
const option = (name, fallback) => {
|
|
2066
|
+
const value = utils$1.getSafeProp(options, name);
|
|
2067
|
+
return utils$1.isUndefined(value) ? fallback : value;
|
|
2068
|
+
};
|
|
1790
2069
|
|
|
1791
|
-
const metaTokens =
|
|
2070
|
+
const metaTokens = option('metaTokens', true);
|
|
1792
2071
|
// eslint-disable-next-line no-use-before-define
|
|
1793
|
-
const visitor =
|
|
1794
|
-
const dots =
|
|
1795
|
-
const indexes =
|
|
1796
|
-
const _Blob =
|
|
1797
|
-
const maxDepth =
|
|
2072
|
+
const visitor = option('visitor') || defaultVisitor;
|
|
2073
|
+
const dots = option('dots', false);
|
|
2074
|
+
const indexes = option('indexes', false);
|
|
2075
|
+
const _Blob = option('Blob') || (typeof Blob !== 'undefined' && Blob);
|
|
2076
|
+
const maxDepth = option('maxDepth', DEFAULT_FORM_DATA_MAX_DEPTH);
|
|
1798
2077
|
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
1799
2078
|
const stack = [];
|
|
1800
2079
|
|
|
@@ -1821,10 +2100,10 @@ function toFormData(obj, formData, options) {
|
|
|
1821
2100
|
if (useBlob && typeof _Blob === 'function') {
|
|
1822
2101
|
return new _Blob([value]);
|
|
1823
2102
|
}
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
2103
|
+
throw new AxiosError(
|
|
2104
|
+
'Blob is not supported. Use a Buffer instead.',
|
|
2105
|
+
AxiosError.ERR_NOT_SUPPORT
|
|
2106
|
+
);
|
|
1828
2107
|
}
|
|
1829
2108
|
|
|
1830
2109
|
return value;
|
|
@@ -2076,9 +2355,57 @@ function buildURL(url, params, options) {
|
|
|
2076
2355
|
return url;
|
|
2077
2356
|
}
|
|
2078
2357
|
|
|
2358
|
+
const $internals = Symbol('internals');
|
|
2359
|
+
|
|
2360
|
+
// `handlers` is public and may be replaced with a nullish value by user code;
|
|
2361
|
+
// `clear()` has always tolerated that. Treat it as an empty stack rather than
|
|
2362
|
+
// dereferencing it.
|
|
2363
|
+
function countHandlers(handlers) {
|
|
2364
|
+
return handlers ? handlers.length : 0;
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
function trimHandlers(handlers) {
|
|
2368
|
+
if (!handlers) {
|
|
2369
|
+
return;
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
while (handlers.length && handlers[handlers.length - 1] === null) {
|
|
2373
|
+
handlers.pop();
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
function syncHandlerEntries(manager, internals) {
|
|
2378
|
+
const handlers = manager.handlers;
|
|
2379
|
+
const length = countHandlers(handlers);
|
|
2380
|
+
|
|
2381
|
+
if (handlers !== internals.handlersRef) {
|
|
2382
|
+
internals.handlersRef = handlers;
|
|
2383
|
+
internals.handlerEntries.clear();
|
|
2384
|
+
} else if (length !== internals.handlersLength) {
|
|
2385
|
+
if (!length) {
|
|
2386
|
+
internals.handlerEntries.clear();
|
|
2387
|
+
} else {
|
|
2388
|
+
internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
|
|
2389
|
+
if (handlers[entry.index] !== entry.handler) {
|
|
2390
|
+
internals.handlerEntries.delete(id);
|
|
2391
|
+
}
|
|
2392
|
+
});
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
internals.handlersLength = length;
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2079
2399
|
class InterceptorManager {
|
|
2080
2400
|
constructor() {
|
|
2081
2401
|
this.handlers = [];
|
|
2402
|
+
this[$internals] = {
|
|
2403
|
+
handlersRef: this.handlers,
|
|
2404
|
+
handlersLength: this.handlers.length,
|
|
2405
|
+
handlerEntries: new Map(),
|
|
2406
|
+
iterationDepth: 0,
|
|
2407
|
+
nextId: 0,
|
|
2408
|
+
};
|
|
2082
2409
|
}
|
|
2083
2410
|
|
|
2084
2411
|
/**
|
|
@@ -2091,13 +2418,30 @@ class InterceptorManager {
|
|
|
2091
2418
|
* @return {Number} An ID used to remove interceptor later
|
|
2092
2419
|
*/
|
|
2093
2420
|
use(fulfilled, rejected, options) {
|
|
2094
|
-
|
|
2421
|
+
const handler = {
|
|
2095
2422
|
fulfilled,
|
|
2096
2423
|
rejected,
|
|
2097
2424
|
synchronous: options ? options.synchronous : false,
|
|
2098
2425
|
runWhen: options ? options.runWhen : null,
|
|
2426
|
+
};
|
|
2427
|
+
const internals = this[$internals];
|
|
2428
|
+
|
|
2429
|
+
if (this.handlers == null) {
|
|
2430
|
+
this.handlers = [];
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
syncHandlerEntries(this, internals);
|
|
2434
|
+
|
|
2435
|
+
const id = internals.nextId++;
|
|
2436
|
+
|
|
2437
|
+
this.handlers.push(handler);
|
|
2438
|
+
internals.handlerEntries.set(id, {
|
|
2439
|
+
handler,
|
|
2440
|
+
index: this.handlers.length - 1,
|
|
2099
2441
|
});
|
|
2100
|
-
|
|
2442
|
+
internals.handlersLength = this.handlers.length;
|
|
2443
|
+
|
|
2444
|
+
return id;
|
|
2101
2445
|
}
|
|
2102
2446
|
|
|
2103
2447
|
/**
|
|
@@ -2108,8 +2452,27 @@ class InterceptorManager {
|
|
|
2108
2452
|
* @returns {void}
|
|
2109
2453
|
*/
|
|
2110
2454
|
eject(id) {
|
|
2111
|
-
|
|
2112
|
-
|
|
2455
|
+
const internals = this[$internals];
|
|
2456
|
+
|
|
2457
|
+
syncHandlerEntries(this, internals);
|
|
2458
|
+
|
|
2459
|
+
const entry = internals.handlerEntries.get(id);
|
|
2460
|
+
|
|
2461
|
+
if (entry) {
|
|
2462
|
+
internals.handlerEntries.delete(id);
|
|
2463
|
+
|
|
2464
|
+
// Ignore IDs invalidated by clear or direct replacement of handlers.
|
|
2465
|
+
if (this.handlers[entry.index] !== entry.handler) {
|
|
2466
|
+
return;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
this.handlers[entry.index] = null;
|
|
2470
|
+
|
|
2471
|
+
// Do not reuse an index while forEach is walking its length snapshot.
|
|
2472
|
+
if (!internals.iterationDepth) {
|
|
2473
|
+
trimHandlers(this.handlers);
|
|
2474
|
+
internals.handlersLength = this.handlers.length;
|
|
2475
|
+
}
|
|
2113
2476
|
}
|
|
2114
2477
|
}
|
|
2115
2478
|
|
|
@@ -2121,6 +2484,7 @@ class InterceptorManager {
|
|
|
2121
2484
|
clear() {
|
|
2122
2485
|
if (this.handlers) {
|
|
2123
2486
|
this.handlers = [];
|
|
2487
|
+
syncHandlerEntries(this, this[$internals]);
|
|
2124
2488
|
}
|
|
2125
2489
|
}
|
|
2126
2490
|
|
|
@@ -2135,11 +2499,25 @@ class InterceptorManager {
|
|
|
2135
2499
|
* @returns {void}
|
|
2136
2500
|
*/
|
|
2137
2501
|
forEach(fn) {
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2502
|
+
const internals = this[$internals];
|
|
2503
|
+
|
|
2504
|
+
syncHandlerEntries(this, internals);
|
|
2505
|
+
|
|
2506
|
+
internals.iterationDepth++;
|
|
2507
|
+
|
|
2508
|
+
try {
|
|
2509
|
+
utils$1.forEach(this.handlers, function forEachHandler(h) {
|
|
2510
|
+
if (h !== null) {
|
|
2511
|
+
fn(h);
|
|
2512
|
+
}
|
|
2513
|
+
});
|
|
2514
|
+
} finally {
|
|
2515
|
+
if (!--internals.iterationDepth) {
|
|
2516
|
+
syncHandlerEntries(this, internals);
|
|
2517
|
+
trimHandlers(this.handlers);
|
|
2518
|
+
internals.handlersLength = countHandlers(this.handlers);
|
|
2141
2519
|
}
|
|
2142
|
-
}
|
|
2520
|
+
}
|
|
2143
2521
|
}
|
|
2144
2522
|
}
|
|
2145
2523
|
|
|
@@ -2260,12 +2638,18 @@ function throwIfDepthExceeded(index) {
|
|
|
2260
2638
|
* @returns An array of strings.
|
|
2261
2639
|
*/
|
|
2262
2640
|
function parsePropPath(name) {
|
|
2263
|
-
// foo[x][y][z]
|
|
2264
|
-
// foo.x.y.z
|
|
2265
|
-
//
|
|
2266
|
-
//
|
|
2641
|
+
// foo[x][y][z] -> ['foo', 'x', 'y', 'z']
|
|
2642
|
+
// foo.x.y.z -> ['foo', 'x', 'y', 'z']
|
|
2643
|
+
// A path is split on `.` and on `[...]` groups. A segment — whether written
|
|
2644
|
+
// in dot notation or captured inside brackets — may contain any character
|
|
2645
|
+
// except `.`, `[` and `]`, so a key like `user-name` or `user name` is kept
|
|
2646
|
+
// literal instead of being split (#5402). `.`, `[` and `]` keep their existing
|
|
2647
|
+
// meaning, e.g. `foo[bar.baz]` -> ['foo', 'bar', 'baz'] and `[]` is an array push.
|
|
2648
|
+
// Excluding `[` from the bracket group also makes the match fail fast at the
|
|
2649
|
+
// next `[`, so a malformed name cannot rescan to the end of the string from
|
|
2650
|
+
// every unmatched `[` — parsing stays linear in the length of the name.
|
|
2267
2651
|
const path = [];
|
|
2268
|
-
const pattern =
|
|
2652
|
+
const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
2269
2653
|
let match;
|
|
2270
2654
|
|
|
2271
2655
|
while ((match = pattern.exec(name)) !== null) {
|
|
@@ -2353,6 +2737,20 @@ function formDataToJSON(formData) {
|
|
|
2353
2737
|
return null;
|
|
2354
2738
|
}
|
|
2355
2739
|
|
|
2740
|
+
const methodList = Object.freeze([
|
|
2741
|
+
'get',
|
|
2742
|
+
'delete',
|
|
2743
|
+
'head',
|
|
2744
|
+
'options',
|
|
2745
|
+
'post',
|
|
2746
|
+
'put',
|
|
2747
|
+
'patch',
|
|
2748
|
+
'purge',
|
|
2749
|
+
'link',
|
|
2750
|
+
'unlink',
|
|
2751
|
+
'query',
|
|
2752
|
+
]);
|
|
2753
|
+
|
|
2356
2754
|
const own = (obj, key) => (obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : undefined);
|
|
2357
2755
|
|
|
2358
2756
|
/**
|
|
@@ -2515,7 +2913,7 @@ const defaults = {
|
|
|
2515
2913
|
},
|
|
2516
2914
|
};
|
|
2517
2915
|
|
|
2518
|
-
utils$1.forEach(
|
|
2916
|
+
utils$1.forEach(methodList, (method) => {
|
|
2519
2917
|
defaults.headers[method] = {};
|
|
2520
2918
|
});
|
|
2521
2919
|
|
|
@@ -2587,6 +2985,29 @@ function settle(resolve, reject, response) {
|
|
|
2587
2985
|
}
|
|
2588
2986
|
}
|
|
2589
2987
|
|
|
2988
|
+
const urlParserControlCharacters = /[\t\n\r]/g;
|
|
2989
|
+
|
|
2990
|
+
/**
|
|
2991
|
+
* Match WHATWG URL preprocessing before checking a URL's protocol.
|
|
2992
|
+
*
|
|
2993
|
+
* @param {string} url
|
|
2994
|
+
*
|
|
2995
|
+
* @returns {string}
|
|
2996
|
+
*/
|
|
2997
|
+
function normalizeURLForProtocolCheck(url) {
|
|
2998
|
+
if (typeof url !== 'string') {
|
|
2999
|
+
return url;
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
let start = 0;
|
|
3003
|
+
|
|
3004
|
+
while (start < url.length && url.charCodeAt(start) <= 0x20) {
|
|
3005
|
+
start++;
|
|
3006
|
+
}
|
|
3007
|
+
|
|
3008
|
+
return url.slice(start).replace(urlParserControlCharacters, '');
|
|
3009
|
+
}
|
|
3010
|
+
|
|
2590
3011
|
function parseProtocol(url) {
|
|
2591
3012
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
2592
3013
|
return (match && match[1]) || '';
|
|
@@ -2648,7 +3069,7 @@ function speedometer(samplesCount, min) {
|
|
|
2648
3069
|
* Throttle decorator
|
|
2649
3070
|
* @param {Function} fn
|
|
2650
3071
|
* @param {Number} freq
|
|
2651
|
-
* @return {Function}
|
|
3072
|
+
* @return {Array<Function>}
|
|
2652
3073
|
*/
|
|
2653
3074
|
function throttle(fn, freq) {
|
|
2654
3075
|
let timestamp = 0;
|
|
@@ -2683,8 +3104,9 @@ function throttle(fn, freq) {
|
|
|
2683
3104
|
};
|
|
2684
3105
|
|
|
2685
3106
|
const flush = () => lastArgs && invoke(lastArgs);
|
|
3107
|
+
const flushWith = (...args) => invoke(args);
|
|
2686
3108
|
|
|
2687
|
-
return [throttled, flush];
|
|
3109
|
+
return [throttled, flush, flushWith];
|
|
2688
3110
|
}
|
|
2689
3111
|
|
|
2690
3112
|
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
@@ -2692,12 +3114,12 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
2692
3114
|
const _speedometer = speedometer(50, 250);
|
|
2693
3115
|
|
|
2694
3116
|
return throttle((e) => {
|
|
2695
|
-
if (!e ||
|
|
3117
|
+
if (!e || !utils$1.isNumber(e.loaded)) {
|
|
2696
3118
|
return;
|
|
2697
3119
|
}
|
|
2698
3120
|
const rawLoaded = e.loaded;
|
|
2699
3121
|
const total = e.lengthComputable ? e.total : undefined;
|
|
2700
|
-
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
3122
|
+
const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
|
|
2701
3123
|
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
2702
3124
|
const rate = _speedometer(progressBytes);
|
|
2703
3125
|
|
|
@@ -2734,9 +3156,9 @@ const progressEventDecorator = (total, throttled) => {
|
|
|
2734
3156
|
};
|
|
2735
3157
|
|
|
2736
3158
|
const asyncDecorator =
|
|
2737
|
-
(fn) =>
|
|
3159
|
+
(fn, scheduler = utils$1.asap) =>
|
|
2738
3160
|
(...args) =>
|
|
2739
|
-
|
|
3161
|
+
scheduler(() => fn(...args));
|
|
2740
3162
|
|
|
2741
3163
|
var isURLSameOrigin = platform.hasStandardBrowserEnv
|
|
2742
3164
|
? ((origin, isMSIE) => (url) => {
|
|
@@ -2842,33 +3264,66 @@ function isAbsoluteURL(url) {
|
|
|
2842
3264
|
* @returns {string} The combined URL
|
|
2843
3265
|
*/
|
|
2844
3266
|
function combineURLs(baseURL, relativeURL) {
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
3267
|
+
if (!relativeURL) {
|
|
3268
|
+
return baseURL;
|
|
3269
|
+
}
|
|
3270
|
+
|
|
3271
|
+
let end = baseURL.length;
|
|
3272
|
+
|
|
3273
|
+
while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
|
|
3274
|
+
end--;
|
|
3275
|
+
}
|
|
3276
|
+
|
|
3277
|
+
return baseURL.slice(0, end) + '/' + relativeURL.replace(/^\/+/, '');
|
|
2848
3278
|
}
|
|
2849
3279
|
|
|
2850
3280
|
const malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
2851
|
-
const httpProtocolControlCharacters = /[\t\n\r]/g;
|
|
2852
3281
|
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
3282
|
+
// Redact the parts of a URL that can carry secrets before it is embedded in an
|
|
3283
|
+
// error message. AxiosError.toJSON() serializes `message` verbatim and errors
|
|
3284
|
+
// are commonly logged, while the opt-in `config.redact` model only cleans
|
|
3285
|
+
// config keys — it cannot reach the message. Redact only the genuinely
|
|
3286
|
+
// sensitive substrings — userinfo (credentials), query parameter values and
|
|
3287
|
+
// fragment contents — with the same REDACTED marker the config redaction uses,
|
|
3288
|
+
// while keeping the scheme, host, path and parameter names so the offending
|
|
3289
|
+
// request stays accurately identifiable.
|
|
3290
|
+
function redactFragment(fragment) {
|
|
3291
|
+
if (!fragment) {
|
|
3292
|
+
return fragment;
|
|
2857
3293
|
}
|
|
2858
|
-
|
|
3294
|
+
|
|
3295
|
+
return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = '') => {
|
|
3296
|
+
return `${separator}${parameterName}${REDACTED}`;
|
|
3297
|
+
});
|
|
2859
3298
|
}
|
|
2860
3299
|
|
|
2861
|
-
function
|
|
2862
|
-
|
|
3300
|
+
function redactSensitiveURLParts(url) {
|
|
3301
|
+
const redactedURL = url.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
|
|
3302
|
+
const fragmentIndex = redactedURL.indexOf('#');
|
|
3303
|
+
const urlWithoutFragment =
|
|
3304
|
+
fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
|
|
3305
|
+
const redactedURLWithoutFragment = urlWithoutFragment.replace(
|
|
3306
|
+
/([?&][^=&#]*=)[^&#]*/g,
|
|
3307
|
+
`$1${REDACTED}`
|
|
3308
|
+
);
|
|
3309
|
+
|
|
3310
|
+
if (fragmentIndex === -1) {
|
|
3311
|
+
return redactedURLWithoutFragment;
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
|
|
2863
3315
|
}
|
|
2864
3316
|
|
|
2865
3317
|
function assertValidHttpProtocolURL(url, config) {
|
|
2866
|
-
if (typeof url === 'string'
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
AxiosError
|
|
2870
|
-
|
|
2871
|
-
|
|
3318
|
+
if (typeof url === 'string') {
|
|
3319
|
+
const normalizedURL = normalizeURLForProtocolCheck(url);
|
|
3320
|
+
if (malformedHttpProtocol.test(normalizedURL)) {
|
|
3321
|
+
throw new AxiosError(
|
|
3322
|
+
`Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
|
|
3323
|
+
AxiosError.ERR_INVALID_URL,
|
|
3324
|
+
config
|
|
3325
|
+
);
|
|
3326
|
+
}
|
|
2872
3327
|
}
|
|
2873
3328
|
}
|
|
2874
3329
|
|
|
@@ -2894,6 +3349,17 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
|
2894
3349
|
|
|
2895
3350
|
const headersToObject = (thing) => (thing instanceof AxiosHeaders ? { ...thing } : thing);
|
|
2896
3351
|
|
|
3352
|
+
const ownEnumerableKeys = (thing) => {
|
|
3353
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
3354
|
+
return Object.keys(thing).concat(
|
|
3355
|
+
Object.getOwnPropertySymbols(thing).filter(
|
|
3356
|
+
(symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
|
|
3357
|
+
)
|
|
3358
|
+
);
|
|
3359
|
+
}
|
|
3360
|
+
return Object.keys(thing);
|
|
3361
|
+
};
|
|
3362
|
+
|
|
2897
3363
|
/**
|
|
2898
3364
|
* Config-specific merge-function which creates a new config-object
|
|
2899
3365
|
* by merging two configuration objects together.
|
|
@@ -2959,7 +3425,9 @@ function mergeConfig(config1, config2) {
|
|
|
2959
3425
|
}
|
|
2960
3426
|
|
|
2961
3427
|
function getMergedTransitionalOption(prop) {
|
|
2962
|
-
const transitional2 = utils$1.hasOwnProp(config2, 'transitional')
|
|
3428
|
+
const transitional2 = utils$1.hasOwnProp(config2, 'transitional')
|
|
3429
|
+
? config2.transitional
|
|
3430
|
+
: undefined;
|
|
2963
3431
|
|
|
2964
3432
|
if (!utils$1.isUndefined(transitional2)) {
|
|
2965
3433
|
if (utils$1.isPlainObject(transitional2)) {
|
|
@@ -2971,7 +3439,9 @@ function mergeConfig(config1, config2) {
|
|
|
2971
3439
|
}
|
|
2972
3440
|
}
|
|
2973
3441
|
|
|
2974
|
-
const transitional1 = utils$1.hasOwnProp(config1, 'transitional')
|
|
3442
|
+
const transitional1 = utils$1.hasOwnProp(config1, 'transitional')
|
|
3443
|
+
? config1.transitional
|
|
3444
|
+
: undefined;
|
|
2975
3445
|
|
|
2976
3446
|
if (utils$1.isPlainObject(transitional1) && utils$1.hasOwnProp(transitional1, prop)) {
|
|
2977
3447
|
return transitional1[prop];
|
|
@@ -2998,7 +3468,7 @@ function mergeConfig(config1, config2) {
|
|
|
2998
3468
|
transformResponse: defaultToConfig2,
|
|
2999
3469
|
paramsSerializer: defaultToConfig2,
|
|
3000
3470
|
timeout: defaultToConfig2,
|
|
3001
|
-
|
|
3471
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
3002
3472
|
withCredentials: defaultToConfig2,
|
|
3003
3473
|
withXSRFToken: defaultToConfig2,
|
|
3004
3474
|
adapter: defaultToConfig2,
|
|
@@ -3023,7 +3493,7 @@ function mergeConfig(config1, config2) {
|
|
|
3023
3493
|
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
3024
3494
|
};
|
|
3025
3495
|
|
|
3026
|
-
utils$1.forEach(
|
|
3496
|
+
utils$1.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
3027
3497
|
if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
|
|
3028
3498
|
const merge = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
3029
3499
|
const a = utils$1.hasOwnProp(config1, prop) ? config1[prop] : undefined;
|
|
@@ -3049,6 +3519,17 @@ function mergeConfig(config1, config2) {
|
|
|
3049
3519
|
|
|
3050
3520
|
const FORM_DATA_CONTENT_HEADERS = ['content-type', 'content-length'];
|
|
3051
3521
|
|
|
3522
|
+
/**
|
|
3523
|
+
* Apply the headers generated by a FormData implementation to the request headers,
|
|
3524
|
+
* honoring the `formDataHeaderPolicy` option: with 'content-only', copy only the
|
|
3525
|
+
* content-* headers; otherwise merge all of them.
|
|
3526
|
+
*
|
|
3527
|
+
* @param {AxiosHeaders} headers - the request headers to mutate
|
|
3528
|
+
* @param {Object | null | undefined} formHeaders - headers produced by the FormData implementation
|
|
3529
|
+
* @param {String} [policy] - the resolved `formDataHeaderPolicy` config value
|
|
3530
|
+
*
|
|
3531
|
+
* @returns {void}
|
|
3532
|
+
*/
|
|
3052
3533
|
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
3053
3534
|
if (policy !== 'content-only') {
|
|
3054
3535
|
headers.set(formHeaders);
|
|
@@ -3116,15 +3597,17 @@ function resolveConfig(config) {
|
|
|
3116
3597
|
}
|
|
3117
3598
|
|
|
3118
3599
|
if (utils$1.isFormData(data)) {
|
|
3600
|
+
const getHeaders = utils$1.getSafeProp(data, 'getHeaders');
|
|
3601
|
+
|
|
3119
3602
|
if (
|
|
3120
3603
|
platform.hasStandardBrowserEnv ||
|
|
3121
3604
|
platform.hasStandardBrowserWebWorkerEnv ||
|
|
3122
3605
|
utils$1.isReactNative(data)
|
|
3123
3606
|
) {
|
|
3124
3607
|
headers.setContentType(undefined); // browser/web worker/RN handles it
|
|
3125
|
-
} else if (utils$1.isFunction(
|
|
3608
|
+
} else if (utils$1.isFunction(getHeaders)) {
|
|
3126
3609
|
// Node.js FormData (like form-data package)
|
|
3127
|
-
setFormDataHeaders(headers,
|
|
3610
|
+
setFormDataHeaders(headers, getHeaders.call(data), own('formDataHeaderPolicy'));
|
|
3128
3611
|
}
|
|
3129
3612
|
}
|
|
3130
3613
|
|
|
@@ -3166,7 +3649,7 @@ var xhrAdapter = isXHRAdapterSupported &&
|
|
|
3166
3649
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
3167
3650
|
let onCanceled;
|
|
3168
3651
|
let uploadThrottled, downloadThrottled;
|
|
3169
|
-
let flushUpload, flushDownload;
|
|
3652
|
+
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
3170
3653
|
|
|
3171
3654
|
function done() {
|
|
3172
3655
|
flushUpload && flushUpload(); // flush events
|
|
@@ -3184,10 +3667,55 @@ var xhrAdapter = isXHRAdapterSupported &&
|
|
|
3184
3667
|
// Set the request timeout in MS
|
|
3185
3668
|
request.timeout = _config.timeout;
|
|
3186
3669
|
|
|
3187
|
-
function onloadend() {
|
|
3670
|
+
function onloadend(event) {
|
|
3188
3671
|
if (!request) {
|
|
3189
3672
|
return;
|
|
3190
3673
|
}
|
|
3674
|
+
|
|
3675
|
+
// Status 0 means no response was received, which onerror and onabort normally
|
|
3676
|
+
// reject before this runs. Firefox 152 fires only readystatechange and loadend for
|
|
3677
|
+
// navigation-canceled requests (https://bugzilla.mozilla.org/show_bug.cgi?id=1505389),
|
|
3678
|
+
// leaving settle() to resolve them as an empty success. ECONNABORTED is the error
|
|
3679
|
+
// onabort raised on Firefox 151. Reads over file:, which some environments report as
|
|
3680
|
+
// status 0 on success, are excluded by the request URL's scheme after browser-style
|
|
3681
|
+
// preprocessing, by the page origin's scheme for relative URLs (which inherit it), or
|
|
3682
|
+
// by responseURL where implemented.
|
|
3683
|
+
if (
|
|
3684
|
+
request.status === 0 &&
|
|
3685
|
+
(parseProtocol(normalizeURLForProtocolCheck(_config.url)) ||
|
|
3686
|
+
parseProtocol(platform.origin)) !== 'file' &&
|
|
3687
|
+
!(request.responseURL && request.responseURL.startsWith('file:'))
|
|
3688
|
+
) {
|
|
3689
|
+
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
3690
|
+
done();
|
|
3691
|
+
|
|
3692
|
+
// Clean up request
|
|
3693
|
+
request = null;
|
|
3694
|
+
return;
|
|
3695
|
+
}
|
|
3696
|
+
|
|
3697
|
+
// When loadend is still dispatching, flushing with it gives progress
|
|
3698
|
+
// listeners a final delivery whose event has a live target. The legacy
|
|
3699
|
+
// ready-state fallback has no event, so replay its pending progress.
|
|
3700
|
+
// A throwing listener must not block settlement; rethrow asynchronously,
|
|
3701
|
+
// matching how listener errors surface on the throttle timer path.
|
|
3702
|
+
try {
|
|
3703
|
+
if (event) {
|
|
3704
|
+
flushDownloadWithEvent && flushDownloadWithEvent(event);
|
|
3705
|
+
} else {
|
|
3706
|
+
flushDownload && flushDownload();
|
|
3707
|
+
}
|
|
3708
|
+
} catch (err) {
|
|
3709
|
+
setTimeout(() => {
|
|
3710
|
+
throw err;
|
|
3711
|
+
});
|
|
3712
|
+
}
|
|
3713
|
+
|
|
3714
|
+
// A final progress callback can cancel the request synchronously.
|
|
3715
|
+
if (!request) {
|
|
3716
|
+
return;
|
|
3717
|
+
}
|
|
3718
|
+
|
|
3191
3719
|
// Prepare the response
|
|
3192
3720
|
const responseHeaders = AxiosHeaders.from(
|
|
3193
3721
|
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
@@ -3319,7 +3847,10 @@ var xhrAdapter = isXHRAdapterSupported &&
|
|
|
3319
3847
|
|
|
3320
3848
|
// Handle progress if needed
|
|
3321
3849
|
if (onDownloadProgress) {
|
|
3322
|
-
[downloadThrottled, flushDownload] = progressEventReducer(
|
|
3850
|
+
[downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
|
|
3851
|
+
onDownloadProgress,
|
|
3852
|
+
true
|
|
3853
|
+
);
|
|
3323
3854
|
request.addEventListener('progress', downloadThrottled);
|
|
3324
3855
|
}
|
|
3325
3856
|
|
|
@@ -3415,7 +3946,18 @@ const composeSignals = (signals, timeout) => {
|
|
|
3415
3946
|
signals = null;
|
|
3416
3947
|
};
|
|
3417
3948
|
|
|
3418
|
-
signals.forEach((signal) =>
|
|
3949
|
+
signals.forEach((signal) => {
|
|
3950
|
+
if (aborted) {
|
|
3951
|
+
return;
|
|
3952
|
+
}
|
|
3953
|
+
|
|
3954
|
+
if (signal.aborted) {
|
|
3955
|
+
onabort.call(signal);
|
|
3956
|
+
return;
|
|
3957
|
+
}
|
|
3958
|
+
|
|
3959
|
+
signal.addEventListener('abort', onabort, { once: true });
|
|
3960
|
+
});
|
|
3419
3961
|
|
|
3420
3962
|
const { signal } = controller;
|
|
3421
3963
|
|
|
@@ -3515,13 +4057,11 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
3515
4057
|
};
|
|
3516
4058
|
|
|
3517
4059
|
/**
|
|
3518
|
-
* Estimate
|
|
3519
|
-
* -
|
|
3520
|
-
*
|
|
3521
|
-
*
|
|
3522
|
-
*
|
|
3523
|
-
* @param {string} url
|
|
3524
|
-
* @returns {number}
|
|
4060
|
+
* Estimate data: URL byte lengths *without* allocating large buffers.
|
|
4061
|
+
* - Fetch percent-decodes a base64 body before decoding it.
|
|
4062
|
+
* - Node's Buffer.from(body, 'base64') sizes its backing allocation from the
|
|
4063
|
+
* raw body, including ignored characters and content after padding.
|
|
4064
|
+
* - Non-base64 data is percent-decoded and then encoded as UTF-8.
|
|
3525
4065
|
*/
|
|
3526
4066
|
const isHexDigit = (charCode) =>
|
|
3527
4067
|
(charCode >= 48 && charCode <= 57) ||
|
|
@@ -3531,64 +4071,101 @@ const isHexDigit = (charCode) =>
|
|
|
3531
4071
|
const isPercentEncodedByte = (str, i, len) =>
|
|
3532
4072
|
i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
3533
4073
|
|
|
3534
|
-
|
|
3535
|
-
if (!url || typeof url !== 'string') return 0;
|
|
3536
|
-
if (!url.startsWith('data:')) return 0;
|
|
4074
|
+
const hexValue = (charCode) => (charCode <= 57 ? charCode - 48 : (charCode & 0xdf) - 55);
|
|
3537
4075
|
|
|
3538
|
-
|
|
3539
|
-
|
|
4076
|
+
const isBase64Char = (charCode) =>
|
|
4077
|
+
(charCode >= 65 && charCode <= 90) || // A-Z
|
|
4078
|
+
(charCode >= 97 && charCode <= 122) || // a-z
|
|
4079
|
+
(charCode >= 48 && charCode <= 57) || // 0-9
|
|
4080
|
+
charCode === 43 || // +
|
|
4081
|
+
charCode === 47 || // /
|
|
4082
|
+
charCode === 45 || // - (base64url)
|
|
4083
|
+
charCode === 95; // _ (base64url)
|
|
3540
4084
|
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
const isBase64 = /;base64/i.test(meta);
|
|
4085
|
+
const isBase64Whitespace = (charCode) =>
|
|
4086
|
+
charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
|
|
3544
4087
|
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
4088
|
+
const base64Bytes = (significant) => {
|
|
4089
|
+
const groups = Math.floor(significant / 4);
|
|
4090
|
+
const remainder = significant % 4;
|
|
4091
|
+
return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
|
|
4092
|
+
};
|
|
4093
|
+
|
|
4094
|
+
// Buffer.byteLength(body, 'base64') uses the raw string length as an allocation
|
|
4095
|
+
// upper bound even when Buffer.from later ignores characters or stops at '='.
|
|
4096
|
+
const estimateBase64BufferAllocation = (body) => {
|
|
4097
|
+
const len = body.length;
|
|
4098
|
+
let padding = 0;
|
|
4099
|
+
|
|
4100
|
+
if (len > 0 && body.charCodeAt(len - 1) === 61 /* '=' */) {
|
|
4101
|
+
padding++;
|
|
4102
|
+
|
|
4103
|
+
if (len > 1 && body.charCodeAt(len - 2) === 61 /* '=' */) {
|
|
4104
|
+
padding++;
|
|
3560
4105
|
}
|
|
4106
|
+
}
|
|
3561
4107
|
|
|
3562
|
-
|
|
3563
|
-
|
|
4108
|
+
return Math.floor(((len - padding) * 3) / 4);
|
|
4109
|
+
};
|
|
3564
4110
|
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
4111
|
+
const estimatePercentDecodedBase64Bytes = (body) => {
|
|
4112
|
+
const len = body.length;
|
|
4113
|
+
let significant = 0;
|
|
4114
|
+
let padding = 0;
|
|
4115
|
+
let invalid = false;
|
|
3570
4116
|
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
idx -= 3;
|
|
3578
|
-
}
|
|
4117
|
+
for (let i = 0; i < len; i++) {
|
|
4118
|
+
let code = body.charCodeAt(i);
|
|
4119
|
+
|
|
4120
|
+
if (code === 37 /* '%' */ && isPercentEncodedByte(body, i, len)) {
|
|
4121
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
4122
|
+
i += 2;
|
|
3579
4123
|
}
|
|
3580
4124
|
|
|
3581
|
-
if (
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
4125
|
+
if (isBase64Whitespace(code)) {
|
|
4126
|
+
continue;
|
|
4127
|
+
}
|
|
4128
|
+
|
|
4129
|
+
if (code === 61 /* '=' */) {
|
|
4130
|
+
padding++;
|
|
4131
|
+
continue;
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
if (!isBase64Char(code) || padding > 0) {
|
|
4135
|
+
invalid = true;
|
|
4136
|
+
continue;
|
|
3587
4137
|
}
|
|
3588
4138
|
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
4139
|
+
significant++;
|
|
4140
|
+
}
|
|
4141
|
+
|
|
4142
|
+
// Fetch rejects malformed forgiving-base64 input. Returning the raw-size
|
|
4143
|
+
// allocation bound keeps that invalid input from becoming a pre-check bypass.
|
|
4144
|
+
if (
|
|
4145
|
+
invalid ||
|
|
4146
|
+
padding > 2 ||
|
|
4147
|
+
(padding > 0 && (significant + padding) % 4 !== 0) ||
|
|
4148
|
+
significant % 4 === 1
|
|
4149
|
+
) {
|
|
4150
|
+
return estimateBase64BufferAllocation(body);
|
|
4151
|
+
}
|
|
4152
|
+
|
|
4153
|
+
return base64Bytes(significant);
|
|
4154
|
+
};
|
|
4155
|
+
|
|
4156
|
+
const estimateDataURLBytes = (url, estimateBase64) => {
|
|
4157
|
+
if (!url || typeof url !== 'string') return 0;
|
|
4158
|
+
if (!url.startsWith('data:')) return 0;
|
|
4159
|
+
|
|
4160
|
+
const comma = url.indexOf(',');
|
|
4161
|
+
if (comma < 0) return 0;
|
|
4162
|
+
|
|
4163
|
+
const meta = url.slice(5, comma);
|
|
4164
|
+
const body = url.slice(comma + 1);
|
|
4165
|
+
const isBase64 = /;base64/i.test(meta);
|
|
4166
|
+
|
|
4167
|
+
if (isBase64) {
|
|
4168
|
+
return estimateBase64(body);
|
|
3592
4169
|
}
|
|
3593
4170
|
|
|
3594
4171
|
// Compute UTF-8 byte length directly from UTF-16 code units without allocating
|
|
@@ -3618,12 +4195,40 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
3618
4195
|
}
|
|
3619
4196
|
}
|
|
3620
4197
|
return bytes;
|
|
4198
|
+
};
|
|
4199
|
+
|
|
4200
|
+
/**
|
|
4201
|
+
* Estimate the percent-decoded payload size used by Fetch data: URLs.
|
|
4202
|
+
*
|
|
4203
|
+
* @param {string} url
|
|
4204
|
+
* @returns {number}
|
|
4205
|
+
*/
|
|
4206
|
+
function estimateDataURLDecodedBytes(url) {
|
|
4207
|
+
// Fetch removes URL fragments before processing a data: URL.
|
|
4208
|
+
const fragmentIndex = typeof url === 'string' ? url.indexOf('#') : -1;
|
|
4209
|
+
|
|
4210
|
+
return estimateDataURLBytes(
|
|
4211
|
+
fragmentIndex === -1 ? url : url.slice(0, fragmentIndex),
|
|
4212
|
+
estimatePercentDecodedBase64Bytes
|
|
4213
|
+
);
|
|
3621
4214
|
}
|
|
3622
4215
|
|
|
3623
|
-
const VERSION = "1.
|
|
4216
|
+
const VERSION = "1.20.0";
|
|
3624
4217
|
|
|
3625
4218
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3626
4219
|
|
|
4220
|
+
const DEFAULT_REQUEST_OPTIONS = {
|
|
4221
|
+
cache: 'default',
|
|
4222
|
+
redirect: 'follow',
|
|
4223
|
+
referrer: 'about:client',
|
|
4224
|
+
referrerPolicy: '',
|
|
4225
|
+
mode: 'cors',
|
|
4226
|
+
integrity: '',
|
|
4227
|
+
keepalive: false,
|
|
4228
|
+
priority: 'auto',
|
|
4229
|
+
window: null,
|
|
4230
|
+
};
|
|
4231
|
+
|
|
3627
4232
|
const { isFunction } = utils$1;
|
|
3628
4233
|
|
|
3629
4234
|
/**
|
|
@@ -3674,9 +4279,7 @@ const maybeWithAuthCredentials = (url) => {
|
|
|
3674
4279
|
|
|
3675
4280
|
const factory = (env) => {
|
|
3676
4281
|
const globalObject =
|
|
3677
|
-
utils$1.global !== undefined && utils$1.global !== null
|
|
3678
|
-
? utils$1.global
|
|
3679
|
-
: globalThis;
|
|
4282
|
+
utils$1.global !== undefined && utils$1.global !== null ? utils$1.global : globalThis;
|
|
3680
4283
|
const { ReadableStream, TextEncoder } = globalObject;
|
|
3681
4284
|
|
|
3682
4285
|
env = utils$1.merge.call(
|
|
@@ -3815,6 +4418,7 @@ const factory = (env) => {
|
|
|
3815
4418
|
fetchOptions,
|
|
3816
4419
|
maxContentLength,
|
|
3817
4420
|
maxBodyLength,
|
|
4421
|
+
maxRedirects,
|
|
3818
4422
|
} = resolveConfig(config);
|
|
3819
4423
|
|
|
3820
4424
|
const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
@@ -3865,7 +4469,7 @@ const factory = (env) => {
|
|
|
3865
4469
|
const password = utils$1.getSafeProp(configAuth, 'password') || '';
|
|
3866
4470
|
auth = {
|
|
3867
4471
|
username,
|
|
3868
|
-
password
|
|
4472
|
+
password,
|
|
3869
4473
|
};
|
|
3870
4474
|
}
|
|
3871
4475
|
|
|
@@ -3877,7 +4481,7 @@ const factory = (env) => {
|
|
|
3877
4481
|
const urlPassword = decodeURIComponentSafe(parsedURL.password);
|
|
3878
4482
|
auth = {
|
|
3879
4483
|
username: urlUsername,
|
|
3880
|
-
password: urlPassword
|
|
4484
|
+
password: urlPassword,
|
|
3881
4485
|
};
|
|
3882
4486
|
}
|
|
3883
4487
|
|
|
@@ -3951,7 +4555,9 @@ const factory = (env) => {
|
|
|
3951
4555
|
(onUploadProgress || mustEnforceStreamBody)
|
|
3952
4556
|
) {
|
|
3953
4557
|
requestContentLength =
|
|
3954
|
-
requestContentLength == null
|
|
4558
|
+
requestContentLength == null
|
|
4559
|
+
? await resolveBodyLength(headers, data)
|
|
4560
|
+
: requestContentLength;
|
|
3955
4561
|
|
|
3956
4562
|
// A declared length of 0 is only trusted to skip the wrap when we are
|
|
3957
4563
|
// not enforcing a stream limit (which must not rely on that header).
|
|
@@ -3964,7 +4570,10 @@ const factory = (env) => {
|
|
|
3964
4570
|
|
|
3965
4571
|
let contentTypeHeader;
|
|
3966
4572
|
|
|
3967
|
-
if (
|
|
4573
|
+
if (
|
|
4574
|
+
utils$1.isFormData(data) &&
|
|
4575
|
+
(contentTypeHeader = _request.headers.get('content-type'))
|
|
4576
|
+
) {
|
|
3968
4577
|
headers.setContentType(contentTypeHeader);
|
|
3969
4578
|
}
|
|
3970
4579
|
|
|
@@ -4027,20 +4636,57 @@ const factory = (env) => {
|
|
|
4027
4636
|
// Set User-Agent header if not already set (fetch defaults to 'node' in Node.js)
|
|
4028
4637
|
headers.set('User-Agent', 'axios/' + VERSION, false);
|
|
4029
4638
|
|
|
4030
|
-
const
|
|
4031
|
-
|
|
4639
|
+
const safeFetchOptions =
|
|
4640
|
+
fetchOptions == null ? fetchOptions : Object.assign(Object.create(null), fetchOptions);
|
|
4641
|
+
|
|
4642
|
+
if (safeFetchOptions) {
|
|
4643
|
+
// These options are owned by Axios and are already reflected in the
|
|
4644
|
+
// resolved Request passed to fetch.
|
|
4645
|
+
delete safeFetchOptions.body;
|
|
4646
|
+
delete safeFetchOptions.headers;
|
|
4647
|
+
delete safeFetchOptions.method;
|
|
4648
|
+
delete safeFetchOptions.signal;
|
|
4649
|
+
delete safeFetchOptions.duplex;
|
|
4650
|
+
delete safeFetchOptions.credentials;
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4653
|
+
const resolvedOptions = Object.assign(Object.create(null), safeFetchOptions, {
|
|
4032
4654
|
signal: composedSignal,
|
|
4033
4655
|
method: method.toUpperCase(),
|
|
4034
4656
|
headers: toByteStringHeaderObject(headers.normalize()),
|
|
4035
4657
|
body: data,
|
|
4036
4658
|
duplex: 'half',
|
|
4037
4659
|
credentials: isCredentialsSupported ? withCredentials : undefined,
|
|
4038
|
-
};
|
|
4660
|
+
});
|
|
4661
|
+
|
|
4662
|
+
if (isRequestSupported) {
|
|
4663
|
+
utils$1.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
|
|
4664
|
+
if (resolvedOptions[key] === undefined) {
|
|
4665
|
+
resolvedOptions[key] = value;
|
|
4666
|
+
}
|
|
4667
|
+
});
|
|
4668
|
+
|
|
4669
|
+
if (resolvedOptions.signal === undefined) {
|
|
4670
|
+
resolvedOptions.signal = null;
|
|
4671
|
+
}
|
|
4672
|
+
|
|
4673
|
+
if (resolvedOptions.body === undefined) {
|
|
4674
|
+
resolvedOptions.body = null;
|
|
4675
|
+
}
|
|
4676
|
+
}
|
|
4677
|
+
|
|
4678
|
+
if (maxRedirects === 0) {
|
|
4679
|
+
resolvedOptions.redirect = 'manual';
|
|
4680
|
+
|
|
4681
|
+
if (safeFetchOptions) {
|
|
4682
|
+
safeFetchOptions.redirect = 'manual';
|
|
4683
|
+
}
|
|
4684
|
+
}
|
|
4039
4685
|
|
|
4040
4686
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
4041
4687
|
|
|
4042
4688
|
let response = await (isRequestSupported
|
|
4043
|
-
? _fetch(request,
|
|
4689
|
+
? _fetch(request, safeFetchOptions)
|
|
4044
4690
|
: _fetch(url, resolvedOptions));
|
|
4045
4691
|
|
|
4046
4692
|
const responseHeaders = AxiosHeaders.from(response.headers);
|
|
@@ -4398,10 +5044,15 @@ function throwIfCancellationRequested(config) {
|
|
|
4398
5044
|
*
|
|
4399
5045
|
* @returns {Promise} The Promise to be fulfilled
|
|
4400
5046
|
*/
|
|
4401
|
-
function dispatchRequest(
|
|
5047
|
+
function dispatchRequest(_config) {
|
|
5048
|
+
// Interceptors may replace the merged config with an ordinary object. Flatten
|
|
5049
|
+
// it at the dispatch boundary so shared prototype members cannot become
|
|
5050
|
+
// request behavior, while preserving intentional template/class members.
|
|
5051
|
+
const config = utils$1.toSafeFlatObject(_config);
|
|
5052
|
+
|
|
4402
5053
|
throwIfCancellationRequested(config);
|
|
4403
5054
|
|
|
4404
|
-
config.headers = AxiosHeaders.from(config
|
|
5055
|
+
config.headers = AxiosHeaders.from(utils$1.getSafeProp(config, 'headers'));
|
|
4405
5056
|
|
|
4406
5057
|
// Transform request data
|
|
4407
5058
|
config.data = transformData.call(config, config.transformRequest);
|
|
@@ -4594,21 +5245,21 @@ class Axios {
|
|
|
4594
5245
|
return await this._request(configOrUrl, config);
|
|
4595
5246
|
} catch (err) {
|
|
4596
5247
|
if (err instanceof Error) {
|
|
4597
|
-
|
|
5248
|
+
try {
|
|
5249
|
+
let dummy = {};
|
|
4598
5250
|
|
|
4599
|
-
|
|
5251
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
|
|
4600
5252
|
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
if (!dummy.stack) {
|
|
4604
|
-
return '';
|
|
4605
|
-
}
|
|
5253
|
+
const dummyStack = dummy.stack;
|
|
5254
|
+
let stack = '';
|
|
4606
5255
|
|
|
4607
|
-
|
|
5256
|
+
// slice off the Error: ... line
|
|
5257
|
+
if (typeof dummyStack === 'string') {
|
|
5258
|
+
const firstNewlineIndex = dummyStack.indexOf('\n');
|
|
5259
|
+
|
|
5260
|
+
stack = firstNewlineIndex === -1 ? '' : dummyStack.slice(firstNewlineIndex + 1);
|
|
5261
|
+
}
|
|
4608
5262
|
|
|
4609
|
-
return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
|
|
4610
|
-
})();
|
|
4611
|
-
try {
|
|
4612
5263
|
if (!err.stack) {
|
|
4613
5264
|
err.stack = stack;
|
|
4614
5265
|
// match without the 2 top stack lines
|
|
@@ -4624,7 +5275,7 @@ class Axios {
|
|
|
4624
5275
|
}
|
|
4625
5276
|
}
|
|
4626
5277
|
} catch (e) {
|
|
4627
|
-
//
|
|
5278
|
+
// Ignore failures from custom stack hooks or un-writable stack properties.
|
|
4628
5279
|
}
|
|
4629
5280
|
}
|
|
4630
5281
|
|
|
@@ -4695,13 +5346,17 @@ class Axios {
|
|
|
4695
5346
|
);
|
|
4696
5347
|
|
|
4697
5348
|
// Set config.method
|
|
4698
|
-
config.method = (
|
|
5349
|
+
config.method = (
|
|
5350
|
+
utils$1.getSafeProp(config, 'method') ||
|
|
5351
|
+
utils$1.getSafeProp(this.defaults, 'method') ||
|
|
5352
|
+
'get'
|
|
5353
|
+
).toLowerCase();
|
|
4699
5354
|
|
|
4700
5355
|
// Flatten headers
|
|
4701
5356
|
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
4702
5357
|
|
|
4703
5358
|
headers &&
|
|
4704
|
-
utils$1.forEach(
|
|
5359
|
+
utils$1.forEach(methodList.concat('common'), (method) => {
|
|
4705
5360
|
delete headers[method];
|
|
4706
5361
|
});
|
|
4707
5362
|
|
|
@@ -4760,17 +5415,35 @@ class Axios {
|
|
|
4760
5415
|
const onFulfilled = requestInterceptorChain[i++];
|
|
4761
5416
|
const onRejected = requestInterceptorChain[i++];
|
|
4762
5417
|
try {
|
|
4763
|
-
newConfig = onFulfilled(newConfig);
|
|
5418
|
+
newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
|
|
4764
5419
|
} catch (error) {
|
|
4765
|
-
onRejected
|
|
5420
|
+
if (!onRejected) {
|
|
5421
|
+
promise = Promise.reject(error);
|
|
5422
|
+
break;
|
|
5423
|
+
}
|
|
5424
|
+
|
|
5425
|
+
try {
|
|
5426
|
+
const rejectedResult = onRejected.call(this, error);
|
|
5427
|
+
|
|
5428
|
+
if (utils$1.isThenable(rejectedResult)) {
|
|
5429
|
+
promise = Promise.resolve(rejectedResult).then(() =>
|
|
5430
|
+
dispatchRequest.call(this, newConfig)
|
|
5431
|
+
);
|
|
5432
|
+
}
|
|
5433
|
+
} catch (rejectedError) {
|
|
5434
|
+
promise = Promise.reject(rejectedError);
|
|
5435
|
+
}
|
|
5436
|
+
|
|
4766
5437
|
break;
|
|
4767
5438
|
}
|
|
4768
5439
|
}
|
|
4769
5440
|
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
5441
|
+
if (!promise) {
|
|
5442
|
+
try {
|
|
5443
|
+
promise = dispatchRequest.call(this, newConfig);
|
|
5444
|
+
} catch (error) {
|
|
5445
|
+
promise = Promise.reject(error);
|
|
5446
|
+
}
|
|
4774
5447
|
}
|
|
4775
5448
|
|
|
4776
5449
|
i = 0;
|
|
@@ -5036,14 +5709,22 @@ const HttpStatusCode = {
|
|
|
5036
5709
|
Gone: 410,
|
|
5037
5710
|
LengthRequired: 411,
|
|
5038
5711
|
PreconditionFailed: 412,
|
|
5712
|
+
/**
|
|
5713
|
+
* @deprecated Use `ContentTooLarge` instead.
|
|
5714
|
+
*/
|
|
5039
5715
|
PayloadTooLarge: 413,
|
|
5716
|
+
ContentTooLarge: 413,
|
|
5040
5717
|
UriTooLong: 414,
|
|
5041
5718
|
UnsupportedMediaType: 415,
|
|
5042
5719
|
RangeNotSatisfiable: 416,
|
|
5043
5720
|
ExpectationFailed: 417,
|
|
5044
5721
|
ImATeapot: 418,
|
|
5045
5722
|
MisdirectedRequest: 421,
|
|
5723
|
+
/**
|
|
5724
|
+
* @deprecated Use `UnprocessableContent` instead.
|
|
5725
|
+
*/
|
|
5046
5726
|
UnprocessableEntity: 422,
|
|
5727
|
+
UnprocessableContent: 422,
|
|
5047
5728
|
Locked: 423,
|
|
5048
5729
|
FailedDependency: 424,
|
|
5049
5730
|
TooEarly: 425,
|
|
@@ -5063,6 +5744,7 @@ const HttpStatusCode = {
|
|
|
5063
5744
|
LoopDetected: 508,
|
|
5064
5745
|
NotExtended: 510,
|
|
5065
5746
|
NetworkAuthenticationRequired: 511,
|
|
5747
|
+
WebServerReturnsAnUnknownError: 520,
|
|
5066
5748
|
WebServerIsDown: 521,
|
|
5067
5749
|
ConnectionTimedOut: 522,
|
|
5068
5750
|
OriginIsUnreachable: 523,
|
|
@@ -5072,7 +5754,9 @@ const HttpStatusCode = {
|
|
|
5072
5754
|
};
|
|
5073
5755
|
|
|
5074
5756
|
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
5075
|
-
HttpStatusCode[value]
|
|
5757
|
+
if (HttpStatusCode[value] === undefined) {
|
|
5758
|
+
HttpStatusCode[value] = key;
|
|
5759
|
+
}
|
|
5076
5760
|
});
|
|
5077
5761
|
|
|
5078
5762
|
/**
|
|
@@ -5143,4 +5827,3 @@ axios.HttpStatusCode = HttpStatusCode;
|
|
|
5143
5827
|
axios.default = axios;
|
|
5144
5828
|
|
|
5145
5829
|
module.exports = axios;
|
|
5146
|
-
//# sourceMappingURL=axios.cjs.map
|