@wopee-io/wopee.pw 4.4.0
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/.commit.hbs +71 -0
- package/.commitlintrc.json +3 -0
- package/.eslintignore +2 -0
- package/.eslintrc +21 -0
- package/.github/actions/npm_clean_install/action.yaml +35 -0
- package/.github/workflows/ci_cd.yaml +146 -0
- package/.prettierignore +3 -0
- package/.prettierrc +12 -0
- package/README.md +3 -0
- package/build/core/domain/configuration/config.interface.d.ts +7 -0
- package/build/core/domain/configuration/config.interface.js +3 -0
- package/build/core/domain/configuration/config.interface.js.map +1 -0
- package/build/core/domain/configuration/index.d.ts +2 -0
- package/build/core/domain/configuration/index.js +3 -0
- package/build/core/domain/configuration/index.js.map +1 -0
- package/build/core/domain/index.d.ts +2 -0
- package/build/core/domain/index.js +19 -0
- package/build/core/domain/index.js.map +1 -0
- package/build/core/domain/valueObjects/index.d.ts +2 -0
- package/build/core/domain/valueObjects/index.js +3 -0
- package/build/core/domain/valueObjects/index.js.map +1 -0
- package/build/core/domain/valueObjects/track.interface.d.ts +13 -0
- package/build/core/domain/valueObjects/track.interface.js +3 -0
- package/build/core/domain/valueObjects/track.interface.js.map +1 -0
- package/build/core/index.d.ts +3 -0
- package/build/core/index.js +20 -0
- package/build/core/index.js.map +1 -0
- package/build/core/ports/configPort/configDefaults.d.ts +2 -0
- package/build/core/ports/configPort/configDefaults.js +20 -0
- package/build/core/ports/configPort/configDefaults.js.map +1 -0
- package/build/core/ports/configPort/configPort.d.ts +6 -0
- package/build/core/ports/configPort/configPort.js +12 -0
- package/build/core/ports/configPort/configPort.js.map +1 -0
- package/build/core/ports/configPort/index.d.ts +2 -0
- package/build/core/ports/configPort/index.js +6 -0
- package/build/core/ports/configPort/index.js.map +1 -0
- package/build/core/ports/index.d.ts +1 -0
- package/build/core/ports/index.js +18 -0
- package/build/core/ports/index.js.map +1 -0
- package/build/core/services/index.d.ts +1 -0
- package/build/core/services/index.js +18 -0
- package/build/core/services/index.js.map +1 -0
- package/build/core/services/wopeeService/index.d.ts +2 -0
- package/build/core/services/wopeeService/index.js +6 -0
- package/build/core/services/wopeeService/index.js.map +1 -0
- package/build/core/services/wopeeService/wopee.d.ts +19 -0
- package/build/core/services/wopeeService/wopee.js +163 -0
- package/build/core/services/wopeeService/wopee.js.map +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +20 -0
- package/build/index.js.map +1 -0
- package/build/infrastructure/adapters/envConfigAdapter/envConfigAdapter.d.ts +6 -0
- package/build/infrastructure/adapters/envConfigAdapter/envConfigAdapter.js +28 -0
- package/build/infrastructure/adapters/envConfigAdapter/envConfigAdapter.js.map +1 -0
- package/build/infrastructure/adapters/envConfigAdapter/index.d.ts +2 -0
- package/build/infrastructure/adapters/envConfigAdapter/index.js +6 -0
- package/build/infrastructure/adapters/envConfigAdapter/index.js.map +1 -0
- package/build/infrastructure/adapters/index.d.ts +1 -0
- package/build/infrastructure/adapters/index.js +18 -0
- package/build/infrastructure/adapters/index.js.map +1 -0
- package/build/infrastructure/index.d.ts +1 -0
- package/build/infrastructure/index.js +18 -0
- package/build/infrastructure/index.js.map +1 -0
- package/build/shared/index.d.ts +1 -0
- package/build/shared/index.js +18 -0
- package/build/shared/index.js.map +1 -0
- package/build/shared/metadata/index.d.ts +2 -0
- package/build/shared/metadata/index.js +6 -0
- package/build/shared/metadata/index.js.map +1 -0
- package/build/shared/metadata/versionMetadata.d.ts +1 -0
- package/build/shared/metadata/versionMetadata.js +21 -0
- package/build/shared/metadata/versionMetadata.js.map +1 -0
- package/docs/configuration.md +21 -0
- package/docs/minimal.md +26 -0
- package/jest.config.ts +16 -0
- package/node_modules/@autonomous-testing/sdk/.commit.hbs +71 -0
- package/node_modules/@autonomous-testing/sdk/.commitlintrc.json +3 -0
- package/node_modules/@autonomous-testing/sdk/.eslintignore +2 -0
- package/node_modules/@autonomous-testing/sdk/.eslintrc +21 -0
- package/node_modules/@autonomous-testing/sdk/.github/actions/npm_clean_install/action.yaml +35 -0
- package/node_modules/@autonomous-testing/sdk/.github/workflows/ci_cd.yaml +149 -0
- package/node_modules/@autonomous-testing/sdk/.prettierignore +3 -0
- package/node_modules/@autonomous-testing/sdk/.prettierrc +12 -0
- package/node_modules/@autonomous-testing/sdk/README.md +57 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.d.ts +32 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.js +16 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.d.ts +11 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.js +9 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.js +16 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.d.ts +24 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js +20 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/index.d.ts +2 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/index.js +18 -0
- package/node_modules/@autonomous-testing/sdk/build/core/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/core/index.js +19 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/api.d.ts +16 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/api.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/index.js +8 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/logger.d.ts +7 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/logger.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/index.d.ts +5 -0
- package/node_modules/@autonomous-testing/sdk/build/index.js +22 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.d.ts +19 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +123 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.d.ts +9 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +144 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.js +8 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +235 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +82 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/mutations.d.ts +5 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/mutations.js +85 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/consoleLogger.d.ts +36 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/consoleLogger.js +49 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.js +20 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/noLogger.d.ts +31 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/noLogger.js +34 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.js +19 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +12 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.d.ts +7 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.js +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.js +19 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/consoleLoggerOptions.interface.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/consoleLoggerOptions.interface.js +3 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.d.ts +22 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.js +15 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.js +32 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/index.js +19 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/index.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.js +12 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.d.ts +5 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.js +22 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.d.ts +17 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.js +29 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/zodHelper.js +39 -0
- package/node_modules/@autonomous-testing/sdk/package.json +50 -0
- package/node_modules/@autonomous-testing/sdk/release.config.mjs +55 -0
- package/node_modules/asynckit/LICENSE +21 -0
- package/node_modules/asynckit/README.md +233 -0
- package/node_modules/asynckit/bench.js +76 -0
- package/node_modules/asynckit/index.js +6 -0
- package/node_modules/asynckit/lib/abort.js +29 -0
- package/node_modules/asynckit/lib/async.js +34 -0
- package/node_modules/asynckit/lib/defer.js +26 -0
- package/node_modules/asynckit/lib/iterate.js +75 -0
- package/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/node_modules/asynckit/lib/state.js +37 -0
- package/node_modules/asynckit/lib/streamify.js +141 -0
- package/node_modules/asynckit/lib/terminator.js +29 -0
- package/node_modules/asynckit/package.json +63 -0
- package/node_modules/asynckit/parallel.js +43 -0
- package/node_modules/asynckit/serial.js +17 -0
- package/node_modules/asynckit/serialOrdered.js +75 -0
- package/node_modules/asynckit/stream.js +21 -0
- package/node_modules/axios/CHANGELOG.md +943 -0
- package/node_modules/axios/LICENSE +19 -0
- package/node_modules/axios/README.md +991 -0
- package/node_modules/axios/SECURITY.md +5 -0
- package/node_modules/axios/UPGRADE_GUIDE.md +168 -0
- package/node_modules/axios/dist/axios.js +2595 -0
- package/node_modules/axios/dist/axios.map +1 -0
- package/node_modules/axios/dist/axios.min.js +3 -0
- package/node_modules/axios/dist/axios.min.map +1 -0
- package/node_modules/axios/index.d.ts +254 -0
- package/node_modules/axios/index.js +1 -0
- package/node_modules/axios/lib/adapters/README.md +37 -0
- package/node_modules/axios/lib/adapters/http.js +424 -0
- package/node_modules/axios/lib/adapters/xhr.js +222 -0
- package/node_modules/axios/lib/axios.js +64 -0
- package/node_modules/axios/lib/cancel/CancelToken.js +119 -0
- package/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/node_modules/axios/lib/core/Axios.js +160 -0
- package/node_modules/axios/lib/core/AxiosError.js +86 -0
- package/node_modules/axios/lib/core/InterceptorManager.js +54 -0
- package/node_modules/axios/lib/core/README.md +8 -0
- package/node_modules/axios/lib/core/buildFullPath.js +20 -0
- package/node_modules/axios/lib/core/dispatchRequest.js +87 -0
- package/node_modules/axios/lib/core/mergeConfig.js +100 -0
- package/node_modules/axios/lib/core/settle.js +25 -0
- package/node_modules/axios/lib/core/transformData.js +22 -0
- package/node_modules/axios/lib/defaults/env/FormData.js +2 -0
- package/node_modules/axios/lib/defaults/index.js +146 -0
- package/node_modules/axios/lib/defaults/transitional.js +7 -0
- package/node_modules/axios/lib/env/README.md +3 -0
- package/node_modules/axios/lib/env/data.js +3 -0
- package/node_modules/axios/lib/helpers/README.md +7 -0
- package/node_modules/axios/lib/helpers/bind.js +11 -0
- package/node_modules/axios/lib/helpers/buildURL.js +70 -0
- package/node_modules/axios/lib/helpers/combineURLs.js +14 -0
- package/node_modules/axios/lib/helpers/cookies.js +53 -0
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
- package/node_modules/axios/lib/helpers/isAxiosError.js +13 -0
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
- package/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
- package/node_modules/axios/lib/helpers/null.js +2 -0
- package/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
- package/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/node_modules/axios/lib/helpers/spread.js +27 -0
- package/node_modules/axios/lib/helpers/toFormData.js +72 -0
- package/node_modules/axios/lib/helpers/validator.js +86 -0
- package/node_modules/axios/lib/utils.js +470 -0
- package/node_modules/axios/package.json +87 -0
- package/node_modules/axios/tsconfig.json +14 -0
- package/node_modules/axios/tslint.json +6 -0
- package/node_modules/combined-stream/License +19 -0
- package/node_modules/combined-stream/Readme.md +138 -0
- package/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/node_modules/combined-stream/package.json +25 -0
- package/node_modules/delayed-stream/.npmignore +1 -0
- package/node_modules/delayed-stream/License +19 -0
- package/node_modules/delayed-stream/Makefile +7 -0
- package/node_modules/delayed-stream/Readme.md +141 -0
- package/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/node_modules/delayed-stream/package.json +27 -0
- package/node_modules/follow-redirects/LICENSE +18 -0
- package/node_modules/follow-redirects/README.md +155 -0
- package/node_modules/follow-redirects/debug.js +15 -0
- package/node_modules/follow-redirects/http.js +1 -0
- package/node_modules/follow-redirects/https.js +1 -0
- package/node_modules/follow-redirects/index.js +672 -0
- package/node_modules/follow-redirects/package.json +58 -0
- package/node_modules/form-data/License +19 -0
- package/node_modules/form-data/README.md.bak +358 -0
- package/node_modules/form-data/Readme.md +358 -0
- package/node_modules/form-data/index.d.ts +62 -0
- package/node_modules/form-data/lib/browser.js +2 -0
- package/node_modules/form-data/lib/form_data.js +501 -0
- package/node_modules/form-data/lib/populate.js +10 -0
- package/node_modules/form-data/package.json +68 -0
- package/node_modules/mime-db/HISTORY.md +507 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +100 -0
- package/node_modules/mime-db/db.json +8519 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +60 -0
- package/node_modules/mime-types/HISTORY.md +397 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +113 -0
- package/node_modules/mime-types/index.js +188 -0
- package/node_modules/mime-types/package.json +44 -0
- package/node_modules/process/.eslintrc +21 -0
- package/node_modules/process/LICENSE +22 -0
- package/node_modules/process/README.md +26 -0
- package/node_modules/process/browser.js +184 -0
- package/node_modules/process/index.js +2 -0
- package/node_modules/process/package.json +27 -0
- package/node_modules/process/test.js +199 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +2876 -0
- package/node_modules/zod/index.d.ts +2 -0
- package/node_modules/zod/lib/ZodError.d.ts +164 -0
- package/node_modules/zod/lib/ZodError.js +137 -0
- package/node_modules/zod/lib/__tests__/Mocker.d.ts +17 -0
- package/node_modules/zod/lib/__tests__/Mocker.js +57 -0
- package/node_modules/zod/lib/benchmarks/datetime.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/datetime.js +54 -0
- package/node_modules/zod/lib/benchmarks/discriminatedUnion.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/discriminatedUnion.js +79 -0
- package/node_modules/zod/lib/benchmarks/index.d.ts +1 -0
- package/node_modules/zod/lib/benchmarks/index.js +59 -0
- package/node_modules/zod/lib/benchmarks/ipv4.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/ipv4.js +54 -0
- package/node_modules/zod/lib/benchmarks/object.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/object.js +70 -0
- package/node_modules/zod/lib/benchmarks/primitives.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/primitives.js +170 -0
- package/node_modules/zod/lib/benchmarks/realworld.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/realworld.js +56 -0
- package/node_modules/zod/lib/benchmarks/string.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/string.js +55 -0
- package/node_modules/zod/lib/benchmarks/union.d.ts +5 -0
- package/node_modules/zod/lib/benchmarks/union.js +79 -0
- package/node_modules/zod/lib/errors.d.ts +5 -0
- package/node_modules/zod/lib/errors.js +17 -0
- package/node_modules/zod/lib/external.d.ts +6 -0
- package/node_modules/zod/lib/external.js +18 -0
- package/node_modules/zod/lib/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/lib/helpers/enumUtil.js +2 -0
- package/node_modules/zod/lib/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/lib/helpers/errorUtil.js +8 -0
- package/node_modules/zod/lib/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/lib/helpers/parseUtil.js +125 -0
- package/node_modules/zod/lib/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/lib/helpers/partialUtil.js +2 -0
- package/node_modules/zod/lib/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/lib/helpers/typeAliases.js +2 -0
- package/node_modules/zod/lib/helpers/util.d.ts +82 -0
- package/node_modules/zod/lib/helpers/util.js +142 -0
- package/node_modules/zod/lib/index.d.ts +4 -0
- package/node_modules/zod/lib/index.js +29 -0
- package/node_modules/zod/lib/index.mjs +4236 -0
- package/node_modules/zod/lib/index.umd.js +4351 -0
- package/node_modules/zod/lib/locales/en.d.ts +3 -0
- package/node_modules/zod/lib/locales/en.js +129 -0
- package/node_modules/zod/lib/types.d.ts +1127 -0
- package/node_modules/zod/lib/types.js +3677 -0
- package/node_modules/zod/package.json +119 -0
- package/package.json +57 -0
- package/release.config.mjs +55 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
var assert = require('assert');
|
|
2
|
+
var ourProcess = require('./browser');
|
|
3
|
+
describe('test against our process', function () {
|
|
4
|
+
test(ourProcess);
|
|
5
|
+
});
|
|
6
|
+
if (!process.browser) {
|
|
7
|
+
describe('test against node', function () {
|
|
8
|
+
test(process);
|
|
9
|
+
});
|
|
10
|
+
vmtest();
|
|
11
|
+
}
|
|
12
|
+
function test (ourProcess) {
|
|
13
|
+
describe('test arguments', function () {
|
|
14
|
+
it ('works', function (done) {
|
|
15
|
+
var order = 0;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
ourProcess.nextTick(function (num) {
|
|
19
|
+
assert.equal(num, order++, 'first one works');
|
|
20
|
+
ourProcess.nextTick(function (num) {
|
|
21
|
+
assert.equal(num, order++, 'recursive one is 4th');
|
|
22
|
+
}, 3);
|
|
23
|
+
}, 0);
|
|
24
|
+
ourProcess.nextTick(function (num) {
|
|
25
|
+
assert.equal(num, order++, 'second one starts');
|
|
26
|
+
ourProcess.nextTick(function (num) {
|
|
27
|
+
assert.equal(num, order++, 'this is third');
|
|
28
|
+
ourProcess.nextTick(function (num) {
|
|
29
|
+
assert.equal(num, order++, 'this is last');
|
|
30
|
+
done();
|
|
31
|
+
}, 5);
|
|
32
|
+
}, 4);
|
|
33
|
+
}, 1);
|
|
34
|
+
ourProcess.nextTick(function (num) {
|
|
35
|
+
|
|
36
|
+
assert.equal(num, order++, '3rd schedualed happens after the error');
|
|
37
|
+
}, 2);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
if (!process.browser) {
|
|
41
|
+
describe('test errors', function (t) {
|
|
42
|
+
it ('works', function (done) {
|
|
43
|
+
var order = 0;
|
|
44
|
+
process.removeAllListeners('uncaughtException');
|
|
45
|
+
process.once('uncaughtException', function(err) {
|
|
46
|
+
assert.equal(2, order++, 'error is third');
|
|
47
|
+
ourProcess.nextTick(function () {
|
|
48
|
+
assert.equal(5, order++, 'schedualed in error is last');
|
|
49
|
+
done();
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
ourProcess.nextTick(function () {
|
|
53
|
+
assert.equal(0, order++, 'first one works');
|
|
54
|
+
ourProcess.nextTick(function () {
|
|
55
|
+
assert.equal(4, order++, 'recursive one is 4th');
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
ourProcess.nextTick(function () {
|
|
59
|
+
assert.equal(1, order++, 'second one starts');
|
|
60
|
+
throw(new Error('an error is thrown'));
|
|
61
|
+
});
|
|
62
|
+
ourProcess.nextTick(function () {
|
|
63
|
+
assert.equal(3, order++, '3rd schedualed happens after the error');
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
describe('rename globals', function (t) {
|
|
69
|
+
var oldTimeout = setTimeout;
|
|
70
|
+
var oldClear = clearTimeout;
|
|
71
|
+
|
|
72
|
+
it('clearTimeout', function (done){
|
|
73
|
+
|
|
74
|
+
var ok = true;
|
|
75
|
+
clearTimeout = function () {
|
|
76
|
+
ok = false;
|
|
77
|
+
}
|
|
78
|
+
var ran = false;
|
|
79
|
+
function cleanup() {
|
|
80
|
+
clearTimeout = oldClear;
|
|
81
|
+
var err;
|
|
82
|
+
try {
|
|
83
|
+
assert.ok(ok, 'fake clearTimeout ran');
|
|
84
|
+
assert.ok(ran, 'should have run');
|
|
85
|
+
} catch (e) {
|
|
86
|
+
err = e;
|
|
87
|
+
}
|
|
88
|
+
done(err);
|
|
89
|
+
}
|
|
90
|
+
setTimeout(cleanup, 1000);
|
|
91
|
+
ourProcess.nextTick(function () {
|
|
92
|
+
ran = true;
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
it('just setTimeout', function (done){
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
setTimeout = function () {
|
|
99
|
+
setTimeout = oldTimeout;
|
|
100
|
+
try {
|
|
101
|
+
assert.ok(false, 'fake setTimeout called')
|
|
102
|
+
} catch (e) {
|
|
103
|
+
done(e);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
ourProcess.nextTick(function () {
|
|
109
|
+
setTimeout = oldTimeout;
|
|
110
|
+
done();
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function vmtest() {
|
|
116
|
+
var vm = require('vm');
|
|
117
|
+
var fs = require('fs');
|
|
118
|
+
var process = fs.readFileSync('./browser.js', {encoding: 'utf8'});
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
describe('should work in vm in strict mode with no globals', function () {
|
|
122
|
+
it('should parse', function (done) {
|
|
123
|
+
var str = '"use strict";var module = {exports:{}};';
|
|
124
|
+
str += process;
|
|
125
|
+
str += 'this.works = process.browser;';
|
|
126
|
+
var script = new vm.Script(str);
|
|
127
|
+
var context = {
|
|
128
|
+
works: false
|
|
129
|
+
};
|
|
130
|
+
script.runInNewContext(context);
|
|
131
|
+
assert.ok(context.works);
|
|
132
|
+
done();
|
|
133
|
+
});
|
|
134
|
+
it('setTimeout throws error', function (done) {
|
|
135
|
+
var str = '"use strict";var module = {exports:{}};';
|
|
136
|
+
str += process;
|
|
137
|
+
str += 'try {process.nextTick(function () {})} catch (e){this.works = e;}';
|
|
138
|
+
var script = new vm.Script(str);
|
|
139
|
+
var context = {
|
|
140
|
+
works: false
|
|
141
|
+
};
|
|
142
|
+
script.runInNewContext(context);
|
|
143
|
+
assert.ok(context.works);
|
|
144
|
+
done();
|
|
145
|
+
});
|
|
146
|
+
it('should generally work', function (done) {
|
|
147
|
+
var str = '"use strict";var module = {exports:{}};';
|
|
148
|
+
str += process;
|
|
149
|
+
str += 'process.nextTick(function () {assert.ok(true);done();})';
|
|
150
|
+
var script = new vm.Script(str);
|
|
151
|
+
var context = {
|
|
152
|
+
clearTimeout: clearTimeout,
|
|
153
|
+
setTimeout: setTimeout,
|
|
154
|
+
done: done,
|
|
155
|
+
assert: assert
|
|
156
|
+
};
|
|
157
|
+
script.runInNewContext(context);
|
|
158
|
+
});
|
|
159
|
+
it('late defs setTimeout', function (done) {
|
|
160
|
+
var str = '"use strict";var module = {exports:{}};';
|
|
161
|
+
str += process;
|
|
162
|
+
str += 'var setTimeout = hiddenSetTimeout;process.nextTick(function () {assert.ok(true);done();})';
|
|
163
|
+
var script = new vm.Script(str);
|
|
164
|
+
var context = {
|
|
165
|
+
clearTimeout: clearTimeout,
|
|
166
|
+
hiddenSetTimeout: setTimeout,
|
|
167
|
+
done: done,
|
|
168
|
+
assert: assert
|
|
169
|
+
};
|
|
170
|
+
script.runInNewContext(context);
|
|
171
|
+
});
|
|
172
|
+
it('late defs clearTimeout', function (done) {
|
|
173
|
+
var str = '"use strict";var module = {exports:{}};';
|
|
174
|
+
str += process;
|
|
175
|
+
str += 'var clearTimeout = hiddenClearTimeout;process.nextTick(function () {assert.ok(true);done();})';
|
|
176
|
+
var script = new vm.Script(str);
|
|
177
|
+
var context = {
|
|
178
|
+
hiddenClearTimeout: clearTimeout,
|
|
179
|
+
setTimeout: setTimeout,
|
|
180
|
+
done: done,
|
|
181
|
+
assert: assert
|
|
182
|
+
};
|
|
183
|
+
script.runInNewContext(context);
|
|
184
|
+
});
|
|
185
|
+
it('late defs setTimeout and then redefine', function (done) {
|
|
186
|
+
var str = '"use strict";var module = {exports:{}};';
|
|
187
|
+
str += process;
|
|
188
|
+
str += 'var setTimeout = hiddenSetTimeout;process.nextTick(function () {setTimeout = function (){throw new Error("foo")};hiddenSetTimeout(function(){process.nextTick(function (){assert.ok(true);done();});});});';
|
|
189
|
+
var script = new vm.Script(str);
|
|
190
|
+
var context = {
|
|
191
|
+
clearTimeout: clearTimeout,
|
|
192
|
+
hiddenSetTimeout: setTimeout,
|
|
193
|
+
done: done,
|
|
194
|
+
assert: assert
|
|
195
|
+
};
|
|
196
|
+
script.runInNewContext(context);
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Colin McDonnell
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|