@automattic/vip 4.1.5 → 4.1.8
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 +7 -3
- package/config/config.local.json +6 -0
- package/dist/bin/vip-app-deploy-token-generate.js +110 -78
- package/dist/bin/vip-app-deploy-token.js +24 -16
- package/dist/bin/vip-app-deploy-validate.js +45 -41
- package/dist/bin/vip-app-deploy.js +222 -215
- package/dist/bin/vip-app-list.js +59 -43
- package/dist/bin/vip-app.js +97 -66
- package/dist/bin/vip-backup-db.js +36 -29
- package/dist/bin/vip-backup.js +16 -9
- package/dist/bin/vip-cache-purge-url.js +93 -55
- package/dist/bin/vip-cache.js +23 -14
- package/dist/bin/vip-config-envvar-delete.js +74 -73
- package/dist/bin/vip-config-envvar-get-all.js +68 -68
- package/dist/bin/vip-config-envvar-get.js +46 -46
- package/dist/bin/vip-config-envvar-list.js +54 -57
- package/dist/bin/vip-config-envvar-set.js +102 -96
- package/dist/bin/vip-config-envvar.js +38 -24
- package/dist/bin/vip-config-software-get.js +89 -67
- package/dist/bin/vip-config-software-update.js +116 -120
- package/dist/bin/vip-config-software.js +31 -21
- package/dist/bin/vip-config.js +25 -17
- package/dist/bin/vip-db-phpmyadmin.js +40 -39
- package/dist/bin/vip-db.js +13 -12
- package/dist/bin/vip-defensive-mode-configure.js +197 -197
- package/dist/bin/vip-defensive-mode-disable.js +43 -35
- package/dist/bin/vip-defensive-mode-enable.js +47 -38
- package/dist/bin/vip-defensive-mode.js +28 -17
- package/dist/bin/vip-dev-env-create.js +147 -104
- package/dist/bin/vip-dev-env-destroy.js +48 -39
- package/dist/bin/vip-dev-env-envvar-delete.js +60 -49
- package/dist/bin/vip-dev-env-envvar-get-all.js +52 -45
- package/dist/bin/vip-dev-env-envvar-get.js +48 -37
- package/dist/bin/vip-dev-env-envvar-list.js +48 -41
- package/dist/bin/vip-dev-env-envvar-set.js +83 -70
- package/dist/bin/vip-dev-env-envvar.js +38 -23
- package/dist/bin/vip-dev-env-exec.js +81 -74
- package/dist/bin/vip-dev-env-import-media.js +34 -26
- package/dist/bin/vip-dev-env-import-sql.js +65 -51
- package/dist/bin/vip-dev-env-import.js +23 -14
- package/dist/bin/vip-dev-env-info.js +59 -50
- package/dist/bin/vip-dev-env-list.js +34 -31
- package/dist/bin/vip-dev-env-logs.js +59 -49
- package/dist/bin/vip-dev-env-purge.js +71 -63
- package/dist/bin/vip-dev-env-shell.js +82 -71
- package/dist/bin/vip-dev-env-start.js +77 -65
- package/dist/bin/vip-dev-env-stop.js +80 -74
- package/dist/bin/vip-dev-env-sync-sql.js +80 -72
- package/dist/bin/vip-dev-env-sync.js +18 -11
- package/dist/bin/vip-dev-env-update.js +93 -84
- package/dist/bin/vip-dev-env.js +25 -8
- package/dist/bin/vip-edge-workers-build.js +82 -54
- package/dist/bin/vip-edge-workers-delete.js +84 -52
- package/dist/bin/vip-edge-workers-deploy.js +186 -126
- package/dist/bin/vip-edge-workers-disable.js +75 -44
- package/dist/bin/vip-edge-workers-enable.js +86 -54
- package/dist/bin/vip-edge-workers-get.js +108 -88
- package/dist/bin/vip-edge-workers-init.js +83 -53
- package/dist/bin/vip-edge-workers-list.js +89 -54
- package/dist/bin/vip-edge-workers-new.js +98 -69
- package/dist/bin/vip-edge-workers-validate.js +123 -82
- package/dist/bin/vip-edge-workers.js +19 -6
- package/dist/bin/vip-export-sql.js +75 -69
- package/dist/bin/vip-export.js +12 -7
- package/dist/bin/vip-import-media-abort.js +99 -73
- package/dist/bin/vip-import-media-status.js +83 -51
- package/dist/bin/vip-import-media.js +165 -166
- package/dist/bin/vip-import-sql-status.js +75 -45
- package/dist/bin/vip-import-sql.js +536 -596
- package/dist/bin/vip-import-validate-files.js +122 -141
- package/dist/bin/vip-import-validate-sql.js +52 -16
- package/dist/bin/vip-import.js +16 -7
- package/dist/bin/vip-logout.js +17 -13
- package/dist/bin/vip-logs.js +209 -183
- package/dist/bin/vip-search-replace.js +85 -53
- package/dist/bin/vip-slowlogs.js +168 -147
- package/dist/bin/vip-sync.js +163 -133
- package/dist/bin/vip-whoami.js +71 -35
- package/dist/bin/vip-wp.js +505 -459
- package/dist/bin/vip.js +161 -116
- package/dist/commands/backup-db.js +183 -149
- package/dist/commands/dev-env-import-sql.js +162 -117
- package/dist/commands/dev-env-sync-sql.js +372 -330
- package/dist/commands/export-sql.js +441 -425
- package/dist/commands/phpmyadmin.js +232 -212
- package/dist/commands/wp-ssh.js +218 -187
- package/dist/lib/analytics/clients/tracks.js +84 -91
- package/dist/lib/analytics/index.js +27 -27
- package/dist/lib/api/app.js +37 -36
- package/dist/lib/api/cache-purge.js +17 -20
- package/dist/lib/api/constants.js +5 -6
- package/dist/lib/api/edge-workers.js +84 -135
- package/dist/lib/api/error-debug.js +10 -13
- package/dist/lib/api/feature-flags.js +16 -17
- package/dist/lib/api/http.js +47 -48
- package/dist/lib/api/user.js +17 -18
- package/dist/lib/api.js +107 -116
- package/dist/lib/app-logs/app-logs.js +24 -25
- package/dist/lib/app-slowlogs/app-slowlogs.js +23 -24
- package/dist/lib/app-slowlogs/types.js +2 -1
- package/dist/lib/app.js +6 -8
- package/dist/lib/backup-storage-availability/backup-storage-availability.js +119 -119
- package/dist/lib/backup-storage-availability/docker-machine-not-found-error.js +5 -6
- package/dist/lib/cli/apiConfig.js +71 -41
- package/dist/lib/cli/command.js +1120 -873
- package/dist/lib/cli/config.js +29 -29
- package/dist/lib/cli/envAlias.js +35 -50
- package/dist/lib/cli/exit.js +19 -19
- package/dist/lib/cli/format.js +172 -172
- package/dist/lib/cli/progress.js +193 -236
- package/dist/lib/cli/prompt.js +14 -15
- package/dist/lib/cli/runtime-mode.js +5 -6
- package/dist/lib/client-file-uploader.js +492 -615
- package/dist/lib/config/software.js +225 -191
- package/dist/lib/constants/dev-environment.js +40 -37
- package/dist/lib/constants/file-size.js +6 -7
- package/dist/lib/constants/vipgo.js +24 -12
- package/dist/lib/custom-deploy/custom-deploy.js +138 -120
- package/dist/lib/database.js +88 -85
- package/dist/lib/defensive-mode/api.js +41 -46
- package/dist/lib/defensive-mode/cli-helpers.js +40 -40
- package/dist/lib/dev-environment/dev-environment-cli.js +776 -735
- package/dist/lib/dev-environment/dev-environment-configuration-file.js +224 -191
- package/dist/lib/dev-environment/dev-environment-core.js +697 -732
- package/dist/lib/dev-environment/dev-environment-database.js +57 -41
- package/dist/lib/dev-environment/dev-environment-lando.js +734 -666
- package/dist/lib/dev-environment/docker-utils.js +96 -90
- package/dist/lib/dev-environment/env-vars.js +61 -59
- package/dist/lib/dev-environment/lando-loader.js +6 -7
- package/dist/lib/dev-environment/types.js +2 -1
- package/dist/lib/edge-workers/confirmation.js +42 -36
- package/dist/lib/edge-workers/deployment.js +150 -159
- package/dist/lib/edge-workers/index.js +68 -85
- package/dist/lib/edge-workers/location.js +26 -26
- package/dist/lib/edge-workers/output.js +14 -15
- package/dist/lib/edge-workers/project.js +123 -132
- package/dist/lib/edge-workers/toolchains/assemblyscript/constants.js +6 -8
- package/dist/lib/edge-workers/toolchains/assemblyscript/index.js +100 -101
- package/dist/lib/edge-workers/toolchains/assemblyscript/templates.js +31 -33
- package/dist/lib/edge-workers/toolchains/index.js +15 -15
- package/dist/lib/edge-workers/types.js +10 -38
- package/dist/lib/edge-workers/validation.js +161 -150
- package/dist/lib/env.js +16 -17
- package/dist/lib/envvar/api-delete.js +16 -18
- package/dist/lib/envvar/api-get-all.js +15 -19
- package/dist/lib/envvar/api-get.js +8 -9
- package/dist/lib/envvar/api-list.js +16 -21
- package/dist/lib/envvar/api-set.js +20 -19
- package/dist/lib/envvar/api.js +34 -29
- package/dist/lib/envvar/input.js +29 -34
- package/dist/lib/envvar/logging.js +9 -11
- package/dist/lib/envvar/read-file.js +6 -7
- package/dist/lib/http/download-file.js +76 -44
- package/dist/lib/http/proxy-agent.js +37 -40
- package/dist/lib/http/proxy-dispatcher.js +69 -71
- package/dist/lib/keychain/insecure.js +40 -36
- package/dist/lib/keychain/keychain.js +2 -1
- package/dist/lib/keychain/secure.js +16 -15
- package/dist/lib/keychain.js +22 -22
- package/dist/lib/live-backup-copy.js +117 -115
- package/dist/lib/logout.js +17 -19
- package/dist/lib/media-import/config.js +15 -14
- package/dist/lib/media-import/media-file-import.js +9 -13
- package/dist/lib/media-import/progress.js +53 -65
- package/dist/lib/media-import/status.js +241 -256
- package/dist/lib/media-import/utils.js +15 -15
- package/dist/lib/node-version-check.js +16 -16
- package/dist/lib/promise.js +16 -17
- package/dist/lib/read-file.js +48 -16
- package/dist/lib/rechallenge/client.js +37 -43
- package/dist/lib/rechallenge/errors.js +38 -37
- package/dist/lib/rechallenge/flow.js +148 -123
- package/dist/lib/rechallenge/index.js +23 -24
- package/dist/lib/rechallenge/link.js +153 -151
- package/dist/lib/rechallenge/open-browser.js +14 -17
- package/dist/lib/rechallenge/token-cache.js +83 -86
- package/dist/lib/rechallenge/types.js +5 -14
- package/dist/lib/retry.js +93 -129
- package/dist/lib/search-and-replace.js +164 -148
- package/dist/lib/site-import/db-file-import.js +12 -16
- package/dist/lib/site-import/status.js +291 -291
- package/dist/lib/token.js +86 -87
- package/dist/lib/tracker.js +51 -62
- package/dist/lib/types/graphql/rate-limit-exceeded-error.js +2 -1
- package/dist/lib/types.js +2 -1
- package/dist/lib/user-error.js +6 -8
- package/dist/lib/utils.js +81 -87
- package/dist/lib/validations/custom-deploy.js +218 -186
- package/dist/lib/validations/is-multi-site-sql-dump.js +6 -6
- package/dist/lib/validations/is-multi-site.js +83 -50
- package/dist/lib/validations/is-multisite-domain-mapped.js +92 -62
- package/dist/lib/validations/line-by-line.js +78 -46
- package/dist/lib/validations/site-type.js +59 -63
- package/dist/lib/validations/sql-insert-parser.js +415 -0
- package/dist/lib/validations/sql.js +551 -431
- package/dist/lib/validations/utils.js +27 -29
- package/dist/lib/vip-import-validate-files.js +481 -490
- package/dist/lib/wp/helpers.js +41 -45
- package/dist/lib/wp/readline.js +21 -57
- package/dist/lib/xdg-data.js +11 -12
- package/helpers/generate-docs.js +9 -3
- package/helpers/mark-cli-executable.js +9 -0
- package/node_modules/@apollo/client/CHANGELOG.md +42 -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/helpers.cjs +5 -0
- package/node_modules/@apollo/client/__cjs/cache/inmemory/helpers.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs +17 -6
- 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 +15 -3
- package/node_modules/@apollo/client/__cjs/cache/inmemory/key-extractor.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs +21 -5
- package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.d.cts +2 -0
- 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 +32 -16
- 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 +22 -33
- package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/core/QueryInfo.d.cts +1 -1
- package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs +22 -15
- package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs.map +1 -1
- 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/react/hooks/useFragment.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useFragment.d.cts +42 -43
- 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/helpers.js +5 -0
- package/node_modules/@apollo/client/cache/inmemory/helpers.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.d.ts +3 -1
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js +17 -6
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/key-extractor.js +15 -3
- package/node_modules/@apollo/client/cache/inmemory/key-extractor.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/policies.d.ts +2 -0
- package/node_modules/@apollo/client/cache/inmemory/policies.js +22 -6
- package/node_modules/@apollo/client/cache/inmemory/policies.js.map +1 -1
- 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 +33 -17
- 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.d.ts +1 -1
- package/node_modules/@apollo/client/core/QueryInfo.js +23 -34
- package/node_modules/@apollo/client/core/QueryInfo.js.map +1 -1
- package/node_modules/@apollo/client/core/QueryManager.js +22 -15
- package/node_modules/@apollo/client/core/QueryManager.js.map +1 -1
- 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/react/hooks/useFragment.d.ts +42 -43
- package/node_modules/@apollo/client/react/hooks/useFragment.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useFragment.d.ts +42 -43
- package/node_modules/@apollo/client/react/hooks-compiled/useFragment.js.map +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/@automattic/vip-search-replace/README.md +6 -1
- package/node_modules/@automattic/vip-search-replace/lib/index.js +46 -14
- package/node_modules/@automattic/vip-search-replace/package.json +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 +758 -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/check-disk-space/README.md +92 -32
- package/node_modules/check-disk-space/dist/check-disk-space.d.mts +58 -0
- package/node_modules/check-disk-space/dist/check-disk-space.mjs +170 -190
- package/node_modules/check-disk-space/package.json +43 -71
- package/node_modules/cpu-features/build/Makefile +2 -2
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_windows.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o.d +1 -1
- package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpufeatures/src/binding.o.d +157 -145
- package/node_modules/cpu-features/build/Release/cpufeatures.node +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpufeatures/src/binding.o +0 -0
- package/node_modules/cpu-features/build/Release/obj.target/cpufeatures.node +0 -0
- package/node_modules/cpu-features/build/config.gypi +100 -31
- package/node_modules/cpu-features/build/cpufeatures.target.mk +14 -14
- package/node_modules/cpu-features/build/deps/cpu_features/cpu_features.target.mk +14 -14
- 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/ssh2/lib/protocol/crypto/build/Makefile +2 -2
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto/src/binding.o.d.raw +136 -0
- package/node_modules/ssh2/lib/protocol/crypto/build/sshcrypto.target.mk +14 -14
- 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 +28 -8
- 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 +124 -17
- 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 +85 -31
- 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 +9 -7
- package/node_modules/undici/types/api.d.ts +1 -1
- 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/undici/types/utility.d.ts +4 -4
- package/node_modules/{fetch-retry → unicode-segmenter}/LICENSE +2 -2
- 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 +48 -17
- 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/dist/lib/analytics/clients/client.js +0 -1
- package/dist/lib/analytics/clients/pendo.js +0 -78
- 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/helpers/check-version.js +0 -16
- 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/check-disk-space/dist/check-disk-space.cjs +0 -210
- package/node_modules/check-disk-space/dist/check-disk-space.d.ts +0 -53
- package/node_modules/fetch-retry/.eslintignore +0 -1
- package/node_modules/fetch-retry/.eslintrc.yml +0 -20
- package/node_modules/fetch-retry/.github/workflows/node.js.yml +0 -32
- package/node_modules/fetch-retry/.husky/pre-commit +0 -6
- package/node_modules/fetch-retry/.nycrc.json +0 -24
- package/node_modules/fetch-retry/.travis.yml +0 -3
- package/node_modules/fetch-retry/README.md +0 -128
- package/node_modules/fetch-retry/dist/fetch-retry.umd.js +0 -151
- package/node_modules/fetch-retry/index.d.ts +0 -29
- package/node_modules/fetch-retry/index.js +0 -143
- package/node_modules/fetch-retry/package.json +0 -41
- package/node_modules/fetch-retry/rollup.config.js +0 -12
- package/node_modules/fetch-retry/test/.eslintrc.yml +0 -7
- package/node_modules/fetch-retry/test/integration/index.js +0 -212
- package/node_modules/fetch-retry/test/integration/mock-api/index.js +0 -42
- package/node_modules/fetch-retry/test/unit/index.js +0 -1169
- 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/LICENSE +0 -21
- 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/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto/src/binding.o.d +0 -265
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto.node.d +0 -1
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/sshcrypto.node.d +0 -1
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto.node +0 -0
- package/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
- 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
|
/**
|
|
3
3
|
* Create a bound version of a function with a specified `this` context
|
|
4
4
|
*
|
|
@@ -25,12 +25,65 @@ const hasOwnProperty = (
|
|
|
25
25
|
hasOwnProperty.call(obj, prop)
|
|
26
26
|
)(Object.prototype);
|
|
27
27
|
|
|
28
|
+
const isUnsafeObjectKey = (prop) =>
|
|
29
|
+
typeof prop === 'string' &&
|
|
30
|
+
(prop === '__proto__' || prop === 'constructor' || prop === 'prototype');
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Determine whether an inherited object must be treated as a shared-prototype
|
|
34
|
+
* boundary. Cross-realm Object.prototype objects cannot be distinguished
|
|
35
|
+
* reliably from application-created null-prototype objects because their
|
|
36
|
+
* properties are mutable, so all inherited terminal prototypes are excluded
|
|
37
|
+
* as a fail-closed boundary. A null-prototype source still keeps its own
|
|
38
|
+
* properties, as produced by mergeConfig and other safe materialization paths.
|
|
39
|
+
*
|
|
40
|
+
* @param {*} obj The object to inspect
|
|
41
|
+
* @param {*} prototype The object's prototype
|
|
42
|
+
* @param {boolean} source Whether obj is the original traversal source
|
|
43
|
+
*
|
|
44
|
+
* @returns {boolean} True when obj is a safe prototype traversal boundary
|
|
45
|
+
*/
|
|
46
|
+
const isPrototypeBoundary = (obj, prototype, source) =>
|
|
47
|
+
obj === Object.prototype || (!source && prototype === null);
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Determine whether an object can retain its identity through code paths that
|
|
51
|
+
* add, replace, and remove config properties without bypassing unsafe-key
|
|
52
|
+
* filtering. Immutable objects, unsafe-key-bearing objects, and objects with
|
|
53
|
+
* accessor or restricted data properties must be materialized instead.
|
|
54
|
+
*
|
|
55
|
+
* @param {*} obj The object to inspect
|
|
56
|
+
*
|
|
57
|
+
* @returns {boolean} True when every own property is safe and fully mutable
|
|
58
|
+
*/
|
|
59
|
+
const isSafeAndFullyMutable = (obj) => {
|
|
60
|
+
if (!Object.isExtensible(obj)) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const props = Object.getOwnPropertyNames(obj);
|
|
65
|
+
|
|
66
|
+
if (Object.getOwnPropertySymbols) {
|
|
67
|
+
props.push(...Object.getOwnPropertySymbols(obj));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return props.every((prop) => {
|
|
71
|
+
if (isUnsafeObjectKey(prop)) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
|
|
76
|
+
|
|
77
|
+
return !!descriptor && descriptor.configurable && descriptor.writable === true;
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
|
|
28
81
|
/**
|
|
29
|
-
* Walk the prototype chain (excluding the
|
|
30
|
-
* an own `prop`. This distinguishes genuine own/inherited members
|
|
31
|
-
* class accessors and template prototypes — from members injected
|
|
32
|
-
* Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
|
|
33
|
-
* live on Object.prototype itself and are therefore never matched.
|
|
82
|
+
* Walk the prototype chain (excluding the source realm's Object.prototype)
|
|
83
|
+
* looking for an own `prop`. This distinguishes genuine own/inherited members
|
|
84
|
+
* — including class accessors and template prototypes — from members injected
|
|
85
|
+
* via Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
|
|
86
|
+
* which live on Object.prototype itself and are therefore never matched.
|
|
34
87
|
*
|
|
35
88
|
* @param {*} thing The value whose chain to inspect
|
|
36
89
|
* @param {string|symbol} prop The property key to look for
|
|
@@ -41,16 +94,22 @@ const hasOwnInPrototypeChain = (thing, prop) => {
|
|
|
41
94
|
let obj = thing;
|
|
42
95
|
const seen = [];
|
|
43
96
|
|
|
44
|
-
while (obj != null
|
|
97
|
+
while (obj != null) {
|
|
45
98
|
if (seen.indexOf(obj) !== -1) {
|
|
46
99
|
return false;
|
|
47
100
|
}
|
|
48
101
|
seen.push(obj);
|
|
49
102
|
|
|
103
|
+
const prototype = getPrototypeOf(obj);
|
|
104
|
+
|
|
105
|
+
if (isPrototypeBoundary(obj, prototype, obj === thing)) {
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
|
|
50
109
|
if (hasOwnProperty(obj, prop)) {
|
|
51
110
|
return true;
|
|
52
111
|
}
|
|
53
|
-
obj =
|
|
112
|
+
obj = prototype;
|
|
54
113
|
}
|
|
55
114
|
return false;
|
|
56
115
|
};
|
|
@@ -69,6 +128,69 @@ const hasOwnInPrototypeChain = (thing, prop) => {
|
|
|
69
128
|
const getSafeProp = (obj, prop) =>
|
|
70
129
|
obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;
|
|
71
130
|
|
|
131
|
+
/**
|
|
132
|
+
* Flatten an object and its application-defined prototype chain into a
|
|
133
|
+
* null-prototype object. Members inherited only from the source realm's
|
|
134
|
+
* Object.prototype are deliberately excluded, while class/template members
|
|
135
|
+
* below that boundary are preserved.
|
|
136
|
+
*
|
|
137
|
+
* @param {*} thing The value to flatten
|
|
138
|
+
*
|
|
139
|
+
* @returns {*} A null-prototype copy, or the original value when it is already
|
|
140
|
+
* structurally safe or is not an object
|
|
141
|
+
*/
|
|
142
|
+
const toSafeFlatObject = (thing) => {
|
|
143
|
+
if (thing == null || (typeof thing !== 'object' && typeof thing !== 'function')) {
|
|
144
|
+
return thing;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const sourcePrototype = getPrototypeOf(thing);
|
|
148
|
+
|
|
149
|
+
if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
|
|
150
|
+
return thing;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
const result = Object.create(null);
|
|
154
|
+
const merged = Object.create(null);
|
|
155
|
+
const seen = [];
|
|
156
|
+
let current = thing;
|
|
157
|
+
|
|
158
|
+
while (current != null) {
|
|
159
|
+
if (seen.indexOf(current) !== -1) {
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
seen.push(current);
|
|
164
|
+
|
|
165
|
+
const prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
|
|
166
|
+
|
|
167
|
+
if (isPrototypeBoundary(current, prototype, current === thing)) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const props = Object.getOwnPropertyNames(current);
|
|
172
|
+
|
|
173
|
+
if (Object.getOwnPropertySymbols) {
|
|
174
|
+
props.push(...Object.getOwnPropertySymbols(current));
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
for (const prop of props) {
|
|
178
|
+
if (isUnsafeObjectKey(prop)) {
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (!hasOwnProperty(merged, prop)) {
|
|
183
|
+
result[prop] = thing[prop];
|
|
184
|
+
merged[prop] = true;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
current = prototype;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return result;
|
|
192
|
+
};
|
|
193
|
+
|
|
72
194
|
const kindOf = ((cache) => (thing) => {
|
|
73
195
|
const str = toString.call(thing);
|
|
74
196
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -200,12 +322,10 @@ const isPlainObject = (val) => {
|
|
|
200
322
|
|
|
201
323
|
const prototype = getPrototypeOf(val);
|
|
202
324
|
return (
|
|
203
|
-
(prototype === null ||
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
//
|
|
207
|
-
// Symbol.iterator as evidence the value is a tagged/iterable type rather
|
|
208
|
-
// than a plain object, while ignoring keys injected onto Object.prototype.
|
|
325
|
+
(prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) &&
|
|
326
|
+
// Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
|
|
327
|
+
// evidence the value is tagged/iterable, while ignoring members reachable
|
|
328
|
+
// only through shared or terminal prototype boundaries.
|
|
209
329
|
!hasOwnInPrototypeChain(val, toStringTag) &&
|
|
210
330
|
!hasOwnInPrototypeChain(val, iterator)
|
|
211
331
|
);
|
|
@@ -292,6 +412,7 @@ const isBlob = kindOfTest('Blob');
|
|
|
292
412
|
* @returns {boolean} True if value is a FileList, otherwise false
|
|
293
413
|
*/
|
|
294
414
|
const isFileList = kindOfTest('FileList');
|
|
415
|
+
const isSet = kindOfTest('Set');
|
|
295
416
|
|
|
296
417
|
/**
|
|
297
418
|
* Determine if a value is a Stream
|
|
@@ -857,12 +978,23 @@ const toJSONObject = (obj) => {
|
|
|
857
978
|
if (!('toJSON' in source)) {
|
|
858
979
|
// add-on descent / delete-on-ascent: preserves path semantics, so DAG nodes serialise at every occurrence (see #7230).
|
|
859
980
|
visited.add(source);
|
|
860
|
-
const target = isArray(source) ? [] : {};
|
|
861
981
|
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
982
|
+
let target;
|
|
983
|
+
|
|
984
|
+
if (isSet(source)) {
|
|
985
|
+
target = [];
|
|
986
|
+
for (const value of source) {
|
|
987
|
+
const reducedValue = visit(value);
|
|
988
|
+
!isUndefined(reducedValue) && target.push(reducedValue);
|
|
989
|
+
}
|
|
990
|
+
} else {
|
|
991
|
+
target = isArray(source) ? [] : {};
|
|
992
|
+
|
|
993
|
+
forEach(source, (value, key) => {
|
|
994
|
+
const reducedValue = visit(value);
|
|
995
|
+
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
996
|
+
});
|
|
997
|
+
}
|
|
866
998
|
|
|
867
999
|
visited.delete(source);
|
|
868
1000
|
|
|
@@ -1007,6 +1139,7 @@ var utils$1 = {
|
|
|
1007
1139
|
hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
|
|
1008
1140
|
hasOwnInPrototypeChain,
|
|
1009
1141
|
getSafeProp,
|
|
1142
|
+
toSafeFlatObject,
|
|
1010
1143
|
reduceDescriptors,
|
|
1011
1144
|
freezeMethods,
|
|
1012
1145
|
toObjectSet,
|
|
@@ -1074,18 +1207,20 @@ var parseHeaders = (rawHeaders) => {
|
|
|
1074
1207
|
key = line.substring(0, i).trim().toLowerCase();
|
|
1075
1208
|
val = line.substring(i + 1).trim();
|
|
1076
1209
|
|
|
1077
|
-
|
|
1210
|
+
const hasKey = utils$1.hasOwnProp(parsed, key);
|
|
1211
|
+
|
|
1212
|
+
if (!key || (hasKey && utils$1.hasOwnProp(ignoreDuplicateOf, key))) {
|
|
1078
1213
|
return;
|
|
1079
1214
|
}
|
|
1080
1215
|
|
|
1081
1216
|
if (key === 'set-cookie') {
|
|
1082
|
-
if (
|
|
1217
|
+
if (hasKey) {
|
|
1083
1218
|
parsed[key].push(val);
|
|
1084
1219
|
} else {
|
|
1085
1220
|
parsed[key] = [val];
|
|
1086
1221
|
}
|
|
1087
1222
|
} else {
|
|
1088
|
-
parsed[key] =
|
|
1223
|
+
parsed[key] = hasKey ? parsed[key] + ', ' + val : val;
|
|
1089
1224
|
}
|
|
1090
1225
|
});
|
|
1091
1226
|
|
|
@@ -1149,7 +1284,7 @@ function toByteStringHeaderObject(headers) {
|
|
|
1149
1284
|
return byteStringHeaders;
|
|
1150
1285
|
}
|
|
1151
1286
|
|
|
1152
|
-
const $internals = Symbol('internals');
|
|
1287
|
+
const $internals$1 = Symbol('internals');
|
|
1153
1288
|
|
|
1154
1289
|
function normalizeHeader(header) {
|
|
1155
1290
|
return header && String(header).trim().toLowerCase();
|
|
@@ -1175,6 +1310,124 @@ function parseTokens(str) {
|
|
|
1175
1310
|
return tokens;
|
|
1176
1311
|
}
|
|
1177
1312
|
|
|
1313
|
+
const parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
1314
|
+
|
|
1315
|
+
function trimOWS(value) {
|
|
1316
|
+
let start = 0;
|
|
1317
|
+
let end = value.length;
|
|
1318
|
+
|
|
1319
|
+
while (start < end) {
|
|
1320
|
+
const code = value.charCodeAt(start);
|
|
1321
|
+
|
|
1322
|
+
if (code !== 0x09 && code !== 0x20) {
|
|
1323
|
+
break;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
start += 1;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
while (end > start) {
|
|
1330
|
+
const code = value.charCodeAt(end - 1);
|
|
1331
|
+
|
|
1332
|
+
if (code !== 0x09 && code !== 0x20) {
|
|
1333
|
+
break;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
end -= 1;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
return start === 0 && end === value.length ? value : value.slice(start, end);
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
function decodeQuotedString(value) {
|
|
1343
|
+
const last = value.length - 1;
|
|
1344
|
+
|
|
1345
|
+
if (last < 1 || value.charCodeAt(0) !== 0x22 || value.charCodeAt(last) !== 0x22) {
|
|
1346
|
+
return value;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
let decoded = '';
|
|
1350
|
+
|
|
1351
|
+
for (let i = 1; i < last; i++) {
|
|
1352
|
+
const code = value.charCodeAt(i);
|
|
1353
|
+
|
|
1354
|
+
if (code === 0x22) {
|
|
1355
|
+
return value;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
if (code === 0x5c) {
|
|
1359
|
+
i += 1;
|
|
1360
|
+
|
|
1361
|
+
if (i >= last) {
|
|
1362
|
+
return value;
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
decoded += value[i];
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
return decoded;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
function parseParameters(value) {
|
|
1373
|
+
const parameters = Object.create(null);
|
|
1374
|
+
const str = String(value);
|
|
1375
|
+
let start = 0;
|
|
1376
|
+
let quoted = false;
|
|
1377
|
+
let escaped = false;
|
|
1378
|
+
|
|
1379
|
+
function parseParameter(end) {
|
|
1380
|
+
const part = trimOWS(str.slice(start, end));
|
|
1381
|
+
const equals = part.indexOf('=');
|
|
1382
|
+
|
|
1383
|
+
if (equals < 1) {
|
|
1384
|
+
return;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
const name = trimOWS(part.slice(0, equals));
|
|
1388
|
+
|
|
1389
|
+
if (!parameterNameRE.test(name)) {
|
|
1390
|
+
return;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
const normalizedName = name.toLowerCase();
|
|
1394
|
+
|
|
1395
|
+
if (
|
|
1396
|
+
normalizedName === '__proto__' ||
|
|
1397
|
+
normalizedName === 'constructor' ||
|
|
1398
|
+
normalizedName === 'prototype'
|
|
1399
|
+
) {
|
|
1400
|
+
return;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
const parameterValue = trimOWS(part.slice(equals + 1));
|
|
1404
|
+
parameters[normalizedName] = decodeQuotedString(parameterValue);
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
for (let i = 0; i < str.length; i++) {
|
|
1408
|
+
const code = str.charCodeAt(i);
|
|
1409
|
+
|
|
1410
|
+
if (quoted) {
|
|
1411
|
+
if (escaped) {
|
|
1412
|
+
escaped = false;
|
|
1413
|
+
} else if (code === 0x5c) {
|
|
1414
|
+
escaped = true;
|
|
1415
|
+
} else if (code === 0x22) {
|
|
1416
|
+
quoted = false;
|
|
1417
|
+
}
|
|
1418
|
+
} else if (code === 0x22) {
|
|
1419
|
+
quoted = true;
|
|
1420
|
+
} else if (code === 0x2c || code === 0x3b) {
|
|
1421
|
+
parseParameter(i);
|
|
1422
|
+
start = i + 1;
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
parseParameter(str.length);
|
|
1427
|
+
|
|
1428
|
+
return parameters;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1178
1431
|
const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
1179
1432
|
|
|
1180
1433
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
@@ -1426,7 +1679,8 @@ let AxiosHeaders$1 = class AxiosHeaders {
|
|
|
1426
1679
|
}
|
|
1427
1680
|
|
|
1428
1681
|
getSetCookie() {
|
|
1429
|
-
|
|
1682
|
+
const value = this.get('set-cookie');
|
|
1683
|
+
return utils$1.isArray(value) ? value : value == null || value === false ? [] : [value];
|
|
1430
1684
|
}
|
|
1431
1685
|
|
|
1432
1686
|
get [Symbol.toStringTag]() {
|
|
@@ -1437,6 +1691,10 @@ let AxiosHeaders$1 = class AxiosHeaders {
|
|
|
1437
1691
|
return thing instanceof this ? thing : new this(thing);
|
|
1438
1692
|
}
|
|
1439
1693
|
|
|
1694
|
+
static parseParameters(value) {
|
|
1695
|
+
return parseParameters(value);
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1440
1698
|
static concat(first, ...targets) {
|
|
1441
1699
|
const computed = new this(first);
|
|
1442
1700
|
|
|
@@ -1447,8 +1705,8 @@ let AxiosHeaders$1 = class AxiosHeaders {
|
|
|
1447
1705
|
|
|
1448
1706
|
static accessor(header) {
|
|
1449
1707
|
const internals =
|
|
1450
|
-
(this[$internals] =
|
|
1451
|
-
this[$internals] =
|
|
1708
|
+
(this[$internals$1] =
|
|
1709
|
+
this[$internals$1] =
|
|
1452
1710
|
{
|
|
1453
1711
|
accessors: {},
|
|
1454
1712
|
});
|
|
@@ -1562,9 +1820,40 @@ function redactConfig(config, redactKeys) {
|
|
|
1562
1820
|
return visit(config);
|
|
1563
1821
|
}
|
|
1564
1822
|
|
|
1823
|
+
function stringifySafely$1(value) {
|
|
1824
|
+
try {
|
|
1825
|
+
return String(value);
|
|
1826
|
+
} catch (err) {
|
|
1827
|
+
return '';
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
function aggregateErrorMessage(error) {
|
|
1832
|
+
const message = error.errors
|
|
1833
|
+
.map((entry) => {
|
|
1834
|
+
try {
|
|
1835
|
+
return entry && entry.message ? stringifySafely$1(entry.message) : stringifySafely$1(entry);
|
|
1836
|
+
} catch (err) {
|
|
1837
|
+
return '';
|
|
1838
|
+
}
|
|
1839
|
+
})
|
|
1840
|
+
.filter(Boolean)
|
|
1841
|
+
.join('; ');
|
|
1842
|
+
|
|
1843
|
+
return message || error.name || 'AggregateError';
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1565
1846
|
let AxiosError$1 = class AxiosError extends Error {
|
|
1566
1847
|
static from(error, code, config, request, response, customProps) {
|
|
1567
|
-
|
|
1848
|
+
// `AggregateError` (thrown by Node on dual-stack/Happy-Eyeballs connection
|
|
1849
|
+
// failures) has an empty `message`; its detail lives in `errors[]`. Without
|
|
1850
|
+
// this, the wrapped error surfaces with a blank message (see #6721).
|
|
1851
|
+
let message = error.message;
|
|
1852
|
+
if (!message && utils$1.isArray(error.errors) && error.errors.length) {
|
|
1853
|
+
message = aggregateErrorMessage(error);
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
const axiosError = new AxiosError(message, code || error.code, config, request, response);
|
|
1568
1857
|
// Match native `Error` `cause` semantics: non-enumerable. The wrapped
|
|
1569
1858
|
// error often carries circular internals (sockets, requests, agents), so
|
|
1570
1859
|
// an enumerable `cause` makes structured loggers (pino/winston) and any
|
|
@@ -1771,28 +2060,18 @@ function toFormData$1(obj, formData, options) {
|
|
|
1771
2060
|
// eslint-disable-next-line no-param-reassign
|
|
1772
2061
|
formData = formData || new (FormData)();
|
|
1773
2062
|
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
metaTokens: true,
|
|
1779
|
-
dots: false,
|
|
1780
|
-
indexes: false,
|
|
1781
|
-
},
|
|
1782
|
-
false,
|
|
1783
|
-
function defined(option, source) {
|
|
1784
|
-
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
1785
|
-
return !utils$1.isUndefined(source[option]);
|
|
1786
|
-
}
|
|
1787
|
-
);
|
|
2063
|
+
const option = (name, fallback) => {
|
|
2064
|
+
const value = utils$1.getSafeProp(options, name);
|
|
2065
|
+
return utils$1.isUndefined(value) ? fallback : value;
|
|
2066
|
+
};
|
|
1788
2067
|
|
|
1789
|
-
const metaTokens =
|
|
2068
|
+
const metaTokens = option('metaTokens', true);
|
|
1790
2069
|
// eslint-disable-next-line no-use-before-define
|
|
1791
|
-
const visitor =
|
|
1792
|
-
const dots =
|
|
1793
|
-
const indexes =
|
|
1794
|
-
const _Blob =
|
|
1795
|
-
const maxDepth =
|
|
2070
|
+
const visitor = option('visitor') || defaultVisitor;
|
|
2071
|
+
const dots = option('dots', false);
|
|
2072
|
+
const indexes = option('indexes', false);
|
|
2073
|
+
const _Blob = option('Blob') || (typeof Blob !== 'undefined' && Blob);
|
|
2074
|
+
const maxDepth = option('maxDepth', DEFAULT_FORM_DATA_MAX_DEPTH);
|
|
1796
2075
|
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
1797
2076
|
const stack = [];
|
|
1798
2077
|
|
|
@@ -1819,10 +2098,10 @@ function toFormData$1(obj, formData, options) {
|
|
|
1819
2098
|
if (useBlob && typeof _Blob === 'function') {
|
|
1820
2099
|
return new _Blob([value]);
|
|
1821
2100
|
}
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
2101
|
+
throw new AxiosError$1(
|
|
2102
|
+
'Blob is not supported. Use a Buffer instead.',
|
|
2103
|
+
AxiosError$1.ERR_NOT_SUPPORT
|
|
2104
|
+
);
|
|
1826
2105
|
}
|
|
1827
2106
|
|
|
1828
2107
|
return value;
|
|
@@ -2074,9 +2353,57 @@ function buildURL(url, params, options) {
|
|
|
2074
2353
|
return url;
|
|
2075
2354
|
}
|
|
2076
2355
|
|
|
2356
|
+
const $internals = Symbol('internals');
|
|
2357
|
+
|
|
2358
|
+
// `handlers` is public and may be replaced with a nullish value by user code;
|
|
2359
|
+
// `clear()` has always tolerated that. Treat it as an empty stack rather than
|
|
2360
|
+
// dereferencing it.
|
|
2361
|
+
function countHandlers(handlers) {
|
|
2362
|
+
return handlers ? handlers.length : 0;
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2365
|
+
function trimHandlers(handlers) {
|
|
2366
|
+
if (!handlers) {
|
|
2367
|
+
return;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
while (handlers.length && handlers[handlers.length - 1] === null) {
|
|
2371
|
+
handlers.pop();
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
function syncHandlerEntries(manager, internals) {
|
|
2376
|
+
const handlers = manager.handlers;
|
|
2377
|
+
const length = countHandlers(handlers);
|
|
2378
|
+
|
|
2379
|
+
if (handlers !== internals.handlersRef) {
|
|
2380
|
+
internals.handlersRef = handlers;
|
|
2381
|
+
internals.handlerEntries.clear();
|
|
2382
|
+
} else if (length !== internals.handlersLength) {
|
|
2383
|
+
if (!length) {
|
|
2384
|
+
internals.handlerEntries.clear();
|
|
2385
|
+
} else {
|
|
2386
|
+
internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
|
|
2387
|
+
if (handlers[entry.index] !== entry.handler) {
|
|
2388
|
+
internals.handlerEntries.delete(id);
|
|
2389
|
+
}
|
|
2390
|
+
});
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
internals.handlersLength = length;
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2077
2397
|
class InterceptorManager {
|
|
2078
2398
|
constructor() {
|
|
2079
2399
|
this.handlers = [];
|
|
2400
|
+
this[$internals] = {
|
|
2401
|
+
handlersRef: this.handlers,
|
|
2402
|
+
handlersLength: this.handlers.length,
|
|
2403
|
+
handlerEntries: new Map(),
|
|
2404
|
+
iterationDepth: 0,
|
|
2405
|
+
nextId: 0,
|
|
2406
|
+
};
|
|
2080
2407
|
}
|
|
2081
2408
|
|
|
2082
2409
|
/**
|
|
@@ -2089,13 +2416,30 @@ class InterceptorManager {
|
|
|
2089
2416
|
* @return {Number} An ID used to remove interceptor later
|
|
2090
2417
|
*/
|
|
2091
2418
|
use(fulfilled, rejected, options) {
|
|
2092
|
-
|
|
2419
|
+
const handler = {
|
|
2093
2420
|
fulfilled,
|
|
2094
2421
|
rejected,
|
|
2095
2422
|
synchronous: options ? options.synchronous : false,
|
|
2096
2423
|
runWhen: options ? options.runWhen : null,
|
|
2424
|
+
};
|
|
2425
|
+
const internals = this[$internals];
|
|
2426
|
+
|
|
2427
|
+
if (this.handlers == null) {
|
|
2428
|
+
this.handlers = [];
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
syncHandlerEntries(this, internals);
|
|
2432
|
+
|
|
2433
|
+
const id = internals.nextId++;
|
|
2434
|
+
|
|
2435
|
+
this.handlers.push(handler);
|
|
2436
|
+
internals.handlerEntries.set(id, {
|
|
2437
|
+
handler,
|
|
2438
|
+
index: this.handlers.length - 1,
|
|
2097
2439
|
});
|
|
2098
|
-
|
|
2440
|
+
internals.handlersLength = this.handlers.length;
|
|
2441
|
+
|
|
2442
|
+
return id;
|
|
2099
2443
|
}
|
|
2100
2444
|
|
|
2101
2445
|
/**
|
|
@@ -2106,8 +2450,27 @@ class InterceptorManager {
|
|
|
2106
2450
|
* @returns {void}
|
|
2107
2451
|
*/
|
|
2108
2452
|
eject(id) {
|
|
2109
|
-
|
|
2110
|
-
|
|
2453
|
+
const internals = this[$internals];
|
|
2454
|
+
|
|
2455
|
+
syncHandlerEntries(this, internals);
|
|
2456
|
+
|
|
2457
|
+
const entry = internals.handlerEntries.get(id);
|
|
2458
|
+
|
|
2459
|
+
if (entry) {
|
|
2460
|
+
internals.handlerEntries.delete(id);
|
|
2461
|
+
|
|
2462
|
+
// Ignore IDs invalidated by clear or direct replacement of handlers.
|
|
2463
|
+
if (this.handlers[entry.index] !== entry.handler) {
|
|
2464
|
+
return;
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
this.handlers[entry.index] = null;
|
|
2468
|
+
|
|
2469
|
+
// Do not reuse an index while forEach is walking its length snapshot.
|
|
2470
|
+
if (!internals.iterationDepth) {
|
|
2471
|
+
trimHandlers(this.handlers);
|
|
2472
|
+
internals.handlersLength = this.handlers.length;
|
|
2473
|
+
}
|
|
2111
2474
|
}
|
|
2112
2475
|
}
|
|
2113
2476
|
|
|
@@ -2119,6 +2482,7 @@ class InterceptorManager {
|
|
|
2119
2482
|
clear() {
|
|
2120
2483
|
if (this.handlers) {
|
|
2121
2484
|
this.handlers = [];
|
|
2485
|
+
syncHandlerEntries(this, this[$internals]);
|
|
2122
2486
|
}
|
|
2123
2487
|
}
|
|
2124
2488
|
|
|
@@ -2133,11 +2497,25 @@ class InterceptorManager {
|
|
|
2133
2497
|
* @returns {void}
|
|
2134
2498
|
*/
|
|
2135
2499
|
forEach(fn) {
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2500
|
+
const internals = this[$internals];
|
|
2501
|
+
|
|
2502
|
+
syncHandlerEntries(this, internals);
|
|
2503
|
+
|
|
2504
|
+
internals.iterationDepth++;
|
|
2505
|
+
|
|
2506
|
+
try {
|
|
2507
|
+
utils$1.forEach(this.handlers, function forEachHandler(h) {
|
|
2508
|
+
if (h !== null) {
|
|
2509
|
+
fn(h);
|
|
2510
|
+
}
|
|
2511
|
+
});
|
|
2512
|
+
} finally {
|
|
2513
|
+
if (!--internals.iterationDepth) {
|
|
2514
|
+
syncHandlerEntries(this, internals);
|
|
2515
|
+
trimHandlers(this.handlers);
|
|
2516
|
+
internals.handlersLength = countHandlers(this.handlers);
|
|
2139
2517
|
}
|
|
2140
|
-
}
|
|
2518
|
+
}
|
|
2141
2519
|
}
|
|
2142
2520
|
}
|
|
2143
2521
|
|
|
@@ -2258,12 +2636,18 @@ function throwIfDepthExceeded(index) {
|
|
|
2258
2636
|
* @returns An array of strings.
|
|
2259
2637
|
*/
|
|
2260
2638
|
function parsePropPath(name) {
|
|
2261
|
-
// foo[x][y][z]
|
|
2262
|
-
// foo.x.y.z
|
|
2263
|
-
//
|
|
2264
|
-
//
|
|
2639
|
+
// foo[x][y][z] -> ['foo', 'x', 'y', 'z']
|
|
2640
|
+
// foo.x.y.z -> ['foo', 'x', 'y', 'z']
|
|
2641
|
+
// A path is split on `.` and on `[...]` groups. A segment — whether written
|
|
2642
|
+
// in dot notation or captured inside brackets — may contain any character
|
|
2643
|
+
// except `.`, `[` and `]`, so a key like `user-name` or `user name` is kept
|
|
2644
|
+
// literal instead of being split (#5402). `.`, `[` and `]` keep their existing
|
|
2645
|
+
// meaning, e.g. `foo[bar.baz]` -> ['foo', 'bar', 'baz'] and `[]` is an array push.
|
|
2646
|
+
// Excluding `[` from the bracket group also makes the match fail fast at the
|
|
2647
|
+
// next `[`, so a malformed name cannot rescan to the end of the string from
|
|
2648
|
+
// every unmatched `[` — parsing stays linear in the length of the name.
|
|
2265
2649
|
const path = [];
|
|
2266
|
-
const pattern =
|
|
2650
|
+
const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
|
|
2267
2651
|
let match;
|
|
2268
2652
|
|
|
2269
2653
|
while ((match = pattern.exec(name)) !== null) {
|
|
@@ -2351,6 +2735,20 @@ function formDataToJSON(formData) {
|
|
|
2351
2735
|
return null;
|
|
2352
2736
|
}
|
|
2353
2737
|
|
|
2738
|
+
const methodList = Object.freeze([
|
|
2739
|
+
'get',
|
|
2740
|
+
'delete',
|
|
2741
|
+
'head',
|
|
2742
|
+
'options',
|
|
2743
|
+
'post',
|
|
2744
|
+
'put',
|
|
2745
|
+
'patch',
|
|
2746
|
+
'purge',
|
|
2747
|
+
'link',
|
|
2748
|
+
'unlink',
|
|
2749
|
+
'query',
|
|
2750
|
+
]);
|
|
2751
|
+
|
|
2354
2752
|
const own = (obj, key) => (obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : undefined);
|
|
2355
2753
|
|
|
2356
2754
|
/**
|
|
@@ -2513,7 +2911,7 @@ const defaults = {
|
|
|
2513
2911
|
},
|
|
2514
2912
|
};
|
|
2515
2913
|
|
|
2516
|
-
utils$1.forEach(
|
|
2914
|
+
utils$1.forEach(methodList, (method) => {
|
|
2517
2915
|
defaults.headers[method] = {};
|
|
2518
2916
|
});
|
|
2519
2917
|
|
|
@@ -2585,6 +2983,29 @@ function settle(resolve, reject, response) {
|
|
|
2585
2983
|
}
|
|
2586
2984
|
}
|
|
2587
2985
|
|
|
2986
|
+
const urlParserControlCharacters = /[\t\n\r]/g;
|
|
2987
|
+
|
|
2988
|
+
/**
|
|
2989
|
+
* Match WHATWG URL preprocessing before checking a URL's protocol.
|
|
2990
|
+
*
|
|
2991
|
+
* @param {string} url
|
|
2992
|
+
*
|
|
2993
|
+
* @returns {string}
|
|
2994
|
+
*/
|
|
2995
|
+
function normalizeURLForProtocolCheck(url) {
|
|
2996
|
+
if (typeof url !== 'string') {
|
|
2997
|
+
return url;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
let start = 0;
|
|
3001
|
+
|
|
3002
|
+
while (start < url.length && url.charCodeAt(start) <= 0x20) {
|
|
3003
|
+
start++;
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
return url.slice(start).replace(urlParserControlCharacters, '');
|
|
3007
|
+
}
|
|
3008
|
+
|
|
2588
3009
|
function parseProtocol(url) {
|
|
2589
3010
|
const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
|
|
2590
3011
|
return (match && match[1]) || '';
|
|
@@ -2646,7 +3067,7 @@ function speedometer(samplesCount, min) {
|
|
|
2646
3067
|
* Throttle decorator
|
|
2647
3068
|
* @param {Function} fn
|
|
2648
3069
|
* @param {Number} freq
|
|
2649
|
-
* @return {Function}
|
|
3070
|
+
* @return {Array<Function>}
|
|
2650
3071
|
*/
|
|
2651
3072
|
function throttle(fn, freq) {
|
|
2652
3073
|
let timestamp = 0;
|
|
@@ -2681,8 +3102,9 @@ function throttle(fn, freq) {
|
|
|
2681
3102
|
};
|
|
2682
3103
|
|
|
2683
3104
|
const flush = () => lastArgs && invoke(lastArgs);
|
|
3105
|
+
const flushWith = (...args) => invoke(args);
|
|
2684
3106
|
|
|
2685
|
-
return [throttled, flush];
|
|
3107
|
+
return [throttled, flush, flushWith];
|
|
2686
3108
|
}
|
|
2687
3109
|
|
|
2688
3110
|
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
@@ -2690,12 +3112,12 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
2690
3112
|
const _speedometer = speedometer(50, 250);
|
|
2691
3113
|
|
|
2692
3114
|
return throttle((e) => {
|
|
2693
|
-
if (!e ||
|
|
3115
|
+
if (!e || !utils$1.isNumber(e.loaded)) {
|
|
2694
3116
|
return;
|
|
2695
3117
|
}
|
|
2696
3118
|
const rawLoaded = e.loaded;
|
|
2697
3119
|
const total = e.lengthComputable ? e.total : undefined;
|
|
2698
|
-
const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
|
|
3120
|
+
const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
|
|
2699
3121
|
const progressBytes = Math.max(0, loaded - bytesNotified);
|
|
2700
3122
|
const rate = _speedometer(progressBytes);
|
|
2701
3123
|
|
|
@@ -2732,9 +3154,9 @@ const progressEventDecorator = (total, throttled) => {
|
|
|
2732
3154
|
};
|
|
2733
3155
|
|
|
2734
3156
|
const asyncDecorator =
|
|
2735
|
-
(fn) =>
|
|
3157
|
+
(fn, scheduler = utils$1.asap) =>
|
|
2736
3158
|
(...args) =>
|
|
2737
|
-
|
|
3159
|
+
scheduler(() => fn(...args));
|
|
2738
3160
|
|
|
2739
3161
|
var isURLSameOrigin = platform.hasStandardBrowserEnv
|
|
2740
3162
|
? ((origin, isMSIE) => (url) => {
|
|
@@ -2840,33 +3262,66 @@ function isAbsoluteURL(url) {
|
|
|
2840
3262
|
* @returns {string} The combined URL
|
|
2841
3263
|
*/
|
|
2842
3264
|
function combineURLs(baseURL, relativeURL) {
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
3265
|
+
if (!relativeURL) {
|
|
3266
|
+
return baseURL;
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
let end = baseURL.length;
|
|
3270
|
+
|
|
3271
|
+
while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
|
|
3272
|
+
end--;
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
return baseURL.slice(0, end) + '/' + relativeURL.replace(/^\/+/, '');
|
|
2846
3276
|
}
|
|
2847
3277
|
|
|
2848
3278
|
const malformedHttpProtocol = /^https?:(?!\/\/)/i;
|
|
2849
|
-
const httpProtocolControlCharacters = /[\t\n\r]/g;
|
|
2850
3279
|
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
3280
|
+
// Redact the parts of a URL that can carry secrets before it is embedded in an
|
|
3281
|
+
// error message. AxiosError.toJSON() serializes `message` verbatim and errors
|
|
3282
|
+
// are commonly logged, while the opt-in `config.redact` model only cleans
|
|
3283
|
+
// config keys — it cannot reach the message. Redact only the genuinely
|
|
3284
|
+
// sensitive substrings — userinfo (credentials), query parameter values and
|
|
3285
|
+
// fragment contents — with the same REDACTED marker the config redaction uses,
|
|
3286
|
+
// while keeping the scheme, host, path and parameter names so the offending
|
|
3287
|
+
// request stays accurately identifiable.
|
|
3288
|
+
function redactFragment(fragment) {
|
|
3289
|
+
if (!fragment) {
|
|
3290
|
+
return fragment;
|
|
2855
3291
|
}
|
|
2856
|
-
|
|
3292
|
+
|
|
3293
|
+
return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = '') => {
|
|
3294
|
+
return `${separator}${parameterName}${REDACTED}`;
|
|
3295
|
+
});
|
|
2857
3296
|
}
|
|
2858
3297
|
|
|
2859
|
-
function
|
|
2860
|
-
|
|
3298
|
+
function redactSensitiveURLParts(url) {
|
|
3299
|
+
const redactedURL = url.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
|
|
3300
|
+
const fragmentIndex = redactedURL.indexOf('#');
|
|
3301
|
+
const urlWithoutFragment =
|
|
3302
|
+
fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
|
|
3303
|
+
const redactedURLWithoutFragment = urlWithoutFragment.replace(
|
|
3304
|
+
/([?&][^=&#]*=)[^&#]*/g,
|
|
3305
|
+
`$1${REDACTED}`
|
|
3306
|
+
);
|
|
3307
|
+
|
|
3308
|
+
if (fragmentIndex === -1) {
|
|
3309
|
+
return redactedURLWithoutFragment;
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3312
|
+
return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
|
|
2861
3313
|
}
|
|
2862
3314
|
|
|
2863
3315
|
function assertValidHttpProtocolURL(url, config) {
|
|
2864
|
-
if (typeof url === 'string'
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
AxiosError$1
|
|
2868
|
-
|
|
2869
|
-
|
|
3316
|
+
if (typeof url === 'string') {
|
|
3317
|
+
const normalizedURL = normalizeURLForProtocolCheck(url);
|
|
3318
|
+
if (malformedHttpProtocol.test(normalizedURL)) {
|
|
3319
|
+
throw new AxiosError$1(
|
|
3320
|
+
`Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`,
|
|
3321
|
+
AxiosError$1.ERR_INVALID_URL,
|
|
3322
|
+
config
|
|
3323
|
+
);
|
|
3324
|
+
}
|
|
2870
3325
|
}
|
|
2871
3326
|
}
|
|
2872
3327
|
|
|
@@ -2892,6 +3347,17 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls, config) {
|
|
|
2892
3347
|
|
|
2893
3348
|
const headersToObject = (thing) => (thing instanceof AxiosHeaders$1 ? { ...thing } : thing);
|
|
2894
3349
|
|
|
3350
|
+
const ownEnumerableKeys = (thing) => {
|
|
3351
|
+
if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
|
|
3352
|
+
return Object.keys(thing).concat(
|
|
3353
|
+
Object.getOwnPropertySymbols(thing).filter(
|
|
3354
|
+
(symbol) => Object.getOwnPropertyDescriptor(thing, symbol).enumerable
|
|
3355
|
+
)
|
|
3356
|
+
);
|
|
3357
|
+
}
|
|
3358
|
+
return Object.keys(thing);
|
|
3359
|
+
};
|
|
3360
|
+
|
|
2895
3361
|
/**
|
|
2896
3362
|
* Config-specific merge-function which creates a new config-object
|
|
2897
3363
|
* by merging two configuration objects together.
|
|
@@ -2957,7 +3423,9 @@ function mergeConfig$1(config1, config2) {
|
|
|
2957
3423
|
}
|
|
2958
3424
|
|
|
2959
3425
|
function getMergedTransitionalOption(prop) {
|
|
2960
|
-
const transitional2 = utils$1.hasOwnProp(config2, 'transitional')
|
|
3426
|
+
const transitional2 = utils$1.hasOwnProp(config2, 'transitional')
|
|
3427
|
+
? config2.transitional
|
|
3428
|
+
: undefined;
|
|
2961
3429
|
|
|
2962
3430
|
if (!utils$1.isUndefined(transitional2)) {
|
|
2963
3431
|
if (utils$1.isPlainObject(transitional2)) {
|
|
@@ -2969,7 +3437,9 @@ function mergeConfig$1(config1, config2) {
|
|
|
2969
3437
|
}
|
|
2970
3438
|
}
|
|
2971
3439
|
|
|
2972
|
-
const transitional1 = utils$1.hasOwnProp(config1, 'transitional')
|
|
3440
|
+
const transitional1 = utils$1.hasOwnProp(config1, 'transitional')
|
|
3441
|
+
? config1.transitional
|
|
3442
|
+
: undefined;
|
|
2973
3443
|
|
|
2974
3444
|
if (utils$1.isPlainObject(transitional1) && utils$1.hasOwnProp(transitional1, prop)) {
|
|
2975
3445
|
return transitional1[prop];
|
|
@@ -2996,7 +3466,7 @@ function mergeConfig$1(config1, config2) {
|
|
|
2996
3466
|
transformResponse: defaultToConfig2,
|
|
2997
3467
|
paramsSerializer: defaultToConfig2,
|
|
2998
3468
|
timeout: defaultToConfig2,
|
|
2999
|
-
|
|
3469
|
+
timeoutErrorMessage: defaultToConfig2,
|
|
3000
3470
|
withCredentials: defaultToConfig2,
|
|
3001
3471
|
withXSRFToken: defaultToConfig2,
|
|
3002
3472
|
adapter: defaultToConfig2,
|
|
@@ -3021,7 +3491,7 @@ function mergeConfig$1(config1, config2) {
|
|
|
3021
3491
|
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
3022
3492
|
};
|
|
3023
3493
|
|
|
3024
|
-
utils$1.forEach(
|
|
3494
|
+
utils$1.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
3025
3495
|
if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
|
|
3026
3496
|
const merge = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
3027
3497
|
const a = utils$1.hasOwnProp(config1, prop) ? config1[prop] : undefined;
|
|
@@ -3047,6 +3517,17 @@ function mergeConfig$1(config1, config2) {
|
|
|
3047
3517
|
|
|
3048
3518
|
const FORM_DATA_CONTENT_HEADERS = ['content-type', 'content-length'];
|
|
3049
3519
|
|
|
3520
|
+
/**
|
|
3521
|
+
* Apply the headers generated by a FormData implementation to the request headers,
|
|
3522
|
+
* honoring the `formDataHeaderPolicy` option: with 'content-only', copy only the
|
|
3523
|
+
* content-* headers; otherwise merge all of them.
|
|
3524
|
+
*
|
|
3525
|
+
* @param {AxiosHeaders} headers - the request headers to mutate
|
|
3526
|
+
* @param {Object | null | undefined} formHeaders - headers produced by the FormData implementation
|
|
3527
|
+
* @param {String} [policy] - the resolved `formDataHeaderPolicy` config value
|
|
3528
|
+
*
|
|
3529
|
+
* @returns {void}
|
|
3530
|
+
*/
|
|
3050
3531
|
function setFormDataHeaders(headers, formHeaders, policy) {
|
|
3051
3532
|
if (policy !== 'content-only') {
|
|
3052
3533
|
headers.set(formHeaders);
|
|
@@ -3114,15 +3595,17 @@ function resolveConfig(config) {
|
|
|
3114
3595
|
}
|
|
3115
3596
|
|
|
3116
3597
|
if (utils$1.isFormData(data)) {
|
|
3598
|
+
const getHeaders = utils$1.getSafeProp(data, 'getHeaders');
|
|
3599
|
+
|
|
3117
3600
|
if (
|
|
3118
3601
|
platform.hasStandardBrowserEnv ||
|
|
3119
3602
|
platform.hasStandardBrowserWebWorkerEnv ||
|
|
3120
3603
|
utils$1.isReactNative(data)
|
|
3121
3604
|
) {
|
|
3122
3605
|
headers.setContentType(undefined); // browser/web worker/RN handles it
|
|
3123
|
-
} else if (utils$1.isFunction(
|
|
3606
|
+
} else if (utils$1.isFunction(getHeaders)) {
|
|
3124
3607
|
// Node.js FormData (like form-data package)
|
|
3125
|
-
setFormDataHeaders(headers,
|
|
3608
|
+
setFormDataHeaders(headers, getHeaders.call(data), own('formDataHeaderPolicy'));
|
|
3126
3609
|
}
|
|
3127
3610
|
}
|
|
3128
3611
|
|
|
@@ -3164,7 +3647,7 @@ var xhrAdapter = isXHRAdapterSupported &&
|
|
|
3164
3647
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
3165
3648
|
let onCanceled;
|
|
3166
3649
|
let uploadThrottled, downloadThrottled;
|
|
3167
|
-
let flushUpload, flushDownload;
|
|
3650
|
+
let flushUpload, flushDownload, flushDownloadWithEvent;
|
|
3168
3651
|
|
|
3169
3652
|
function done() {
|
|
3170
3653
|
flushUpload && flushUpload(); // flush events
|
|
@@ -3182,10 +3665,55 @@ var xhrAdapter = isXHRAdapterSupported &&
|
|
|
3182
3665
|
// Set the request timeout in MS
|
|
3183
3666
|
request.timeout = _config.timeout;
|
|
3184
3667
|
|
|
3185
|
-
function onloadend() {
|
|
3668
|
+
function onloadend(event) {
|
|
3186
3669
|
if (!request) {
|
|
3187
3670
|
return;
|
|
3188
3671
|
}
|
|
3672
|
+
|
|
3673
|
+
// Status 0 means no response was received, which onerror and onabort normally
|
|
3674
|
+
// reject before this runs. Firefox 152 fires only readystatechange and loadend for
|
|
3675
|
+
// navigation-canceled requests (https://bugzilla.mozilla.org/show_bug.cgi?id=1505389),
|
|
3676
|
+
// leaving settle() to resolve them as an empty success. ECONNABORTED is the error
|
|
3677
|
+
// onabort raised on Firefox 151. Reads over file:, which some environments report as
|
|
3678
|
+
// status 0 on success, are excluded by the request URL's scheme after browser-style
|
|
3679
|
+
// preprocessing, by the page origin's scheme for relative URLs (which inherit it), or
|
|
3680
|
+
// by responseURL where implemented.
|
|
3681
|
+
if (
|
|
3682
|
+
request.status === 0 &&
|
|
3683
|
+
(parseProtocol(normalizeURLForProtocolCheck(_config.url)) ||
|
|
3684
|
+
parseProtocol(platform.origin)) !== 'file' &&
|
|
3685
|
+
!(request.responseURL && request.responseURL.startsWith('file:'))
|
|
3686
|
+
) {
|
|
3687
|
+
reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
|
|
3688
|
+
done();
|
|
3689
|
+
|
|
3690
|
+
// Clean up request
|
|
3691
|
+
request = null;
|
|
3692
|
+
return;
|
|
3693
|
+
}
|
|
3694
|
+
|
|
3695
|
+
// When loadend is still dispatching, flushing with it gives progress
|
|
3696
|
+
// listeners a final delivery whose event has a live target. The legacy
|
|
3697
|
+
// ready-state fallback has no event, so replay its pending progress.
|
|
3698
|
+
// A throwing listener must not block settlement; rethrow asynchronously,
|
|
3699
|
+
// matching how listener errors surface on the throttle timer path.
|
|
3700
|
+
try {
|
|
3701
|
+
if (event) {
|
|
3702
|
+
flushDownloadWithEvent && flushDownloadWithEvent(event);
|
|
3703
|
+
} else {
|
|
3704
|
+
flushDownload && flushDownload();
|
|
3705
|
+
}
|
|
3706
|
+
} catch (err) {
|
|
3707
|
+
setTimeout(() => {
|
|
3708
|
+
throw err;
|
|
3709
|
+
});
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
// A final progress callback can cancel the request synchronously.
|
|
3713
|
+
if (!request) {
|
|
3714
|
+
return;
|
|
3715
|
+
}
|
|
3716
|
+
|
|
3189
3717
|
// Prepare the response
|
|
3190
3718
|
const responseHeaders = AxiosHeaders$1.from(
|
|
3191
3719
|
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
@@ -3317,7 +3845,10 @@ var xhrAdapter = isXHRAdapterSupported &&
|
|
|
3317
3845
|
|
|
3318
3846
|
// Handle progress if needed
|
|
3319
3847
|
if (onDownloadProgress) {
|
|
3320
|
-
[downloadThrottled, flushDownload] = progressEventReducer(
|
|
3848
|
+
[downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(
|
|
3849
|
+
onDownloadProgress,
|
|
3850
|
+
true
|
|
3851
|
+
);
|
|
3321
3852
|
request.addEventListener('progress', downloadThrottled);
|
|
3322
3853
|
}
|
|
3323
3854
|
|
|
@@ -3413,7 +3944,18 @@ const composeSignals = (signals, timeout) => {
|
|
|
3413
3944
|
signals = null;
|
|
3414
3945
|
};
|
|
3415
3946
|
|
|
3416
|
-
signals.forEach((signal) =>
|
|
3947
|
+
signals.forEach((signal) => {
|
|
3948
|
+
if (aborted) {
|
|
3949
|
+
return;
|
|
3950
|
+
}
|
|
3951
|
+
|
|
3952
|
+
if (signal.aborted) {
|
|
3953
|
+
onabort.call(signal);
|
|
3954
|
+
return;
|
|
3955
|
+
}
|
|
3956
|
+
|
|
3957
|
+
signal.addEventListener('abort', onabort, { once: true });
|
|
3958
|
+
});
|
|
3417
3959
|
|
|
3418
3960
|
const { signal } = controller;
|
|
3419
3961
|
|
|
@@ -3513,13 +4055,11 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
3513
4055
|
};
|
|
3514
4056
|
|
|
3515
4057
|
/**
|
|
3516
|
-
* Estimate
|
|
3517
|
-
* -
|
|
3518
|
-
*
|
|
3519
|
-
*
|
|
3520
|
-
*
|
|
3521
|
-
* @param {string} url
|
|
3522
|
-
* @returns {number}
|
|
4058
|
+
* Estimate data: URL byte lengths *without* allocating large buffers.
|
|
4059
|
+
* - Fetch percent-decodes a base64 body before decoding it.
|
|
4060
|
+
* - Node's Buffer.from(body, 'base64') sizes its backing allocation from the
|
|
4061
|
+
* raw body, including ignored characters and content after padding.
|
|
4062
|
+
* - Non-base64 data is percent-decoded and then encoded as UTF-8.
|
|
3523
4063
|
*/
|
|
3524
4064
|
const isHexDigit = (charCode) =>
|
|
3525
4065
|
(charCode >= 48 && charCode <= 57) ||
|
|
@@ -3529,64 +4069,101 @@ const isHexDigit = (charCode) =>
|
|
|
3529
4069
|
const isPercentEncodedByte = (str, i, len) =>
|
|
3530
4070
|
i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
|
|
3531
4071
|
|
|
3532
|
-
|
|
3533
|
-
if (!url || typeof url !== 'string') return 0;
|
|
3534
|
-
if (!url.startsWith('data:')) return 0;
|
|
4072
|
+
const hexValue = (charCode) => (charCode <= 57 ? charCode - 48 : (charCode & 0xdf) - 55);
|
|
3535
4073
|
|
|
3536
|
-
|
|
3537
|
-
|
|
4074
|
+
const isBase64Char = (charCode) =>
|
|
4075
|
+
(charCode >= 65 && charCode <= 90) || // A-Z
|
|
4076
|
+
(charCode >= 97 && charCode <= 122) || // a-z
|
|
4077
|
+
(charCode >= 48 && charCode <= 57) || // 0-9
|
|
4078
|
+
charCode === 43 || // +
|
|
4079
|
+
charCode === 47 || // /
|
|
4080
|
+
charCode === 45 || // - (base64url)
|
|
4081
|
+
charCode === 95; // _ (base64url)
|
|
3538
4082
|
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
const isBase64 = /;base64/i.test(meta);
|
|
4083
|
+
const isBase64Whitespace = (charCode) =>
|
|
4084
|
+
charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
|
|
3542
4085
|
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
4086
|
+
const base64Bytes = (significant) => {
|
|
4087
|
+
const groups = Math.floor(significant / 4);
|
|
4088
|
+
const remainder = significant % 4;
|
|
4089
|
+
return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
|
|
4090
|
+
};
|
|
4091
|
+
|
|
4092
|
+
// Buffer.byteLength(body, 'base64') uses the raw string length as an allocation
|
|
4093
|
+
// upper bound even when Buffer.from later ignores characters or stops at '='.
|
|
4094
|
+
const estimateBase64BufferAllocation = (body) => {
|
|
4095
|
+
const len = body.length;
|
|
4096
|
+
let padding = 0;
|
|
4097
|
+
|
|
4098
|
+
if (len > 0 && body.charCodeAt(len - 1) === 61 /* '=' */) {
|
|
4099
|
+
padding++;
|
|
4100
|
+
|
|
4101
|
+
if (len > 1 && body.charCodeAt(len - 2) === 61 /* '=' */) {
|
|
4102
|
+
padding++;
|
|
3558
4103
|
}
|
|
4104
|
+
}
|
|
3559
4105
|
|
|
3560
|
-
|
|
3561
|
-
|
|
4106
|
+
return Math.floor(((len - padding) * 3) / 4);
|
|
4107
|
+
};
|
|
3562
4108
|
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
4109
|
+
const estimatePercentDecodedBase64Bytes = (body) => {
|
|
4110
|
+
const len = body.length;
|
|
4111
|
+
let significant = 0;
|
|
4112
|
+
let padding = 0;
|
|
4113
|
+
let invalid = false;
|
|
3568
4114
|
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
idx -= 3;
|
|
3576
|
-
}
|
|
4115
|
+
for (let i = 0; i < len; i++) {
|
|
4116
|
+
let code = body.charCodeAt(i);
|
|
4117
|
+
|
|
4118
|
+
if (code === 37 /* '%' */ && isPercentEncodedByte(body, i, len)) {
|
|
4119
|
+
code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
|
|
4120
|
+
i += 2;
|
|
3577
4121
|
}
|
|
3578
4122
|
|
|
3579
|
-
if (
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
4123
|
+
if (isBase64Whitespace(code)) {
|
|
4124
|
+
continue;
|
|
4125
|
+
}
|
|
4126
|
+
|
|
4127
|
+
if (code === 61 /* '=' */) {
|
|
4128
|
+
padding++;
|
|
4129
|
+
continue;
|
|
4130
|
+
}
|
|
4131
|
+
|
|
4132
|
+
if (!isBase64Char(code) || padding > 0) {
|
|
4133
|
+
invalid = true;
|
|
4134
|
+
continue;
|
|
3585
4135
|
}
|
|
3586
4136
|
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
4137
|
+
significant++;
|
|
4138
|
+
}
|
|
4139
|
+
|
|
4140
|
+
// Fetch rejects malformed forgiving-base64 input. Returning the raw-size
|
|
4141
|
+
// allocation bound keeps that invalid input from becoming a pre-check bypass.
|
|
4142
|
+
if (
|
|
4143
|
+
invalid ||
|
|
4144
|
+
padding > 2 ||
|
|
4145
|
+
(padding > 0 && (significant + padding) % 4 !== 0) ||
|
|
4146
|
+
significant % 4 === 1
|
|
4147
|
+
) {
|
|
4148
|
+
return estimateBase64BufferAllocation(body);
|
|
4149
|
+
}
|
|
4150
|
+
|
|
4151
|
+
return base64Bytes(significant);
|
|
4152
|
+
};
|
|
4153
|
+
|
|
4154
|
+
const estimateDataURLBytes = (url, estimateBase64) => {
|
|
4155
|
+
if (!url || typeof url !== 'string') return 0;
|
|
4156
|
+
if (!url.startsWith('data:')) return 0;
|
|
4157
|
+
|
|
4158
|
+
const comma = url.indexOf(',');
|
|
4159
|
+
if (comma < 0) return 0;
|
|
4160
|
+
|
|
4161
|
+
const meta = url.slice(5, comma);
|
|
4162
|
+
const body = url.slice(comma + 1);
|
|
4163
|
+
const isBase64 = /;base64/i.test(meta);
|
|
4164
|
+
|
|
4165
|
+
if (isBase64) {
|
|
4166
|
+
return estimateBase64(body);
|
|
3590
4167
|
}
|
|
3591
4168
|
|
|
3592
4169
|
// Compute UTF-8 byte length directly from UTF-16 code units without allocating
|
|
@@ -3616,12 +4193,40 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
3616
4193
|
}
|
|
3617
4194
|
}
|
|
3618
4195
|
return bytes;
|
|
4196
|
+
};
|
|
4197
|
+
|
|
4198
|
+
/**
|
|
4199
|
+
* Estimate the percent-decoded payload size used by Fetch data: URLs.
|
|
4200
|
+
*
|
|
4201
|
+
* @param {string} url
|
|
4202
|
+
* @returns {number}
|
|
4203
|
+
*/
|
|
4204
|
+
function estimateDataURLDecodedBytes(url) {
|
|
4205
|
+
// Fetch removes URL fragments before processing a data: URL.
|
|
4206
|
+
const fragmentIndex = typeof url === 'string' ? url.indexOf('#') : -1;
|
|
4207
|
+
|
|
4208
|
+
return estimateDataURLBytes(
|
|
4209
|
+
fragmentIndex === -1 ? url : url.slice(0, fragmentIndex),
|
|
4210
|
+
estimatePercentDecodedBase64Bytes
|
|
4211
|
+
);
|
|
3619
4212
|
}
|
|
3620
4213
|
|
|
3621
|
-
const VERSION$1 = "1.
|
|
4214
|
+
const VERSION$1 = "1.20.0";
|
|
3622
4215
|
|
|
3623
4216
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3624
4217
|
|
|
4218
|
+
const DEFAULT_REQUEST_OPTIONS = {
|
|
4219
|
+
cache: 'default',
|
|
4220
|
+
redirect: 'follow',
|
|
4221
|
+
referrer: 'about:client',
|
|
4222
|
+
referrerPolicy: '',
|
|
4223
|
+
mode: 'cors',
|
|
4224
|
+
integrity: '',
|
|
4225
|
+
keepalive: false,
|
|
4226
|
+
priority: 'auto',
|
|
4227
|
+
window: null,
|
|
4228
|
+
};
|
|
4229
|
+
|
|
3625
4230
|
const { isFunction } = utils$1;
|
|
3626
4231
|
|
|
3627
4232
|
/**
|
|
@@ -3672,9 +4277,7 @@ const maybeWithAuthCredentials = (url) => {
|
|
|
3672
4277
|
|
|
3673
4278
|
const factory = (env) => {
|
|
3674
4279
|
const globalObject =
|
|
3675
|
-
utils$1.global !== undefined && utils$1.global !== null
|
|
3676
|
-
? utils$1.global
|
|
3677
|
-
: globalThis;
|
|
4280
|
+
utils$1.global !== undefined && utils$1.global !== null ? utils$1.global : globalThis;
|
|
3678
4281
|
const { ReadableStream, TextEncoder } = globalObject;
|
|
3679
4282
|
|
|
3680
4283
|
env = utils$1.merge.call(
|
|
@@ -3813,6 +4416,7 @@ const factory = (env) => {
|
|
|
3813
4416
|
fetchOptions,
|
|
3814
4417
|
maxContentLength,
|
|
3815
4418
|
maxBodyLength,
|
|
4419
|
+
maxRedirects,
|
|
3816
4420
|
} = resolveConfig(config);
|
|
3817
4421
|
|
|
3818
4422
|
const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
@@ -3863,7 +4467,7 @@ const factory = (env) => {
|
|
|
3863
4467
|
const password = utils$1.getSafeProp(configAuth, 'password') || '';
|
|
3864
4468
|
auth = {
|
|
3865
4469
|
username,
|
|
3866
|
-
password
|
|
4470
|
+
password,
|
|
3867
4471
|
};
|
|
3868
4472
|
}
|
|
3869
4473
|
|
|
@@ -3875,7 +4479,7 @@ const factory = (env) => {
|
|
|
3875
4479
|
const urlPassword = decodeURIComponentSafe(parsedURL.password);
|
|
3876
4480
|
auth = {
|
|
3877
4481
|
username: urlUsername,
|
|
3878
|
-
password: urlPassword
|
|
4482
|
+
password: urlPassword,
|
|
3879
4483
|
};
|
|
3880
4484
|
}
|
|
3881
4485
|
|
|
@@ -3949,7 +4553,9 @@ const factory = (env) => {
|
|
|
3949
4553
|
(onUploadProgress || mustEnforceStreamBody)
|
|
3950
4554
|
) {
|
|
3951
4555
|
requestContentLength =
|
|
3952
|
-
requestContentLength == null
|
|
4556
|
+
requestContentLength == null
|
|
4557
|
+
? await resolveBodyLength(headers, data)
|
|
4558
|
+
: requestContentLength;
|
|
3953
4559
|
|
|
3954
4560
|
// A declared length of 0 is only trusted to skip the wrap when we are
|
|
3955
4561
|
// not enforcing a stream limit (which must not rely on that header).
|
|
@@ -3962,7 +4568,10 @@ const factory = (env) => {
|
|
|
3962
4568
|
|
|
3963
4569
|
let contentTypeHeader;
|
|
3964
4570
|
|
|
3965
|
-
if (
|
|
4571
|
+
if (
|
|
4572
|
+
utils$1.isFormData(data) &&
|
|
4573
|
+
(contentTypeHeader = _request.headers.get('content-type'))
|
|
4574
|
+
) {
|
|
3966
4575
|
headers.setContentType(contentTypeHeader);
|
|
3967
4576
|
}
|
|
3968
4577
|
|
|
@@ -4025,20 +4634,57 @@ const factory = (env) => {
|
|
|
4025
4634
|
// Set User-Agent header if not already set (fetch defaults to 'node' in Node.js)
|
|
4026
4635
|
headers.set('User-Agent', 'axios/' + VERSION$1, false);
|
|
4027
4636
|
|
|
4028
|
-
const
|
|
4029
|
-
|
|
4637
|
+
const safeFetchOptions =
|
|
4638
|
+
fetchOptions == null ? fetchOptions : Object.assign(Object.create(null), fetchOptions);
|
|
4639
|
+
|
|
4640
|
+
if (safeFetchOptions) {
|
|
4641
|
+
// These options are owned by Axios and are already reflected in the
|
|
4642
|
+
// resolved Request passed to fetch.
|
|
4643
|
+
delete safeFetchOptions.body;
|
|
4644
|
+
delete safeFetchOptions.headers;
|
|
4645
|
+
delete safeFetchOptions.method;
|
|
4646
|
+
delete safeFetchOptions.signal;
|
|
4647
|
+
delete safeFetchOptions.duplex;
|
|
4648
|
+
delete safeFetchOptions.credentials;
|
|
4649
|
+
}
|
|
4650
|
+
|
|
4651
|
+
const resolvedOptions = Object.assign(Object.create(null), safeFetchOptions, {
|
|
4030
4652
|
signal: composedSignal,
|
|
4031
4653
|
method: method.toUpperCase(),
|
|
4032
4654
|
headers: toByteStringHeaderObject(headers.normalize()),
|
|
4033
4655
|
body: data,
|
|
4034
4656
|
duplex: 'half',
|
|
4035
4657
|
credentials: isCredentialsSupported ? withCredentials : undefined,
|
|
4036
|
-
};
|
|
4658
|
+
});
|
|
4659
|
+
|
|
4660
|
+
if (isRequestSupported) {
|
|
4661
|
+
utils$1.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
|
|
4662
|
+
if (resolvedOptions[key] === undefined) {
|
|
4663
|
+
resolvedOptions[key] = value;
|
|
4664
|
+
}
|
|
4665
|
+
});
|
|
4666
|
+
|
|
4667
|
+
if (resolvedOptions.signal === undefined) {
|
|
4668
|
+
resolvedOptions.signal = null;
|
|
4669
|
+
}
|
|
4670
|
+
|
|
4671
|
+
if (resolvedOptions.body === undefined) {
|
|
4672
|
+
resolvedOptions.body = null;
|
|
4673
|
+
}
|
|
4674
|
+
}
|
|
4675
|
+
|
|
4676
|
+
if (maxRedirects === 0) {
|
|
4677
|
+
resolvedOptions.redirect = 'manual';
|
|
4678
|
+
|
|
4679
|
+
if (safeFetchOptions) {
|
|
4680
|
+
safeFetchOptions.redirect = 'manual';
|
|
4681
|
+
}
|
|
4682
|
+
}
|
|
4037
4683
|
|
|
4038
4684
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
4039
4685
|
|
|
4040
4686
|
let response = await (isRequestSupported
|
|
4041
|
-
? _fetch(request,
|
|
4687
|
+
? _fetch(request, safeFetchOptions)
|
|
4042
4688
|
: _fetch(url, resolvedOptions));
|
|
4043
4689
|
|
|
4044
4690
|
const responseHeaders = AxiosHeaders$1.from(response.headers);
|
|
@@ -4396,10 +5042,15 @@ function throwIfCancellationRequested(config) {
|
|
|
4396
5042
|
*
|
|
4397
5043
|
* @returns {Promise} The Promise to be fulfilled
|
|
4398
5044
|
*/
|
|
4399
|
-
function dispatchRequest(
|
|
5045
|
+
function dispatchRequest(_config) {
|
|
5046
|
+
// Interceptors may replace the merged config with an ordinary object. Flatten
|
|
5047
|
+
// it at the dispatch boundary so shared prototype members cannot become
|
|
5048
|
+
// request behavior, while preserving intentional template/class members.
|
|
5049
|
+
const config = utils$1.toSafeFlatObject(_config);
|
|
5050
|
+
|
|
4400
5051
|
throwIfCancellationRequested(config);
|
|
4401
5052
|
|
|
4402
|
-
config.headers = AxiosHeaders$1.from(config
|
|
5053
|
+
config.headers = AxiosHeaders$1.from(utils$1.getSafeProp(config, 'headers'));
|
|
4403
5054
|
|
|
4404
5055
|
// Transform request data
|
|
4405
5056
|
config.data = transformData.call(config, config.transformRequest);
|
|
@@ -4592,21 +5243,21 @@ let Axios$1 = class Axios {
|
|
|
4592
5243
|
return await this._request(configOrUrl, config);
|
|
4593
5244
|
} catch (err) {
|
|
4594
5245
|
if (err instanceof Error) {
|
|
4595
|
-
|
|
5246
|
+
try {
|
|
5247
|
+
let dummy = {};
|
|
4596
5248
|
|
|
4597
|
-
|
|
5249
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
|
|
4598
5250
|
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
if (!dummy.stack) {
|
|
4602
|
-
return '';
|
|
4603
|
-
}
|
|
5251
|
+
const dummyStack = dummy.stack;
|
|
5252
|
+
let stack = '';
|
|
4604
5253
|
|
|
4605
|
-
|
|
5254
|
+
// slice off the Error: ... line
|
|
5255
|
+
if (typeof dummyStack === 'string') {
|
|
5256
|
+
const firstNewlineIndex = dummyStack.indexOf('\n');
|
|
5257
|
+
|
|
5258
|
+
stack = firstNewlineIndex === -1 ? '' : dummyStack.slice(firstNewlineIndex + 1);
|
|
5259
|
+
}
|
|
4606
5260
|
|
|
4607
|
-
return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
|
|
4608
|
-
})();
|
|
4609
|
-
try {
|
|
4610
5261
|
if (!err.stack) {
|
|
4611
5262
|
err.stack = stack;
|
|
4612
5263
|
// match without the 2 top stack lines
|
|
@@ -4622,7 +5273,7 @@ let Axios$1 = class Axios {
|
|
|
4622
5273
|
}
|
|
4623
5274
|
}
|
|
4624
5275
|
} catch (e) {
|
|
4625
|
-
//
|
|
5276
|
+
// Ignore failures from custom stack hooks or un-writable stack properties.
|
|
4626
5277
|
}
|
|
4627
5278
|
}
|
|
4628
5279
|
|
|
@@ -4693,13 +5344,17 @@ let Axios$1 = class Axios {
|
|
|
4693
5344
|
);
|
|
4694
5345
|
|
|
4695
5346
|
// Set config.method
|
|
4696
|
-
config.method = (
|
|
5347
|
+
config.method = (
|
|
5348
|
+
utils$1.getSafeProp(config, 'method') ||
|
|
5349
|
+
utils$1.getSafeProp(this.defaults, 'method') ||
|
|
5350
|
+
'get'
|
|
5351
|
+
).toLowerCase();
|
|
4697
5352
|
|
|
4698
5353
|
// Flatten headers
|
|
4699
5354
|
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
4700
5355
|
|
|
4701
5356
|
headers &&
|
|
4702
|
-
utils$1.forEach(
|
|
5357
|
+
utils$1.forEach(methodList.concat('common'), (method) => {
|
|
4703
5358
|
delete headers[method];
|
|
4704
5359
|
});
|
|
4705
5360
|
|
|
@@ -4758,17 +5413,35 @@ let Axios$1 = class Axios {
|
|
|
4758
5413
|
const onFulfilled = requestInterceptorChain[i++];
|
|
4759
5414
|
const onRejected = requestInterceptorChain[i++];
|
|
4760
5415
|
try {
|
|
4761
|
-
newConfig = onFulfilled(newConfig);
|
|
5416
|
+
newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
|
|
4762
5417
|
} catch (error) {
|
|
4763
|
-
onRejected
|
|
5418
|
+
if (!onRejected) {
|
|
5419
|
+
promise = Promise.reject(error);
|
|
5420
|
+
break;
|
|
5421
|
+
}
|
|
5422
|
+
|
|
5423
|
+
try {
|
|
5424
|
+
const rejectedResult = onRejected.call(this, error);
|
|
5425
|
+
|
|
5426
|
+
if (utils$1.isThenable(rejectedResult)) {
|
|
5427
|
+
promise = Promise.resolve(rejectedResult).then(() =>
|
|
5428
|
+
dispatchRequest.call(this, newConfig)
|
|
5429
|
+
);
|
|
5430
|
+
}
|
|
5431
|
+
} catch (rejectedError) {
|
|
5432
|
+
promise = Promise.reject(rejectedError);
|
|
5433
|
+
}
|
|
5434
|
+
|
|
4764
5435
|
break;
|
|
4765
5436
|
}
|
|
4766
5437
|
}
|
|
4767
5438
|
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
5439
|
+
if (!promise) {
|
|
5440
|
+
try {
|
|
5441
|
+
promise = dispatchRequest.call(this, newConfig);
|
|
5442
|
+
} catch (error) {
|
|
5443
|
+
promise = Promise.reject(error);
|
|
5444
|
+
}
|
|
4772
5445
|
}
|
|
4773
5446
|
|
|
4774
5447
|
i = 0;
|
|
@@ -5034,14 +5707,22 @@ const HttpStatusCode$1 = {
|
|
|
5034
5707
|
Gone: 410,
|
|
5035
5708
|
LengthRequired: 411,
|
|
5036
5709
|
PreconditionFailed: 412,
|
|
5710
|
+
/**
|
|
5711
|
+
* @deprecated Use `ContentTooLarge` instead.
|
|
5712
|
+
*/
|
|
5037
5713
|
PayloadTooLarge: 413,
|
|
5714
|
+
ContentTooLarge: 413,
|
|
5038
5715
|
UriTooLong: 414,
|
|
5039
5716
|
UnsupportedMediaType: 415,
|
|
5040
5717
|
RangeNotSatisfiable: 416,
|
|
5041
5718
|
ExpectationFailed: 417,
|
|
5042
5719
|
ImATeapot: 418,
|
|
5043
5720
|
MisdirectedRequest: 421,
|
|
5721
|
+
/**
|
|
5722
|
+
* @deprecated Use `UnprocessableContent` instead.
|
|
5723
|
+
*/
|
|
5044
5724
|
UnprocessableEntity: 422,
|
|
5725
|
+
UnprocessableContent: 422,
|
|
5045
5726
|
Locked: 423,
|
|
5046
5727
|
FailedDependency: 424,
|
|
5047
5728
|
TooEarly: 425,
|
|
@@ -5061,6 +5742,7 @@ const HttpStatusCode$1 = {
|
|
|
5061
5742
|
LoopDetected: 508,
|
|
5062
5743
|
NotExtended: 510,
|
|
5063
5744
|
NetworkAuthenticationRequired: 511,
|
|
5745
|
+
WebServerReturnsAnUnknownError: 520,
|
|
5064
5746
|
WebServerIsDown: 521,
|
|
5065
5747
|
ConnectionTimedOut: 522,
|
|
5066
5748
|
OriginIsUnreachable: 523,
|
|
@@ -5070,7 +5752,9 @@ const HttpStatusCode$1 = {
|
|
|
5070
5752
|
};
|
|
5071
5753
|
|
|
5072
5754
|
Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
|
|
5073
|
-
HttpStatusCode$1[value]
|
|
5755
|
+
if (HttpStatusCode$1[value] === undefined) {
|
|
5756
|
+
HttpStatusCode$1[value] = key;
|
|
5757
|
+
}
|
|
5074
5758
|
});
|
|
5075
5759
|
|
|
5076
5760
|
/**
|
|
@@ -5164,4 +5848,3 @@ const {
|
|
|
5164
5848
|
} = axios;
|
|
5165
5849
|
|
|
5166
5850
|
export { Axios, AxiosError, AxiosHeaders, Cancel, CancelToken, CanceledError, HttpStatusCode, VERSION, all, create, axios as default, formToJSON, getAdapter, isAxiosError, isCancel, mergeConfig, spread, toFormData };
|
|
5167
|
-
//# sourceMappingURL=axios.js.map
|