@automattic/vip 4.1.4 → 4.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/dev-env.lando.template.yml.ejs +6 -2
- package/config/config.local.json +6 -0
- package/dist/bin/vip-config-software-get.js +9 -0
- package/dist/bin/vip-wp.js +128 -39
- package/dist/lib/client-file-uploader.js +34 -5
- package/dist/lib/config/software.js +42 -2
- package/dist/lib/dev-environment/dev-environment-cli.js +8 -5
- package/dist/lib/dev-environment/dev-environment-core.js +1 -1
- package/helpers/generate-docs.js +9 -3
- package/node_modules/@apollo/client/CHANGELOG.md +38 -0
- package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/core/cache.d.cts +4 -1
- package/node_modules/@apollo/client/__cjs/cache/core/types/Cache.d.cts +5 -0
- package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.cjs +4 -4
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs +15 -5
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.d.cts +3 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/key-extractor.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs +5 -5
- package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs +28 -10
- package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/types.d.cts +7 -2
- package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs +29 -14
- package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.d.cts +5 -2
- package/node_modules/@apollo/client/__cjs/core/ApolloClient.cjs +14 -14
- package/node_modules/@apollo/client/__cjs/core/ObservableQuery.cjs +8 -8
- package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs +13 -32
- package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs +12 -12
- package/node_modules/@apollo/client/__cjs/core/RefetchEventManager.cjs +3 -3
- package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs +15 -2
- package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.d.cts +5 -1
- package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs +58 -14
- package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.d.cts +23 -12
- package/node_modules/@apollo/client/__cjs/incremental/handlers/notImplemented.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/incremental/types.d.cts +19 -1
- package/node_modules/@apollo/client/__cjs/invariantErrorCodes.cjs +64 -58
- package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
- package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.cjs +27 -1
- package/node_modules/@apollo/client/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/index.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/index.d.cts +0 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs +24 -26
- package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.d.cts +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs +24 -20
- package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs.map +1 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.d.cts +1 -1
- package/node_modules/@apollo/client/__cjs/version.cjs +1 -1
- package/node_modules/@apollo/client/cache/core/cache.d.ts +4 -1
- package/node_modules/@apollo/client/cache/core/cache.js +1 -1
- package/node_modules/@apollo/client/cache/core/cache.js.map +1 -1
- package/node_modules/@apollo/client/cache/core/types/Cache.d.ts +5 -0
- package/node_modules/@apollo/client/cache/core/types/Cache.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/entityStore.js +4 -4
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.d.ts +3 -1
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js +15 -5
- package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/key-extractor.js +1 -1
- package/node_modules/@apollo/client/cache/inmemory/policies.js +5 -5
- package/node_modules/@apollo/client/cache/inmemory/readFromStore.js +28 -10
- package/node_modules/@apollo/client/cache/inmemory/readFromStore.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/types.d.ts +7 -2
- package/node_modules/@apollo/client/cache/inmemory/types.js.map +1 -1
- package/node_modules/@apollo/client/cache/inmemory/writeToStore.d.ts +5 -2
- package/node_modules/@apollo/client/cache/inmemory/writeToStore.js +30 -15
- package/node_modules/@apollo/client/cache/inmemory/writeToStore.js.map +1 -1
- package/node_modules/@apollo/client/core/ApolloClient.js +14 -14
- package/node_modules/@apollo/client/core/ObservableQuery.js +8 -8
- package/node_modules/@apollo/client/core/QueryInfo.js +14 -33
- package/node_modules/@apollo/client/core/QueryInfo.js.map +1 -1
- package/node_modules/@apollo/client/core/QueryManager.js +12 -12
- package/node_modules/@apollo/client/core/RefetchEventManager.js +3 -3
- package/node_modules/@apollo/client/incremental/handlers/defer20220824.d.ts +5 -1
- package/node_modules/@apollo/client/incremental/handlers/defer20220824.js +15 -2
- package/node_modules/@apollo/client/incremental/handlers/defer20220824.js.map +1 -1
- package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.d.ts +23 -12
- package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js +58 -14
- package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js.map +1 -1
- package/node_modules/@apollo/client/incremental/handlers/notImplemented.js +1 -1
- package/node_modules/@apollo/client/incremental/types.d.ts +19 -1
- package/node_modules/@apollo/client/incremental/types.js.map +1 -1
- package/node_modules/@apollo/client/invariantErrorCodes.js +64 -58
- package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js +1 -1
- package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js.map +1 -1
- package/node_modules/@apollo/client/package.json +1 -1
- package/node_modules/@apollo/client/react/hooks/useLazyQuery.js +27 -1
- package/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.js +27 -1
- package/node_modules/@apollo/client/react/hooks-compiled/useLazyQuery.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/@types/node/README.md +2 -2
- package/node_modules/@types/node/child_process.d.ts +1 -1
- package/node_modules/@types/node/crypto.d.ts +22 -10
- package/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/node/ffi.d.ts +14 -0
- package/node_modules/@types/node/http2.d.ts +3 -2
- package/node_modules/@types/node/net.d.ts +16 -4
- package/node_modules/@types/node/package.json +2 -17
- package/node_modules/@types/node/process.d.ts +1 -0
- package/node_modules/@types/node/quic.d.ts +39 -1
- package/node_modules/@types/node/stream/iter.d.ts +9 -12
- package/node_modules/@types/node/test/reporters.d.ts +1 -0
- package/node_modules/@types/node/test.d.ts +72 -0
- package/node_modules/@types/node/tls.d.ts +14 -10
- package/node_modules/@types/node/util.d.ts +6 -3
- package/node_modules/@types/node/vm.d.ts +2 -1
- package/node_modules/@types/node/worker_threads.d.ts +4 -1
- package/node_modules/@types/node/zlib.d.ts +6 -0
- package/node_modules/axios/CHANGELOG.md +62 -0
- package/node_modules/axios/README.md +297 -5
- package/node_modules/axios/dist/axios.js +728 -170
- package/node_modules/axios/dist/axios.min.js +3 -3
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +871 -188
- package/node_modules/axios/dist/esm/axios.js +871 -188
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +1037 -225
- package/node_modules/axios/index.d.cts +102 -74
- package/node_modules/axios/index.d.ts +100 -68
- package/node_modules/axios/lib/adapters/fetch.js +64 -11
- package/node_modules/axios/lib/adapters/http.js +140 -67
- package/node_modules/axios/lib/adapters/xhr.js +52 -3
- package/node_modules/axios/lib/core/Axios.js +43 -20
- package/node_modules/axios/lib/core/AxiosError.js +33 -2
- package/node_modules/axios/lib/core/AxiosHeaders.js +124 -1
- package/node_modules/axios/lib/core/InterceptorManager.js +107 -8
- package/node_modules/axios/lib/core/buildFullPath.js +41 -15
- package/node_modules/axios/lib/core/dispatchRequest.js +8 -2
- package/node_modules/axios/lib/core/mergeConfig.js +19 -4
- package/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/node_modules/axios/lib/defaults/index.js +2 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/Http2Sessions.js +2 -0
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +12 -1
- package/node_modules/axios/lib/helpers/combineURLs.js +11 -3
- package/node_modules/axios/lib/helpers/composeSignals.js +12 -1
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +115 -54
- package/node_modules/axios/lib/helpers/formDataToJSON.js +11 -5
- package/node_modules/axios/lib/helpers/fromDataURI.js +5 -4
- package/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +5 -3
- package/node_modules/axios/lib/helpers/progressEventReducer.js +4 -4
- package/node_modules/axios/lib/helpers/resolveConfig.js +5 -17
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +300 -5
- package/node_modules/axios/lib/helpers/throttle.js +3 -2
- package/node_modules/axios/lib/helpers/toFormData.js +17 -23
- package/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/node_modules/axios/lib/utils.js +151 -18
- package/node_modules/axios/package.json +21 -19
- package/node_modules/chalk/package.json +1 -1
- package/node_modules/chalk/source/index.js +2 -1
- package/node_modules/cpu-features/build/config.gypi +2 -2
- package/node_modules/ejs/README.md +64 -28
- package/node_modules/ejs/bin/cli.js +220 -158
- package/node_modules/ejs/ejs.js +64 -94
- package/node_modules/ejs/ejs.min.js +1 -1
- package/node_modules/ejs/jakefile.js +44 -0
- package/node_modules/ejs/lib/cjs/ejs.js +64 -63
- package/node_modules/ejs/lib/cjs/parseargs.js +129 -77
- package/node_modules/ejs/lib/cjs/utils.js +0 -31
- package/node_modules/ejs/lib/esm/ejs.js +66 -65
- package/node_modules/ejs/lib/esm/parseargs.js +136 -82
- package/node_modules/ejs/lib/esm/utils.js +0 -32
- package/node_modules/ejs/package.json +3 -2
- package/node_modules/ejs/usage.txt +9 -9
- package/node_modules/follow-redirects/index.js +10 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/graphql-ws/dist/client.cjs +28 -13
- package/node_modules/graphql-ws/dist/client.js +28 -13
- package/node_modules/graphql-ws/dist/index.cjs +1 -1
- package/node_modules/graphql-ws/dist/index.d.cts +1 -1
- package/node_modules/graphql-ws/dist/index.d.ts +1 -1
- package/node_modules/graphql-ws/dist/index.js +1 -1
- package/node_modules/graphql-ws/dist/{server-B8ZBs9OC.d.ts → server-BzBeHlSW.d.ts} +26 -1
- package/node_modules/graphql-ws/dist/{server-DN5-9C2B.cjs → server-Ce-Z86Ys.cjs} +10 -4
- package/node_modules/graphql-ws/dist/{server-ChpuX357.d.cts → server-u6zrlwzL.d.cts} +26 -1
- package/node_modules/graphql-ws/dist/{server-DHPI7HHW.js → server-zBhvXJ_Z.js} +10 -4
- package/node_modules/graphql-ws/dist/use/@fastify/websocket.cjs +2 -2
- package/node_modules/graphql-ws/dist/use/@fastify/websocket.d.cts +8 -2
- package/node_modules/graphql-ws/dist/use/@fastify/websocket.d.ts +8 -2
- package/node_modules/graphql-ws/dist/use/@fastify/websocket.js +2 -2
- package/node_modules/graphql-ws/dist/use/bun.cjs +1 -1
- package/node_modules/graphql-ws/dist/use/bun.d.cts +2 -2
- package/node_modules/graphql-ws/dist/use/bun.d.ts +2 -2
- package/node_modules/graphql-ws/dist/use/bun.js +2 -2
- package/node_modules/graphql-ws/dist/use/crossws.cjs +16 -4
- package/node_modules/graphql-ws/dist/use/crossws.d.cts +6 -1
- package/node_modules/graphql-ws/dist/use/crossws.d.ts +6 -1
- package/node_modules/graphql-ws/dist/use/crossws.js +16 -4
- package/node_modules/graphql-ws/dist/use/deno.d.ts +1 -1
- package/node_modules/graphql-ws/dist/use/deno.js +1 -1
- package/node_modules/graphql-ws/dist/use/uWebSockets.cjs +2 -2
- package/node_modules/graphql-ws/dist/use/uWebSockets.d.cts +8 -2
- package/node_modules/graphql-ws/dist/use/uWebSockets.d.ts +8 -2
- package/node_modules/graphql-ws/dist/use/uWebSockets.js +2 -2
- package/node_modules/graphql-ws/dist/use/ws.cjs +2 -2
- package/node_modules/graphql-ws/dist/use/ws.d.cts +8 -2
- package/node_modules/graphql-ws/dist/use/ws.d.ts +8 -2
- package/node_modules/graphql-ws/dist/use/ws.js +2 -2
- package/node_modules/graphql-ws/package.json +3 -3
- package/node_modules/graphql-ws/umd/graphql-ws.js +28 -13
- package/node_modules/graphql-ws/umd/graphql-ws.min.js +1 -1
- package/node_modules/graphql-ws/umd/graphql-ws.min.js.gz +0 -0
- package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs +522 -495
- package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs.map +1 -1
- package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js +24 -24
- package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.cjs.js +135 -78
- package/node_modules/js-yaml/dist/js-yaml.cjs.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.mjs +129 -72
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
- package/node_modules/js-yaml/node_modules/argparse/LICENSE +47 -0
- package/node_modules/js-yaml/node_modules/argparse/README.md +89 -0
- package/node_modules/js-yaml/node_modules/argparse/lib/_colorize.js +72 -0
- package/node_modules/js-yaml/node_modules/argparse/lib/argparse.d.ts +292 -0
- package/node_modules/{argparse → js-yaml/node_modules/argparse/lib}/argparse.js +1142 -1029
- package/node_modules/js-yaml/node_modules/argparse/lib/difflib.js +190 -0
- package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/sub.js +4 -4
- package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/textwrap.js +28 -28
- package/node_modules/js-yaml/node_modules/argparse/package.json +38 -0
- package/node_modules/js-yaml/package.json +12 -12
- package/node_modules/lando/.github/dependabot.yml +4 -0
- package/node_modules/lando/.github/workflows/build-util-images.yml +1 -1
- package/node_modules/lando/.github/workflows/pr-core-tests.yml +4 -2
- package/node_modules/lando/.github/workflows/pr-db-tools-tests.yml +4 -2
- package/node_modules/lando/.github/workflows/pr-django-tests.yml +4 -2
- package/node_modules/lando/.github/workflows/pr-linter.yml +2 -2
- package/node_modules/lando/.github/workflows/pr-unit-tests.yml +2 -2
- package/node_modules/lando/.node-version +1 -1
- package/node_modules/lando/bin/lando.js +3 -83
- package/node_modules/lando/config.yml +0 -1
- package/node_modules/lando/eslint.config.mjs +4 -0
- package/node_modules/lando/examples/django/.lando.yml +1 -1
- package/node_modules/lando/examples/django/README.md +1 -1
- package/node_modules/lando/examples/django/requirements.txt +1 -1
- package/node_modules/lando/examples/sql-export/README.md +5 -0
- package/node_modules/lando/lib/app.js +78 -84
- package/node_modules/lando/lib/art.js +86 -30
- package/node_modules/lando/lib/bootstrap.js +148 -45
- package/node_modules/lando/lib/cache.js +14 -15
- package/node_modules/lando/lib/cli.js +67 -63
- package/node_modules/lando/lib/compose.js +76 -45
- package/node_modules/lando/lib/config.js +51 -33
- package/node_modules/lando/lib/daemon.js +27 -10
- package/node_modules/lando/lib/docker.js +46 -19
- package/node_modules/lando/lib/engine.js +131 -144
- package/node_modules/lando/lib/env.js +25 -46
- package/node_modules/lando/lib/error.js +15 -6
- package/node_modules/lando/lib/esm/package.json +3 -0
- package/node_modules/lando/lib/esm/string-argv.js +2 -0
- package/node_modules/lando/lib/esm/yargs.js +2 -0
- package/node_modules/lando/lib/events.js +15 -15
- package/node_modules/lando/lib/factory.js +43 -14
- package/node_modules/lando/lib/formatters.js +19 -31
- package/node_modules/lando/lib/lando.js +59 -48
- package/node_modules/lando/lib/logger.js +12 -24
- package/node_modules/lando/lib/plugins.js +27 -15
- package/node_modules/lando/lib/promise.js +17 -17
- package/node_modules/lando/lib/router.js +75 -21
- package/node_modules/lando/lib/scan.js +29 -12
- package/node_modules/lando/lib/shell.js +44 -20
- package/node_modules/lando/lib/user.js +14 -20
- package/node_modules/lando/lib/utils.js +87 -44
- package/node_modules/lando/lib/yaml.js +11 -9
- package/node_modules/lando/node_modules/ansi-regex/index.d.ts +33 -0
- package/node_modules/lando/node_modules/ansi-regex/index.js +15 -0
- package/node_modules/lando/node_modules/ansi-regex/package.json +61 -0
- package/node_modules/lando/node_modules/ansi-regex/readme.md +66 -0
- package/node_modules/lando/node_modules/cliui/README.md +26 -6
- package/node_modules/lando/node_modules/cliui/build/lib/index.js +2 -2
- package/node_modules/lando/node_modules/cliui/build/tsconfig.tsbuildinfo +1 -0
- package/node_modules/lando/node_modules/cliui/index.mjs +7 -5
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/index.d.ts +39 -0
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/index.js +82 -0
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/license +9 -0
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/package.json +64 -0
- package/node_modules/lando/node_modules/cliui/node_modules/string-width/readme.md +66 -0
- package/node_modules/lando/node_modules/cliui/package.json +21 -32
- package/node_modules/lando/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/lando/node_modules/emoji-regex/README.md +107 -0
- package/node_modules/lando/node_modules/emoji-regex/index.d.ts +3 -0
- package/node_modules/lando/node_modules/emoji-regex/index.js +4 -0
- package/node_modules/lando/node_modules/emoji-regex/index.mjs +4 -0
- package/node_modules/lando/node_modules/emoji-regex/package.json +45 -0
- package/node_modules/lando/node_modules/string-width/index.d.ts +39 -0
- package/node_modules/lando/node_modules/string-width/index.js +203 -0
- package/node_modules/lando/node_modules/string-width/license +9 -0
- package/node_modules/lando/node_modules/string-width/package.json +65 -0
- package/node_modules/lando/node_modules/string-width/readme.md +66 -0
- package/node_modules/lando/node_modules/strip-ansi/index.d.ts +15 -0
- package/node_modules/lando/node_modules/strip-ansi/index.js +19 -0
- package/node_modules/lando/node_modules/strip-ansi/license +9 -0
- package/node_modules/lando/node_modules/strip-ansi/package.json +59 -0
- package/node_modules/lando/node_modules/strip-ansi/readme.md +37 -0
- package/node_modules/lando/node_modules/yargs/README.md +16 -36
- package/node_modules/lando/node_modules/yargs/browser.d.ts +5 -0
- package/node_modules/lando/node_modules/yargs/browser.mjs +2 -2
- package/node_modules/lando/node_modules/yargs/build/lib/command.js +308 -211
- package/node_modules/lando/node_modules/yargs/build/lib/completion-templates.js +28 -9
- package/node_modules/lando/node_modules/yargs/build/lib/completion.js +233 -91
- package/node_modules/lando/node_modules/yargs/build/lib/middleware.js +51 -16
- package/node_modules/lando/node_modules/yargs/build/lib/usage.js +88 -52
- package/node_modules/lando/node_modules/yargs/build/lib/utils/apply-extends.js +4 -2
- package/node_modules/lando/node_modules/yargs/build/lib/utils/levenshtein.js +9 -1
- package/node_modules/lando/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
- package/node_modules/lando/node_modules/yargs/build/lib/validation.js +51 -54
- package/node_modules/lando/node_modules/yargs/build/lib/yargs-factory.js +1261 -887
- package/node_modules/lando/node_modules/yargs/build/lib/yerror.js +3 -1
- package/node_modules/lando/node_modules/yargs/index.mjs +4 -2
- package/node_modules/lando/node_modules/yargs/lib/platform-shims/browser.mjs +9 -2
- package/node_modules/lando/node_modules/yargs/lib/platform-shims/esm.mjs +22 -22
- package/node_modules/lando/node_modules/yargs/locales/cs.json +51 -0
- package/node_modules/lando/node_modules/yargs/locales/de.json +1 -1
- package/node_modules/lando/node_modules/yargs/locales/en.json +4 -0
- package/node_modules/lando/node_modules/yargs/locales/fi.json +1 -1
- package/node_modules/lando/node_modules/yargs/locales/he.json +55 -0
- package/node_modules/lando/node_modules/yargs/locales/ka.json +55 -0
- package/node_modules/lando/node_modules/yargs/locales/ko.json +25 -25
- package/node_modules/lando/node_modules/yargs/locales/ru.json +6 -1
- package/node_modules/lando/node_modules/yargs/locales/uk_UA.json +51 -0
- package/node_modules/lando/node_modules/yargs/locales/uz.json +52 -0
- package/node_modules/lando/node_modules/yargs/locales/zh_TW.json +50 -46
- package/node_modules/lando/node_modules/yargs/package.json +41 -60
- package/node_modules/lando/node_modules/yargs-parser/build/lib/index.js +13 -8
- package/node_modules/lando/node_modules/yargs-parser/build/lib/yargs-parser.js +21 -12
- package/node_modules/lando/node_modules/yargs-parser/package.json +31 -40
- package/node_modules/lando/package.json +59 -22
- package/node_modules/lando/plugins/lando-compose/index.js +4 -0
- package/node_modules/lando/plugins/lando-compose/lib/utils.js +16 -7
- package/node_modules/lando/plugins/lando-core/index.js +1 -2
- package/node_modules/lando/plugins/lando-core/lib/utils.js +35 -15
- package/node_modules/lando/plugins/lando-core/lib/warnings.js +27 -0
- package/node_modules/lando/plugins/lando-core/tasks/destroy.js +1 -1
- package/node_modules/lando/plugins/lando-core/tasks/rebuild.js +1 -1
- package/node_modules/lando/plugins/lando-events/index.js +4 -0
- package/node_modules/lando/plugins/lando-events/lib/utils.js +27 -6
- package/node_modules/lando/plugins/lando-networking/app.js +2 -2
- package/node_modules/lando/plugins/lando-networking/index.js +9 -2
- package/node_modules/lando/plugins/lando-networking/test/app.spec.js +87 -0
- package/node_modules/lando/plugins/lando-proxy/index.js +6 -1
- package/node_modules/lando/plugins/lando-proxy/lib/utils.js +63 -28
- package/node_modules/lando/plugins/lando-proxy/lib/warnings.js +10 -0
- package/node_modules/lando/plugins/lando-recipes/index.js +4 -0
- package/node_modules/lando/plugins/lando-recipes/lib/build.js +22 -4
- package/node_modules/lando/plugins/lando-recipes/lib/options.js +42 -66
- package/node_modules/lando/plugins/lando-recipes/lib/utils.js +30 -13
- package/node_modules/lando/plugins/lando-recipes/lib/warnings.js +5 -0
- package/node_modules/lando/plugins/lando-recipes/sources/remote.js +0 -26
- package/node_modules/lando/plugins/lando-recipes/tasks/init.js +1 -1
- package/node_modules/lando/plugins/lando-services/index.js +4 -0
- package/node_modules/lando/plugins/lando-services/lib/utils.js +38 -15
- package/node_modules/lando/plugins/lando-sharing/index.js +4 -0
- package/node_modules/lando/plugins/lando-sharing/lib/utils.js +28 -5
- package/node_modules/lando/plugins/lando-tooling/index.js +5 -0
- package/node_modules/lando/plugins/lando-tooling/lib/build.js +5 -2
- package/node_modules/lando/plugins/lando-tooling/lib/utils.js +83 -47
- package/node_modules/lando/test/cli.spec.js +59 -21
- package/node_modules/lando/test/docker.spec.js +24 -28
- package/node_modules/lando/test/env.spec.js +8 -0
- package/node_modules/lando/test/error.spec.js +1 -1
- package/node_modules/lando/test/events.spec.js +6 -7
- package/node_modules/lando/test/lando.spec.js +1 -1
- package/node_modules/lando/test/plugins.spec.js +2 -3
- package/node_modules/lando/test/promise.spec.js +1 -1
- package/node_modules/lando/test/scan.spec.js +1 -1
- package/node_modules/lando/test/shell.spec.js +19 -2
- package/node_modules/lando/test/utils.spec.js +52 -0
- package/node_modules/open/index.js +3 -5
- package/node_modules/open/package.json +1 -1
- package/node_modules/socket.io-client/README.md +1 -0
- package/node_modules/socket.io-client/build/cjs/index.d.ts +3 -3
- package/node_modules/socket.io-client/build/cjs/manager.d.ts +1 -2
- package/node_modules/socket.io-client/build/cjs/manager.js +17 -7
- package/node_modules/socket.io-client/build/cjs/socket.d.ts +5 -2
- package/node_modules/socket.io-client/build/cjs/socket.js +0 -1
- package/node_modules/socket.io-client/build/esm/index.d.ts +3 -3
- package/node_modules/socket.io-client/build/esm/index.js +1 -1
- package/node_modules/socket.io-client/build/esm/manager.d.ts +1 -2
- package/node_modules/socket.io-client/build/esm/package.json +1 -1
- package/node_modules/socket.io-client/build/esm/socket.d.ts +5 -2
- package/node_modules/socket.io-client/build/esm/socket.js +0 -1
- package/node_modules/socket.io-client/build/esm-debug/index.d.ts +3 -3
- package/node_modules/socket.io-client/build/esm-debug/index.js +1 -1
- package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +1 -2
- package/node_modules/socket.io-client/build/esm-debug/package.json +1 -1
- package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +5 -2
- package/node_modules/socket.io-client/build/esm-debug/socket.js +0 -1
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js +3 -3
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -1
- package/node_modules/socket.io-client/dist/socket.io.js +174 -242
- package/node_modules/socket.io-client/dist/socket.io.js.map +1 -1
- package/node_modules/socket.io-client/dist/socket.io.min.js +3 -3
- package/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -1
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +3 -3
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -1
- package/node_modules/socket.io-client/package.json +2 -2
- 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 +35 -4
- package/node_modules/undici/docs/docs/api/Agent.md +8 -8
- 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/DiagnosticsChannel.md +9 -6
- package/node_modules/undici/docs/docs/api/Dispatcher.md +12 -0
- package/node_modules/undici/docs/docs/api/Errors.md +101 -1
- package/node_modules/undici/docs/docs/api/Fetch.md +10 -0
- package/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
- package/node_modules/undici/docs/docs/api/Interceptors.md +17 -9
- package/node_modules/undici/docs/docs/api/Pool.md +5 -6
- package/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
- package/node_modules/undici/docs/docs/index.md +22 -13
- package/node_modules/undici/docs/docs/type-map.json +66 -66
- package/node_modules/undici/lib/api/readable.js +1 -2
- 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 +39 -3
- package/node_modules/undici/lib/core/symbols.js +2 -0
- package/node_modules/undici/lib/core/util.js +26 -40
- package/node_modules/undici/lib/dispatcher/agent.js +6 -2
- package/node_modules/undici/lib/dispatcher/client-h1.js +127 -84
- package/node_modules/undici/lib/dispatcher/client-h2.js +97 -21
- package/node_modules/undici/lib/dispatcher/client.js +10 -2
- 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/env-http-proxy-agent.js +21 -6
- package/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
- package/node_modules/undici/lib/dispatcher/pool-base.js +117 -19
- package/node_modules/undici/lib/dispatcher/pool.js +99 -13
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +34 -11
- 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 +126 -52
- package/node_modules/undici/lib/handler/redirect-handler.js +31 -6
- package/node_modules/undici/lib/handler/retry-handler.js +116 -24
- package/node_modules/undici/lib/interceptor/cache.js +15 -4
- package/node_modules/undici/lib/interceptor/decompress.js +253 -73
- 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/cache/cache.js +17 -8
- package/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
- package/node_modules/undici/lib/web/cookies/index.js +19 -7
- package/node_modules/undici/lib/web/cookies/util.js +21 -2
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
- package/node_modules/undici/lib/web/eventsource/eventsource.js +50 -3
- package/node_modules/undici/lib/web/fetch/body.js +69 -53
- package/node_modules/undici/lib/web/fetch/data-url.js +6 -6
- package/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
- package/node_modules/undici/lib/web/fetch/formdata.js +30 -36
- package/node_modules/undici/lib/web/fetch/headers.js +36 -33
- package/node_modules/undici/lib/web/fetch/index.js +54 -29
- package/node_modules/undici/lib/web/fetch/request.js +74 -79
- package/node_modules/undici/lib/web/fetch/response.js +43 -44
- package/node_modules/undici/lib/web/fetch/util.js +7 -7
- package/node_modules/undici/lib/web/infra/index.js +16 -1
- package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
- package/node_modules/undici/lib/web/webidl/index.js +2 -14
- package/node_modules/undici/lib/web/websocket/connection.js +33 -12
- package/node_modules/undici/lib/web/websocket/events.js +43 -26
- package/node_modules/undici/lib/web/websocket/receiver.js +27 -4
- package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +19 -4
- package/node_modules/undici/lib/web/websocket/websocket.js +44 -41
- package/node_modules/undici/package.json +7 -5
- package/node_modules/undici/types/cache-interceptor.d.ts +10 -0
- package/node_modules/undici/types/client.d.ts +10 -4
- package/node_modules/undici/types/diagnostics-channel.d.ts +2 -1
- 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 +7 -2
- package/node_modules/undici/types/webidl.d.ts +13 -7
- package/node_modules/{lando/node_modules/js-yaml → unicode-segmenter}/LICENSE +6 -6
- package/node_modules/unicode-segmenter/README.md +324 -0
- package/node_modules/unicode-segmenter/_emoji_data.cjs +24 -0
- package/node_modules/unicode-segmenter/_emoji_data.d.cts +1 -0
- package/node_modules/unicode-segmenter/_emoji_data.d.ts +12 -0
- package/node_modules/unicode-segmenter/_emoji_data.js +26 -0
- package/node_modules/unicode-segmenter/_general_data.cjs +30 -0
- package/node_modules/unicode-segmenter/_general_data.d.cts +1 -0
- package/node_modules/unicode-segmenter/_general_data.d.ts +16 -0
- package/node_modules/unicode-segmenter/_general_data.js +34 -0
- package/node_modules/unicode-segmenter/_grapheme_data.cjs +125 -0
- package/node_modules/unicode-segmenter/_grapheme_data.d.cts +1 -0
- package/node_modules/unicode-segmenter/_grapheme_data.d.ts +112 -0
- package/node_modules/unicode-segmenter/_grapheme_data.js +123 -0
- package/node_modules/unicode-segmenter/core.cjs +135 -0
- package/node_modules/unicode-segmenter/core.d.cts +1 -0
- package/node_modules/unicode-segmenter/core.d.ts +118 -0
- package/node_modules/unicode-segmenter/core.js +129 -0
- package/node_modules/unicode-segmenter/emoji.cjs +43 -0
- package/node_modules/unicode-segmenter/emoji.d.cts +1 -0
- package/node_modules/unicode-segmenter/emoji.d.ts +23 -0
- package/node_modules/unicode-segmenter/emoji.js +42 -0
- package/node_modules/unicode-segmenter/general.cjs +51 -0
- package/node_modules/unicode-segmenter/general.d.cts +1 -0
- package/node_modules/unicode-segmenter/general.d.ts +26 -0
- package/node_modules/unicode-segmenter/general.js +50 -0
- package/node_modules/unicode-segmenter/grapheme.cjs +405 -0
- package/node_modules/unicode-segmenter/grapheme.d.cts +1 -0
- package/node_modules/unicode-segmenter/grapheme.d.ts +64 -0
- package/node_modules/unicode-segmenter/grapheme.js +438 -0
- package/node_modules/unicode-segmenter/index.cjs +26 -0
- package/node_modules/unicode-segmenter/index.d.cts +1 -0
- package/node_modules/unicode-segmenter/index.d.ts +4 -0
- package/node_modules/unicode-segmenter/index.js +6 -0
- package/node_modules/unicode-segmenter/intl-adapter.cjs +124 -0
- package/node_modules/unicode-segmenter/intl-adapter.d.cts +1 -0
- package/node_modules/unicode-segmenter/intl-adapter.d.ts +62 -0
- package/node_modules/unicode-segmenter/intl-adapter.js +113 -0
- package/node_modules/unicode-segmenter/intl-polyfill.cjs +17 -0
- package/node_modules/unicode-segmenter/intl-polyfill.d.cts +1 -0
- package/node_modules/unicode-segmenter/intl-polyfill.d.ts +1 -0
- package/node_modules/unicode-segmenter/intl-polyfill.js +16 -0
- package/node_modules/unicode-segmenter/package.json +165 -0
- package/node_modules/unicode-segmenter/utils.cjs +99 -0
- package/node_modules/unicode-segmenter/utils.d.cts +1 -0
- package/node_modules/unicode-segmenter/utils.d.ts +64 -0
- package/node_modules/unicode-segmenter/utils.js +89 -0
- package/package.json +6 -6
- package/.buildkite/build-linux.sh +0 -68
- package/.buildkite/build-macos-installer.sh +0 -34
- package/.buildkite/build-macos.sh +0 -67
- package/.buildkite/build-windows-installer.ps1 +0 -65
- package/.buildkite/build-windows.ps1 +0 -59
- package/.buildkite/fetch-search-replace.sh +0 -65
- package/.buildkite/pack-release.sh +0 -26
- package/.buildkite/pipeline.yml +0 -81
- package/.buildkite/shared-pipeline-vars +0 -16
- package/.buildkite/sign-windows.ps1 +0 -21
- package/.buildkite/test-windows-installer-download.ps1 +0 -54
- package/.buildkite/test_pipeline.py +0 -69
- package/.bundle/config +0 -4
- package/.editorconfig +0 -11
- package/.prettierignore +0 -13
- package/.ruby-version +0 -1
- package/.sonarcloud.properties +0 -2
- package/.xcode-version +0 -1
- package/AGENTS.md +0 -101
- package/CLAUDE.md +0 -4
- package/Gemfile +0 -8
- package/Gemfile.lock +0 -377
- package/Makefile +0 -293
- package/cmd/installer-payload/main.go +0 -19
- package/cmd/installer-version/main.go +0 -22
- package/cmd/stamp-version/main.go +0 -25
- package/cmd/vip-next/auth_bootstrap.go +0 -139
- package/cmd/vip-next/auth_bootstrap_test.go +0 -379
- package/cmd/vip-next/auth_bypass_wiring_test.go +0 -162
- package/cmd/vip-next/cli_error_hook_test.go +0 -91
- package/cmd/vip-next/commands/app.go +0 -23
- package/cmd/vip-next/commands/app_debug_test.go +0 -89
- package/cmd/vip-next/commands/app_deploy.go +0 -217
- package/cmd/vip-next/commands/app_deploy_test.go +0 -297
- package/cmd/vip-next/commands/app_deploy_validate.go +0 -58
- package/cmd/vip-next/commands/app_get.go +0 -293
- package/cmd/vip-next/commands/app_get_test.go +0 -226
- package/cmd/vip-next/commands/app_list.go +0 -93
- package/cmd/vip-next/commands/app_list_test.go +0 -95
- package/cmd/vip-next/commands/backup.go +0 -16
- package/cmd/vip-next/commands/backup_db.go +0 -137
- package/cmd/vip-next/commands/backup_db_test.go +0 -187
- package/cmd/vip-next/commands/cache.go +0 -16
- package/cmd/vip-next/commands/cache_purge_url.go +0 -90
- package/cmd/vip-next/commands/cache_purge_url_test.go +0 -154
- package/cmd/vip-next/commands/config.go +0 -17
- package/cmd/vip-next/commands/config_debug_test.go +0 -137
- package/cmd/vip-next/commands/config_envvar.go +0 -16
- package/cmd/vip-next/commands/config_envvar_delete.go +0 -135
- package/cmd/vip-next/commands/config_envvar_delete_test.go +0 -140
- package/cmd/vip-next/commands/config_envvar_get.go +0 -72
- package/cmd/vip-next/commands/config_envvar_get_all.go +0 -58
- package/cmd/vip-next/commands/config_envvar_get_all_test.go +0 -83
- package/cmd/vip-next/commands/config_envvar_get_test.go +0 -79
- package/cmd/vip-next/commands/config_envvar_list.go +0 -70
- package/cmd/vip-next/commands/config_envvar_list_test.go +0 -134
- package/cmd/vip-next/commands/config_envvar_set.go +0 -162
- package/cmd/vip-next/commands/config_envvar_set_test.go +0 -251
- package/cmd/vip-next/commands/config_software.go +0 -229
- package/cmd/vip-next/commands/config_software_test.go +0 -161
- package/cmd/vip-next/commands/config_software_update.go +0 -270
- package/cmd/vip-next/commands/config_software_update_test.go +0 -334
- package/cmd/vip-next/commands/db.go +0 -16
- package/cmd/vip-next/commands/db_phpmyadmin.go +0 -122
- package/cmd/vip-next/commands/db_phpmyadmin_test.go +0 -277
- package/cmd/vip-next/commands/defensive_mode.go +0 -106
- package/cmd/vip-next/commands/defensive_mode_configure.go +0 -150
- package/cmd/vip-next/commands/defensive_mode_disable.go +0 -62
- package/cmd/vip-next/commands/defensive_mode_enable.go +0 -62
- package/cmd/vip-next/commands/defensive_mode_test.go +0 -389
- package/cmd/vip-next/commands/devenv.go +0 -48
- 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 -180
- 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 -778
- package/cmd/vip-next/commands/devenv_logs.go +0 -29
- package/cmd/vip-next/commands/devenv_resolve.go +0 -106
- 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_test.go +0 -60
- package/cmd/vip-next/commands/devenv_update.go +0 -207
- package/cmd/vip-next/commands/devenv_update_test.go +0 -109
- package/cmd/vip-next/commands/devenv_versions_proxy_test.go +0 -133
- package/cmd/vip-next/commands/edge_workers.go +0 -197
- package/cmd/vip-next/commands/edge_workers_flags.go +0 -56
- package/cmd/vip-next/commands/edge_workers_local.go +0 -127
- package/cmd/vip-next/commands/edge_workers_mutation.go +0 -130
- package/cmd/vip-next/commands/edge_workers_read.go +0 -103
- package/cmd/vip-next/commands/edge_workers_test.go +0 -272
- package/cmd/vip-next/commands/export.go +0 -16
- package/cmd/vip-next/commands/export_sql.go +0 -333
- package/cmd/vip-next/commands/export_sql_test.go +0 -321
- package/cmd/vip-next/commands/format_env.go +0 -17
- package/cmd/vip-next/commands/import.go +0 -19
- package/cmd/vip-next/commands/import_debug_test.go +0 -110
- package/cmd/vip-next/commands/import_media.go +0 -433
- package/cmd/vip-next/commands/import_media_abort.go +0 -76
- package/cmd/vip-next/commands/import_media_confirm.go +0 -83
- package/cmd/vip-next/commands/import_media_confirm_test.go +0 -249
- package/cmd/vip-next/commands/import_media_fetch_test.go +0 -98
- package/cmd/vip-next/commands/import_media_status.go +0 -58
- package/cmd/vip-next/commands/import_media_test.go +0 -370
- package/cmd/vip-next/commands/import_sql.go +0 -1161
- package/cmd/vip-next/commands/import_sql_status.go +0 -67
- package/cmd/vip-next/commands/import_sql_test.go +0 -746
- package/cmd/vip-next/commands/import_validate_files.go +0 -157
- package/cmd/vip-next/commands/import_validate_files_test.go +0 -157
- package/cmd/vip-next/commands/import_validate_sql.go +0 -207
- package/cmd/vip-next/commands/import_validate_sql_test.go +0 -293
- package/cmd/vip-next/commands/login.go +0 -53
- package/cmd/vip-next/commands/login_test.go +0 -25
- package/cmd/vip-next/commands/logout.go +0 -43
- package/cmd/vip-next/commands/logout_test.go +0 -158
- package/cmd/vip-next/commands/logs.go +0 -169
- package/cmd/vip-next/commands/logs_test.go +0 -174
- package/cmd/vip-next/commands/nodeflag_aliases.go +0 -59
- package/cmd/vip-next/commands/progress_renderer.go +0 -118
- package/cmd/vip-next/commands/progress_renderer_test.go +0 -28
- package/cmd/vip-next/commands/searchreplace.go +0 -75
- package/cmd/vip-next/commands/searchreplace_debug_test.go +0 -82
- package/cmd/vip-next/commands/searchreplace_test.go +0 -155
- package/cmd/vip-next/commands/slowlogs.go +0 -167
- package/cmd/vip-next/commands/slowlogs_test.go +0 -159
- package/cmd/vip-next/commands/sqlreport.go +0 -183
- package/cmd/vip-next/commands/sqlreport_test.go +0 -66
- package/cmd/vip-next/commands/sync.go +0 -189
- package/cmd/vip-next/commands/sync_confirm.go +0 -121
- package/cmd/vip-next/commands/sync_confirm_test.go +0 -202
- package/cmd/vip-next/commands/sync_render.go +0 -207
- package/cmd/vip-next/commands/sync_render_test.go +0 -101
- package/cmd/vip-next/commands/sync_test.go +0 -148
- package/cmd/vip-next/commands/update.go +0 -85
- package/cmd/vip-next/commands/update_test.go +0 -49
- package/cmd/vip-next/commands/whoami.go +0 -161
- package/cmd/vip-next/commands/whoami_debug_test.go +0 -79
- package/cmd/vip-next/commands/whoami_test.go +0 -85
- package/cmd/vip-next/commands/wp.go +0 -376
- package/cmd/vip-next/commands/wp_debug_test.go +0 -32
- package/cmd/vip-next/commands/wp_test.go +0 -276
- package/cmd/vip-next/debug_args.go +0 -63
- package/cmd/vip-next/debug_test.go +0 -122
- package/cmd/vip-next/edge_workers_test.go +0 -108
- package/cmd/vip-next/flags_node_parity_test.go +0 -434
- package/cmd/vip-next/main.go +0 -391
- package/cmd/vip-next/main_test.go +0 -202
- package/cmd/vip-next/pendo_wiring_test.go +0 -148
- package/cmd/vip-next/root.go +0 -211
- package/cmd/vip-next/update_bootstrap.go +0 -94
- package/cmd/vip-next/update_bootstrap_test.go +0 -85
- package/cmd/vip-next/update_integration_test.go +0 -137
- package/cmd/vip-next-prerelease/main.go +0 -108
- package/cmd/vip-next-prerelease/main_test.go +0 -46
- package/docs/ARCHITECTURE.md +0 -95
- package/docs/BUILD-SIGNING.md +0 -501
- package/docs/CHANGELOG.md +0 -1844
- package/docs/COMMANDER-MIGRATION.md +0 -45
- package/docs/CONTRIBUTING.md +0 -29
- package/docs/CUTOVER-BREAKING-CHANGES.md +0 -261
- package/docs/DEBUGGING.md +0 -94
- package/docs/EDGE-WORKERS.md +0 -256
- package/docs/GO-UPDATES.md +0 -97
- package/docs/NPM-RELEASE-RECOVERY.md +0 -47
- package/docs/RELEASING.md +0 -211
- package/docs/SECURITY.md +0 -9
- package/docs/SETUP.md +0 -154
- package/docs/TESTING.md +0 -67
- package/docs/decisions/0001-operation-scoped-elevated-token-reuse.md +0 -87
- package/docs/dev-env-windows-wsl-testing.md +0 -191
- package/docs/vip-next-vip-command-reference.md +0 -257
- package/docs/vip-wp-line-parse-dfa.dot +0 -31
- package/eslint.config.js +0 -35
- package/fastlane/Fastfile +0 -204
- package/fastlane/example.env +0 -8
- package/fastlane/test_signing.rb +0 -83
- package/go.mod +0 -39
- package/go.sum +0 -127
- package/internal/appctx/app_resolver.go +0 -202
- package/internal/appctx/app_resolver_test.go +0 -187
- package/internal/appctx/confirm.go +0 -180
- package/internal/appctx/confirm_payload_test.go +0 -201
- package/internal/appctx/confirm_test.go +0 -120
- package/internal/appctx/context.go +0 -94
- package/internal/appctx/context_test.go +0 -56
- package/internal/appctx/env_resolver.go +0 -110
- package/internal/appctx/env_resolver_test.go +0 -215
- package/internal/appctx/format.go +0 -72
- package/internal/appctx/format_test.go +0 -75
- package/internal/appctx/interactive.go +0 -50
- package/internal/appctx/interactive_test.go +0 -134
- package/internal/appctx/middleware.go +0 -56
- package/internal/appctx/middleware_test.go +0 -88
- package/internal/appctx/prompts.go +0 -70
- package/internal/appctx/prompts_test.go +0 -97
- package/internal/appctx/required_args.go +0 -24
- package/internal/appctx/required_args_test.go +0 -38
- package/internal/appctx/telemetry.go +0 -22
- package/internal/appctx/telemetry_test.go +0 -42
- package/internal/appctx/wildcard.go +0 -29
- package/internal/appctx/wildcard_test.go +0 -53
- package/internal/auth/bypass.go +0 -84
- package/internal/auth/bypass_test.go +0 -97
- package/internal/auth/login.go +0 -156
- package/internal/auth/login_test.go +0 -184
- package/internal/auth/logout.go +0 -44
- package/internal/auth/logout_test.go +0 -78
- package/internal/auth/store.go +0 -130
- package/internal/auth/store_test.go +0 -339
- package/internal/auth/token.go +0 -117
- package/internal/auth/token_test.go +0 -90
- package/internal/backup/backup.go +0 -194
- package/internal/backup/backup_test.go +0 -228
- package/internal/cachepurge/cachepurge.go +0 -38
- package/internal/cachepurge/cachepurge_test.go +0 -92
- package/internal/customdeploy/archive.go +0 -205
- package/internal/customdeploy/archive_test.go +0 -174
- package/internal/customdeploy/customdeploy.go +0 -91
- package/internal/customdeploy/customdeploy_test.go +0 -82
- package/internal/debuglog/debuglog.go +0 -85
- package/internal/debuglog/debuglog_test.go +0 -44
- package/internal/defensivemode/api.go +0 -89
- package/internal/defensivemode/api_test.go +0 -122
- package/internal/devenv/adapters.go +0 -168
- package/internal/devenv/adapters_test.go +0 -44
- package/internal/devenv/adopt.go +0 -20
- package/internal/devenv/adopt_setup_test.go +0 -30
- package/internal/devenv/compose/labels.go +0 -90
- package/internal/devenv/compose/labels_test.go +0 -136
- package/internal/devenv/compose/project.go +0 -88
- package/internal/devenv/compose/project_test.go +0 -148
- package/internal/devenv/compose/render.go +0 -54
- package/internal/devenv/compose/render_test.go +0 -90
- package/internal/devenv/compose/services.go +0 -337
- package/internal/devenv/compose/services_test.go +0 -258
- package/internal/devenv/compose/testdata/full.golden.yml +0 -265
- package/internal/devenv/compose/types.go +0 -97
- package/internal/devenv/compose/types_test.go +0 -61
- package/internal/devenv/compose/view.go +0 -205
- package/internal/devenv/compose/view_test.go +0 -120
- package/internal/devenv/configfile.go +0 -300
- package/internal/devenv/configfile_test.go +0 -246
- package/internal/devenv/create.go +0 -130
- package/internal/devenv/create_test.go +0 -98
- package/internal/devenv/debug.go +0 -4
- package/internal/devenv/debug_test.go +0 -103
- package/internal/devenv/devenv.go +0 -434
- package/internal/devenv/devenv_test.go +0 -77
- package/internal/devenv/devexec.go +0 -140
- package/internal/devenv/devexec_test.go +0 -91
- package/internal/devenv/devlog/devlog.go +0 -219
- package/internal/devenv/devlog/devlog_test.go +0 -112
- package/internal/devenv/devterm/devterm.go +0 -65
- package/internal/devenv/devterm/devterm_pty.go +0 -58
- package/internal/devenv/devterm/devterm_stub.go +0 -20
- package/internal/devenv/devterm/devterm_test.go +0 -78
- package/internal/devenv/dockercli/capture.go +0 -84
- package/internal/devenv/dockercli/capture_test.go +0 -33
- package/internal/devenv/dockercli/compose.go +0 -30
- package/internal/devenv/dockercli/compose_test.go +0 -35
- package/internal/devenv/dockercli/runner.go +0 -214
- package/internal/devenv/dockercli/runner_test.go +0 -157
- package/internal/devenv/dockercli/socket.go +0 -56
- package/internal/devenv/dockercli/socket_test.go +0 -52
- package/internal/devenv/e2e_gate_test.go +0 -17
- package/internal/devenv/e2e_test.go +0 -499
- package/internal/devenv/e2esafety/gate_wiring_test.go +0 -90
- package/internal/devenv/e2esafety/safety.go +0 -52
- package/internal/devenv/e2esafety/safety_test.go +0 -71
- package/internal/devenv/eachenv_test.go +0 -132
- package/internal/devenv/editor.go +0 -82
- package/internal/devenv/editor_test.go +0 -60
- package/internal/devenv/envfile.go +0 -287
- package/internal/devenv/envvar.go +0 -165
- package/internal/devenv/envvar_test.go +0 -178
- package/internal/devenv/hostops/context.go +0 -38
- package/internal/devenv/hostops/context_test.go +0 -24
- package/internal/devenv/hostops/e2e_gate_test.go +0 -17
- package/internal/devenv/hostops/e2e_test.go +0 -429
- package/internal/devenv/hostops/elevate.go +0 -248
- package/internal/devenv/hostops/elevate_message_test.go +0 -35
- package/internal/devenv/hostops/elevate_test.go +0 -111
- package/internal/devenv/hostops/hosts.go +0 -255
- package/internal/devenv/hostops/hosts_test.go +0 -178
- package/internal/devenv/hostops/thumbprint_test.go +0 -57
- package/internal/devenv/hostops/trust.go +0 -115
- package/internal/devenv/hostops/trust_test.go +0 -90
- package/internal/devenv/hostrefresh.go +0 -127
- package/internal/devenv/hostrefresh_test.go +0 -123
- package/internal/devenv/importdata.go +0 -491
- package/internal/devenv/importdata_test.go +0 -142
- package/internal/devenv/importdecompress_test.go +0 -90
- package/internal/devenv/importgate_test.go +0 -166
- package/internal/devenv/importvalidate.go +0 -437
- package/internal/devenv/importvalidate_test.go +0 -293
- package/internal/devenv/info_table.go +0 -165
- package/internal/devenv/info_table_test.go +0 -111
- package/internal/devenv/instancedata/instancedata.go +0 -239
- package/internal/devenv/instancedata/instancedata_test.go +0 -281
- package/internal/devenv/instancedata/testdata/legacy_keys.json +0 -16
- package/internal/devenv/instancedata/testdata/unknown_keys.json +0 -19
- package/internal/devenv/lifecycle/adopt.go +0 -24
- package/internal/devenv/lifecycle/adopt_test.go +0 -43
- package/internal/devenv/lifecycle/health.go +0 -28
- package/internal/devenv/lifecycle/health_test.go +0 -34
- package/internal/devenv/lifecycle/hosts.go +0 -42
- package/internal/devenv/lifecycle/hosts_test.go +0 -41
- package/internal/devenv/lifecycle/migrate.go +0 -44
- package/internal/devenv/lifecycle/migrate_test.go +0 -78
- package/internal/devenv/lifecycle/pull.go +0 -19
- package/internal/devenv/lifecycle/pull_test.go +0 -29
- package/internal/devenv/lifecycle/setup.go +0 -35
- package/internal/devenv/lifecycle/setup_test.go +0 -46
- package/internal/devenv/lifecycle/start.go +0 -132
- package/internal/devenv/lifecycle/start_test.go +0 -350
- package/internal/devenv/lifecycle/teardown.go +0 -32
- package/internal/devenv/lifecycle/teardown_test.go +0 -83
- package/internal/devenv/lifecycle/types.go +0 -86
- package/internal/devenv/lifecycle/waiter.go +0 -49
- package/internal/devenv/lifecycle/waiter_test.go +0 -98
- package/internal/devenv/list.go +0 -49
- package/internal/devenv/list_test.go +0 -24
- package/internal/devenv/logs.go +0 -43
- package/internal/devenv/logs_test.go +0 -28
- package/internal/devenv/materialize.go +0 -44
- package/internal/devenv/materialize_test.go +0 -112
- package/internal/devenv/paths/paths.go +0 -42
- package/internal/devenv/paths/paths_test.go +0 -39
- package/internal/devenv/postimport.go +0 -134
- package/internal/devenv/postimport_test.go +0 -389
- package/internal/devenv/proxy/ca.go +0 -110
- package/internal/devenv/proxy/ca_test.go +0 -111
- package/internal/devenv/proxy/network.go +0 -28
- package/internal/devenv/proxy/network_test.go +0 -68
- package/internal/devenv/proxy/ports.go +0 -104
- package/internal/devenv/proxy/ports_test.go +0 -76
- package/internal/devenv/proxy/proxy.go +0 -143
- package/internal/devenv/proxy/proxy_test.go +0 -149
- package/internal/devenv/proxy/scripts/gen-certs.sh +0 -73
- package/internal/devenv/proxy/spec.go +0 -60
- package/internal/devenv/proxy/spec_test.go +0 -44
- package/internal/devenv/proxy/testhelpers_test.go +0 -7
- package/internal/devenv/proxy_policy_test.go +0 -155
- package/internal/devenv/syncplan.go +0 -573
- package/internal/devenv/syncplan_test.go +0 -256
- package/internal/devenv/syncsql.go +0 -247
- package/internal/devenv/syncsql_repair.go +0 -169
- package/internal/devenv/syncsql_repair_test.go +0 -150
- package/internal/devenv/syncsql_test.go +0 -220
- package/internal/devenv/update.go +0 -87
- package/internal/devenv/update_test.go +0 -47
- package/internal/edgeworkers/api.go +0 -173
- package/internal/edgeworkers/api_test.go +0 -256
- package/internal/edgeworkers/build.go +0 -188
- package/internal/edgeworkers/build_test.go +0 -175
- package/internal/edgeworkers/confirmation.go +0 -72
- package/internal/edgeworkers/deployment.go +0 -156
- package/internal/edgeworkers/deployment_test.go +0 -165
- package/internal/edgeworkers/output.go +0 -131
- package/internal/edgeworkers/output_test.go +0 -98
- package/internal/edgeworkers/project.go +0 -264
- package/internal/edgeworkers/project_test.go +0 -167
- package/internal/edgeworkers/scaffold.go +0 -88
- package/internal/edgeworkers/templates/README.md +0 -25
- package/internal/edgeworkers/templates/edge-workers.json +0 -4
- package/internal/edgeworkers/templates/gitignore +0 -2
- package/internal/edgeworkers/templates/package.json +0 -16
- package/internal/edgeworkers/templates/tsconfig.json +0 -6
- package/internal/edgeworkers/templates/worker.ts +0 -19
- package/internal/edgeworkers/types.go +0 -37
- package/internal/edgeworkers/validation.go +0 -177
- package/internal/envalias/envalias.go +0 -50
- package/internal/envalias/envalias_test.go +0 -147
- package/internal/envvar/envvar.go +0 -253
- package/internal/envvar/envvar_test.go +0 -274
- package/internal/envvar/reload_manifest.go +0 -99
- package/internal/envvar/reload_manifest_test.go +0 -44
- package/internal/envvar/value_confirm.go +0 -26
- package/internal/envvar/value_confirm_test.go +0 -22
- package/internal/exit/exit.go +0 -94
- package/internal/exit/exit_test.go +0 -119
- package/internal/gql/SCHEMA.md +0 -21
- package/internal/gql/client.go +0 -54
- package/internal/gql/client_test.go +0 -71
- package/internal/gql/debug_test.go +0 -79
- package/internal/gql/decoder_compat_helpers_test.go +0 -35
- package/internal/gql/decoder_compat_test.go +0 -78
- package/internal/gql/doc.go +0 -13
- package/internal/gql/edgeworkerinput/input.go +0 -58
- package/internal/gql/edgeworkerinput/input_test.go +0 -52
- package/internal/gql/error.go +0 -163
- package/internal/gql/error_test.go +0 -203
- package/internal/gql/generated.go +0 -10425
- package/internal/gql/genqlient.yaml +0 -26
- package/internal/gql/import_sql_marshal_test.go +0 -69
- package/internal/gql/operation.go +0 -67
- package/internal/gql/operation_test.go +0 -60
- package/internal/gql/operations/app_get.graphql +0 -43
- package/internal/gql/operations/app_list.graphql +0 -9
- package/internal/gql/operations/app_resolve.graphql +0 -37
- package/internal/gql/operations/backup_export_deploy.graphql +0 -123
- package/internal/gql/operations/cachepurge.graphql +0 -6
- package/internal/gql/operations/defensive_mode.graphql +0 -13
- package/internal/gql/operations/dev_env_create.graphql +0 -38
- package/internal/gql/operations/dev_env_sync.graphql +0 -15
- package/internal/gql/operations/edge_workers.graphql +0 -53
- package/internal/gql/operations/envvar.graphql +0 -52
- package/internal/gql/operations/fragments.graphql +0 -5
- package/internal/gql/operations/import_media.graphql +0 -61
- package/internal/gql/operations/import_sql.graphql +0 -135
- package/internal/gql/operations/logs.graphql +0 -22
- package/internal/gql/operations/me.graphql +0 -13
- package/internal/gql/operations/phpmyadmin.graphql +0 -21
- package/internal/gql/operations/slowlogs.graphql +0 -25
- package/internal/gql/operations/software.graphql +0 -53
- package/internal/gql/operations/sync.graphql +0 -51
- package/internal/gql/operations/wp.graphql +0 -37
- package/internal/gql/proxy_test.go +0 -62
- package/internal/gql/rechallenge.go +0 -218
- package/internal/gql/rechallenge_test.go +0 -471
- package/internal/gql/retry.go +0 -130
- package/internal/gql/retry_test.go +0 -230
- package/internal/gql/schema.gql +0 -9337
- package/internal/gql/transport.go +0 -65
- package/internal/gql/transport_helper.go +0 -24
- package/internal/httpproxy/callers_test.go +0 -211
- package/internal/httpproxy/debug_test.go +0 -32
- package/internal/httpproxy/httpproxy.go +0 -315
- package/internal/httpproxy/httpproxy_test.go +0 -435
- package/internal/installer/version.go +0 -41
- package/internal/installer/version_test.go +0 -33
- package/internal/keychain/fallback.go +0 -93
- package/internal/keychain/keychain.go +0 -197
- package/internal/keychain/keychain_select_test.go +0 -34
- package/internal/keychain/keychain_test.go +0 -112
- package/internal/logsapi/logsapi.go +0 -165
- package/internal/logsapi/logsapi_test.go +0 -82
- package/internal/mediaimport/mediaimport.go +0 -26
- package/internal/mediaimport/mediaimport_test.go +0 -46
- package/internal/mediaimport/status.go +0 -162
- package/internal/mediaimport/status_test.go +0 -159
- package/internal/mediaimport/tracker.go +0 -116
- package/internal/mediaimport/tracker_test.go +0 -62
- package/internal/nodeflags/nodeflags.go +0 -130
- package/internal/nodeflags/nodeflags_test.go +0 -138
- package/internal/nodeflags/optionalvalue.go +0 -123
- package/internal/nodeflags/optionalvalue_test.go +0 -158
- package/internal/output/csv.go +0 -178
- package/internal/output/fields.go +0 -22
- package/internal/output/fields_test.go +0 -21
- package/internal/output/ids.go +0 -26
- package/internal/output/ids_test.go +0 -32
- package/internal/output/json.go +0 -113
- package/internal/output/keyvalue.go +0 -35
- package/internal/output/keyvalue_block.go +0 -77
- package/internal/output/keyvalue_block_test.go +0 -95
- package/internal/output/keyvalue_test.go +0 -35
- package/internal/output/ordered.go +0 -44
- package/internal/output/ordered_test.go +0 -42
- package/internal/output/output.go +0 -62
- package/internal/output/output_test.go +0 -400
- package/internal/output/table.go +0 -231
- package/internal/output/table_layout.go +0 -472
- package/internal/output/table_layout_test.go +0 -107
- package/internal/output/table_layout_tty_test.go +0 -63
- package/internal/output/text.go +0 -24
- package/internal/output/text_test.go +0 -31
- package/internal/output/typename.go +0 -35
- package/internal/output/typename_test.go +0 -48
- package/internal/parity/backup_export_deploy_scenario_test.go +0 -285
- package/internal/parity/cache_scenario_test.go +0 -173
- package/internal/parity/command_surface_scenario_test.go +0 -530
- package/internal/parity/defensive_mode_scenario_test.go +0 -133
- package/internal/parity/diff.go +0 -128
- package/internal/parity/diff_test.go +0 -155
- package/internal/parity/differential_test.go +0 -166
- package/internal/parity/edge_workers_build_smoke_test.go +0 -69
- package/internal/parity/edge_workers_cases_test.go +0 -77
- package/internal/parity/edge_workers_debug_test.go +0 -87
- package/internal/parity/edge_workers_differential_test.go +0 -483
- package/internal/parity/edge_workers_prompt_test.go +0 -151
- package/internal/parity/env.go +0 -176
- package/internal/parity/env_test.go +0 -211
- package/internal/parity/envvar_mutation_scenario_test.go +0 -188
- package/internal/parity/harness.go +0 -28
- package/internal/parity/harness_test.go +0 -62
- package/internal/parity/import_media_scenario_test.go +0 -207
- package/internal/parity/import_sql_scenario_test.go +0 -198
- package/internal/parity/import_validate_sql_scenario_test.go +0 -68
- package/internal/parity/keychain.go +0 -538
- package/internal/parity/keychain_test.go +0 -201
- package/internal/parity/m5_differential_test.go +0 -185
- package/internal/parity/m5_scenarios_test.go +0 -225
- package/internal/parity/nodebin.go +0 -120
- package/internal/parity/nodebin_test.go +0 -148
- package/internal/parity/parker.go +0 -491
- package/internal/parity/parker_discovery.go +0 -373
- package/internal/parity/parker_discovery_test.go +0 -267
- package/internal/parity/parker_live_test.go +0 -164
- package/internal/parity/parker_test.go +0 -480
- package/internal/parity/pendo_test.go +0 -122
- package/internal/parity/phpmyadmin_scenario_test.go +0 -214
- package/internal/parity/runner.go +0 -56
- package/internal/parity/runner_test.go +0 -67
- package/internal/parity/scenario.go +0 -82
- package/internal/parity/scenario_test.go +0 -52
- package/internal/parity/surface_differential_test.go +0 -494
- package/internal/parity/sync_scenario_test.go +0 -172
- package/internal/parity/vendored_src_test.go +0 -84
- package/internal/parity/whoami_scenario_test.go +0 -69
- package/internal/parity/wp_scenario_test.go +0 -428
- package/internal/phpmyadmin/client.go +0 -221
- package/internal/phpmyadmin/client_test.go +0 -418
- package/internal/poll/poll.go +0 -85
- package/internal/poll/poll_test.go +0 -136
- package/internal/polling/polling.go +0 -97
- package/internal/polling/polling_test.go +0 -59
- package/internal/rechallenge/browser.go +0 -16
- package/internal/rechallenge/client.go +0 -198
- package/internal/rechallenge/client_test.go +0 -169
- package/internal/rechallenge/errors.go +0 -137
- package/internal/rechallenge/errors_test.go +0 -81
- package/internal/rechallenge/flow.go +0 -232
- package/internal/rechallenge/flow_noninteractive_test.go +0 -285
- package/internal/rechallenge/flow_test.go +0 -217
- package/internal/rechallenge/interactive.go +0 -90
- package/internal/rechallenge/interactive_test.go +0 -106
- package/internal/rechallenge/redact.go +0 -36
- package/internal/rechallenge/redact_test.go +0 -142
- package/internal/rechallenge/tokencache.go +0 -148
- package/internal/rechallenge/tokencache_test.go +0 -139
- package/internal/rechallenge/types.go +0 -100
- package/internal/rechallenge/types_test.go +0 -56
- package/internal/redact/redact.go +0 -99
- package/internal/redact/redact_test.go +0 -80
- package/internal/releasepromotion/buildkite.go +0 -233
- package/internal/releasepromotion/buildkite_test.go +0 -284
- package/internal/releasepromotion/contract.go +0 -165
- package/internal/releasepromotion/contract_test.go +0 -211
- package/internal/releasepromotion/github.go +0 -378
- package/internal/releasepromotion/github_test.go +0 -399
- package/internal/releasepromotion/optional_installers_test.go +0 -87
- package/internal/releasepromotion/promoter.go +0 -134
- package/internal/releasepromotion/promoter_test.go +0 -147
- package/internal/releasepromotion/verify.go +0 -239
- package/internal/releasepromotion/verify_test.go +0 -296
- package/internal/searchreplace/debug_test.go +0 -71
- package/internal/searchreplace/dumpdetails.go +0 -104
- package/internal/searchreplace/dumpdetails_test.go +0 -86
- package/internal/searchreplace/searchreplace.go +0 -261
- package/internal/searchreplace/searchreplace_test.go +0 -250
- package/internal/siteimport/debug_test.go +0 -34
- package/internal/siteimport/siteimport.go +0 -18
- package/internal/siteimport/siteimport_test.go +0 -19
- package/internal/siteimport/sitetype.go +0 -74
- package/internal/siteimport/sitetype_test.go +0 -62
- package/internal/siteimport/status.go +0 -282
- package/internal/siteimport/status_test.go +0 -234
- package/internal/slowlogsapi/slowlogsapi.go +0 -176
- package/internal/slowlogsapi/slowlogsapi_test.go +0 -93
- package/internal/softwaresettings/format.go +0 -192
- package/internal/softwaresettings/format_test.go +0 -123
- package/internal/sqlexport/diskspace.go +0 -36
- package/internal/sqlexport/diskspace_unix.go +0 -24
- package/internal/sqlexport/diskspace_windows.go +0 -26
- package/internal/sqlexport/download.go +0 -75
- package/internal/sqlexport/download_test.go +0 -103
- package/internal/sqlexport/export.go +0 -321
- package/internal/sqlexport/export_test.go +0 -313
- package/internal/sqlexport/format.go +0 -44
- package/internal/sqlexport/livecopy.go +0 -150
- package/internal/sqlexport/livecopy_test.go +0 -273
- package/internal/sqlvalidation/devenv_checks_test.go +0 -134
- package/internal/sqlvalidation/filename.go +0 -30
- package/internal/sqlvalidation/line_by_line.go +0 -91
- package/internal/sqlvalidation/line_by_line_test.go +0 -165
- package/internal/sqlvalidation/multisite.go +0 -31
- package/internal/sqlvalidation/multisite_test.go +0 -34
- package/internal/sqlvalidation/sql.go +0 -510
- package/internal/sqlvalidation/sql_test.go +0 -206
- package/internal/sync/sync.go +0 -246
- package/internal/sync/sync_test.go +0 -253
- package/internal/telemetry/config.go +0 -34
- package/internal/telemetry/default.go +0 -67
- package/internal/telemetry/default_endpoint_test.go +0 -111
- package/internal/telemetry/pendo.go +0 -185
- package/internal/telemetry/pendo_auth_test.go +0 -92
- package/internal/telemetry/pendo_test.go +0 -252
- package/internal/telemetry/scrub.go +0 -90
- package/internal/telemetry/scrub_test.go +0 -131
- package/internal/telemetry/tracker.go +0 -102
- package/internal/telemetry/tracker_test.go +0 -76
- package/internal/telemetry/tracks.go +0 -82
- package/internal/telemetry/tracks_test.go +0 -129
- package/internal/telemetry/uuid.go +0 -50
- package/internal/telemetry/uuid_test.go +0 -90
- package/internal/tui/progress.go +0 -153
- package/internal/tui/progress_test.go +0 -89
- package/internal/tui/progress_tracker.go +0 -299
- package/internal/tui/progress_tracker_test.go +0 -155
- package/internal/update/archive.go +0 -134
- package/internal/update/archive_test.go +0 -132
- package/internal/update/download.go +0 -138
- package/internal/update/download_test.go +0 -32
- package/internal/update/github.go +0 -121
- package/internal/update/install.go +0 -265
- package/internal/update/install_test.go +0 -151
- package/internal/update/lock_unix.go +0 -23
- package/internal/update/lock_windows.go +0 -22
- package/internal/update/native_test.go +0 -70
- package/internal/update/notify.go +0 -91
- package/internal/update/ownership.go +0 -117
- package/internal/update/ownership_test.go +0 -102
- package/internal/update/release.go +0 -120
- package/internal/update/release_test.go +0 -168
- package/internal/update/service.go +0 -197
- package/internal/update/service_test.go +0 -118
- package/internal/update/state.go +0 -116
- package/internal/update/state_test.go +0 -132
- package/internal/upload/debug_test.go +0 -76
- package/internal/upload/filemeta.go +0 -112
- package/internal/upload/filemeta_test.go +0 -94
- package/internal/upload/multipart.go +0 -215
- package/internal/upload/multipart_test.go +0 -210
- package/internal/upload/orchestrate.go +0 -81
- package/internal/upload/parts.go +0 -39
- package/internal/upload/parts_test.go +0 -39
- package/internal/upload/presign.go +0 -103
- package/internal/upload/presign_test.go +0 -128
- package/internal/upload/proxy_test.go +0 -55
- package/internal/upload/putobject.go +0 -92
- package/internal/upload/putobject_test.go +0 -79
- package/internal/upload/retry.go +0 -45
- package/internal/upload/upload.go +0 -22
- package/internal/upload/xmlerror.go +0 -28
- package/internal/validatefiles/files.go +0 -105
- package/internal/validatefiles/files_test.go +0 -143
- package/internal/validatefiles/report.go +0 -172
- package/internal/validatefiles/validatefiles.go +0 -271
- package/internal/validatefiles/validatefiles_test.go +0 -127
- package/internal/version/stamp.go +0 -15
- package/internal/version/stamp_test.go +0 -25
- package/internal/version/version.go +0 -14
- package/internal/version/version_test.go +0 -25
- package/internal/wpshell/parser.go +0 -68
- package/internal/wpshell/parser_test.go +0 -58
- package/internal/wpshell/repl.go +0 -81
- package/internal/wpshell/repl_test.go +0 -71
- package/internal/wpshell/requote.go +0 -13
- package/internal/wpshell/requote_test.go +0 -15
- package/internal/wpssh/debug_test.go +0 -67
- package/internal/wpssh/wpssh.go +0 -124
- package/internal/wpssh/wpssh_test.go +0 -203
- package/internal/wpstream/debug_test.go +0 -116
- package/internal/wpstream/e2e_test.go +0 -178
- package/internal/wpstream/engineio.go +0 -291
- package/internal/wpstream/engineio_test.go +0 -82
- package/internal/wpstream/iostream.go +0 -391
- package/internal/wpstream/iostream_test.go +0 -138
- package/internal/wpstream/run.go +0 -364
- package/internal/wpstream/run_test.go +0 -184
- package/internal/wpstream/socketio.go +0 -435
- package/internal/wpstream/socketio_test.go +0 -402
- package/internal/wpstream/testdata/fixture-server.js +0 -54
- package/make.ps1 +0 -155
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs +0 -3
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs.map +0 -1
- package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.d.cts +0 -10
- package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.d.ts +0 -10
- package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js +0 -2
- package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js.map +0 -1
- package/node_modules/argparse/LICENSE +0 -254
- package/node_modules/argparse/README.md +0 -84
- package/node_modules/argparse/package.json +0 -31
- package/node_modules/lando/node_modules/cliui/build/index.cjs +0 -302
- package/node_modules/lando/node_modules/cliui/build/lib/string-utils.js +0 -27
- package/node_modules/lando/node_modules/js-yaml/README.md +0 -233
- package/node_modules/lando/node_modules/js-yaml/bin/js-yaml.js +0 -117
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js +0 -3022
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js.map +0 -1
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js.map +0 -1
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs +0 -3082
- package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs.map +0 -1
- package/node_modules/lando/node_modules/js-yaml/index.js +0 -44
- package/node_modules/lando/node_modules/js-yaml/lib/common.js +0 -50
- package/node_modules/lando/node_modules/js-yaml/lib/dumper.js +0 -937
- package/node_modules/lando/node_modules/js-yaml/lib/exception.js +0 -51
- package/node_modules/lando/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs +0 -37
- package/node_modules/lando/node_modules/js-yaml/lib/loader.js +0 -1803
- package/node_modules/lando/node_modules/js-yaml/lib/schema/core.js +0 -9
- package/node_modules/lando/node_modules/js-yaml/lib/schema/default.js +0 -20
- package/node_modules/lando/node_modules/js-yaml/lib/schema/failsafe.js +0 -14
- package/node_modules/lando/node_modules/js-yaml/lib/schema/json.js +0 -17
- package/node_modules/lando/node_modules/js-yaml/lib/schema.js +0 -109
- package/node_modules/lando/node_modules/js-yaml/lib/snippet.js +0 -96
- package/node_modules/lando/node_modules/js-yaml/lib/type/binary.js +0 -122
- package/node_modules/lando/node_modules/js-yaml/lib/type/bool.js +0 -35
- package/node_modules/lando/node_modules/js-yaml/lib/type/float.js +0 -99
- package/node_modules/lando/node_modules/js-yaml/lib/type/int.js +0 -142
- package/node_modules/lando/node_modules/js-yaml/lib/type/map.js +0 -8
- package/node_modules/lando/node_modules/js-yaml/lib/type/merge.js +0 -12
- package/node_modules/lando/node_modules/js-yaml/lib/type/null.js +0 -35
- package/node_modules/lando/node_modules/js-yaml/lib/type/omap.js +0 -45
- package/node_modules/lando/node_modules/js-yaml/lib/type/pairs.js +0 -50
- package/node_modules/lando/node_modules/js-yaml/lib/type/seq.js +0 -8
- package/node_modules/lando/node_modules/js-yaml/lib/type/set.js +0 -29
- package/node_modules/lando/node_modules/js-yaml/lib/type/str.js +0 -8
- package/node_modules/lando/node_modules/js-yaml/lib/type/timestamp.js +0 -88
- package/node_modules/lando/node_modules/js-yaml/lib/type.js +0 -66
- package/node_modules/lando/node_modules/js-yaml/package.json +0 -83
- package/node_modules/lando/node_modules/wrap-ansi/index.js +0 -216
- package/node_modules/lando/node_modules/wrap-ansi/package.json +0 -62
- package/node_modules/lando/node_modules/wrap-ansi/readme.md +0 -91
- package/node_modules/lando/node_modules/yargs/build/index.cjs +0 -2920
- package/node_modules/lando/node_modules/yargs/helpers/index.js +0 -14
- package/node_modules/lando/node_modules/yargs/index.cjs +0 -39
- package/node_modules/lando/node_modules/yargs/yargs +0 -9
- package/node_modules/lando/node_modules/yargs-parser/build/index.cjs +0 -1042
- package/node_modules/lando/plugins/lando-test/index.js +0 -3
- package/node_modules/lando/plugins/lando-test/plugin.yml +0 -2
- package/packaging/macos/build-pkg.sh +0 -53
- package/packaging/macos/preinstall +0 -33
- package/packaging/macos/test-install.sh +0 -51
- package/packaging/macos/test_package.py +0 -74
- package/packaging/macos/uninstall.sh +0 -24
- package/packaging/macos/verify-pkg.py +0 -61
- package/packaging/windows/build-msi.ps1 +0 -153
- package/packaging/windows/test-msi.ps1 +0 -225
- package/packaging/windows/verify-msi.ps1 +0 -74
- package/packaging/windows/vip-next.wxs +0 -79
- package/scripts/catalog_script_test.go +0 -123
- package/scripts/vip-next-command-catalog.sh +0 -506
- package/test-utils/undici-mock.js +0 -25
- package/testdata/installer-fixture/main.go +0 -40
- package/testdata/parity/app-deploy-completed.yaml +0 -14
- package/testdata/parity/app-deploy-missing-token.yaml +0 -21
- package/testdata/parity/app-deploy-validate-clean.yaml +0 -11
- package/testdata/parity/app-deploy-validate-missing-themes.yaml +0 -21
- package/testdata/parity/app-get-baseline.yaml +0 -14
- package/testdata/parity/app-get-custom-deploy.yaml +0 -14
- package/testdata/parity/app-get-json.yaml +0 -14
- package/testdata/parity/app-get-not-found.yaml +0 -13
- package/testdata/parity/app-list-baseline.yaml +0 -14
- package/testdata/parity/app-list-csv.yaml +0 -13
- package/testdata/parity/app-list-empty.yaml +0 -13
- package/testdata/parity/app-list-ids.yaml +0 -26
- package/testdata/parity/app-list-json.yaml +0 -13
- package/testdata/parity/app-list-unknown-format.yaml +0 -29
- package/testdata/parity/backup-db-already-in-progress.yaml +0 -15
- package/testdata/parity/backup-db-completed.yaml +0 -14
- package/testdata/parity/backup-db-help.yaml +0 -10
- package/testdata/parity/cache-purge-url-empty.yaml +0 -26
- package/testdata/parity/cache-purge-url-from-file.yaml +0 -21
- package/testdata/parity/cache-purge-url-multi.yaml +0 -19
- package/testdata/parity/cache-purge-url-single.yaml +0 -18
- package/testdata/parity/defensive-mode-enable-with-rechallenge.yaml +0 -20
- package/testdata/parity/edge-workers-artifact-symlink.yaml +0 -8
- package/testdata/parity/edge-workers-bare-location.yaml +0 -8
- package/testdata/parity/edge-workers-bare-path.yaml +0 -8
- package/testdata/parity/edge-workers-bare-type.yaml +0 -8
- package/testdata/parity/edge-workers-build-all.yaml +0 -8
- package/testdata/parity/edge-workers-build-compiler-error.yaml +0 -8
- package/testdata/parity/edge-workers-build-empty.yaml +0 -8
- package/testdata/parity/edge-workers-build-missing-compiler.yaml +0 -8
- package/testdata/parity/edge-workers-build-name-all.yaml +0 -8
- package/testdata/parity/edge-workers-build-one.yaml +0 -8
- package/testdata/parity/edge-workers-delete-force.yaml +0 -8
- package/testdata/parity/edge-workers-delete-rejected.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-active-update-enable.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-active-update.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-all-preparation-failure.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-create-enable.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-create.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-enable-failure.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-inactive-update-enable.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-inactive-update.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-location-clear.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-location-preserve.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-location-replace.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-name-all.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-production-refused.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-production-skip.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-skip-source-create.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-skip-source.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-skip-validate.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-source-empty.yaml +0 -8
- package/testdata/parity/edge-workers-deploy-upload-failure.yaml +0 -8
- package/testdata/parity/edge-workers-disable.yaml +0 -8
- package/testdata/parity/edge-workers-double-dash.yaml +0 -8
- package/testdata/parity/edge-workers-duplicate-names.yaml +0 -8
- package/testdata/parity/edge-workers-enable-production-refused.yaml +0 -8
- package/testdata/parity/edge-workers-enable.yaml +0 -8
- package/testdata/parity/edge-workers-entry-escape.yaml +0 -8
- package/testdata/parity/edge-workers-get-empty-source.yaml +0 -8
- package/testdata/parity/edge-workers-get-missing.yaml +0 -8
- package/testdata/parity/edge-workers-get-no-source.yaml +0 -8
- package/testdata/parity/edge-workers-get-source.yaml +0 -8
- package/testdata/parity/edge-workers-get.yaml +0 -8
- package/testdata/parity/edge-workers-init-invalid-type.yaml +0 -8
- package/testdata/parity/edge-workers-init-nonempty.yaml +0 -8
- package/testdata/parity/edge-workers-init.yaml +0 -8
- package/testdata/parity/edge-workers-json-control-name.yaml +0 -8
- package/testdata/parity/edge-workers-list-csv.yaml +0 -8
- package/testdata/parity/edge-workers-list-empty-json.yaml +0 -8
- package/testdata/parity/edge-workers-list-empty.yaml +0 -8
- package/testdata/parity/edge-workers-list-json.yaml +0 -8
- package/testdata/parity/edge-workers-list-table.yaml +0 -8
- package/testdata/parity/edge-workers-mutation-graphql-error.yaml +0 -8
- package/testdata/parity/edge-workers-mutation-null.yaml +0 -8
- package/testdata/parity/edge-workers-new-invalid-location.yaml +0 -8
- package/testdata/parity/edge-workers-new-invalid-name.yaml +0 -8
- package/testdata/parity/edge-workers-new-location.yaml +0 -8
- package/testdata/parity/edge-workers-new.yaml +0 -8
- package/testdata/parity/edge-workers-read-null.yaml +0 -8
- package/testdata/parity/edge-workers-repeated-path.yaml +0 -8
- package/testdata/parity/edge-workers-repeated-type.yaml +0 -8
- package/testdata/parity/edge-workers-short-equals.yaml +0 -8
- package/testdata/parity/edge-workers-table-control-name.yaml +0 -8
- package/testdata/parity/edge-workers-unicode-order.yaml +0 -8
- package/testdata/parity/edge-workers-validate-all.yaml +0 -8
- package/testdata/parity/edge-workers-validate-invalid.yaml +0 -8
- package/testdata/parity/edge-workers-validate-name-all.yaml +0 -8
- package/testdata/parity/edge-workers-validate-no-artifact.yaml +0 -8
- package/testdata/parity/edge-workers-validate-no-name.yaml +0 -8
- package/testdata/parity/edge-workers-validate-null.yaml +0 -8
- package/testdata/parity/edge-workers-validate.yaml +0 -8
- package/testdata/parity/envvar-delete-baseline.yaml +0 -19
- package/testdata/parity/envvar-delete-prod-cancel.yaml +0 -41
- package/testdata/parity/envvar-delete-typed-mismatch.yaml +0 -44
- package/testdata/parity/envvar-get-baseline.yaml +0 -14
- package/testdata/parity/envvar-get-lowercase-input.yaml +0 -14
- package/testdata/parity/envvar-get-named-help.yaml +0 -24
- package/testdata/parity/envvar-get-not-found.yaml +0 -17
- package/testdata/parity/envvar-getall-baseline.yaml +0 -14
- package/testdata/parity/envvar-getall-empty.yaml +0 -15
- package/testdata/parity/envvar-getall-keyvalue.yaml +0 -22
- package/testdata/parity/envvar-list-baseline.yaml +0 -15
- package/testdata/parity/envvar-list-empty.yaml +0 -15
- package/testdata/parity/envvar-list-ids.yaml +0 -14
- package/testdata/parity/envvar-list-json.yaml +0 -14
- package/testdata/parity/envvar-list-keyvalue.yaml +0 -22
- package/testdata/parity/envvar-set-baseline.yaml +0 -21
- package/testdata/parity/envvar-set-invalid-name.yaml +0 -20
- package/testdata/parity/envvar-set-newrelic-blocked.yaml +0 -21
- package/testdata/parity/envvar-set-prod-cancel.yaml +0 -42
- package/testdata/parity/envvar-set-prod-confirm-skipped.yaml +0 -20
- package/testdata/parity/export-sql-completed.yaml +0 -14
- package/testdata/parity/export-sql-config-conflict.yaml +0 -21
- package/testdata/parity/export-sql-help.yaml +0 -11
- package/testdata/parity/import-media-abort-noninteractive.yaml +0 -19
- package/testdata/parity/import-media-help.yaml +0 -12
- package/testdata/parity/import-media-invalid-archive.yaml +0 -18
- package/testdata/parity/import-media-status-completed.yaml +0 -19
- package/testdata/parity/import-media-status-failed.yaml +0 -18
- package/testdata/parity/import-media-url-completed.yaml +0 -18
- package/testdata/parity/import-sql-bad-extension.yaml +0 -26
- package/testdata/parity/import-sql-help.yaml +0 -12
- package/testdata/parity/import-sql-in-progress.yaml +0 -26
- package/testdata/parity/import-sql-invalid-md5.yaml +0 -27
- package/testdata/parity/import-sql-noninteractive-abort.yaml +0 -20
- package/testdata/parity/import-sql-status-completed.yaml +0 -17
- package/testdata/parity/import-sql-status-no-job.yaml +0 -17
- package/testdata/parity/import-sql-validation-failure.yaml +0 -18
- package/testdata/parity/import-validate-files-clean.yaml +0 -18
- package/testdata/parity/import-validate-files-not-dir.yaml +0 -16
- package/testdata/parity/import-validate-sql-clean.yaml +0 -23
- package/testdata/parity/import-validate-sql-dangerous-stmt.yaml +0 -27
- package/testdata/parity/import-validate-sql-multisite-warn.yaml +0 -23
- package/testdata/parity/logs-baseline.yaml +0 -24
- package/testdata/parity/logs-batch.yaml +0 -24
- package/testdata/parity/logs-empty.yaml +0 -15
- package/testdata/parity/logs-format-json.yaml +0 -15
- package/testdata/parity/logs-limit-100.yaml +0 -24
- package/testdata/parity/phpmyadmin-error.yaml +0 -24
- package/testdata/parity/phpmyadmin-print.yaml +0 -22
- package/testdata/parity/phpmyadmin-silent.yaml +0 -16
- package/testdata/parity/recordings/app-get-baseline/app.json +0 -11
- package/testdata/parity/recordings/app-get-custom-deploy/app.json +0 -8
- package/testdata/parity/recordings/app-get-json/app.json +0 -11
- package/testdata/parity/recordings/app-get-not-found/app.json +0 -1
- package/testdata/parity/recordings/app-list-baseline/apps.json +0 -1
- package/testdata/parity/recordings/app-list-csv/apps.json +0 -1
- package/testdata/parity/recordings/app-list-empty/apps.json +0 -1
- package/testdata/parity/recordings/app-list-json/apps.json +0 -1
- package/testdata/parity/recordings/backup-db-already-in-progress/backup-status-1.json +0 -1
- package/testdata/parity/recordings/backup-db-already-in-progress/backup-status-2.json +0 -1
- package/testdata/parity/recordings/backup-db-completed/backup-status-1.json +0 -1
- package/testdata/parity/recordings/backup-db-completed/backup-status-2.json +0 -1
- package/testdata/parity/recordings/backup-db-completed/backup-status-3.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-from-file/purge.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-from-file/resolve-app.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-from-file/urls.txt +0 -2
- package/testdata/parity/recordings/cache-purge-url-multi/purge.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-multi/resolve-app.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-single/purge.json +0 -1
- package/testdata/parity/recordings/cache-purge-url-single/resolve-app.json +0 -1
- package/testdata/parity/recordings/config-software-get/resolve-app.json +0 -1
- package/testdata/parity/recordings/config-software-update/resolve-app.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/mutation-elevated.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/mutation-success.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-create-session.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-exchange.json +0 -1
- package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-status-verified.json +0 -1
- package/testdata/parity/recordings/envvar-delete-baseline/delete.json +0 -1
- package/testdata/parity/recordings/envvar-delete-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-delete-prod-cancel/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-delete-typed-mismatch/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-get-baseline/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-get-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-get-lowercase-input/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-get-lowercase-input/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-get-named-help/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-get-named-help/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-get-not-found/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-get-not-found/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-getall-baseline/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-getall-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-getall-empty/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-getall-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-getall-keyvalue/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-getall-keyvalue/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-baseline/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-empty/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-ids/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-ids/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-json/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-json/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-list-keyvalue/envvars.json +0 -1
- package/testdata/parity/recordings/envvar-list-keyvalue/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-baseline/add.json +0 -1
- package/testdata/parity/recordings/envvar-set-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-baseline/value.txt +0 -1
- package/testdata/parity/recordings/envvar-set-invalid-name/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-invalid-name/value.txt +0 -1
- package/testdata/parity/recordings/envvar-set-newrelic-blocked/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-newrelic-blocked/value.txt +0 -1
- package/testdata/parity/recordings/envvar-set-prod-cancel/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-prod-cancel/value.txt +0 -1
- package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/add.json +0 -1
- package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/resolve-app.json +0 -1
- package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/value.txt +0 -1
- package/testdata/parity/recordings/export-sql-completed/export-status-1.json +0 -1
- package/testdata/parity/recordings/export-sql-completed/export-status-2.json +0 -1
- package/testdata/parity/recordings/import-media-invalid-archive/file.sql +0 -1
- package/testdata/parity/recordings/import-media-shared/abort-media-import.json +0 -1
- package/testdata/parity/recordings/import-media-shared/env-info.json +0 -1
- package/testdata/parity/recordings/import-media-shared/resolve-app.json +0 -1
- package/testdata/parity/recordings/import-media-shared/start-media-import.json +0 -1
- package/testdata/parity/recordings/import-media-status-completed/progress.json +0 -1
- package/testdata/parity/recordings/import-media-status-failed/progress.json +0 -1
- package/testdata/parity/recordings/import-media-url-completed/progress.json +0 -1
- package/testdata/parity/recordings/import-sql-bad-extension/file.txt +0 -1
- package/testdata/parity/recordings/import-sql-in-progress/env-info.json +0 -1
- package/testdata/parity/recordings/import-sql-in-progress/resolve-app.json +0 -1
- package/testdata/parity/recordings/import-sql-noninteractive-abort/clean.sql +0 -5
- package/testdata/parity/recordings/import-sql-shared/env-info.json +0 -1
- package/testdata/parity/recordings/import-sql-shared/multisite.json +0 -1
- package/testdata/parity/recordings/import-sql-shared/resolve-app.json +0 -1
- package/testdata/parity/recordings/import-sql-status-completed/progress.json +0 -1
- package/testdata/parity/recordings/import-sql-status-no-job/progress.json +0 -1
- package/testdata/parity/recordings/import-sql-validation-failure/dirty.sql +0 -6
- package/testdata/parity/recordings/import-validate-files-clean/config.json +0 -1
- package/testdata/parity/recordings/import-validate-files-clean/uploads/2020/06/a.jpg +0 -1
- package/testdata/parity/recordings/import-validate-files-clean/uploads/2020/06/b.png +0 -1
- package/testdata/parity/recordings/import-validate-sql-clean/clean.sql +0 -17
- package/testdata/parity/recordings/import-validate-sql-dangerous-stmt/dangerous.sql +0 -11
- package/testdata/parity/recordings/import-validate-sql-multisite-warn/multisite.sql +0 -12
- package/testdata/parity/recordings/logs-baseline/logs.json +0 -1
- package/testdata/parity/recordings/logs-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/logs-batch/logs.json +0 -1
- package/testdata/parity/recordings/logs-batch/resolve-app.json +0 -1
- package/testdata/parity/recordings/logs-empty/logs.json +0 -1
- package/testdata/parity/recordings/logs-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/logs-format-json/logs.json +0 -1
- package/testdata/parity/recordings/logs-format-json/resolve-app.json +0 -1
- package/testdata/parity/recordings/logs-limit-100/logs.json +0 -1
- package/testdata/parity/recordings/logs-limit-100/resolve-app.json +0 -1
- package/testdata/parity/recordings/m7c-shared/resolve-app.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-error/enable.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-error/resolve-app.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-print/enable.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-print/generate.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-print/resolve-app.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-print/status.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-silent/enable.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-silent/generate.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-silent/resolve-app.json +0 -1
- package/testdata/parity/recordings/phpmyadmin-silent/status.json +0 -1
- package/testdata/parity/recordings/slowlogs-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/slowlogs-baseline/slowlogs.json +0 -1
- package/testdata/parity/recordings/slowlogs-csv/resolve-app.json +0 -1
- package/testdata/parity/recordings/slowlogs-csv/slowlogs.json +0 -1
- package/testdata/parity/recordings/slowlogs-empty/resolve-app.json +0 -1
- package/testdata/parity/recordings/slowlogs-empty/slowlogs.json +0 -1
- package/testdata/parity/recordings/slowlogs-limit-50/resolve-app.json +0 -1
- package/testdata/parity/recordings/slowlogs-limit-50/slowlogs.json +0 -1
- package/testdata/parity/recordings/sync-already-syncing/resolve-app.json +0 -1
- package/testdata/parity/recordings/sync-already-syncing/sync-start.json +0 -1
- package/testdata/parity/recordings/sync-already-syncing/sync-status-1.json +0 -1
- package/testdata/parity/recordings/sync-already-syncing/sync-status-2.json +0 -1
- package/testdata/parity/recordings/sync-baseline/resolve-app.json +0 -1
- package/testdata/parity/recordings/sync-baseline/sync-start.json +0 -1
- package/testdata/parity/recordings/sync-baseline/sync-status-1.json +0 -1
- package/testdata/parity/recordings/sync-baseline/sync-status-2.json +0 -1
- package/testdata/parity/recordings/whoami-baseline/me-response.json +0 -1
- package/testdata/parity/recordings/wp-nodejs-rejected/resolve-app.json +0 -1
- package/testdata/parity/recordings/wp-production-confirm-decline/resolve-app.json +0 -1
- package/testdata/parity/recordings/wp-ssh-happy/resolve-app.json +0 -1
- package/testdata/parity/recordings/wp-websocket-redirect/resolve-app.json +0 -1
- package/testdata/parity/slowlogs-baseline.yaml +0 -18
- package/testdata/parity/slowlogs-csv.yaml +0 -16
- package/testdata/parity/slowlogs-empty.yaml +0 -17
- package/testdata/parity/slowlogs-limit-50.yaml +0 -16
- package/testdata/parity/sync-already-syncing.yaml +0 -20
- package/testdata/parity/sync-baseline.yaml +0 -19
- package/testdata/parity/version-smoke.yaml +0 -14
- package/testdata/parity/whoami-baseline.yaml +0 -14
- package/testdata/parity/wp-help.yaml +0 -12
- package/testdata/parity/wp-nodejs-rejected.yaml +0 -13
- package/testdata/parity/wp-production-confirm-decline.yaml +0 -14
- package/testdata/parity/wp-ssh-happy.yaml +0 -15
- package/testdata/parity/wp-websocket-redirect.yaml +0 -14
- package/testdata/parity-local/app-get-csv.yaml +0 -8
- package/testdata/parity-local/app-get-json.yaml +0 -8
- package/testdata/parity-local/app-get-table.yaml +0 -8
- package/testdata/parity-local/app-list-csv.yaml +0 -8
- package/testdata/parity-local/app-list-json.yaml +0 -8
- package/testdata/parity-local/app-list-table.yaml +0 -8
- package/testdata/parity-local/edge-workers/basic/edge-workers.json +0 -1
- package/testdata/parity-local/edge-workers/basic/workers/headers/assembly/index.ts +0 -1
- package/testdata/parity-local/edge-workers/basic/workers/headers/worker.json +0 -1
- package/testdata/parity-local/edge-workers/two-workers/edge-workers.json +0 -1
- package/testdata/parity-local/edge-workers/two-workers/workers/a/assembly/index.ts +0 -1
- package/testdata/parity-local/edge-workers/two-workers/workers/a/worker.json +0 -1
- package/testdata/parity-local/edge-workers/two-workers/workers/b/assembly/index.ts +0 -1
- package/testdata/parity-local/edge-workers/two-workers/workers/b/worker.json +0 -1
- package/testdata/parity-local/envvar-list-csv.yaml +0 -8
- package/testdata/parity-local/envvar-list-ids.yaml +0 -8
- package/testdata/parity-local/envvar-list-json.yaml +0 -8
- package/testdata/parity-local/envvar-list-keyvalue.yaml +0 -8
- package/testdata/parity-local/envvar-list-table.yaml +0 -8
- package/testdata/parity-local/software-get-csv.yaml +0 -8
- package/testdata/parity-local/software-get-json.yaml +0 -8
- package/testdata/parity-local/software-get-table.yaml +0 -8
- package/testdata/parity-local/whoami.yaml +0 -8
- package/testdata/update-fixture/main.go +0 -62
- package/third_party/go-search-replace/MANIFEST +0 -33
- package/tsconfig.json +0 -25
- /package/node_modules/lando/node_modules/{wrap-ansi → ansi-regex}/license +0 -0
|
@@ -1,937 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const common = require('./common')
|
|
4
|
-
const YAMLException = require('./exception')
|
|
5
|
-
const DEFAULT_SCHEMA = require('./schema/default')
|
|
6
|
-
|
|
7
|
-
const _toString = Object.prototype.toString
|
|
8
|
-
const _hasOwnProperty = Object.prototype.hasOwnProperty
|
|
9
|
-
|
|
10
|
-
const CHAR_BOM = 0xFEFF
|
|
11
|
-
const CHAR_TAB = 0x09 /* Tab */
|
|
12
|
-
const CHAR_LINE_FEED = 0x0A /* LF */
|
|
13
|
-
const CHAR_CARRIAGE_RETURN = 0x0D /* CR */
|
|
14
|
-
const CHAR_SPACE = 0x20 /* Space */
|
|
15
|
-
const CHAR_EXCLAMATION = 0x21 /* ! */
|
|
16
|
-
const CHAR_DOUBLE_QUOTE = 0x22 /* " */
|
|
17
|
-
const CHAR_SHARP = 0x23 /* # */
|
|
18
|
-
const CHAR_PERCENT = 0x25 /* % */
|
|
19
|
-
const CHAR_AMPERSAND = 0x26 /* & */
|
|
20
|
-
const CHAR_SINGLE_QUOTE = 0x27 /* ' */
|
|
21
|
-
const CHAR_ASTERISK = 0x2A /* * */
|
|
22
|
-
const CHAR_COMMA = 0x2C /* , */
|
|
23
|
-
const CHAR_MINUS = 0x2D /* - */
|
|
24
|
-
const CHAR_COLON = 0x3A /* : */
|
|
25
|
-
const CHAR_EQUALS = 0x3D /* = */
|
|
26
|
-
const CHAR_GREATER_THAN = 0x3E /* > */
|
|
27
|
-
const CHAR_QUESTION = 0x3F /* ? */
|
|
28
|
-
const CHAR_COMMERCIAL_AT = 0x40 /* @ */
|
|
29
|
-
const CHAR_LEFT_SQUARE_BRACKET = 0x5B /* [ */
|
|
30
|
-
const CHAR_RIGHT_SQUARE_BRACKET = 0x5D /* ] */
|
|
31
|
-
const CHAR_GRAVE_ACCENT = 0x60 /* ` */
|
|
32
|
-
const CHAR_LEFT_CURLY_BRACKET = 0x7B /* { */
|
|
33
|
-
const CHAR_VERTICAL_LINE = 0x7C /* | */
|
|
34
|
-
const CHAR_RIGHT_CURLY_BRACKET = 0x7D /* } */
|
|
35
|
-
|
|
36
|
-
const ESCAPE_SEQUENCES = {}
|
|
37
|
-
|
|
38
|
-
ESCAPE_SEQUENCES[0x00] = '\\0'
|
|
39
|
-
ESCAPE_SEQUENCES[0x07] = '\\a'
|
|
40
|
-
ESCAPE_SEQUENCES[0x08] = '\\b'
|
|
41
|
-
ESCAPE_SEQUENCES[0x09] = '\\t'
|
|
42
|
-
ESCAPE_SEQUENCES[0x0A] = '\\n'
|
|
43
|
-
ESCAPE_SEQUENCES[0x0B] = '\\v'
|
|
44
|
-
ESCAPE_SEQUENCES[0x0C] = '\\f'
|
|
45
|
-
ESCAPE_SEQUENCES[0x0D] = '\\r'
|
|
46
|
-
ESCAPE_SEQUENCES[0x1B] = '\\e'
|
|
47
|
-
ESCAPE_SEQUENCES[0x22] = '\\"'
|
|
48
|
-
ESCAPE_SEQUENCES[0x5C] = '\\\\'
|
|
49
|
-
ESCAPE_SEQUENCES[0x85] = '\\N'
|
|
50
|
-
ESCAPE_SEQUENCES[0xA0] = '\\_'
|
|
51
|
-
ESCAPE_SEQUENCES[0x2028] = '\\L'
|
|
52
|
-
ESCAPE_SEQUENCES[0x2029] = '\\P'
|
|
53
|
-
|
|
54
|
-
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
55
|
-
'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',
|
|
56
|
-
'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'
|
|
57
|
-
]
|
|
58
|
-
|
|
59
|
-
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/
|
|
60
|
-
|
|
61
|
-
function compileStyleMap (schema, map) {
|
|
62
|
-
if (map === null) return {}
|
|
63
|
-
|
|
64
|
-
const result = {}
|
|
65
|
-
const keys = Object.keys(map)
|
|
66
|
-
|
|
67
|
-
for (let index = 0, length = keys.length; index < length; index += 1) {
|
|
68
|
-
let tag = keys[index]
|
|
69
|
-
let style = String(map[tag])
|
|
70
|
-
|
|
71
|
-
if (tag.slice(0, 2) === '!!') {
|
|
72
|
-
tag = 'tag:yaml.org,2002:' + tag.slice(2)
|
|
73
|
-
}
|
|
74
|
-
const type = schema.compiledTypeMap['fallback'][tag]
|
|
75
|
-
|
|
76
|
-
if (type && _hasOwnProperty.call(type.styleAliases, style)) {
|
|
77
|
-
style = type.styleAliases[style]
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
result[tag] = style
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return result
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function encodeHex (character) {
|
|
87
|
-
let handle
|
|
88
|
-
let length
|
|
89
|
-
|
|
90
|
-
const string = character.toString(16).toUpperCase()
|
|
91
|
-
|
|
92
|
-
if (character <= 0xFF) {
|
|
93
|
-
handle = 'x'
|
|
94
|
-
length = 2
|
|
95
|
-
} else if (character <= 0xFFFF) {
|
|
96
|
-
handle = 'u'
|
|
97
|
-
length = 4
|
|
98
|
-
} else if (character <= 0xFFFFFFFF) {
|
|
99
|
-
handle = 'U'
|
|
100
|
-
length = 8
|
|
101
|
-
} else {
|
|
102
|
-
throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF')
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return '\\' + handle + common.repeat('0', length - string.length) + string
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const QUOTING_TYPE_SINGLE = 1
|
|
109
|
-
const QUOTING_TYPE_DOUBLE = 2
|
|
110
|
-
|
|
111
|
-
function State (options) {
|
|
112
|
-
this.schema = options['schema'] || DEFAULT_SCHEMA
|
|
113
|
-
this.indent = Math.max(1, (options['indent'] || 2))
|
|
114
|
-
this.noArrayIndent = options['noArrayIndent'] || false
|
|
115
|
-
this.skipInvalid = options['skipInvalid'] || false
|
|
116
|
-
this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel'])
|
|
117
|
-
this.styleMap = compileStyleMap(this.schema, options['styles'] || null)
|
|
118
|
-
this.sortKeys = options['sortKeys'] || false
|
|
119
|
-
this.lineWidth = options['lineWidth'] || 80
|
|
120
|
-
this.noRefs = options['noRefs'] || false
|
|
121
|
-
this.noCompatMode = options['noCompatMode'] || false
|
|
122
|
-
this.condenseFlow = options['condenseFlow'] || false
|
|
123
|
-
this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE
|
|
124
|
-
this.forceQuotes = options['forceQuotes'] || false
|
|
125
|
-
this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null
|
|
126
|
-
|
|
127
|
-
this.implicitTypes = this.schema.compiledImplicit
|
|
128
|
-
this.explicitTypes = this.schema.compiledExplicit
|
|
129
|
-
|
|
130
|
-
this.tag = null
|
|
131
|
-
this.result = ''
|
|
132
|
-
|
|
133
|
-
this.duplicates = []
|
|
134
|
-
this.usedDuplicates = null
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Indents every line in a string. Empty lines (\n only) are not indented.
|
|
138
|
-
function indentString (string, spaces) {
|
|
139
|
-
const ind = common.repeat(' ', spaces)
|
|
140
|
-
let position = 0
|
|
141
|
-
let result = ''
|
|
142
|
-
const length = string.length
|
|
143
|
-
|
|
144
|
-
while (position < length) {
|
|
145
|
-
let line
|
|
146
|
-
const next = string.indexOf('\n', position)
|
|
147
|
-
if (next === -1) {
|
|
148
|
-
line = string.slice(position)
|
|
149
|
-
position = length
|
|
150
|
-
} else {
|
|
151
|
-
line = string.slice(position, next + 1)
|
|
152
|
-
position = next + 1
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
if (line.length && line !== '\n') result += ind
|
|
156
|
-
|
|
157
|
-
result += line
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
return result
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
function generateNextLine (state, level) {
|
|
164
|
-
return '\n' + common.repeat(' ', state.indent * level)
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
function testImplicitResolving (state, str) {
|
|
168
|
-
for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) {
|
|
169
|
-
const type = state.implicitTypes[index]
|
|
170
|
-
|
|
171
|
-
if (type.resolve(str)) {
|
|
172
|
-
return true
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
return false
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// [33] s-white ::= s-space | s-tab
|
|
180
|
-
function isWhitespace (c) {
|
|
181
|
-
return c === CHAR_SPACE || c === CHAR_TAB
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// Returns true if the character can be printed without escaping.
|
|
185
|
-
// From YAML 1.2: "any allowed characters known to be non-printable
|
|
186
|
-
// should also be escaped. [However,] This isn’t mandatory"
|
|
187
|
-
// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
|
|
188
|
-
function isPrintable (c) {
|
|
189
|
-
return (c >= 0x00020 && c <= 0x00007E) ||
|
|
190
|
-
((c >= 0x000A1 && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) ||
|
|
191
|
-
((c >= 0x0E000 && c <= 0x00FFFD) && c !== CHAR_BOM) ||
|
|
192
|
-
(c >= 0x10000 && c <= 0x10FFFF)
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
// [34] ns-char ::= nb-char - s-white
|
|
196
|
-
// [27] nb-char ::= c-printable - b-char - c-byte-order-mark
|
|
197
|
-
// [26] b-char ::= b-line-feed | b-carriage-return
|
|
198
|
-
// Including s-white (for some reason, examples doesn't match specs in this aspect)
|
|
199
|
-
// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark
|
|
200
|
-
function isNsCharOrWhitespace (c) {
|
|
201
|
-
return isPrintable(c) &&
|
|
202
|
-
c !== CHAR_BOM &&
|
|
203
|
-
// - b-char
|
|
204
|
-
c !== CHAR_CARRIAGE_RETURN &&
|
|
205
|
-
c !== CHAR_LINE_FEED
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out
|
|
209
|
-
// c = flow-in ⇒ ns-plain-safe-in
|
|
210
|
-
// c = block-key ⇒ ns-plain-safe-out
|
|
211
|
-
// c = flow-key ⇒ ns-plain-safe-in
|
|
212
|
-
// [128] ns-plain-safe-out ::= ns-char
|
|
213
|
-
// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator
|
|
214
|
-
// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” )
|
|
215
|
-
// | ( /* An ns-char preceding */ “#” )
|
|
216
|
-
// | ( “:” /* Followed by an ns-plain-safe(c) */ )
|
|
217
|
-
function isPlainSafe (c, prev, inblock) {
|
|
218
|
-
const cIsNsCharOrWhitespace = isNsCharOrWhitespace(c)
|
|
219
|
-
const cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c)
|
|
220
|
-
return (
|
|
221
|
-
(
|
|
222
|
-
// ns-plain-safe
|
|
223
|
-
inblock // c = flow-in
|
|
224
|
-
? cIsNsCharOrWhitespace
|
|
225
|
-
: cIsNsCharOrWhitespace &&
|
|
226
|
-
// - c-flow-indicator
|
|
227
|
-
c !== CHAR_COMMA &&
|
|
228
|
-
c !== CHAR_LEFT_SQUARE_BRACKET &&
|
|
229
|
-
c !== CHAR_RIGHT_SQUARE_BRACKET &&
|
|
230
|
-
c !== CHAR_LEFT_CURLY_BRACKET &&
|
|
231
|
-
c !== CHAR_RIGHT_CURLY_BRACKET
|
|
232
|
-
) &&
|
|
233
|
-
// ns-plain-char
|
|
234
|
-
c !== CHAR_SHARP && // false on '#'
|
|
235
|
-
!(prev === CHAR_COLON && !cIsNsChar)
|
|
236
|
-
) || // false on ': '
|
|
237
|
-
(isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) || // change to true on '[^ ]#'
|
|
238
|
-
(prev === CHAR_COLON && cIsNsChar) // change to true on ':[^ ]'
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
// Simplified test for values allowed as the first character in plain style.
|
|
242
|
-
function isPlainSafeFirst (c) {
|
|
243
|
-
// Uses a subset of ns-char - c-indicator
|
|
244
|
-
// where ns-char = nb-char - s-white.
|
|
245
|
-
// No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part
|
|
246
|
-
return isPrintable(c) &&
|
|
247
|
-
c !== CHAR_BOM &&
|
|
248
|
-
!isWhitespace(c) && // - s-white
|
|
249
|
-
// - (c-indicator ::=
|
|
250
|
-
// “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
|
|
251
|
-
c !== CHAR_MINUS &&
|
|
252
|
-
c !== CHAR_QUESTION &&
|
|
253
|
-
c !== CHAR_COLON &&
|
|
254
|
-
c !== CHAR_COMMA &&
|
|
255
|
-
c !== CHAR_LEFT_SQUARE_BRACKET &&
|
|
256
|
-
c !== CHAR_RIGHT_SQUARE_BRACKET &&
|
|
257
|
-
c !== CHAR_LEFT_CURLY_BRACKET &&
|
|
258
|
-
c !== CHAR_RIGHT_CURLY_BRACKET &&
|
|
259
|
-
// | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
|
|
260
|
-
c !== CHAR_SHARP &&
|
|
261
|
-
c !== CHAR_AMPERSAND &&
|
|
262
|
-
c !== CHAR_ASTERISK &&
|
|
263
|
-
c !== CHAR_EXCLAMATION &&
|
|
264
|
-
c !== CHAR_VERTICAL_LINE &&
|
|
265
|
-
c !== CHAR_EQUALS &&
|
|
266
|
-
c !== CHAR_GREATER_THAN &&
|
|
267
|
-
c !== CHAR_SINGLE_QUOTE &&
|
|
268
|
-
c !== CHAR_DOUBLE_QUOTE &&
|
|
269
|
-
// | “%” | “@” | “`”)
|
|
270
|
-
c !== CHAR_PERCENT &&
|
|
271
|
-
c !== CHAR_COMMERCIAL_AT &&
|
|
272
|
-
c !== CHAR_GRAVE_ACCENT
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
// Simplified test for values allowed as the last character in plain style.
|
|
276
|
-
function isPlainSafeLast (c) {
|
|
277
|
-
// just not whitespace or colon, it will be checked to be plain character later
|
|
278
|
-
return !isWhitespace(c) && c !== CHAR_COLON
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
// Same as 'string'.codePointAt(pos), but works in older browsers.
|
|
282
|
-
function codePointAt (string, pos) {
|
|
283
|
-
const first = string.charCodeAt(pos)
|
|
284
|
-
let second
|
|
285
|
-
|
|
286
|
-
if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) {
|
|
287
|
-
second = string.charCodeAt(pos + 1)
|
|
288
|
-
if (second >= 0xDC00 && second <= 0xDFFF) {
|
|
289
|
-
// https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
|
|
290
|
-
return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
return first
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
// Determines whether block indentation indicator is required.
|
|
297
|
-
function needIndentIndicator (string) {
|
|
298
|
-
const leadingSpaceRe = /^\n* /
|
|
299
|
-
return leadingSpaceRe.test(string)
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
const STYLE_PLAIN = 1
|
|
303
|
-
const STYLE_SINGLE = 2
|
|
304
|
-
const STYLE_LITERAL = 3
|
|
305
|
-
const STYLE_FOLDED = 4
|
|
306
|
-
const STYLE_DOUBLE = 5
|
|
307
|
-
|
|
308
|
-
// Determines which scalar styles are possible and returns the preferred style.
|
|
309
|
-
// lineWidth = -1 => no limit.
|
|
310
|
-
// Pre-conditions: str.length > 0.
|
|
311
|
-
// Post-conditions:
|
|
312
|
-
// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string.
|
|
313
|
-
// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).
|
|
314
|
-
// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).
|
|
315
|
-
function chooseScalarStyle (string, singleLineOnly, indentPerLevel, lineWidth,
|
|
316
|
-
testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
317
|
-
let i
|
|
318
|
-
let char = 0
|
|
319
|
-
let prevChar = null
|
|
320
|
-
let hasLineBreak = false
|
|
321
|
-
let hasFoldableLine = false // only checked if shouldTrackWidth
|
|
322
|
-
const shouldTrackWidth = lineWidth !== -1
|
|
323
|
-
let previousLineBreak = -1 // count the first line correctly
|
|
324
|
-
let plain = isPlainSafeFirst(codePointAt(string, 0)) &&
|
|
325
|
-
isPlainSafeLast(codePointAt(string, string.length - 1))
|
|
326
|
-
|
|
327
|
-
if (singleLineOnly || forceQuotes) {
|
|
328
|
-
// Case: no block styles.
|
|
329
|
-
// Check for disallowed characters to rule out plain and single.
|
|
330
|
-
for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
|
|
331
|
-
char = codePointAt(string, i)
|
|
332
|
-
if (!isPrintable(char)) {
|
|
333
|
-
return STYLE_DOUBLE
|
|
334
|
-
}
|
|
335
|
-
plain = plain && isPlainSafe(char, prevChar, inblock)
|
|
336
|
-
prevChar = char
|
|
337
|
-
}
|
|
338
|
-
} else {
|
|
339
|
-
// Case: block styles permitted.
|
|
340
|
-
for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
|
|
341
|
-
char = codePointAt(string, i)
|
|
342
|
-
if (char === CHAR_LINE_FEED) {
|
|
343
|
-
hasLineBreak = true
|
|
344
|
-
// Check if any line can be folded.
|
|
345
|
-
if (shouldTrackWidth) {
|
|
346
|
-
hasFoldableLine = hasFoldableLine ||
|
|
347
|
-
// Foldable line = too long, and not more-indented.
|
|
348
|
-
(i - previousLineBreak - 1 > lineWidth &&
|
|
349
|
-
string[previousLineBreak + 1] !== ' ')
|
|
350
|
-
previousLineBreak = i
|
|
351
|
-
}
|
|
352
|
-
} else if (!isPrintable(char)) {
|
|
353
|
-
return STYLE_DOUBLE
|
|
354
|
-
}
|
|
355
|
-
plain = plain && isPlainSafe(char, prevChar, inblock)
|
|
356
|
-
prevChar = char
|
|
357
|
-
}
|
|
358
|
-
// in case the end is missing a \n
|
|
359
|
-
hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&
|
|
360
|
-
(i - previousLineBreak - 1 > lineWidth &&
|
|
361
|
-
string[previousLineBreak + 1] !== ' '))
|
|
362
|
-
}
|
|
363
|
-
// Although every style can represent \n without escaping, prefer block styles
|
|
364
|
-
// for multiline, since they're more readable and they don't add empty lines.
|
|
365
|
-
// Also prefer folding a super-long line.
|
|
366
|
-
if (!hasLineBreak && !hasFoldableLine) {
|
|
367
|
-
// Strings interpretable as another type have to be quoted;
|
|
368
|
-
// e.g. the string 'true' vs. the boolean true.
|
|
369
|
-
if (plain && !forceQuotes && !testAmbiguousType(string)) {
|
|
370
|
-
return STYLE_PLAIN
|
|
371
|
-
}
|
|
372
|
-
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE
|
|
373
|
-
}
|
|
374
|
-
// Edge case: block indentation indicator can only have one digit.
|
|
375
|
-
if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
|
376
|
-
return STYLE_DOUBLE
|
|
377
|
-
}
|
|
378
|
-
// At this point we know block styles are valid.
|
|
379
|
-
// Prefer literal style unless we want to fold.
|
|
380
|
-
if (!forceQuotes) {
|
|
381
|
-
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL
|
|
382
|
-
}
|
|
383
|
-
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// Note: line breaking/folding is implemented for only the folded style.
|
|
387
|
-
// NB. We drop the last trailing newline (if any) of a returned block scalar
|
|
388
|
-
// since the dumper adds its own newline. This always works:
|
|
389
|
-
// • No ending newline => unaffected; already using strip "-" chomping.
|
|
390
|
-
// • Ending newline => removed then restored.
|
|
391
|
-
// Importantly, this keeps the "+" chomp indicator from gaining an extra line.
|
|
392
|
-
function writeScalar (state, string, level, iskey, inblock) {
|
|
393
|
-
state.dump = (function () {
|
|
394
|
-
if (string.length === 0) {
|
|
395
|
-
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"
|
|
396
|
-
}
|
|
397
|
-
if (!state.noCompatMode) {
|
|
398
|
-
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
|
|
399
|
-
return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'")
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
const indent = state.indent * Math.max(1, level) // no 0-indent scalars
|
|
404
|
-
// As indentation gets deeper, let the width decrease monotonically
|
|
405
|
-
// to the lower bound min(state.lineWidth, 40).
|
|
406
|
-
// Note that this implies
|
|
407
|
-
// state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.
|
|
408
|
-
// state.lineWidth > 40 + state.indent: width decreases until the lower bound.
|
|
409
|
-
// This behaves better than a constant minimum width which disallows narrower options,
|
|
410
|
-
// or an indent threshold which causes the width to suddenly increase.
|
|
411
|
-
const lineWidth = (state.lineWidth === -1)
|
|
412
|
-
? -1
|
|
413
|
-
: Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent)
|
|
414
|
-
|
|
415
|
-
// Without knowing if keys are implicit/explicit, assume implicit for safety.
|
|
416
|
-
const singleLineOnly = iskey ||
|
|
417
|
-
// No block styles in flow mode.
|
|
418
|
-
(state.flowLevel > -1 && level >= state.flowLevel)
|
|
419
|
-
function testAmbiguity (string) {
|
|
420
|
-
return testImplicitResolving(state, string)
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth,
|
|
424
|
-
testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {
|
|
425
|
-
case STYLE_PLAIN:
|
|
426
|
-
return string
|
|
427
|
-
case STYLE_SINGLE:
|
|
428
|
-
return "'" + string.replace(/'/g, "''") + "'"
|
|
429
|
-
case STYLE_LITERAL:
|
|
430
|
-
return '|' + blockHeader(string, state.indent) +
|
|
431
|
-
dropEndingNewline(indentString(string, indent))
|
|
432
|
-
case STYLE_FOLDED:
|
|
433
|
-
return '>' + blockHeader(string, state.indent) +
|
|
434
|
-
dropEndingNewline(indentString(foldString(string, lineWidth), indent))
|
|
435
|
-
case STYLE_DOUBLE:
|
|
436
|
-
return '"' + escapeString(string, lineWidth) + '"'
|
|
437
|
-
default:
|
|
438
|
-
throw new YAMLException('impossible error: invalid scalar style')
|
|
439
|
-
}
|
|
440
|
-
}())
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.
|
|
444
|
-
function blockHeader (string, indentPerLevel) {
|
|
445
|
-
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''
|
|
446
|
-
|
|
447
|
-
// note the special case: the string '\n' counts as a "trailing" empty line.
|
|
448
|
-
const clip = string[string.length - 1] === '\n'
|
|
449
|
-
const keep = clip && (string[string.length - 2] === '\n' || string === '\n')
|
|
450
|
-
const chomp = keep ? '+' : (clip ? '' : '-')
|
|
451
|
-
|
|
452
|
-
return indentIndicator + chomp + '\n'
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
// (See the note for writeScalar.)
|
|
456
|
-
function dropEndingNewline (string) {
|
|
457
|
-
return string[string.length - 1] === '\n' ? string.slice(0, -1) : string
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
// Note: a long line without a suitable break point will exceed the width limit.
|
|
461
|
-
// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.
|
|
462
|
-
function foldString (string, width) {
|
|
463
|
-
// In folded style, $k$ consecutive newlines output as $k+1$ newlines—
|
|
464
|
-
// unless they're before or after a more-indented line, or at the very
|
|
465
|
-
// beginning or end, in which case $k$ maps to $k$.
|
|
466
|
-
// Therefore, parse each chunk as newline(s) followed by a content line.
|
|
467
|
-
const lineRe = /(\n+)([^\n]*)/g
|
|
468
|
-
|
|
469
|
-
// first line (possibly an empty line)
|
|
470
|
-
let result = (function () {
|
|
471
|
-
let nextLF = string.indexOf('\n')
|
|
472
|
-
nextLF = nextLF !== -1 ? nextLF : string.length
|
|
473
|
-
lineRe.lastIndex = nextLF
|
|
474
|
-
return foldLine(string.slice(0, nextLF), width)
|
|
475
|
-
}())
|
|
476
|
-
// If we haven't reached the first content line yet, don't add an extra \n.
|
|
477
|
-
let prevMoreIndented = string[0] === '\n' || string[0] === ' '
|
|
478
|
-
let moreIndented
|
|
479
|
-
|
|
480
|
-
// rest of the lines
|
|
481
|
-
let match
|
|
482
|
-
while ((match = lineRe.exec(string))) {
|
|
483
|
-
const prefix = match[1]
|
|
484
|
-
const line = match[2]
|
|
485
|
-
|
|
486
|
-
moreIndented = (line[0] === ' ')
|
|
487
|
-
result += prefix +
|
|
488
|
-
((!prevMoreIndented && !moreIndented && line !== '') ? '\n' : '') +
|
|
489
|
-
foldLine(line, width)
|
|
490
|
-
prevMoreIndented = moreIndented
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
return result
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
// Greedy line breaking.
|
|
497
|
-
// Picks the longest line under the limit each time,
|
|
498
|
-
// otherwise settles for the shortest line over the limit.
|
|
499
|
-
// NB. More-indented lines *cannot* be folded, as that would add an extra \n.
|
|
500
|
-
function foldLine (line, width) {
|
|
501
|
-
if (line === '' || line[0] === ' ') return line
|
|
502
|
-
|
|
503
|
-
// Since a more-indented line adds a \n, breaks can't be followed by a space.
|
|
504
|
-
const breakRe = / [^ ]/g // note: the match index will always be <= length-2.
|
|
505
|
-
let match
|
|
506
|
-
// start is an inclusive index. end, curr, and next are exclusive.
|
|
507
|
-
let start = 0
|
|
508
|
-
let end
|
|
509
|
-
let curr = 0
|
|
510
|
-
let next = 0
|
|
511
|
-
let result = ''
|
|
512
|
-
|
|
513
|
-
// Invariants: 0 <= start <= length-1.
|
|
514
|
-
// 0 <= curr <= next <= max(0, length-2). curr - start <= width.
|
|
515
|
-
// Inside the loop:
|
|
516
|
-
// A match implies length >= 2, so curr and next are <= length-2.
|
|
517
|
-
while ((match = breakRe.exec(line))) {
|
|
518
|
-
next = match.index
|
|
519
|
-
// maintain invariant: curr - start <= width
|
|
520
|
-
if (next - start > width) {
|
|
521
|
-
end = (curr > start) ? curr : next // derive end <= length-2
|
|
522
|
-
result += '\n' + line.slice(start, end)
|
|
523
|
-
// skip the space that was output as \n
|
|
524
|
-
start = end + 1 // derive start <= length-1
|
|
525
|
-
}
|
|
526
|
-
curr = next
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
// By the invariants, start <= length-1, so there is something left over.
|
|
530
|
-
// It is either the whole string or a part starting from non-whitespace.
|
|
531
|
-
result += '\n'
|
|
532
|
-
// Insert a break if the remainder is too long and there is a break available.
|
|
533
|
-
if (line.length - start > width && curr > start) {
|
|
534
|
-
result += line.slice(start, curr) + '\n' + line.slice(curr + 1)
|
|
535
|
-
} else {
|
|
536
|
-
result += line.slice(start)
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
return result.slice(1) // drop extra \n joiner
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
// Escapes a double-quoted string.
|
|
543
|
-
function escapeString (string) {
|
|
544
|
-
let result = ''
|
|
545
|
-
let char = 0
|
|
546
|
-
|
|
547
|
-
for (let i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
|
|
548
|
-
char = codePointAt(string, i)
|
|
549
|
-
const escapeSeq = ESCAPE_SEQUENCES[char]
|
|
550
|
-
|
|
551
|
-
if (!escapeSeq && isPrintable(char)) {
|
|
552
|
-
result += string[i]
|
|
553
|
-
if (char >= 0x10000) result += string[i + 1]
|
|
554
|
-
} else {
|
|
555
|
-
result += escapeSeq || encodeHex(char)
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
return result
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
function writeFlowSequence (state, level, object) {
|
|
563
|
-
let _result = ''
|
|
564
|
-
const _tag = state.tag
|
|
565
|
-
|
|
566
|
-
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
567
|
-
let value = object[index]
|
|
568
|
-
|
|
569
|
-
if (state.replacer) {
|
|
570
|
-
value = state.replacer.call(object, String(index), value)
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
// Write only valid elements, put null instead of invalid elements.
|
|
574
|
-
if (writeNode(state, level, value, false, false) ||
|
|
575
|
-
(typeof value === 'undefined' &&
|
|
576
|
-
writeNode(state, level, null, false, false))) {
|
|
577
|
-
if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : '')
|
|
578
|
-
_result += state.dump
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
state.tag = _tag
|
|
583
|
-
state.dump = '[' + _result + ']'
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
function writeBlockSequence (state, level, object, compact) {
|
|
587
|
-
let _result = ''
|
|
588
|
-
const _tag = state.tag
|
|
589
|
-
|
|
590
|
-
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
591
|
-
let value = object[index]
|
|
592
|
-
|
|
593
|
-
if (state.replacer) {
|
|
594
|
-
value = state.replacer.call(object, String(index), value)
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
// Write only valid elements, put null instead of invalid elements.
|
|
598
|
-
if (writeNode(state, level + 1, value, true, true, false, true) ||
|
|
599
|
-
(typeof value === 'undefined' &&
|
|
600
|
-
writeNode(state, level + 1, null, true, true, false, true))) {
|
|
601
|
-
if (!compact || _result !== '') {
|
|
602
|
-
_result += generateNextLine(state, level)
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
606
|
-
_result += '-'
|
|
607
|
-
} else {
|
|
608
|
-
_result += '- '
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
_result += state.dump
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
state.tag = _tag
|
|
616
|
-
state.dump = _result || '[]' // Empty sequence if no valid values.
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
function writeFlowMapping (state, level, object) {
|
|
620
|
-
let _result = ''
|
|
621
|
-
const _tag = state.tag
|
|
622
|
-
const objectKeyList = Object.keys(object)
|
|
623
|
-
|
|
624
|
-
for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
625
|
-
let pairBuffer = ''
|
|
626
|
-
if (_result !== '') pairBuffer += ', '
|
|
627
|
-
|
|
628
|
-
if (state.condenseFlow) pairBuffer += '"'
|
|
629
|
-
|
|
630
|
-
const objectKey = objectKeyList[index]
|
|
631
|
-
let objectValue = object[objectKey]
|
|
632
|
-
|
|
633
|
-
if (state.replacer) {
|
|
634
|
-
objectValue = state.replacer.call(object, objectKey, objectValue)
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
if (!writeNode(state, level, objectKey, false, false)) {
|
|
638
|
-
continue // Skip this pair because of invalid key;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
if (state.dump.length > 1024) pairBuffer += '? '
|
|
642
|
-
|
|
643
|
-
pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ')
|
|
644
|
-
|
|
645
|
-
if (!writeNode(state, level, objectValue, false, false)) {
|
|
646
|
-
continue // Skip this pair because of invalid value.
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
pairBuffer += state.dump
|
|
650
|
-
|
|
651
|
-
// Both key and value are valid.
|
|
652
|
-
_result += pairBuffer
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
state.tag = _tag
|
|
656
|
-
state.dump = '{' + _result + '}'
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
function writeBlockMapping (state, level, object, compact) {
|
|
660
|
-
let _result = ''
|
|
661
|
-
const _tag = state.tag
|
|
662
|
-
const objectKeyList = Object.keys(object)
|
|
663
|
-
|
|
664
|
-
// Allow sorting keys so that the output file is deterministic
|
|
665
|
-
if (state.sortKeys === true) {
|
|
666
|
-
// Default sorting
|
|
667
|
-
objectKeyList.sort()
|
|
668
|
-
} else if (typeof state.sortKeys === 'function') {
|
|
669
|
-
// Custom sort function
|
|
670
|
-
objectKeyList.sort(state.sortKeys)
|
|
671
|
-
} else if (state.sortKeys) {
|
|
672
|
-
// Something is wrong
|
|
673
|
-
throw new YAMLException('sortKeys must be a boolean or a function')
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
677
|
-
let pairBuffer = ''
|
|
678
|
-
|
|
679
|
-
if (!compact || _result !== '') {
|
|
680
|
-
pairBuffer += generateNextLine(state, level)
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
const objectKey = objectKeyList[index]
|
|
684
|
-
let objectValue = object[objectKey]
|
|
685
|
-
|
|
686
|
-
if (state.replacer) {
|
|
687
|
-
objectValue = state.replacer.call(object, objectKey, objectValue)
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
691
|
-
continue // Skip this pair because of invalid key.
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
const explicitPair = (state.tag !== null && state.tag !== '?') ||
|
|
695
|
-
(state.dump && state.dump.length > 1024)
|
|
696
|
-
|
|
697
|
-
if (explicitPair) {
|
|
698
|
-
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
699
|
-
pairBuffer += '?'
|
|
700
|
-
} else {
|
|
701
|
-
pairBuffer += '? '
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
pairBuffer += state.dump
|
|
706
|
-
|
|
707
|
-
if (explicitPair) {
|
|
708
|
-
pairBuffer += generateNextLine(state, level)
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
712
|
-
continue // Skip this pair because of invalid value.
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
716
|
-
pairBuffer += ':'
|
|
717
|
-
} else {
|
|
718
|
-
pairBuffer += ': '
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
pairBuffer += state.dump
|
|
722
|
-
|
|
723
|
-
// Both key and value are valid.
|
|
724
|
-
_result += pairBuffer
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
state.tag = _tag
|
|
728
|
-
state.dump = _result || '{}' // Empty mapping if no valid pairs.
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
function detectType (state, object, explicit) {
|
|
732
|
-
const typeList = explicit ? state.explicitTypes : state.implicitTypes
|
|
733
|
-
|
|
734
|
-
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
735
|
-
const type = typeList[index]
|
|
736
|
-
|
|
737
|
-
if ((type.instanceOf || type.predicate) &&
|
|
738
|
-
(!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&
|
|
739
|
-
(!type.predicate || type.predicate(object))) {
|
|
740
|
-
if (explicit) {
|
|
741
|
-
if (type.multi && type.representName) {
|
|
742
|
-
state.tag = type.representName(object)
|
|
743
|
-
} else {
|
|
744
|
-
state.tag = type.tag
|
|
745
|
-
}
|
|
746
|
-
} else {
|
|
747
|
-
state.tag = '?'
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
if (type.represent) {
|
|
751
|
-
const style = state.styleMap[type.tag] || type.defaultStyle
|
|
752
|
-
|
|
753
|
-
let _result
|
|
754
|
-
if (_toString.call(type.represent) === '[object Function]') {
|
|
755
|
-
_result = type.represent(object, style)
|
|
756
|
-
} else if (_hasOwnProperty.call(type.represent, style)) {
|
|
757
|
-
_result = type.represent[style](object, style)
|
|
758
|
-
} else {
|
|
759
|
-
throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style')
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
state.dump = _result
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
return true
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
return false
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
// Serializes `object` and writes it to global `result`.
|
|
773
|
-
// Returns true on success, or false on invalid object.
|
|
774
|
-
//
|
|
775
|
-
function writeNode (state, level, object, block, compact, iskey, isblockseq) {
|
|
776
|
-
state.tag = null
|
|
777
|
-
state.dump = object
|
|
778
|
-
|
|
779
|
-
if (!detectType(state, object, false)) {
|
|
780
|
-
detectType(state, object, true)
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
const type = _toString.call(state.dump)
|
|
784
|
-
const inblock = block
|
|
785
|
-
|
|
786
|
-
if (block) {
|
|
787
|
-
block = (state.flowLevel < 0 || state.flowLevel > level)
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
const objectOrArray = type === '[object Object]' || type === '[object Array]'
|
|
791
|
-
let duplicateIndex
|
|
792
|
-
let duplicate
|
|
793
|
-
|
|
794
|
-
if (objectOrArray) {
|
|
795
|
-
duplicateIndex = state.duplicates.indexOf(object)
|
|
796
|
-
duplicate = duplicateIndex !== -1
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {
|
|
800
|
-
compact = false
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
804
|
-
state.dump = '*ref_' + duplicateIndex
|
|
805
|
-
} else {
|
|
806
|
-
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
807
|
-
state.usedDuplicates[duplicateIndex] = true
|
|
808
|
-
}
|
|
809
|
-
if (type === '[object Object]') {
|
|
810
|
-
if (block && (Object.keys(state.dump).length !== 0)) {
|
|
811
|
-
writeBlockMapping(state, level, state.dump, compact)
|
|
812
|
-
if (duplicate) {
|
|
813
|
-
state.dump = '&ref_' + duplicateIndex + state.dump
|
|
814
|
-
}
|
|
815
|
-
} else {
|
|
816
|
-
writeFlowMapping(state, level, state.dump)
|
|
817
|
-
if (duplicate) {
|
|
818
|
-
state.dump = '&ref_' + duplicateIndex + ' ' + state.dump
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
} else if (type === '[object Array]') {
|
|
822
|
-
if (block && (state.dump.length !== 0)) {
|
|
823
|
-
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
824
|
-
writeBlockSequence(state, level - 1, state.dump, compact)
|
|
825
|
-
} else {
|
|
826
|
-
writeBlockSequence(state, level, state.dump, compact)
|
|
827
|
-
}
|
|
828
|
-
if (duplicate) {
|
|
829
|
-
state.dump = '&ref_' + duplicateIndex + state.dump
|
|
830
|
-
}
|
|
831
|
-
} else {
|
|
832
|
-
writeFlowSequence(state, level, state.dump)
|
|
833
|
-
if (duplicate) {
|
|
834
|
-
state.dump = '&ref_' + duplicateIndex + ' ' + state.dump
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
} else if (type === '[object String]') {
|
|
838
|
-
if (state.tag !== '?') {
|
|
839
|
-
writeScalar(state, state.dump, level, iskey, inblock)
|
|
840
|
-
}
|
|
841
|
-
} else if (type === '[object Undefined]') {
|
|
842
|
-
return false
|
|
843
|
-
} else {
|
|
844
|
-
if (state.skipInvalid) return false
|
|
845
|
-
throw new YAMLException('unacceptable kind of an object to dump ' + type)
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
if (state.tag !== null && state.tag !== '?') {
|
|
849
|
-
// Need to encode all characters except those allowed by the spec:
|
|
850
|
-
//
|
|
851
|
-
// [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */
|
|
852
|
-
// [36] ns-hex-digit ::= ns-dec-digit
|
|
853
|
-
// | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */
|
|
854
|
-
// [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */
|
|
855
|
-
// [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-”
|
|
856
|
-
// [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#”
|
|
857
|
-
// | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,”
|
|
858
|
-
// | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]”
|
|
859
|
-
//
|
|
860
|
-
// Also need to encode '!' because it has special meaning (end of tag prefix).
|
|
861
|
-
//
|
|
862
|
-
let tagStr = encodeURI(
|
|
863
|
-
state.tag[0] === '!' ? state.tag.slice(1) : state.tag
|
|
864
|
-
).replace(/!/g, '%21')
|
|
865
|
-
|
|
866
|
-
if (state.tag[0] === '!') {
|
|
867
|
-
tagStr = '!' + tagStr
|
|
868
|
-
} else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') {
|
|
869
|
-
tagStr = '!!' + tagStr.slice(18)
|
|
870
|
-
} else {
|
|
871
|
-
tagStr = '!<' + tagStr + '>'
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
state.dump = tagStr + ' ' + state.dump
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
return true
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
function getDuplicateReferences (object, state) {
|
|
882
|
-
const objects = []
|
|
883
|
-
const duplicatesIndexes = []
|
|
884
|
-
|
|
885
|
-
inspectNode(object, objects, duplicatesIndexes)
|
|
886
|
-
|
|
887
|
-
const length = duplicatesIndexes.length
|
|
888
|
-
for (let index = 0; index < length; index += 1) {
|
|
889
|
-
state.duplicates.push(objects[duplicatesIndexes[index]])
|
|
890
|
-
}
|
|
891
|
-
state.usedDuplicates = new Array(length)
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
function inspectNode (object, objects, duplicatesIndexes) {
|
|
895
|
-
if (object !== null && typeof object === 'object') {
|
|
896
|
-
const index = objects.indexOf(object)
|
|
897
|
-
if (index !== -1) {
|
|
898
|
-
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
899
|
-
duplicatesIndexes.push(index)
|
|
900
|
-
}
|
|
901
|
-
} else {
|
|
902
|
-
objects.push(object)
|
|
903
|
-
|
|
904
|
-
if (Array.isArray(object)) {
|
|
905
|
-
for (let i = 0, length = object.length; i < length; i += 1) {
|
|
906
|
-
inspectNode(object[i], objects, duplicatesIndexes)
|
|
907
|
-
}
|
|
908
|
-
} else {
|
|
909
|
-
const objectKeyList = Object.keys(object)
|
|
910
|
-
|
|
911
|
-
for (let i = 0, length = objectKeyList.length; i < length; i += 1) {
|
|
912
|
-
inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes)
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
function dump (input, options) {
|
|
920
|
-
options = options || {}
|
|
921
|
-
|
|
922
|
-
const state = new State(options)
|
|
923
|
-
|
|
924
|
-
if (!state.noRefs) getDuplicateReferences(input, state)
|
|
925
|
-
|
|
926
|
-
let value = input
|
|
927
|
-
|
|
928
|
-
if (state.replacer) {
|
|
929
|
-
value = state.replacer.call({ '': value }, '', value)
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
if (writeNode(state, 0, value, true, true)) return state.dump + '\n'
|
|
933
|
-
|
|
934
|
-
return ''
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
module.exports.dump = dump
|