@zuplo/cli 6.69.3 → 6.69.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/integration/confirm-linked-config.integration.test.d.ts +2 -0
- package/dist/__tests__/integration/confirm-linked-config.integration.test.d.ts.map +1 -0
- package/dist/__tests__/integration/confirm-linked-config.integration.test.js +202 -0
- package/dist/__tests__/integration/confirm-linked-config.integration.test.js.map +1 -0
- package/dist/__tests__/integration/info.integration.test.js +49 -2
- package/dist/__tests__/integration/info.integration.test.js.map +1 -1
- package/dist/__tests__/integration/jest-mocks-setup.js +29 -10
- package/dist/__tests__/integration/jest-mocks-setup.js.map +1 -1
- package/dist/__tests__/integration/linked-config-cascade.integration.test.js +36 -0
- package/dist/__tests__/integration/linked-config-cascade.integration.test.js.map +1 -1
- package/dist/cmds/custom-domain/index.d.ts.map +1 -1
- package/dist/cmds/custom-domain/index.js +6 -10
- package/dist/cmds/custom-domain/index.js.map +1 -1
- package/dist/cmds/delete.d.ts.map +1 -1
- package/dist/cmds/delete.js +2 -0
- package/dist/cmds/delete.js.map +1 -1
- package/dist/cmds/deploy.d.ts.map +1 -1
- package/dist/cmds/deploy.js +2 -0
- package/dist/cmds/deploy.js.map +1 -1
- package/dist/cmds/link.d.ts.map +1 -1
- package/dist/cmds/link.js +2 -0
- package/dist/cmds/link.js.map +1 -1
- package/dist/cmds/list.d.ts.map +1 -1
- package/dist/cmds/list.js +2 -0
- package/dist/cmds/list.js.map +1 -1
- package/dist/cmds/mtls-certificates/create.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/create.js +2 -0
- package/dist/cmds/mtls-certificates/create.js.map +1 -1
- package/dist/cmds/mtls-certificates/delete.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/delete.js +2 -0
- package/dist/cmds/mtls-certificates/delete.js.map +1 -1
- package/dist/cmds/mtls-certificates/describe.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/describe.js +2 -0
- package/dist/cmds/mtls-certificates/describe.js.map +1 -1
- package/dist/cmds/mtls-certificates/disable.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/disable.js +2 -0
- package/dist/cmds/mtls-certificates/disable.js.map +1 -1
- package/dist/cmds/mtls-certificates/index.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/index.js +8 -12
- package/dist/cmds/mtls-certificates/index.js.map +1 -1
- package/dist/cmds/mtls-certificates/list.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/list.js +2 -0
- package/dist/cmds/mtls-certificates/list.js.map +1 -1
- package/dist/cmds/mtls-certificates/update.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/update.js +2 -0
- package/dist/cmds/mtls-certificates/update.js.map +1 -1
- package/dist/cmds/open-api/index.d.ts.map +1 -1
- package/dist/cmds/open-api/index.js +2 -5
- package/dist/cmds/open-api/index.js.map +1 -1
- package/dist/cmds/project/index.d.ts.map +1 -1
- package/dist/cmds/project/index.js +2 -5
- package/dist/cmds/project/index.js.map +1 -1
- package/dist/cmds/proxies/index.d.ts +4 -4
- package/dist/cmds/proxies/index.d.ts.map +1 -1
- package/dist/cmds/proxies/index.js +6 -10
- package/dist/cmds/proxies/index.js.map +1 -1
- package/dist/cmds/source/index.d.ts.map +1 -1
- package/dist/cmds/source/index.js +2 -9
- package/dist/cmds/source/index.js.map +1 -1
- package/dist/cmds/source/migrate.d.ts +4 -4
- package/dist/cmds/source/migrate.d.ts.map +1 -1
- package/dist/cmds/source/migrate.js +3 -6
- package/dist/cmds/source/migrate.js.map +1 -1
- package/dist/cmds/tunnel/index.d.ts.map +1 -1
- package/dist/cmds/tunnel/index.js +8 -12
- package/dist/cmds/tunnel/index.js.map +1 -1
- package/dist/cmds/tunnel/services/index.d.ts.map +1 -1
- package/dist/cmds/tunnel/services/index.js +2 -5
- package/dist/cmds/tunnel/services/index.js.map +1 -1
- package/dist/cmds/variable/create.d.ts.map +1 -1
- package/dist/cmds/variable/create.js +2 -0
- package/dist/cmds/variable/create.js.map +1 -1
- package/dist/cmds/variable/index.d.ts.map +1 -1
- package/dist/cmds/variable/index.js +2 -5
- package/dist/cmds/variable/index.js.map +1 -1
- package/dist/cmds/variable/update.d.ts.map +1 -1
- package/dist/cmds/variable/update.js +2 -0
- package/dist/cmds/variable/update.js.map +1 -1
- package/dist/common/handler.d.ts +4 -1
- package/dist/common/handler.d.ts.map +1 -1
- package/dist/common/handler.js +11 -2
- package/dist/common/handler.js.map +1 -1
- package/dist/common/middleware/confirm-linked-config.d.ts +4 -0
- package/dist/common/middleware/confirm-linked-config.d.ts.map +1 -0
- package/dist/common/middleware/confirm-linked-config.js +30 -0
- package/dist/common/middleware/confirm-linked-config.js.map +1 -0
- package/dist/common/middleware/get-environment-param.d.ts.map +1 -1
- package/dist/common/middleware/get-environment-param.js +2 -18
- package/dist/common/middleware/get-environment-param.js.map +1 -1
- package/dist/common/utils/build-environment-prompt-choices.d.ts +13 -0
- package/dist/common/utils/build-environment-prompt-choices.d.ts.map +1 -0
- package/dist/common/utils/build-environment-prompt-choices.js +66 -0
- package/dist/common/utils/build-environment-prompt-choices.js.map +1 -0
- package/dist/common/utils/build-environment-prompt-choices.test.d.ts +2 -0
- package/dist/common/utils/build-environment-prompt-choices.test.d.ts.map +1 -0
- package/dist/common/utils/build-environment-prompt-choices.test.js +97 -0
- package/dist/common/utils/build-environment-prompt-choices.test.js.map +1 -0
- package/dist/common/utils/format-environment-type.d.ts +2 -0
- package/dist/common/utils/format-environment-type.d.ts.map +1 -0
- package/dist/common/utils/format-environment-type.js +12 -0
- package/dist/common/utils/format-environment-type.js.map +1 -0
- package/dist/common/utils/format-environment-type.test.d.ts +2 -0
- package/dist/common/utils/format-environment-type.test.d.ts.map +1 -0
- package/dist/common/utils/format-environment-type.test.js +32 -0
- package/dist/common/utils/format-environment-type.test.js.map +1 -0
- package/dist/common/utils/pretty-print-environment-prompt.d.ts +1 -4
- package/dist/common/utils/pretty-print-environment-prompt.d.ts.map +1 -1
- package/dist/common/utils/pretty-print-environment-prompt.js +6 -14
- package/dist/common/utils/pretty-print-environment-prompt.js.map +1 -1
- package/dist/common/utils/pretty-print-environment-prompt.test.js +15 -17
- package/dist/common/utils/pretty-print-environment-prompt.test.js.map +1 -1
- package/dist/common/utils/sort-environments-for-prompt.d.ts +5 -0
- package/dist/common/utils/sort-environments-for-prompt.d.ts.map +1 -0
- package/dist/common/utils/sort-environments-for-prompt.js +27 -0
- package/dist/common/utils/sort-environments-for-prompt.js.map +1 -0
- package/dist/common/utils/sort-environments-for-prompt.test.d.ts +2 -0
- package/dist/common/utils/sort-environments-for-prompt.test.d.ts.map +1 -0
- package/dist/common/utils/sort-environments-for-prompt.test.js +82 -0
- package/dist/common/utils/sort-environments-for-prompt.test.js.map +1 -0
- package/dist/project/info/handler.d.ts.map +1 -1
- package/dist/project/info/handler.js +5 -1
- package/dist/project/info/handler.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@fastify/proxy-addr/node_modules/ipaddr.js/README.md +1 -5
- package/node_modules/@fastify/proxy-addr/node_modules/ipaddr.js/ipaddr.min.js +1 -1
- package/node_modules/@fastify/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js +21 -6
- package/node_modules/@fastify/proxy-addr/node_modules/ipaddr.js/package.json +1 -1
- package/node_modules/@zuplo/core/index.minified.js +141 -137
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/.github/workflows/ci.yml +1 -1
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/LICENSE +1 -3
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/benchmark/bench-cmp-lib.js +60 -44
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/index.js +2 -2
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/package.json +7 -7
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/anyof.test.js +20 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/array.test.js +22 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/debug-mode.test.js +21 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/if-then-else.test.js +72 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/invalidSchema.test.js +20 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/issue-836.test.js +183 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/json-add-comma.test.js +57 -57
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/oneof.test.js +20 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/ref.test.js +31 -0
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/typebox.test.js +1 -1
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/types/{index.test-d.ts → index.tst.ts} +17 -17
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1380 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.js +1686 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.js +11 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +2 -2
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +4 -7
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.d.ts +2 -3
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.js +10 -16
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.min.js.map +4 -4
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1380 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.js +1686 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.js +11 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.js +11 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.d.ts +2 -3
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.js +9 -15
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.min.js.map +4 -4
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.js +8 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.d.ts +2 -3
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.js +9 -15
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.js.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.min.js.map +4 -4
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +2 -3
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.d.ts +2 -3
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.js +9 -15
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.min.js.map +4 -4
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.js +8 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.js +8 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
- package/node_modules/@zuplo/editor/node_modules/lru-cache/package.json +44 -16
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/index.js +54 -54
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +4 -0
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/axios/CHANGELOG.md +32 -6
- package/node_modules/axios/README.md +356 -20
- package/node_modules/axios/dist/axios.js +1389 -1071
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +3 -3
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +1486 -1123
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +1488 -1124
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +1230 -871
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +25 -13
- package/node_modules/axios/index.d.ts +21 -4
- package/node_modules/axios/index.js +2 -0
- package/node_modules/axios/lib/adapters/adapters.js +4 -2
- package/node_modules/axios/lib/adapters/fetch.js +126 -10
- package/node_modules/axios/lib/adapters/http.js +178 -59
- package/node_modules/axios/lib/adapters/xhr.js +6 -2
- package/node_modules/axios/lib/core/Axios.js +7 -3
- package/node_modules/axios/lib/core/AxiosError.js +86 -1
- package/node_modules/axios/lib/core/AxiosHeaders.js +3 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +19 -7
- package/node_modules/axios/lib/core/mergeConfig.js +6 -3
- package/node_modules/axios/lib/core/settle.js +7 -11
- package/node_modules/axios/lib/defaults/index.js +1 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/buildURL.js +1 -1
- package/node_modules/axios/lib/helpers/cookies.js +14 -2
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +28 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +1 -1
- package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
- package/node_modules/axios/lib/helpers/resolveConfig.js +33 -17
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +26 -1
- package/node_modules/axios/lib/helpers/validator.js +1 -1
- package/node_modules/axios/lib/utils.js +27 -15
- package/node_modules/axios/package.json +17 -24
- package/node_modules/fast-uri/.github/workflows/ci.yml +12 -7
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +1 -1
- package/node_modules/fast-uri/LICENSE +1 -3
- package/node_modules/fast-uri/README.md +13 -4
- package/node_modules/fast-uri/index.js +90 -24
- package/node_modules/fast-uri/lib/utils.js +129 -22
- package/node_modules/fast-uri/package.json +3 -4
- package/node_modules/fast-uri/test/equal.test.js +9 -0
- package/node_modules/fast-uri/test/parse.test.js +5 -0
- package/node_modules/fast-uri/test/resolve.test.js +9 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +39 -0
- package/node_modules/fast-uri/test/security.test.js +133 -0
- package/node_modules/is-core-module/CHANGELOG.md +244 -113
- package/node_modules/is-core-module/README.md +1 -1
- package/node_modules/is-core-module/core.json +12 -12
- package/node_modules/is-core-module/package.json +5 -5
- package/node_modules/is-core-module/test/index.js +101 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1380 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.js +1686 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.js +11 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +2 -2
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +4 -7
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts +2 -3
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js +10 -16
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js.map +4 -4
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1380 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.js +1686 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.js +11 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.js +11 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.d.ts +2 -3
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.js +9 -15
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.min.js.map +4 -4
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.js +8 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts +2 -3
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js +9 -15
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js.map +4 -4
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +2 -3
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.d.ts +2 -3
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.js +9 -15
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.min.js.map +4 -4
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.js +8 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.js +8 -0
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
- package/node_modules/rimraf/node_modules/lru-cache/package.json +44 -16
- package/package.json +6 -6
- package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/.github/stale.yml +0 -21
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts.map +0 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js.map +0 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.mts.map +0 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.mjs.map +0 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +0 -1
- package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.mjs.map +0 -1
- package/node_modules/fast-uri/.github/.stale.yml +0 -21
- package/node_modules/fast-uri/.github/tests_checker.yml +0 -8
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.mts.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.mjs.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +0 -1
- package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.mjs.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: Lock Threads
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: '0 0 1 * *'
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: lock
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
lock-threads:
|
|
16
|
+
permissions:
|
|
17
|
+
issues: write
|
|
18
|
+
pull-requests: write
|
|
19
|
+
uses: fastify/workflows/.github/workflows/lock-threads.yml@v6
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2016-present Matteo Collina
|
|
4
|
-
Copyright (c) 2016-present The Fastify team
|
|
5
|
-
|
|
6
|
-
The Fastify team members are listed at https://github.com/fastify/fastify#team.
|
|
4
|
+
Copyright (c) 2016-present The Fastify team <https://github.com/fastify/fastify#team>
|
|
7
5
|
|
|
8
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
7
|
of this software and associated documentation files (the "Software"), to deal
|
package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/benchmark/bench-cmp-lib.js
CHANGED
|
@@ -169,155 +169,171 @@ for (let i = STR_LEN; i < LARGE_ARRAY_SIZE; ++i) {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
Number(str)
|
|
173
|
-
|
|
174
172
|
for (let i = 0; i < MULTI_ARRAY_LENGTH; i++) {
|
|
175
173
|
multiArray[i] = obj
|
|
176
174
|
}
|
|
177
175
|
|
|
178
|
-
suite.add('
|
|
176
|
+
suite.add('fast-json-stringify: creation', function () {
|
|
179
177
|
FJS(schema)
|
|
180
178
|
})
|
|
181
|
-
suite.add('
|
|
179
|
+
suite.add('compile-json-stringify: creation', function () {
|
|
182
180
|
CJS(schemaCJS)
|
|
183
181
|
})
|
|
184
|
-
suite.add('AJV
|
|
182
|
+
suite.add('AJV: creation', function () {
|
|
185
183
|
ajv.compileSerializer(schemaAJVJTD)
|
|
186
184
|
})
|
|
187
|
-
suite.add('json-accelerator creation', function () {
|
|
185
|
+
suite.add('json-accelerator: creation', function () {
|
|
188
186
|
createAccelerator(schema)
|
|
189
187
|
})
|
|
190
188
|
|
|
191
|
-
suite.add('JSON.stringify array', function () {
|
|
189
|
+
suite.add('JSON.stringify: array', function () {
|
|
192
190
|
JSON.stringify(multiArray)
|
|
193
191
|
})
|
|
194
192
|
|
|
195
|
-
suite.add('fast-json-stringify array
|
|
193
|
+
suite.add('fast-json-stringify [default]: array', function () {
|
|
196
194
|
stringifyArrayDefault(multiArray)
|
|
197
195
|
})
|
|
198
196
|
|
|
199
|
-
suite.add('json-accelerator array', function () {
|
|
197
|
+
suite.add('json-accelerator: array', function () {
|
|
200
198
|
accelArray(multiArray)
|
|
201
199
|
})
|
|
202
200
|
|
|
203
|
-
suite.add('fast-json-stringify
|
|
201
|
+
suite.add('fast-json-stringify [json-stringify]: array', function () {
|
|
204
202
|
stringifyArrayJSONStringify(multiArray)
|
|
205
203
|
})
|
|
206
204
|
|
|
207
|
-
suite.add('compile-json-stringify array', function () {
|
|
205
|
+
suite.add('compile-json-stringify: array', function () {
|
|
208
206
|
CJSStringifyArray(multiArray)
|
|
209
207
|
})
|
|
210
208
|
|
|
211
|
-
suite.add('AJV
|
|
209
|
+
suite.add('AJV: array', function () {
|
|
212
210
|
ajvSerializeArray(multiArray)
|
|
213
211
|
})
|
|
214
212
|
|
|
215
|
-
suite.add('JSON.stringify large array', function () {
|
|
213
|
+
suite.add('JSON.stringify: large array', function () {
|
|
216
214
|
JSON.stringify(largeArray)
|
|
217
215
|
})
|
|
218
216
|
|
|
219
|
-
suite.add('fast-json-stringify large array
|
|
217
|
+
suite.add('fast-json-stringify [default]: large array', function () {
|
|
220
218
|
stringifyArrayDefault(largeArray)
|
|
221
219
|
})
|
|
222
220
|
|
|
223
|
-
suite.add('fast-json-stringify large array
|
|
221
|
+
suite.add('fast-json-stringify [json-stringify]: large array', function () {
|
|
224
222
|
stringifyArrayJSONStringify(largeArray)
|
|
225
223
|
})
|
|
226
224
|
|
|
227
|
-
suite.add('compile-json-stringify large array', function () {
|
|
225
|
+
suite.add('compile-json-stringify: large array', function () {
|
|
228
226
|
CJSStringifyArray(largeArray)
|
|
229
227
|
})
|
|
230
228
|
|
|
231
|
-
suite.add('AJV
|
|
229
|
+
suite.add('AJV: large array', function () {
|
|
232
230
|
ajvSerializeArray(largeArray)
|
|
233
231
|
})
|
|
234
232
|
|
|
235
|
-
suite.add('JSON.stringify long string', function () {
|
|
233
|
+
suite.add('JSON.stringify: long string', function () {
|
|
236
234
|
JSON.stringify(str)
|
|
237
235
|
})
|
|
238
236
|
|
|
239
|
-
suite.add('fast-json-stringify long string', function () {
|
|
237
|
+
suite.add('fast-json-stringify: long string', function () {
|
|
240
238
|
stringifyString(str)
|
|
241
239
|
})
|
|
242
240
|
|
|
243
|
-
suite.add('json-accelerator long string', function () {
|
|
241
|
+
suite.add('json-accelerator: long string', function () {
|
|
244
242
|
stringifyString(str)
|
|
245
243
|
})
|
|
246
244
|
|
|
247
|
-
suite.add('compile-json-stringify long string', function () {
|
|
245
|
+
suite.add('compile-json-stringify: long string', function () {
|
|
248
246
|
CJSStringifyString(str)
|
|
249
247
|
})
|
|
250
248
|
|
|
251
|
-
suite.add('AJV
|
|
249
|
+
suite.add('AJV: long string', function () {
|
|
252
250
|
ajvSerializeString(str)
|
|
253
251
|
})
|
|
254
252
|
|
|
255
|
-
suite.add('JSON.stringify short string', function () {
|
|
253
|
+
suite.add('JSON.stringify: short string', function () {
|
|
256
254
|
JSON.stringify('hello world')
|
|
257
255
|
})
|
|
258
256
|
|
|
259
|
-
suite.add('fast-json-stringify short string', function () {
|
|
257
|
+
suite.add('fast-json-stringify: short string', function () {
|
|
260
258
|
stringifyString('hello world')
|
|
261
259
|
})
|
|
262
260
|
|
|
263
|
-
suite.add('json-accelerator short string', function () {
|
|
261
|
+
suite.add('json-accelerator: short string', function () {
|
|
264
262
|
accelString('hello world')
|
|
265
263
|
})
|
|
266
264
|
|
|
267
|
-
suite.add('compile-json-stringify short string', function () {
|
|
265
|
+
suite.add('compile-json-stringify: short string', function () {
|
|
268
266
|
CJSStringifyString('hello world')
|
|
269
267
|
})
|
|
270
268
|
|
|
271
|
-
suite.add('AJV
|
|
269
|
+
suite.add('AJV: short string', function () {
|
|
272
270
|
ajvSerializeString('hello world')
|
|
273
271
|
})
|
|
274
272
|
|
|
275
|
-
suite.add('JSON.stringify obj', function () {
|
|
273
|
+
suite.add('JSON.stringify: obj', function () {
|
|
276
274
|
JSON.stringify(obj)
|
|
277
275
|
})
|
|
278
276
|
|
|
279
|
-
suite.add('fast-json-stringify obj', function () {
|
|
277
|
+
suite.add('fast-json-stringify: obj', function () {
|
|
280
278
|
stringify(obj)
|
|
281
279
|
})
|
|
282
280
|
|
|
283
|
-
suite.add('json-accelerator obj', function () {
|
|
281
|
+
suite.add('json-accelerator: obj', function () {
|
|
284
282
|
accelStringify(obj)
|
|
285
283
|
})
|
|
286
284
|
|
|
287
|
-
suite.add('compile-json-stringify obj', function () {
|
|
285
|
+
suite.add('compile-json-stringify: obj', function () {
|
|
288
286
|
CJSStringify(obj)
|
|
289
287
|
})
|
|
290
288
|
|
|
291
|
-
suite.add('AJV
|
|
289
|
+
suite.add('AJV: obj', function () {
|
|
292
290
|
ajvSerialize(obj)
|
|
293
291
|
})
|
|
294
292
|
|
|
295
|
-
suite.add('JSON
|
|
293
|
+
suite.add('JSON.stringify: date', function () {
|
|
296
294
|
JSON.stringify(date)
|
|
297
295
|
})
|
|
298
296
|
|
|
299
|
-
suite.add('fast-json-stringify date
|
|
297
|
+
suite.add('fast-json-stringify: date', function () {
|
|
300
298
|
stringifyDate(date)
|
|
301
299
|
})
|
|
302
300
|
|
|
303
|
-
suite.add('json-accelerate date
|
|
301
|
+
suite.add('json-accelerate: date', function () {
|
|
304
302
|
accelDate(date)
|
|
305
303
|
})
|
|
306
304
|
|
|
307
|
-
suite.add('compile-json-stringify date
|
|
305
|
+
suite.add('compile-json-stringify: date', function () {
|
|
308
306
|
CJSStringifyDate(date)
|
|
309
307
|
})
|
|
310
308
|
|
|
311
309
|
suite.run().then(() => {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
310
|
+
const results = suite.tasks.map(task => ({
|
|
311
|
+
name: task.name,
|
|
312
|
+
hz: task.result.throughput.mean,
|
|
313
|
+
rme: task.result.latency.rme,
|
|
314
|
+
samples: task.result.latency.df + 1
|
|
315
|
+
}))
|
|
316
|
+
|
|
317
|
+
const scenarios = {}
|
|
318
|
+
for (const result of results) {
|
|
319
|
+
const [library, scenario] = result.name.split(':').map(s => s.trim())
|
|
320
|
+
|
|
321
|
+
if (!scenarios[scenario]) scenarios[scenario] = []
|
|
322
|
+
scenarios[scenario].push({ ...result, library })
|
|
323
|
+
}
|
|
316
324
|
|
|
317
|
-
|
|
318
|
-
|
|
325
|
+
for (const [scenario, tasks] of Object.entries(scenarios)) {
|
|
326
|
+
console.log(`\n--- ${scenario} ---`)
|
|
327
|
+
const sorted = tasks.sort((a, b) => b.hz - a.hz)
|
|
328
|
+
const winner = sorted[0]
|
|
319
329
|
|
|
320
|
-
const
|
|
321
|
-
|
|
330
|
+
for (const task of sorted) {
|
|
331
|
+
const formattedHz = task.hz.toLocaleString('en-US', { maximumFractionDigits: 0 })
|
|
332
|
+
const formattedRme = task.rme.toFixed(2)
|
|
333
|
+
const isWinner = task === winner
|
|
334
|
+
const prefix = isWinner ? '🏆 ' : ' '
|
|
335
|
+
|
|
336
|
+
console.log(`${prefix}${task.library.padEnd(40)} x ${formattedHz.padStart(15)} ops/sec ±${formattedRme}% (${task.samples} runs sampled)`)
|
|
337
|
+
}
|
|
322
338
|
}
|
|
323
339
|
}).catch(err => console.error(`Error: ${err.message}`))
|
|
@@ -568,7 +568,7 @@ function buildObject (context, location, input) {
|
|
|
568
568
|
const jsonPointer = location.jsonPointer || ''
|
|
569
569
|
const fullPath = `${schemaId}#${jsonPointer}`
|
|
570
570
|
|
|
571
|
-
if (context.recursivePaths.has(fullPath) || context.buildingSet.has(schema)) {
|
|
571
|
+
if (context.recursivePaths.has(fullPath) || context.buildingSet.has(schema) || schemaId !== '') {
|
|
572
572
|
const functionName = generateFuncName(context)
|
|
573
573
|
context.functionsNamesBySchema.set(schema, functionName)
|
|
574
574
|
|
|
@@ -627,7 +627,7 @@ function buildArray (context, location, input) {
|
|
|
627
627
|
const jsonPointer = location.jsonPointer || ''
|
|
628
628
|
const fullPath = `${schemaId}#${jsonPointer}`
|
|
629
629
|
|
|
630
|
-
if (context.recursivePaths.has(fullPath) || context.buildingSet.has(schema)) {
|
|
630
|
+
if (context.recursivePaths.has(fullPath) || context.buildingSet.has(schema) || schemaId !== '') {
|
|
631
631
|
const functionName = generateFuncName(context)
|
|
632
632
|
context.functionsNamesBySchema.set(schema, functionName)
|
|
633
633
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fast-json-stringify",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "Stringify your JSON at max speed",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"benchmark": "node --expose-gc ./benchmark/bench-cmp-lib.js",
|
|
13
13
|
"lint": "eslint",
|
|
14
14
|
"lint:fix": "eslint --fix",
|
|
15
|
-
"test:typescript": "
|
|
15
|
+
"test:typescript": "tstyche",
|
|
16
16
|
"test:unit": "c8 node --test",
|
|
17
17
|
"test": "npm run test:unit && npm run test:typescript"
|
|
18
18
|
},
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
}
|
|
63
63
|
],
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"
|
|
66
|
-
"c8": "^10.1.3",
|
|
65
|
+
"c8": "^11.0.0",
|
|
67
66
|
"cli-select": "^1.1.2",
|
|
68
67
|
"compile-json-stringify": "^0.1.2",
|
|
69
68
|
"eslint": "^9.39.2",
|
|
70
69
|
"fast-json-stringify": ".",
|
|
71
70
|
"is-my-json-valid": "^2.20.6",
|
|
72
71
|
"json-accelerator": "^0.1.7",
|
|
73
|
-
"neostandard": "^0.
|
|
72
|
+
"neostandard": "^0.13.0",
|
|
74
73
|
"simple-git": "^3.30.0",
|
|
75
74
|
"tinybench": "^6.0.0",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
75
|
+
"tstyche": "^7.1.0",
|
|
76
|
+
"typebox": "^1.0.81",
|
|
77
|
+
"typescript": "~6.0.2",
|
|
78
78
|
"webpack": "^5.104.1"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
@@ -790,3 +790,23 @@ test('should build merged schemas twice', (t) => {
|
|
|
790
790
|
t.assert.equal(stringify({ enums: 'BAR' }), '{"enums":"BAR"}')
|
|
791
791
|
}
|
|
792
792
|
})
|
|
793
|
+
|
|
794
|
+
test('invalid anyOf schema', (t) => {
|
|
795
|
+
t.plan(1)
|
|
796
|
+
|
|
797
|
+
const schema = {
|
|
798
|
+
type: 'object',
|
|
799
|
+
properties: {
|
|
800
|
+
prop: {
|
|
801
|
+
anyOf: 'not array' // invalid, anyOf must be array
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
try {
|
|
807
|
+
build(schema)
|
|
808
|
+
t.assert.fail('Should throw')
|
|
809
|
+
} catch (err) {
|
|
810
|
+
t.assert.ok(err.message.includes('schema is invalid'))
|
|
811
|
+
}
|
|
812
|
+
})
|
|
@@ -386,6 +386,28 @@ test('array items is a schema and additionalItems is false', (t) => {
|
|
|
386
386
|
t.assert.equal(validate({ foo: ['foo', 'bar'] }), true)
|
|
387
387
|
})
|
|
388
388
|
|
|
389
|
+
test('array items is a list of schema and additionalItems is a schema', (t) => {
|
|
390
|
+
t.plan(1)
|
|
391
|
+
|
|
392
|
+
const schema = {
|
|
393
|
+
type: 'object',
|
|
394
|
+
properties: {
|
|
395
|
+
foo: {
|
|
396
|
+
type: 'array',
|
|
397
|
+
items: [
|
|
398
|
+
{ type: 'string' }
|
|
399
|
+
],
|
|
400
|
+
additionalItems: { type: 'number' }
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
const stringify = build(schema)
|
|
406
|
+
const result = stringify({ foo: ['foo', 42] })
|
|
407
|
+
|
|
408
|
+
t.assert.equal(result, '{"foo":["foo",42]}')
|
|
409
|
+
})
|
|
410
|
+
|
|
389
411
|
// https://github.com/fastify/fast-json-stringify/issues/279
|
|
390
412
|
test('object array with anyOf and symbol', (t) => {
|
|
391
413
|
t.plan(1)
|
|
@@ -119,3 +119,24 @@ test('debug should restore the same serializer instance', t => {
|
|
|
119
119
|
const compiled = fjs.restore(debugMode)
|
|
120
120
|
t.assert.equal(compiled(3.95), 4)
|
|
121
121
|
})
|
|
122
|
+
|
|
123
|
+
test('Serializer restoreFromState', t => {
|
|
124
|
+
t.plan(1)
|
|
125
|
+
|
|
126
|
+
const Serializer = require('../lib/serializer')
|
|
127
|
+
const serializer = new Serializer()
|
|
128
|
+
const state = serializer.getState()
|
|
129
|
+
const restored = Serializer.restoreFromState(state)
|
|
130
|
+
t.assert.ok(restored instanceof Serializer)
|
|
131
|
+
})
|
|
132
|
+
|
|
133
|
+
test('Validator restoreFromState', t => {
|
|
134
|
+
t.plan(1)
|
|
135
|
+
|
|
136
|
+
const Validator = require('../lib/validator')
|
|
137
|
+
const validator = new Validator()
|
|
138
|
+
validator.addSchema({ type: 'string' }, 'test')
|
|
139
|
+
const state = validator.getState()
|
|
140
|
+
const restored = Validator.restoreFromState(state)
|
|
141
|
+
t.assert.ok(restored instanceof Validator)
|
|
142
|
+
})
|
package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/if-then-else.test.js
CHANGED
|
@@ -466,3 +466,75 @@ test('external recursive if/then/else', (t) => {
|
|
|
466
466
|
const stringify = build(schema, { schema: { externalSchema } })
|
|
467
467
|
t.assert.equal(stringify(data), '{"a":{"base":"a","bar":"42"},"b":{"base":"b","baz":"43"}}')
|
|
468
468
|
})
|
|
469
|
+
|
|
470
|
+
test('invalid if-then-else schema', (t) => {
|
|
471
|
+
t.plan(1)
|
|
472
|
+
|
|
473
|
+
const schema = {
|
|
474
|
+
type: 'object',
|
|
475
|
+
if: {
|
|
476
|
+
type: 'object',
|
|
477
|
+
properties: {
|
|
478
|
+
kind: { type: 'string', enum: ['foobar'] }
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
then: {
|
|
482
|
+
type: 'object',
|
|
483
|
+
properties: {
|
|
484
|
+
foo: { type: 'string' }
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
else: {
|
|
488
|
+
type: 'object',
|
|
489
|
+
properties: 'invalid' // properties must be object
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
try {
|
|
494
|
+
build(schema)
|
|
495
|
+
t.assert.fail('Should throw')
|
|
496
|
+
} catch (err) {
|
|
497
|
+
t.assert.ok(err.message.includes('schema is invalid'))
|
|
498
|
+
}
|
|
499
|
+
})
|
|
500
|
+
|
|
501
|
+
test('if-then-else with allOf', (t) => {
|
|
502
|
+
t.plan(2)
|
|
503
|
+
|
|
504
|
+
const schema = {
|
|
505
|
+
type: 'object',
|
|
506
|
+
allOf: [
|
|
507
|
+
{
|
|
508
|
+
type: 'object',
|
|
509
|
+
properties: {
|
|
510
|
+
base: { type: 'string' }
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
],
|
|
514
|
+
if: {
|
|
515
|
+
type: 'object',
|
|
516
|
+
properties: {
|
|
517
|
+
kind: { type: 'string', enum: ['foobar'] }
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
then: {
|
|
521
|
+
type: 'object',
|
|
522
|
+
properties: {
|
|
523
|
+
foo: { type: 'string' }
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
else: {
|
|
527
|
+
type: 'object',
|
|
528
|
+
properties: {
|
|
529
|
+
bar: { type: 'string' }
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
const stringify = build(schema)
|
|
535
|
+
const data = { base: 'test', kind: 'foobar', foo: 'value' }
|
|
536
|
+
const output = stringify(data)
|
|
537
|
+
|
|
538
|
+
t.assert.doesNotThrow(() => JSON.parse(output))
|
|
539
|
+
t.assert.equal(output, '{"base":"test","foo":"value"}')
|
|
540
|
+
})
|
package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/invalidSchema.test.js
CHANGED
|
@@ -16,3 +16,23 @@ test('Should throw on invalid schema', t => {
|
|
|
16
16
|
})
|
|
17
17
|
}, { message: /^"invalid" schema is invalid:.*/ })
|
|
18
18
|
})
|
|
19
|
+
|
|
20
|
+
test('invalid not schema', (t) => {
|
|
21
|
+
t.plan(1)
|
|
22
|
+
|
|
23
|
+
const schema = {
|
|
24
|
+
type: 'object',
|
|
25
|
+
properties: {
|
|
26
|
+
prop: {
|
|
27
|
+
not: 'not object' // invalid, not must be object
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
try {
|
|
33
|
+
build(schema)
|
|
34
|
+
t.assert.fail('Should throw')
|
|
35
|
+
} catch (err) {
|
|
36
|
+
t.assert.ok(err.message.includes('schema is invalid'))
|
|
37
|
+
}
|
|
38
|
+
})
|