@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,168 @@
|
|
|
1
|
+
# Upgrade Guide
|
|
2
|
+
|
|
3
|
+
### 0.18.x -> 0.19.0
|
|
4
|
+
|
|
5
|
+
#### HTTPS Proxies
|
|
6
|
+
|
|
7
|
+
Routing through an https proxy now requires setting the `protocol` attribute of the proxy configuration to `https`
|
|
8
|
+
|
|
9
|
+
### 0.15.x -> 0.16.0
|
|
10
|
+
|
|
11
|
+
#### `Promise` Type Declarations
|
|
12
|
+
|
|
13
|
+
The `Promise` type declarations have been removed from the axios typings in favor of the built-in type declarations. If you use axios in a TypeScript project that targets `ES5`, please make sure to include the `es2015.promise` lib. Please see [this post](https://blog.mariusschulz.com/2016/11/25/typescript-2-0-built-in-type-declarations) for details.
|
|
14
|
+
|
|
15
|
+
### 0.13.x -> 0.14.0
|
|
16
|
+
|
|
17
|
+
#### TypeScript Definitions
|
|
18
|
+
|
|
19
|
+
The axios TypeScript definitions have been updated to match the axios API and use the ES2015 module syntax.
|
|
20
|
+
|
|
21
|
+
Please use the following `import` statement to import axios in TypeScript:
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import axios from 'axios';
|
|
25
|
+
|
|
26
|
+
axios.get('/foo')
|
|
27
|
+
.then(response => console.log(response))
|
|
28
|
+
.catch(error => console.log(error));
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
#### `agent` Config Option
|
|
32
|
+
|
|
33
|
+
The `agent` config option has been replaced with two new options: `httpAgent` and `httpsAgent`. Please use them instead.
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
{
|
|
37
|
+
// Define a custom agent for HTTP
|
|
38
|
+
httpAgent: new http.Agent({ keepAlive: true }),
|
|
39
|
+
// Define a custom agent for HTTPS
|
|
40
|
+
httpsAgent: new https.Agent({ keepAlive: true })
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
#### `progress` Config Option
|
|
45
|
+
|
|
46
|
+
The `progress` config option has been replaced with the `onUploadProgress` and `onDownloadProgress` options.
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
{
|
|
50
|
+
// Define a handler for upload progress events
|
|
51
|
+
onUploadProgress: function (progressEvent) {
|
|
52
|
+
// ...
|
|
53
|
+
},
|
|
54
|
+
|
|
55
|
+
// Define a handler for download progress events
|
|
56
|
+
onDownloadProgress: function (progressEvent) {
|
|
57
|
+
// ...
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 0.12.x -> 0.13.0
|
|
63
|
+
|
|
64
|
+
The `0.13.0` release contains several changes to custom adapters and error handling.
|
|
65
|
+
|
|
66
|
+
#### Error Handling
|
|
67
|
+
|
|
68
|
+
Previous to this release an error could either be a server response with bad status code or an actual `Error`. With this release Promise will always reject with an `Error`. In the case that a response was received, the `Error` will also include the response.
|
|
69
|
+
|
|
70
|
+
```js
|
|
71
|
+
axios.get('/user/12345')
|
|
72
|
+
.catch((error) => {
|
|
73
|
+
console.log(error.message);
|
|
74
|
+
console.log(error.code); // Not always specified
|
|
75
|
+
console.log(error.config); // The config that was used to make the request
|
|
76
|
+
console.log(error.response); // Only available if response was received from the server
|
|
77
|
+
});
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
#### Request Adapters
|
|
81
|
+
|
|
82
|
+
This release changes a few things about how request adapters work. Please take note if you are using your own custom adapter.
|
|
83
|
+
|
|
84
|
+
1. Response transformer is now called outside of adapter.
|
|
85
|
+
2. Request adapter returns a `Promise`.
|
|
86
|
+
|
|
87
|
+
This means that you no longer need to invoke `transformData` on response data. You will also no longer receive `resolve` and `reject` as arguments in your adapter.
|
|
88
|
+
|
|
89
|
+
Previous code:
|
|
90
|
+
|
|
91
|
+
```js
|
|
92
|
+
function myAdapter(resolve, reject, config) {
|
|
93
|
+
var response = {
|
|
94
|
+
data: transformData(
|
|
95
|
+
responseData,
|
|
96
|
+
responseHeaders,
|
|
97
|
+
config.transformResponse
|
|
98
|
+
),
|
|
99
|
+
status: request.status,
|
|
100
|
+
statusText: request.statusText,
|
|
101
|
+
headers: responseHeaders
|
|
102
|
+
};
|
|
103
|
+
settle(resolve, reject, response);
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
New code:
|
|
108
|
+
|
|
109
|
+
```js
|
|
110
|
+
function myAdapter(config) {
|
|
111
|
+
return new Promise(function (resolve, reject) {
|
|
112
|
+
var response = {
|
|
113
|
+
data: responseData,
|
|
114
|
+
status: request.status,
|
|
115
|
+
statusText: request.statusText,
|
|
116
|
+
headers: responseHeaders
|
|
117
|
+
};
|
|
118
|
+
settle(resolve, reject, response);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
See the related commits for more details:
|
|
124
|
+
- [Response transformers](https://github.com/axios/axios/commit/10eb23865101f9347570552c04e9d6211376e25e)
|
|
125
|
+
- [Request adapter Promise](https://github.com/axios/axios/commit/157efd5615890301824e3121cc6c9d2f9b21f94a)
|
|
126
|
+
|
|
127
|
+
### 0.5.x -> 0.6.0
|
|
128
|
+
|
|
129
|
+
The `0.6.0` release contains mostly bug fixes, but there are a couple things to be aware of when upgrading.
|
|
130
|
+
|
|
131
|
+
#### ES6 Promise Polyfill
|
|
132
|
+
|
|
133
|
+
Up until the `0.6.0` release ES6 `Promise` was being polyfilled using [es6-promise](https://github.com/jakearchibald/es6-promise). With this release, the polyfill has been removed, and you will need to supply it yourself if your environment needs it.
|
|
134
|
+
|
|
135
|
+
```js
|
|
136
|
+
require('es6-promise').polyfill();
|
|
137
|
+
var axios = require('axios');
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
This will polyfill the global environment, and only needs to be done once.
|
|
141
|
+
|
|
142
|
+
#### `axios.success`/`axios.error`
|
|
143
|
+
|
|
144
|
+
The `success`, and `error` aliases were deprecated in [0.4.0](https://github.com/axios/axios/blob/master/CHANGELOG.md#040-oct-03-2014). As of this release they have been removed entirely. Instead please use `axios.then`, and `axios.catch` respectively.
|
|
145
|
+
|
|
146
|
+
```js
|
|
147
|
+
axios.get('some/url')
|
|
148
|
+
.then(function (res) {
|
|
149
|
+
/* ... */
|
|
150
|
+
})
|
|
151
|
+
.catch(function (err) {
|
|
152
|
+
/* ... */
|
|
153
|
+
});
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
#### UMD
|
|
157
|
+
|
|
158
|
+
Previous versions of axios shipped with an AMD, CommonJS, and Global build. This has all been rolled into a single UMD build.
|
|
159
|
+
|
|
160
|
+
```js
|
|
161
|
+
// AMD
|
|
162
|
+
require(['bower_components/axios/dist/axios'], function (axios) {
|
|
163
|
+
/* ... */
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
// CommonJS
|
|
167
|
+
var axios = require('axios/dist/axios');
|
|
168
|
+
```
|