tungsten 0.6.3 → 0.7.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/dist/.build-complete +1 -1
- package/dist/Brands.d.ts +16 -0
- package/dist/Brands.d.ts.map +1 -0
- package/dist/Brands.js +22 -0
- package/dist/Components.d.ts +4 -1
- package/dist/Components.d.ts.map +1 -1
- package/dist/Components.js +24 -6
- package/dist/ContentNode.d.ts +3 -2
- package/dist/ContentNode.d.ts.map +1 -1
- package/dist/ContentNode.js +11 -0
- package/dist/Framework.d.ts.map +1 -1
- package/dist/Framework.js +23 -4
- package/dist/FrameworkConfig.d.ts +7 -1
- package/dist/FrameworkConfig.d.ts.map +1 -1
- package/dist/FunctionComponent.d.ts +1 -0
- package/dist/FunctionComponent.d.ts.map +1 -1
- package/dist/FunctionComponentStandIn.d.ts.map +1 -1
- package/dist/Instance/Instance.d.ts +21 -9
- package/dist/Instance/Instance.d.ts.map +1 -1
- package/dist/Instance/Instance.js +39 -8
- package/dist/Instance/InstanceConfig.d.ts +2 -1
- package/dist/Instance/InstanceConfig.d.ts.map +1 -1
- package/dist/RenderedContentNode.d.ts.map +1 -1
- package/dist/RenderingNode.d.ts.map +1 -1
- package/dist/Servers/DevServer.d.ts +4 -2
- package/dist/Servers/DevServer.d.ts.map +1 -1
- package/dist/Servers/DevServer.js +62 -20
- package/dist/Servers/ProdServer.d.ts +4 -2
- package/dist/Servers/ProdServer.d.ts.map +1 -1
- package/dist/Servers/ProdServer.js +77 -18
- package/dist/Servers/StaticSiteServer.d.ts +1 -1
- package/dist/Servers/StaticSiteServer.d.ts.map +1 -1
- package/dist/Servers/TungstenServer.d.ts +2 -1
- package/dist/Servers/TungstenServer.d.ts.map +1 -1
- package/dist/Servers/TungstenServer.js +7 -0
- package/dist/Servers/cacheVersioned.d.ts +3 -0
- package/dist/Servers/cacheVersioned.d.ts.map +1 -0
- package/dist/Servers/cacheVersioned.js +23 -0
- package/dist/Servers/devErrorPageAutoRetry.d.ts.map +1 -1
- package/dist/Servers/devErrorPageAutoRetry.js +1 -0
- package/dist/Servers/initStores.d.ts +4 -4
- package/dist/Servers/initStores.d.ts.map +1 -1
- package/dist/Servers/initStores.js +2 -2
- package/dist/Servers/loadEnvsDev.d.ts.map +1 -1
- package/dist/Servers/loadEnvsDev.js +7 -6
- package/dist/Servers/resetRegistrations.d.ts +2 -0
- package/dist/Servers/resetRegistrations.d.ts.map +1 -0
- package/dist/Servers/resetRegistrations.js +13 -0
- package/dist/Servers/routing.d.ts +3 -2
- package/dist/Servers/routing.d.ts.map +1 -1
- package/dist/Servers/routing.js +3 -2
- package/dist/Store/InternalStoreSchema.d.ts +1 -1
- package/dist/Store/Store.js +2 -1
- package/dist/Store/StoreSchemaClass.d.ts +6 -3
- package/dist/Store/StoreSchemaClass.d.ts.map +1 -1
- package/dist/Store/StoreSchemaClass.js +8 -1
- package/dist/Store/TypeSafeStore.js +2 -1
- package/dist/Store/createStores.d.ts +3 -3
- package/dist/Store/createStores.d.ts.map +1 -1
- package/dist/Store/createStores.js +7 -2
- package/dist/Store/getInternalStore.d.ts.map +1 -1
- package/dist/Store/registerStore.d.ts.map +1 -1
- package/dist/Store/registerStore.js +2 -2
- package/dist/Store/storeCreators.d.ts +2 -2
- package/dist/Store/storeCreators.d.ts.map +1 -1
- package/dist/TungstenApp.d.ts +3 -3
- package/dist/TungstenApp.d.ts.map +1 -1
- package/dist/_client/cjsHelpers.d.ts.map +1 -1
- package/dist/_client/cjsHelpers.js +5 -3
- package/dist/_client/client.d.ts +2 -0
- package/dist/_client/client.d.ts.map +1 -1
- package/dist/_client/client.js +10 -3
- package/dist/api/getApiRoutes.d.ts.map +1 -1
- package/dist/api/getExport.d.ts +1 -1
- package/dist/api/getExport.d.ts.map +1 -1
- package/dist/api/getExport.js +2 -1
- package/dist/api/getExportDev.d.ts +1 -1
- package/dist/api/getExportDev.d.ts.map +1 -1
- package/dist/appBuilder.d.ts +69 -0
- package/dist/appBuilder.d.ts.map +1 -0
- package/dist/appBuilder.js +98 -0
- package/dist/appBuilder.types.test.d.ts +110 -0
- package/dist/appBuilder.types.test.d.ts.map +1 -0
- package/dist/appBuilder.types.test.js +240 -0
- package/dist/babelPlugins/BabelTransformBindDirect.js +7 -7
- package/dist/babelPlugins/BabelTransformBindVar.js +7 -7
- package/dist/babelPlugins/BabelTransformComponentState.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformComponentStyles.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformComponentStyles.js +5 -5
- package/dist/babelPlugins/BabelTransformCssImports.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformCssImports.js +2 -2
- package/dist/babelPlugins/BabelTransformDeproxyState.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformPackageImports.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformPackageImports.js +11 -6
- package/dist/babelPlugins/BabelTransformRemoveDevBlocks.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTransformRemoveServerBlocks.d.ts.map +1 -1
- package/dist/babelPlugins/BabelTypes.d.ts.map +1 -1
- package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.d.ts.map +1 -1
- package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.js +1 -1
- package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsEsm.d.ts.map +1 -1
- package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsEsm.js +2 -2
- package/dist/bin/commands/compile.d.ts.map +1 -1
- package/dist/bin/commands/compile.js +2 -1
- package/dist/build/CompilationInfo.d.ts +3 -0
- package/dist/build/CompilationInfo.d.ts.map +1 -1
- package/dist/build/assetVersions.d.ts +9 -0
- package/dist/build/assetVersions.d.ts.map +1 -0
- package/dist/build/assetVersions.js +39 -0
- package/dist/build/babel.user.common.config.d.ts.map +1 -1
- package/dist/build/bundle.d.ts.map +1 -1
- package/dist/build/bundle.js +2 -1
- package/dist/build/bundleBabelOptions.d.ts.map +1 -1
- package/dist/build/clientRoutesFile.d.ts +2 -0
- package/dist/build/clientRoutesFile.d.ts.map +1 -0
- package/dist/build/clientRoutesFile.js +13 -0
- package/dist/build/compileJavascript.d.ts.map +1 -1
- package/dist/build/compileJavascript.js +4 -3
- package/dist/build/compileStyles.d.ts +2 -1
- package/dist/build/compileStyles.d.ts.map +1 -1
- package/dist/build/compileStyles.js +38 -83
- package/dist/build/compileUserApp.d.ts.map +1 -1
- package/dist/build/componentStylesCache.d.ts.map +1 -1
- package/dist/build/componentStylesCache.js +3 -2
- package/dist/build/copyAssets.d.ts.map +1 -1
- package/dist/build/copyAssets.js +2 -1
- package/dist/build/copyPackageModulesToPackagesFolder.d.ts.map +1 -1
- package/dist/build/copyPackageModulesToPackagesFolder.js +1 -1
- package/dist/build/copyPublicFiles.d.ts.map +1 -1
- package/dist/build/copyPublicFiles.js +2 -1
- package/dist/build/createClientFiles.d.ts.map +1 -1
- package/dist/build/createClientFiles.js +9 -5
- package/dist/build/createInstanceConfigFile.d.ts +1 -1
- package/dist/build/createInstanceConfigFile.d.ts.map +1 -1
- package/dist/build/createInstanceConfigFile.js +9 -3
- package/dist/build/frameworkDestLocation.d.ts.map +1 -1
- package/dist/build/frameworkDestLocation.js +5 -6
- package/dist/build/frameworkStylesheets.d.ts.map +1 -1
- package/dist/build/frameworkStylesheets.js +1 -1
- package/dist/build/makeBabelRawConfig.d.ts.map +1 -1
- package/dist/build/makeBabelUserDevConfig.d.ts +2 -2
- package/dist/build/makeBabelUserDevConfig.d.ts.map +1 -1
- package/dist/build/makeBabelUserProdConfig.d.ts.map +1 -1
- package/dist/build/rollup.user.prod.config.d.ts.map +1 -1
- package/dist/build/rollup.user.prod.config.js +5 -3
- package/dist/build/rollupProdConstants.d.ts +5 -0
- package/dist/build/rollupProdConstants.d.ts.map +1 -0
- package/dist/build/rollupProdConstants.js +21 -0
- package/dist/cacheControl.d.ts +13 -0
- package/dist/cacheControl.d.ts.map +1 -0
- package/dist/cacheControl.js +22 -0
- package/dist/compat/types.d.ts +1 -1
- package/dist/compat/types.d.ts.map +1 -1
- package/dist/componentHelpers.d.ts +18 -0
- package/dist/componentHelpers.d.ts.map +1 -0
- package/dist/componentHelpers.js +28 -0
- package/dist/componentProxyHandlers.d.ts.map +1 -1
- package/dist/components/Fragment.d.ts +8 -0
- package/dist/components/Fragment.d.ts.map +1 -0
- package/dist/components/Fragment.js +10 -0
- package/dist/components/Link.d.ts +4 -3
- package/dist/components/Link.d.ts.map +1 -1
- package/dist/components/Link.js +1 -0
- package/dist/components/NoEscape.d.ts +8 -0
- package/dist/components/NoEscape.d.ts.map +1 -0
- package/dist/components/NoEscape.js +6 -0
- package/dist/components/RouteRedirectComponent.d.ts.map +1 -1
- package/dist/components/RouteRedirectComponent.js +1 -1
- package/dist/components/WebRedirectComponent.d.ts.map +1 -1
- package/dist/components/WebRedirectComponent.js +1 -1
- package/dist/components/bindable/BindVariable.d.ts +1 -0
- package/dist/components/bindable/BindVariable.d.ts.map +1 -1
- package/dist/components/bindable/BindableCheckbox.d.ts +7 -7
- package/dist/components/bindable/BindableCheckbox.d.ts.map +1 -1
- package/dist/components/bindable/BindableInput.d.ts +7 -7
- package/dist/components/bindable/BindableInput.d.ts.map +1 -1
- package/dist/components/bindable/BindableInputNonString.d.ts +2 -2
- package/dist/components/bindable/BindableInputNonString.d.ts.map +1 -1
- package/dist/components/bindable/BindableInputString.d.ts +2 -2
- package/dist/components/bindable/BindableInputString.d.ts.map +1 -1
- package/dist/components/bindable/BindableInputTyped.d.ts +3 -3
- package/dist/components/bindable/BindableInputTyped.d.ts.map +1 -1
- package/dist/components/bindable/BindableInputTypedLegacy.d.ts +3 -3
- package/dist/components/bindable/BindableInputTypedLegacy.d.ts.map +1 -1
- package/dist/components/bindable/BindableRadio.js +2 -2
- package/dist/components/bindable/BindableSelect.d.ts +13 -10
- package/dist/components/bindable/BindableSelect.d.ts.map +1 -1
- package/dist/components/bindable/BindableSelectNaive.js +3 -3
- package/dist/components/bindable/BindableTextarea.d.ts +7 -7
- package/dist/components/bindable/BindableTextarea.d.ts.map +1 -1
- package/dist/components/bindable/bindableCandidates.comparison.d.ts +136 -0
- package/dist/components/bindable/bindableCandidates.comparison.d.ts.map +1 -0
- package/dist/components/bindable/bindableCandidates.comparison.js +268 -0
- package/dist/components/bindable/bindableProps.types.test.d.ts +50 -0
- package/dist/components/bindable/bindableProps.types.test.d.ts.map +1 -0
- package/dist/components/bindable/bindableProps.types.test.js +252 -0
- package/dist/components/library/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/dist/components/library/RichTextEditor/contentTree.d.ts.map +1 -1
- package/dist/components/makeTypedLink.d.ts +9 -0
- package/dist/components/makeTypedLink.d.ts.map +1 -0
- package/dist/components/makeTypedLink.js +15 -0
- package/dist/context/registerContext.d.ts +22 -0
- package/dist/context/registerContext.d.ts.map +1 -0
- package/dist/context/registerContext.js +18 -0
- package/dist/env/getEnvSchemas.d.ts.map +1 -1
- package/dist/env/getEnvSchemas.js +2 -1
- package/dist/fileVersions.d.ts +9 -0
- package/dist/fileVersions.d.ts.map +1 -0
- package/dist/fileVersions.js +28 -0
- package/dist/findUserConfig.d.ts +1 -1
- package/dist/findUserConfig.d.ts.map +1 -1
- package/dist/findUserConfig.js +2 -1
- package/dist/frameworkConfigSchema.d.ts +14 -2
- package/dist/frameworkConfigSchema.d.ts.map +1 -1
- package/dist/frameworkConfigSchema.js +11 -2
- package/dist/getComponent.d.ts.map +1 -1
- package/dist/getComponent.js +4 -3
- package/dist/getRoutes.d.ts.map +1 -1
- package/dist/getRoutes.js +9 -8
- package/dist/hmr/applyHmrModule.d.ts.map +1 -1
- package/dist/hmr/componentIdentity.js +1 -1
- package/dist/hooks/getCurrentComponent.d.ts +1 -1
- package/dist/hooks/getCurrentComponent.d.ts.map +1 -1
- package/dist/hydrate/hydrate.d.ts +5 -1
- package/dist/hydrate/hydrate.d.ts.map +1 -1
- package/dist/hydrate/hydrate.js +57 -44
- package/dist/hydrate/hydrateGlobalData.d.ts +4 -3
- package/dist/hydrate/hydrateGlobalData.d.ts.map +1 -1
- package/dist/hydrate/reconcileHydratedAttributes.d.ts +2 -1
- package/dist/hydrate/reconcileHydratedAttributes.d.ts.map +1 -1
- package/dist/hydrate/reconcileHydratedAttributes.js +4 -3
- package/dist/hydrate/renderHydrationMismatchBanner.d.ts.map +1 -1
- package/dist/hydrate/renderHydrationMismatchBanner.js +2 -1
- package/dist/importDevModuleWithRetry.d.ts +2 -1
- package/dist/importDevModuleWithRetry.d.ts.map +1 -1
- package/dist/importDevModuleWithRetry.js +2 -1
- package/dist/importModule.d.ts +3 -0
- package/dist/importModule.d.ts.map +1 -0
- package/dist/importModule.js +4 -0
- package/dist/index.js +2 -1
- package/dist/indexInner.d.ts +30 -7
- package/dist/indexInner.d.ts.map +1 -1
- package/dist/indexInner.js +37 -2
- package/dist/json.d.ts +12 -0
- package/dist/json.d.ts.map +1 -0
- package/dist/json.js +8 -0
- package/dist/jsxHelpers.d.ts +3 -0
- package/dist/jsxHelpers.d.ts.map +1 -0
- package/dist/jsxHelpers.js +6 -0
- package/dist/jsxRuntime.d.ts +1 -0
- package/dist/jsxRuntime.d.ts.map +1 -1
- package/dist/jsxRuntime.js +3 -1
- package/dist/jsxRuntimeSignals.d.ts.map +1 -1
- package/dist/jsxRuntimeSignals.js +1 -0
- package/dist/makeInstanceConfigFromFrameworkConfig.d.ts.map +1 -1
- package/dist/makeInstanceConfigFromFrameworkConfig.js +1 -0
- package/dist/mergeConfigs.d.ts.map +1 -1
- package/dist/mergeConfigs.js +2 -6
- package/dist/nbsp.d.ts +1 -2
- package/dist/nbsp.d.ts.map +1 -1
- package/dist/nbsp.js +3 -7
- package/dist/objectMap.d.ts +1 -1
- package/dist/objectMap.d.ts.map +1 -1
- package/dist/pipeline/PipelineRequestHandler.d.ts +25 -0
- package/dist/pipeline/PipelineRequestHandler.d.ts.map +1 -0
- package/dist/pipeline/PipelineRequestHandler.js +96 -0
- package/dist/pipeline/contextStore.d.ts +12 -0
- package/dist/pipeline/contextStore.d.ts.map +1 -0
- package/dist/pipeline/contextStore.js +13 -0
- package/dist/pipeline/hydratePipeline.d.ts +4 -0
- package/dist/pipeline/hydratePipeline.d.ts.map +1 -0
- package/dist/pipeline/hydratePipeline.js +64 -0
- package/dist/pipeline/importRoutesModule.d.ts +6 -0
- package/dist/pipeline/importRoutesModule.d.ts.map +1 -0
- package/dist/pipeline/importRoutesModule.js +33 -0
- package/dist/pipeline/networkedTransport.d.ts +11 -0
- package/dist/pipeline/networkedTransport.d.ts.map +1 -0
- package/dist/pipeline/networkedTransport.js +54 -0
- package/dist/pipeline/pipeline.d.ts +105 -0
- package/dist/pipeline/pipeline.d.ts.map +1 -0
- package/dist/pipeline/pipeline.js +108 -0
- package/dist/pipeline/pipeline.types.test.d.ts +650 -0
- package/dist/pipeline/pipeline.types.test.d.ts.map +1 -0
- package/dist/pipeline/pipeline.types.test.js +342 -0
- package/dist/pipeline/pipelineDefinition.d.ts +67 -0
- package/dist/pipeline/pipelineDefinition.d.ts.map +1 -0
- package/dist/pipeline/pipelineDefinition.js +11 -0
- package/dist/pipeline/pipelineSplit.types.test.d.ts +1971 -0
- package/dist/pipeline/pipelineSplit.types.test.d.ts.map +1 -0
- package/dist/pipeline/pipelineSplit.types.test.js +440 -0
- package/dist/pipeline/runPipeline.d.ts +31 -0
- package/dist/pipeline/runPipeline.d.ts.map +1 -0
- package/dist/pipeline/runPipeline.js +71 -0
- package/dist/pipeline/runSplitPipeline.d.ts +10 -0
- package/dist/pipeline/runSplitPipeline.d.ts.map +1 -0
- package/dist/pipeline/runSplitPipeline.js +48 -0
- package/dist/pipeline/splitPipeline.d.ts +62 -0
- package/dist/pipeline/splitPipeline.d.ts.map +1 -0
- package/dist/pipeline/splitPipeline.js +76 -0
- package/dist/pop.js +1 -1
- package/dist/rawHtml/filterContentNode.d.ts.map +1 -1
- package/dist/render/HeadData.d.ts +3 -1
- package/dist/render/HeadData.d.ts.map +1 -1
- package/dist/render/classComponentNodeToRenderingTree.d.ts.map +1 -1
- package/dist/render/componentNodeToRenderingTree.d.ts.map +1 -1
- package/dist/render/contentToHtml.d.ts +2 -2
- package/dist/render/contentToHtml.d.ts.map +1 -1
- package/dist/render/contentToHtml.js +2 -1
- package/dist/render/contentToHtmlDev.d.ts +1 -1
- package/dist/render/contentToHtmlDev.d.ts.map +1 -1
- package/dist/render/contentTreeToRenderingTree.d.ts.map +1 -1
- package/dist/render/contentTreeToRenderingTree.js +2 -1
- package/dist/render/functionComponentNodeToRenderingTree.d.ts.map +1 -1
- package/dist/render/functionComponentNodeToRenderingTree.js +2 -2
- package/dist/render/instantiateComponent.d.ts.map +1 -1
- package/dist/render/processHead.d.ts.map +1 -1
- package/dist/render/processHead.js +12 -18
- package/dist/render/renderingTreeToHtml.d.ts.map +1 -1
- package/dist/render/renderingTreeToHtml.js +6 -3
- package/dist/render/rootToHtml.d.ts +2 -2
- package/dist/render/rootToHtml.d.ts.map +1 -1
- package/dist/requests/fetch/delete.d.ts.map +1 -1
- package/dist/requests/fetch/delete.js +5 -2
- package/dist/requests/fetch/get.js +1 -1
- package/dist/requests/fetch/patch.d.ts.map +1 -1
- package/dist/requests/fetch/patch.js +5 -2
- package/dist/requests/fetch/post.d.ts.map +1 -1
- package/dist/requests/fetch/post.js +5 -2
- package/dist/requests/fetch/put.d.ts.map +1 -1
- package/dist/requests/fetch/put.js +5 -2
- package/dist/routesLocationParts.d.ts +6 -0
- package/dist/routesLocationParts.d.ts.map +1 -0
- package/dist/routesLocationParts.js +10 -0
- package/dist/routing/AppRoutes.d.ts +5 -3
- package/dist/routing/AppRoutes.d.ts.map +1 -1
- package/dist/routing/MatchedRouteInfo.d.ts +11 -0
- package/dist/routing/MatchedRouteInfo.d.ts.map +1 -0
- package/dist/routing/RouteContentFunction.d.ts +1 -2
- package/dist/routing/RouteContentFunction.d.ts.map +1 -1
- package/dist/routing/RouteDataFunction.type.d.ts +4 -2
- package/dist/routing/RouteDataFunction.type.d.ts.map +1 -1
- package/dist/routing/RoutePaths.d.ts +12 -0
- package/dist/routing/RoutePaths.d.ts.map +1 -0
- package/dist/routing/RoutePaths.js +1 -0
- package/dist/routing/RouteTypes.d.ts +6 -4
- package/dist/routing/RouteTypes.d.ts.map +1 -1
- package/dist/routing/Routes.d.ts +17 -11
- package/dist/routing/Routes.d.ts.map +1 -1
- package/dist/routing/RoutesFunction.d.ts +11 -2
- package/dist/routing/RoutesFunction.d.ts.map +1 -1
- package/dist/routing/Serializable.d.ts +5 -0
- package/dist/routing/Serializable.d.ts.map +1 -0
- package/dist/routing/Serializable.js +1 -0
- package/dist/routing/builder.d.ts +99 -0
- package/dist/routing/builder.d.ts.map +1 -0
- package/dist/routing/builder.js +213 -0
- package/dist/routing/builder.trial.d.ts +2 -0
- package/dist/routing/builder.trial.d.ts.map +1 -0
- package/dist/routing/builder.trial.js +85 -0
- package/dist/routing/defineRoutes.d.ts +8 -0
- package/dist/routing/defineRoutes.d.ts.map +1 -0
- package/dist/routing/defineRoutes.js +3 -0
- package/dist/routing/pyramidRouting.d.ts +2 -0
- package/dist/routing/pyramidRouting.d.ts.map +1 -0
- package/dist/routing/pyramidRouting.js +13 -0
- package/dist/routing/registerGlobalData.d.ts +11 -3
- package/dist/routing/registerGlobalData.d.ts.map +1 -1
- package/dist/routing/registerGlobalData.js +6 -0
- package/dist/routing/registerParts.types.test.d.ts +2 -0
- package/dist/routing/registerParts.types.test.d.ts.map +1 -0
- package/dist/routing/registerParts.types.test.js +139 -0
- package/dist/routing/registerRoutes.d.ts +10 -0
- package/dist/routing/registerRoutes.d.ts.map +1 -0
- package/dist/routing/registerRoutes.js +9 -0
- package/dist/routing/registerRouting.d.ts +36 -0
- package/dist/routing/registerRouting.d.ts.map +1 -0
- package/dist/routing/registerRouting.js +34 -0
- package/dist/routing/registerRouting.types.test.d.ts +80 -0
- package/dist/routing/registerRouting.types.test.d.ts.map +1 -0
- package/dist/routing/registerRouting.types.test.js +120 -0
- package/dist/routing/registrationTypes.d.ts +11 -0
- package/dist/routing/registrationTypes.d.ts.map +1 -0
- package/dist/routing/registrationTypes.js +1 -0
- package/dist/routing/resolveAppRoutes.d.ts +5 -0
- package/dist/routing/resolveAppRoutes.d.ts.map +1 -0
- package/dist/routing/resolveAppRoutes.js +25 -0
- package/dist/routing/routesArray.d.ts +23 -0
- package/dist/routing/routesArray.d.ts.map +1 -0
- package/dist/routing/routesArray.js +20 -0
- package/dist/routing/routesArray.types.test.d.ts +2 -0
- package/dist/routing/routesArray.types.test.d.ts.map +1 -0
- package/dist/routing/routesArray.types.test.js +132 -0
- package/dist/routing/routingBuilder.d.ts +34 -0
- package/dist/routing/routingBuilder.d.ts.map +1 -0
- package/dist/routing/routingBuilder.js +33 -0
- package/dist/routing/routingBuilder.types.test.d.ts +2 -0
- package/dist/routing/routingBuilder.types.test.d.ts.map +1 -0
- package/dist/routing/routingBuilder.types.test.js +171 -0
- package/dist/routing/routingRegistry.d.ts +19 -0
- package/dist/routing/routingRegistry.d.ts.map +1 -0
- package/dist/routing/routingRegistry.js +29 -0
- package/dist/staticGen/getAppRoutes.d.ts +2 -2
- package/dist/staticGen/getAppRoutes.d.ts.map +1 -1
- package/dist/staticGen/getAppRoutes.js +9 -6
- package/dist/staticGen/staticGen.d.ts.map +1 -1
- package/dist/staticGen/staticGen.js +8 -2
- package/dist/style/styleContentSxy.d.ts.map +1 -1
- package/dist/sync/index.d.ts.map +1 -1
- package/dist/sync/index.js +2 -0
- package/dist/syncServer/index.cjs +1 -2
- package/dist/syncServer/preload.js +2 -0
- package/dist/testing/createTestApp.d.ts +25 -1
- package/dist/testing/createTestApp.d.ts.map +1 -1
- package/dist/testing/createTestApp.js +12 -3
- package/dist/testing/createTestPipelineApp.d.ts +25 -0
- package/dist/testing/createTestPipelineApp.d.ts.map +1 -0
- package/dist/testing/createTestPipelineApp.js +153 -0
- package/dist/testing/ensure.d.ts +108 -0
- package/dist/testing/ensure.d.ts.map +1 -0
- package/dist/testing/ensure.js +522 -0
- package/dist/testing/ensure.trial.d.ts +2 -0
- package/dist/testing/ensure.trial.d.ts.map +1 -0
- package/dist/testing/ensure.trial.js +9 -0
- package/dist/testing/helpers/contentHtmlElements.d.ts.map +1 -1
- package/dist/testing/host.d.ts +80 -9
- package/dist/testing/host.d.ts.map +1 -1
- package/dist/testing/host.js +81 -20
- package/dist/testing/hostPipeline.d.ts +157 -0
- package/dist/testing/hostPipeline.d.ts.map +1 -0
- package/dist/testing/hostPipeline.js +341 -0
- package/dist/testing/hydrateTestApp.d.ts +17 -0
- package/dist/testing/hydrateTestApp.d.ts.map +1 -1
- package/dist/testing/hydrateTestApp.js +26 -6
- package/dist/testing/hydrateTestPipelineApp.d.ts +30 -0
- package/dist/testing/hydrateTestPipelineApp.d.ts.map +1 -0
- package/dist/testing/hydrateTestPipelineApp.js +190 -0
- package/dist/testing/index.d.ts +6 -3
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +4 -1
- package/dist/testing/resolveContent.d.ts +16 -0
- package/dist/testing/resolveContent.d.ts.map +1 -0
- package/dist/testing/resolveContent.js +65 -0
- package/dist/testing/testingComponentPackage.d.ts +3 -1
- package/dist/testing/testingComponentPackage.d.ts.map +1 -1
- package/dist/testing/testingComponentPackage.js +16 -1
- package/dist/update/integrateUpdateVdom.d.ts.map +1 -1
- package/dist/update/integrateUpdateVdom.js +35 -31
- package/dist/update/integrateUpdateVdomPrebuild.js +20 -20
- package/dist/validChildren.d.ts.map +1 -1
- package/dist/zones/react.d.ts.map +1 -1
- package/package.json +20 -18
- package/types/helpers.d.ts +11 -2
- package/types/jsx/html.d.ts +29 -25
- package/types/jsx/jsx.d.ts +8 -8
- package/types/modules.d.ts +14 -3
- package/types/testing.d.ts +0 -0
- package/vendor/babel-core.js +5 -5
- package/vendor/babel-parser.js +1 -1
- package/vendor/babel-preset-react.js +32 -34
- package/vendor/babel-preset-typescript.js +5 -5
- package/vendor/chalk-extensions.js +3 -146
- package/vendor/chokidar.js +311 -5
- package/vendor/chunk-B34JUlnS.js +169 -0
- package/vendor/{chunk-Bu8ZRE-c.js → chunk-B9ttgKqg.js} +28 -25
- package/vendor/{chunk-D2EnpcLg.js → chunk-BGvapINa.js} +3 -164
- package/vendor/{chunk-Cqrj-Zqr.js → chunk-BmAiqUzD.js} +22 -8
- package/vendor/{chunk-BiUcnLhT.js → chunk-But4T5N_.js} +8 -3
- package/vendor/{chunk-OUnVY4Wm.js → chunk-DuR6SGzI.js} +162 -35
- package/vendor/dotenv.js +2 -2
- package/vendor/express.js +61 -10
- package/vendor/manifest.json +2 -2
- package/vendor/postcss.js +1 -1
- package/vendor/precinct.js +5914 -3591
- package/vendor/valibot.js +418 -504
- package/dist/Servers/MatchedRouteInfo.d.ts +0 -11
- package/dist/Servers/MatchedRouteInfo.d.ts.map +0 -1
- package/dist/routing/__fluentRouteBuilder.d.ts +0 -80
- package/dist/routing/__fluentRouteBuilder.d.ts.map +0 -1
- package/dist/routing/__fluentRouteBuilder.js +0 -183
- package/dist/routing/__fluentRoutes.d.ts +0 -2
- package/dist/routing/__fluentRoutes.d.ts.map +0 -1
- package/dist/routing/__fluentRoutes.js +0 -59
- package/vendor/chunk-Hy-cCmu-.js +0 -23
- /package/dist/{Servers → routing}/MatchedRouteInfo.js +0 -0
package/vendor/valibot.js
CHANGED
|
@@ -214,10 +214,10 @@ function _addIssue(context, label, dataset, config$1, other) {
|
|
|
214
214
|
/**
|
|
215
215
|
* Creates a shallow copy of a dataset.
|
|
216
216
|
*
|
|
217
|
-
* Hint: The `value` is copied by reference, but the `issues` array
|
|
218
|
-
* to avoid reusing mutable dataset state
|
|
219
|
-
* returned object or array value can
|
|
220
|
-
* reuse the same cached output.
|
|
217
|
+
* Hint: The `value` is copied by reference, but the `issues` array, its issues
|
|
218
|
+
* and their `path` arrays are cloned to avoid reusing mutable dataset state
|
|
219
|
+
* across multiple runs. Mutating a returned object or array value can
|
|
220
|
+
* therefore affect later cache hits that reuse the same cached output.
|
|
221
221
|
*
|
|
222
222
|
* @param dataset The output dataset.
|
|
223
223
|
*
|
|
@@ -228,7 +228,10 @@ function _cloneDataset(dataset) {
|
|
|
228
228
|
return {
|
|
229
229
|
typed: dataset.typed,
|
|
230
230
|
value: dataset.value,
|
|
231
|
-
issues: dataset.issues
|
|
231
|
+
issues: dataset.issues?.map((issue) => ({
|
|
232
|
+
...issue,
|
|
233
|
+
path: issue.path && [...issue.path]
|
|
234
|
+
}))
|
|
232
235
|
};
|
|
233
236
|
}
|
|
234
237
|
|
|
@@ -326,6 +329,29 @@ function _getByteCount(input) {
|
|
|
326
329
|
return textEncoder.encode(input).length;
|
|
327
330
|
}
|
|
328
331
|
|
|
332
|
+
//#endregion
|
|
333
|
+
//#region src/utils/_getCodePointCount/_getCodePointCount.ts
|
|
334
|
+
/**
|
|
335
|
+
* Returns the code point count of the input.
|
|
336
|
+
*
|
|
337
|
+
* @param input The input to be measured.
|
|
338
|
+
*
|
|
339
|
+
* @returns The code point count.
|
|
340
|
+
*
|
|
341
|
+
* @internal
|
|
342
|
+
*/
|
|
343
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
344
|
+
function _getCodePointCount(input) {
|
|
345
|
+
let count = input.length;
|
|
346
|
+
const lengthMinus1 = input.length - 1;
|
|
347
|
+
for (let i = 0; i < lengthMinus1;) if (input.codePointAt(i) <= 65535) i++;
|
|
348
|
+
else {
|
|
349
|
+
i += 2;
|
|
350
|
+
count--;
|
|
351
|
+
}
|
|
352
|
+
return count;
|
|
353
|
+
}
|
|
354
|
+
|
|
329
355
|
//#endregion
|
|
330
356
|
//#region src/utils/_getGraphemeCount/_getGraphemeCount.ts
|
|
331
357
|
let segmenter;
|
|
@@ -376,32 +402,6 @@ function _getLastMetadata(schema, type) {
|
|
|
376
402
|
}
|
|
377
403
|
}
|
|
378
404
|
|
|
379
|
-
//#endregion
|
|
380
|
-
//#region src/utils/_getStandardProps/_getStandardProps.ts
|
|
381
|
-
const _standardCache = /* @__PURE__ */ new WeakMap();
|
|
382
|
-
/**
|
|
383
|
-
* Returns the Standard Schema properties.
|
|
384
|
-
*
|
|
385
|
-
* @param context The schema context.
|
|
386
|
-
*
|
|
387
|
-
* @returns The Standard Schema properties.
|
|
388
|
-
*/
|
|
389
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
390
|
-
function _getStandardProps(context) {
|
|
391
|
-
let cached = _standardCache.get(context);
|
|
392
|
-
if (!cached) {
|
|
393
|
-
cached = {
|
|
394
|
-
version: 1,
|
|
395
|
-
vendor: "valibot",
|
|
396
|
-
validate(value$1) {
|
|
397
|
-
return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
_standardCache.set(context, cached);
|
|
401
|
-
}
|
|
402
|
-
return cached;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
405
|
//#endregion
|
|
406
406
|
//#region src/utils/_getWordCount/_getWordCount.ts
|
|
407
407
|
let store;
|
|
@@ -470,6 +470,24 @@ function _isLuhnAlgo(input) {
|
|
|
470
470
|
return sum % 10 === 0;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
+
//#endregion
|
|
474
|
+
//#region src/utils/_isSameValueZero/_isSameValueZero.ts
|
|
475
|
+
/**
|
|
476
|
+
* Compares two values using the SameValueZero algorithm, which treats `NaN`
|
|
477
|
+
* as equal to itself unlike `===`.
|
|
478
|
+
*
|
|
479
|
+
* @param value1 The first value.
|
|
480
|
+
* @param value2 The second value.
|
|
481
|
+
*
|
|
482
|
+
* @returns Whether the values are equal.
|
|
483
|
+
*
|
|
484
|
+
* @internal
|
|
485
|
+
*/
|
|
486
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
487
|
+
function _isSameValueZero(value1, value2) {
|
|
488
|
+
return value1 === value2 || Number.isNaN(value1) && Number.isNaN(value2);
|
|
489
|
+
}
|
|
490
|
+
|
|
473
491
|
//#endregion
|
|
474
492
|
//#region src/utils/_isValidObjectKey/_isValidObjectKey.ts
|
|
475
493
|
/**
|
|
@@ -488,6 +506,23 @@ function _isValidObjectKey(object$1, key) {
|
|
|
488
506
|
return Object.prototype.hasOwnProperty.call(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
|
|
489
507
|
}
|
|
490
508
|
|
|
509
|
+
//#endregion
|
|
510
|
+
//#region src/utils/_isValueMatch/_isValueMatch.ts
|
|
511
|
+
/**
|
|
512
|
+
* Checks whether a value matches a value action requirement.
|
|
513
|
+
*
|
|
514
|
+
* @param requirement The value action requirement.
|
|
515
|
+
* @param value The value to check.
|
|
516
|
+
*
|
|
517
|
+
* @returns Whether the value matches the requirement.
|
|
518
|
+
*
|
|
519
|
+
* @internal
|
|
520
|
+
*/
|
|
521
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
522
|
+
function _isValueMatch(requirement, value$1) {
|
|
523
|
+
return Number.isNaN(requirement) && Number.isNaN(value$1) || requirement <= value$1 && requirement >= value$1;
|
|
524
|
+
}
|
|
525
|
+
|
|
491
526
|
//#endregion
|
|
492
527
|
//#region src/utils/_joinExpects/_joinExpects.ts
|
|
493
528
|
/**
|
|
@@ -507,6 +542,29 @@ function _joinExpects(values$1, separator) {
|
|
|
507
542
|
return list[0] ?? "never";
|
|
508
543
|
}
|
|
509
544
|
|
|
545
|
+
//#endregion
|
|
546
|
+
//#region src/utils/_standardSchema/_standardSchema.ts
|
|
547
|
+
/**
|
|
548
|
+
* Eagerly creates and attaches the Standard Schema properties of a schema.
|
|
549
|
+
*
|
|
550
|
+
* Hint: The contextual `this` type includes the standard properties that are
|
|
551
|
+
* attached before the schema is returned.
|
|
552
|
+
*
|
|
553
|
+
* @param schema The schema to attach standard properties to.
|
|
554
|
+
*
|
|
555
|
+
* @returns The schema with standard properties attached.
|
|
556
|
+
*
|
|
557
|
+
* @internal
|
|
558
|
+
*/
|
|
559
|
+
function _standardSchema(schema) {
|
|
560
|
+
schema["~standard"] = {
|
|
561
|
+
version: 1,
|
|
562
|
+
vendor: "valibot",
|
|
563
|
+
validate: (value$1) => schema["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig())
|
|
564
|
+
};
|
|
565
|
+
return schema;
|
|
566
|
+
}
|
|
567
|
+
|
|
510
568
|
//#endregion
|
|
511
569
|
//#region src/utils/entriesFromList/entriesFromList.ts
|
|
512
570
|
/**
|
|
@@ -577,20 +635,6 @@ function isOfType(type, object$1) {
|
|
|
577
635
|
return object$1.type === type;
|
|
578
636
|
}
|
|
579
637
|
|
|
580
|
-
//#endregion
|
|
581
|
-
//#region src/utils/isValiError/isValiError.ts
|
|
582
|
-
/**
|
|
583
|
-
* A type guard to check if an error is a ValiError.
|
|
584
|
-
*
|
|
585
|
-
* @param error The error to check.
|
|
586
|
-
*
|
|
587
|
-
* @returns Whether its a ValiError.
|
|
588
|
-
*/
|
|
589
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
590
|
-
function isValiError(error) {
|
|
591
|
-
return error instanceof ValiError;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
638
|
//#endregion
|
|
595
639
|
//#region src/utils/ValiError/ValiError.ts
|
|
596
640
|
/**
|
|
@@ -609,6 +653,20 @@ var ValiError = class extends Error {
|
|
|
609
653
|
}
|
|
610
654
|
};
|
|
611
655
|
|
|
656
|
+
//#endregion
|
|
657
|
+
//#region src/utils/isValiError/isValiError.ts
|
|
658
|
+
/**
|
|
659
|
+
* A type guard to check if an error is a ValiError.
|
|
660
|
+
*
|
|
661
|
+
* @param error The error to check.
|
|
662
|
+
*
|
|
663
|
+
* @returns Whether its a ValiError.
|
|
664
|
+
*/
|
|
665
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
666
|
+
function isValiError(error) {
|
|
667
|
+
return error instanceof ValiError;
|
|
668
|
+
}
|
|
669
|
+
|
|
612
670
|
//#endregion
|
|
613
671
|
//#region src/actions/args/args.ts
|
|
614
672
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -706,8 +764,10 @@ const DIGITS_REGEX = /^\d+$/u;
|
|
|
706
764
|
const DOMAIN_REGEX = /^(?=.{1,253}$)(?:(?![Xx][Nn]--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\.)+[A-Za-z]{2,63}$/u;
|
|
707
765
|
/**
|
|
708
766
|
* [Email address](https://en.wikipedia.org/wiki/Email_address) regex.
|
|
767
|
+
*
|
|
768
|
+
* Hint: We decided against the `i` flag to avoid matching non-ASCII characters.
|
|
709
769
|
*/
|
|
710
|
-
const EMAIL_REGEX = /^[\w+-]+(?:\.[\w+-]+)*@[\da-
|
|
770
|
+
const EMAIL_REGEX = /^[\w+-]+(?:\.[\w+-]+)*@[\da-zA-Z]+(?:[.-][\da-zA-Z]+)*\.[a-zA-Z]{2,}$/u;
|
|
711
771
|
/**
|
|
712
772
|
* Emoji regex from [emoji-regex-xs](https://github.com/slevithan/emoji-regex-xs) v1.0.0 (MIT license).
|
|
713
773
|
*
|
|
@@ -786,6 +846,10 @@ const JWS_COMPACT_REGEX = /^(?:[\w-]{2,3}|(?:[\w-]{4})+(?:[\w-]{2,3})?)\.(?:[\w-
|
|
|
786
846
|
*/
|
|
787
847
|
const ISRC_REGEX = /^(?:[A-Z]{2}[A-Z\d]{3}\d{7}|[A-Z]{2}-[A-Z\d]{3}-\d{2}-\d{5})$/u;
|
|
788
848
|
/**
|
|
849
|
+
* [KSUID](https://github.com/segmentio/ksuid) regex.
|
|
850
|
+
*/
|
|
851
|
+
const KSUID_REGEX = /^[a-zA-Z0-9]{27}$/u;
|
|
852
|
+
/**
|
|
789
853
|
* [MAC](https://en.wikipedia.org/wiki/MAC_address) 48 bit regex.
|
|
790
854
|
*
|
|
791
855
|
* Hint: We decided against the `i` flag for better JSON Schema compatibility.
|
|
@@ -825,8 +889,11 @@ const SLUG_REGEX = /^[\da-z]+(?:[-_][\da-z]+)*$/u;
|
|
|
825
889
|
* [ULID](https://github.com/ulid/spec) regex.
|
|
826
890
|
*
|
|
827
891
|
* Hint: We decided against the `i` flag for better JSON Schema compatibility.
|
|
892
|
+
* Hint: The first character is restricted to `[0-7]` because the 48-bit
|
|
893
|
+
* timestamp cannot exceed 2^48-1, making the maximum valid ULID
|
|
894
|
+
* `7ZZZZZZZZZZZZZZZZZZZZZZZZZ` in Crockford's Base32 encoding.
|
|
828
895
|
*/
|
|
829
|
-
const ULID_REGEX = /^[\da-hjkmnp-tv-zA-HJKMNP-TV-Z]{
|
|
896
|
+
const ULID_REGEX = /^[0-7][\da-hjkmnp-tv-zA-HJKMNP-TV-Z]{25}$/u;
|
|
830
897
|
/**
|
|
831
898
|
* [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) regex.
|
|
832
899
|
*/
|
|
@@ -1018,6 +1085,28 @@ function checkItemsAsync(requirement, message$1) {
|
|
|
1018
1085
|
};
|
|
1019
1086
|
}
|
|
1020
1087
|
|
|
1088
|
+
//#endregion
|
|
1089
|
+
//#region src/actions/codePoints/codePoints.ts
|
|
1090
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1091
|
+
function codePoints(requirement, message$1) {
|
|
1092
|
+
return {
|
|
1093
|
+
kind: "validation",
|
|
1094
|
+
type: "code_points",
|
|
1095
|
+
reference: codePoints,
|
|
1096
|
+
async: false,
|
|
1097
|
+
expects: `${requirement}`,
|
|
1098
|
+
requirement,
|
|
1099
|
+
message: message$1,
|
|
1100
|
+
"~run"(dataset, config$1) {
|
|
1101
|
+
if (dataset.typed) {
|
|
1102
|
+
const count = /* @__PURE__ */ _getCodePointCount(dataset.value);
|
|
1103
|
+
if (count !== this.requirement) _addIssue(this, "code points", dataset, config$1, { received: `${count}` });
|
|
1104
|
+
}
|
|
1105
|
+
return dataset;
|
|
1106
|
+
}
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1021
1110
|
//#endregion
|
|
1022
1111
|
//#region src/actions/creditCard/creditCard.ts
|
|
1023
1112
|
/**
|
|
@@ -1887,6 +1976,25 @@ function jwsCompact(message$1) {
|
|
|
1887
1976
|
};
|
|
1888
1977
|
}
|
|
1889
1978
|
|
|
1979
|
+
//#endregion
|
|
1980
|
+
//#region src/actions/ksuid/ksuid.ts
|
|
1981
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1982
|
+
function ksuid(message$1) {
|
|
1983
|
+
return {
|
|
1984
|
+
kind: "validation",
|
|
1985
|
+
type: "ksuid",
|
|
1986
|
+
reference: ksuid,
|
|
1987
|
+
async: false,
|
|
1988
|
+
expects: null,
|
|
1989
|
+
requirement: KSUID_REGEX,
|
|
1990
|
+
message: message$1,
|
|
1991
|
+
"~run"(dataset, config$1) {
|
|
1992
|
+
if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue(this, "KSUID", dataset, config$1);
|
|
1993
|
+
return dataset;
|
|
1994
|
+
}
|
|
1995
|
+
};
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1890
1998
|
//#endregion
|
|
1891
1999
|
//#region src/actions/length/length.ts
|
|
1892
2000
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -2021,6 +2129,28 @@ function maxBytes(requirement, message$1) {
|
|
|
2021
2129
|
};
|
|
2022
2130
|
}
|
|
2023
2131
|
|
|
2132
|
+
//#endregion
|
|
2133
|
+
//#region src/actions/maxCodePoints/maxCodePoints.ts
|
|
2134
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2135
|
+
function maxCodePoints(requirement, message$1) {
|
|
2136
|
+
return {
|
|
2137
|
+
kind: "validation",
|
|
2138
|
+
type: "max_code_points",
|
|
2139
|
+
reference: maxCodePoints,
|
|
2140
|
+
async: false,
|
|
2141
|
+
expects: `<=${requirement}`,
|
|
2142
|
+
requirement,
|
|
2143
|
+
message: message$1,
|
|
2144
|
+
"~run"(dataset, config$1) {
|
|
2145
|
+
if (dataset.typed) {
|
|
2146
|
+
const count = /* @__PURE__ */ _getCodePointCount(dataset.value);
|
|
2147
|
+
if (count > this.requirement) _addIssue(this, "code points", dataset, config$1, { received: `${count}` });
|
|
2148
|
+
}
|
|
2149
|
+
return dataset;
|
|
2150
|
+
}
|
|
2151
|
+
};
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2024
2154
|
//#endregion
|
|
2025
2155
|
//#region src/actions/maxEntries/maxEntries.ts
|
|
2026
2156
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -2204,6 +2334,28 @@ function minBytes(requirement, message$1) {
|
|
|
2204
2334
|
};
|
|
2205
2335
|
}
|
|
2206
2336
|
|
|
2337
|
+
//#endregion
|
|
2338
|
+
//#region src/actions/minCodePoints/minCodePoints.ts
|
|
2339
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2340
|
+
function minCodePoints(requirement, message$1) {
|
|
2341
|
+
return {
|
|
2342
|
+
kind: "validation",
|
|
2343
|
+
type: "min_code_points",
|
|
2344
|
+
reference: minCodePoints,
|
|
2345
|
+
async: false,
|
|
2346
|
+
expects: `>=${requirement}`,
|
|
2347
|
+
requirement,
|
|
2348
|
+
message: message$1,
|
|
2349
|
+
"~run"(dataset, config$1) {
|
|
2350
|
+
if (dataset.typed) {
|
|
2351
|
+
const count = /* @__PURE__ */ _getCodePointCount(dataset.value);
|
|
2352
|
+
if (count < this.requirement) _addIssue(this, "code points", dataset, config$1, { received: `${count}` });
|
|
2353
|
+
}
|
|
2354
|
+
return dataset;
|
|
2355
|
+
}
|
|
2356
|
+
};
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2207
2359
|
//#endregion
|
|
2208
2360
|
//#region src/actions/minEntries/minEntries.ts
|
|
2209
2361
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -2422,6 +2574,28 @@ function notBytes(requirement, message$1) {
|
|
|
2422
2574
|
};
|
|
2423
2575
|
}
|
|
2424
2576
|
|
|
2577
|
+
//#endregion
|
|
2578
|
+
//#region src/actions/notCodePoints/notCodePoints.ts
|
|
2579
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2580
|
+
function notCodePoints(requirement, message$1) {
|
|
2581
|
+
return {
|
|
2582
|
+
kind: "validation",
|
|
2583
|
+
type: "not_code_points",
|
|
2584
|
+
reference: notCodePoints,
|
|
2585
|
+
async: false,
|
|
2586
|
+
expects: `!${requirement}`,
|
|
2587
|
+
requirement,
|
|
2588
|
+
message: message$1,
|
|
2589
|
+
"~run"(dataset, config$1) {
|
|
2590
|
+
if (dataset.typed) {
|
|
2591
|
+
const count = /* @__PURE__ */ _getCodePointCount(dataset.value);
|
|
2592
|
+
if (count === this.requirement) _addIssue(this, "code points", dataset, config$1, { received: `${count}` });
|
|
2593
|
+
}
|
|
2594
|
+
return dataset;
|
|
2595
|
+
}
|
|
2596
|
+
};
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2425
2599
|
//#endregion
|
|
2426
2600
|
//#region src/actions/notEntries/notEntries.ts
|
|
2427
2601
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -2516,7 +2690,7 @@ function notValue(requirement, message$1) {
|
|
|
2516
2690
|
requirement,
|
|
2517
2691
|
message: message$1,
|
|
2518
2692
|
"~run"(dataset, config$1) {
|
|
2519
|
-
if (dataset.typed &&
|
|
2693
|
+
if (dataset.typed && /* @__PURE__ */ _isValueMatch(this.requirement, dataset.value)) _addIssue(this, "value", dataset, config$1, { received: dataset.value instanceof Date ? dataset.value.toJSON() : /* @__PURE__ */ _stringify(dataset.value) });
|
|
2520
2694
|
return dataset;
|
|
2521
2695
|
}
|
|
2522
2696
|
};
|
|
@@ -2535,7 +2709,7 @@ function notValues(requirement, message$1) {
|
|
|
2535
2709
|
requirement,
|
|
2536
2710
|
message: message$1,
|
|
2537
2711
|
"~run"(dataset, config$1) {
|
|
2538
|
-
if (dataset.typed && this.requirement.some((
|
|
2712
|
+
if (dataset.typed && this.requirement.some((requirement$1) => /* @__PURE__ */ _isValueMatch(requirement$1, dataset.value))) _addIssue(this, "value", dataset, config$1, { received: dataset.value instanceof Date ? dataset.value.toJSON() : /* @__PURE__ */ _stringify(dataset.value) });
|
|
2539
2713
|
return dataset;
|
|
2540
2714
|
}
|
|
2541
2715
|
};
|
|
@@ -3084,8 +3258,7 @@ function stringifyJson(config$1, message$1) {
|
|
|
3084
3258
|
if (output === void 0) {
|
|
3085
3259
|
_addIssue(this, "JSON", dataset, config$2);
|
|
3086
3260
|
dataset.typed = false;
|
|
3087
|
-
}
|
|
3088
|
-
dataset.value = output;
|
|
3261
|
+
} else dataset.value = output;
|
|
3089
3262
|
} catch (error) {
|
|
3090
3263
|
if (error instanceof Error) {
|
|
3091
3264
|
_addIssue(this, "JSON", dataset, config$2, { received: `"${error.message}"` });
|
|
@@ -3587,6 +3760,7 @@ function url(message$1) {
|
|
|
3587
3760
|
expects: null,
|
|
3588
3761
|
requirement(input) {
|
|
3589
3762
|
try {
|
|
3763
|
+
if (URL.canParse) return URL.canParse(input);
|
|
3590
3764
|
new URL(input);
|
|
3591
3765
|
return true;
|
|
3592
3766
|
} catch {
|
|
@@ -3633,7 +3807,7 @@ function value(requirement, message$1) {
|
|
|
3633
3807
|
requirement,
|
|
3634
3808
|
message: message$1,
|
|
3635
3809
|
"~run"(dataset, config$1) {
|
|
3636
|
-
if (dataset.typed &&
|
|
3810
|
+
if (dataset.typed && !/* @__PURE__ */ _isValueMatch(this.requirement, dataset.value)) _addIssue(this, "value", dataset, config$1, { received: dataset.value instanceof Date ? dataset.value.toJSON() : /* @__PURE__ */ _stringify(dataset.value) });
|
|
3637
3811
|
return dataset;
|
|
3638
3812
|
}
|
|
3639
3813
|
};
|
|
@@ -3652,7 +3826,7 @@ function values(requirement, message$1) {
|
|
|
3652
3826
|
requirement,
|
|
3653
3827
|
message: message$1,
|
|
3654
3828
|
"~run"(dataset, config$1) {
|
|
3655
|
-
if (dataset.typed && !this.requirement.some((
|
|
3829
|
+
if (dataset.typed && !this.requirement.some((requirement$1) => /* @__PURE__ */ _isValueMatch(requirement$1, dataset.value))) _addIssue(this, "value", dataset, config$1, { received: dataset.value instanceof Date ? dataset.value.toJSON() : /* @__PURE__ */ _stringify(dataset.value) });
|
|
3656
3830
|
return dataset;
|
|
3657
3831
|
}
|
|
3658
3832
|
};
|
|
@@ -3792,20 +3966,17 @@ var _LruCache = class {
|
|
|
3792
3966
|
//#region src/methods/cache/cache.ts
|
|
3793
3967
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3794
3968
|
function cache(schema, config$1) {
|
|
3795
|
-
return {
|
|
3969
|
+
return _standardSchema({
|
|
3796
3970
|
...schema,
|
|
3797
3971
|
cacheConfig: config$1,
|
|
3798
3972
|
cache: new _LruCache(config$1),
|
|
3799
|
-
get "~standard"() {
|
|
3800
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3801
|
-
},
|
|
3802
3973
|
"~run"(dataset, runConfig) {
|
|
3803
3974
|
const key = this.cache.key(dataset.value, runConfig);
|
|
3804
3975
|
let outputDataset = this.cache.get(key);
|
|
3805
3976
|
if (!outputDataset) this.cache.set(key, outputDataset = schema["~run"](dataset, runConfig));
|
|
3806
3977
|
return /* @__PURE__ */ _cloneDataset(outputDataset);
|
|
3807
3978
|
}
|
|
3808
|
-
};
|
|
3979
|
+
});
|
|
3809
3980
|
}
|
|
3810
3981
|
|
|
3811
3982
|
//#endregion
|
|
@@ -3813,14 +3984,11 @@ function cache(schema, config$1) {
|
|
|
3813
3984
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3814
3985
|
function cacheAsync(schema, config$1) {
|
|
3815
3986
|
let activeRuns;
|
|
3816
|
-
return {
|
|
3987
|
+
return _standardSchema({
|
|
3817
3988
|
...schema,
|
|
3818
3989
|
async: true,
|
|
3819
3990
|
cacheConfig: config$1,
|
|
3820
3991
|
cache: new _LruCache(config$1),
|
|
3821
|
-
get "~standard"() {
|
|
3822
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3823
|
-
},
|
|
3824
3992
|
async "~run"(dataset, runConfig) {
|
|
3825
3993
|
const key = this.cache.key(dataset.value, runConfig);
|
|
3826
3994
|
const cached = this.cache.get(key);
|
|
@@ -3839,7 +4007,7 @@ function cacheAsync(schema, config$1) {
|
|
|
3839
4007
|
activeRuns?.delete(key);
|
|
3840
4008
|
}
|
|
3841
4009
|
}
|
|
3842
|
-
};
|
|
4010
|
+
});
|
|
3843
4011
|
}
|
|
3844
4012
|
|
|
3845
4013
|
//#endregion
|
|
@@ -3854,18 +4022,15 @@ function cacheAsync(schema, config$1) {
|
|
|
3854
4022
|
*/
|
|
3855
4023
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3856
4024
|
function config(schema, config$1) {
|
|
3857
|
-
return {
|
|
4025
|
+
return _standardSchema({
|
|
3858
4026
|
...schema,
|
|
3859
|
-
get "~standard"() {
|
|
3860
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3861
|
-
},
|
|
3862
4027
|
"~run"(dataset, config_) {
|
|
3863
4028
|
return schema["~run"](dataset, {
|
|
3864
4029
|
...config_,
|
|
3865
4030
|
...config$1
|
|
3866
4031
|
});
|
|
3867
4032
|
}
|
|
3868
|
-
};
|
|
4033
|
+
});
|
|
3869
4034
|
}
|
|
3870
4035
|
|
|
3871
4036
|
//#endregion
|
|
@@ -3896,12 +4061,9 @@ function getFallback(schema, dataset, config$1) {
|
|
|
3896
4061
|
*/
|
|
3897
4062
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3898
4063
|
function fallback(schema, fallback$1) {
|
|
3899
|
-
return {
|
|
4064
|
+
return _standardSchema({
|
|
3900
4065
|
...schema,
|
|
3901
4066
|
fallback: fallback$1,
|
|
3902
|
-
get "~standard"() {
|
|
3903
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3904
|
-
},
|
|
3905
4067
|
"~run"(dataset, config$1) {
|
|
3906
4068
|
const outputDataset = schema["~run"](dataset, config$1);
|
|
3907
4069
|
return outputDataset.issues ? {
|
|
@@ -3909,28 +4071,17 @@ function fallback(schema, fallback$1) {
|
|
|
3909
4071
|
value: /* @__PURE__ */ getFallback(this, outputDataset, config$1)
|
|
3910
4072
|
} : outputDataset;
|
|
3911
4073
|
}
|
|
3912
|
-
};
|
|
4074
|
+
});
|
|
3913
4075
|
}
|
|
3914
4076
|
|
|
3915
4077
|
//#endregion
|
|
3916
4078
|
//#region src/methods/fallback/fallbackAsync.ts
|
|
3917
|
-
/**
|
|
3918
|
-
* Returns a fallback value as output if the input does not match the schema.
|
|
3919
|
-
*
|
|
3920
|
-
* @param schema The schema to catch.
|
|
3921
|
-
* @param fallback The fallback value.
|
|
3922
|
-
*
|
|
3923
|
-
* @returns The passed schema.
|
|
3924
|
-
*/
|
|
3925
4079
|
/* @__NO_SIDE_EFFECTS__ */
|
|
3926
4080
|
function fallbackAsync(schema, fallback$1) {
|
|
3927
|
-
return {
|
|
4081
|
+
return _standardSchema({
|
|
3928
4082
|
...schema,
|
|
3929
4083
|
fallback: fallback$1,
|
|
3930
4084
|
async: true,
|
|
3931
|
-
get "~standard"() {
|
|
3932
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
3933
|
-
},
|
|
3934
4085
|
async "~run"(dataset, config$1) {
|
|
3935
4086
|
const outputDataset = await schema["~run"](dataset, config$1);
|
|
3936
4087
|
return outputDataset.issues ? {
|
|
@@ -3938,7 +4089,7 @@ function fallbackAsync(schema, fallback$1) {
|
|
|
3938
4089
|
value: await /* @__PURE__ */ getFallback(this, outputDataset, config$1)
|
|
3939
4090
|
} : outputDataset;
|
|
3940
4091
|
}
|
|
3941
|
-
};
|
|
4092
|
+
});
|
|
3942
4093
|
}
|
|
3943
4094
|
|
|
3944
4095
|
//#endregion
|
|
@@ -4267,27 +4418,24 @@ function is(schema, input) {
|
|
|
4267
4418
|
*/
|
|
4268
4419
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4269
4420
|
function any() {
|
|
4270
|
-
return {
|
|
4421
|
+
return _standardSchema({
|
|
4271
4422
|
kind: "schema",
|
|
4272
4423
|
type: "any",
|
|
4273
4424
|
reference: any,
|
|
4274
4425
|
expects: "any",
|
|
4275
4426
|
async: false,
|
|
4276
|
-
get "~standard"() {
|
|
4277
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4278
|
-
},
|
|
4279
4427
|
"~run"(dataset) {
|
|
4280
4428
|
dataset.typed = true;
|
|
4281
4429
|
return dataset;
|
|
4282
4430
|
}
|
|
4283
|
-
};
|
|
4431
|
+
});
|
|
4284
4432
|
}
|
|
4285
4433
|
|
|
4286
4434
|
//#endregion
|
|
4287
4435
|
//#region src/schemas/array/array.ts
|
|
4288
4436
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4289
4437
|
function array(item, message$1) {
|
|
4290
|
-
return {
|
|
4438
|
+
return _standardSchema({
|
|
4291
4439
|
kind: "schema",
|
|
4292
4440
|
type: "array",
|
|
4293
4441
|
reference: array,
|
|
@@ -4295,9 +4443,6 @@ function array(item, message$1) {
|
|
|
4295
4443
|
async: false,
|
|
4296
4444
|
item,
|
|
4297
4445
|
message: message$1,
|
|
4298
|
-
get "~standard"() {
|
|
4299
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4300
|
-
},
|
|
4301
4446
|
"~run"(dataset, config$1) {
|
|
4302
4447
|
const input = dataset.value;
|
|
4303
4448
|
if (Array.isArray(input)) {
|
|
@@ -4331,14 +4476,14 @@ function array(item, message$1) {
|
|
|
4331
4476
|
} else _addIssue(this, "type", dataset, config$1);
|
|
4332
4477
|
return dataset;
|
|
4333
4478
|
}
|
|
4334
|
-
};
|
|
4479
|
+
});
|
|
4335
4480
|
}
|
|
4336
4481
|
|
|
4337
4482
|
//#endregion
|
|
4338
4483
|
//#region src/schemas/array/arrayAsync.ts
|
|
4339
4484
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4340
4485
|
function arrayAsync(item, message$1) {
|
|
4341
|
-
return {
|
|
4486
|
+
return _standardSchema({
|
|
4342
4487
|
kind: "schema",
|
|
4343
4488
|
type: "array",
|
|
4344
4489
|
reference: arrayAsync,
|
|
@@ -4346,9 +4491,6 @@ function arrayAsync(item, message$1) {
|
|
|
4346
4491
|
async: true,
|
|
4347
4492
|
item,
|
|
4348
4493
|
message: message$1,
|
|
4349
|
-
get "~standard"() {
|
|
4350
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4351
|
-
},
|
|
4352
4494
|
async "~run"(dataset, config$1) {
|
|
4353
4495
|
const input = dataset.value;
|
|
4354
4496
|
if (Array.isArray(input)) {
|
|
@@ -4382,80 +4524,71 @@ function arrayAsync(item, message$1) {
|
|
|
4382
4524
|
} else _addIssue(this, "type", dataset, config$1);
|
|
4383
4525
|
return dataset;
|
|
4384
4526
|
}
|
|
4385
|
-
};
|
|
4527
|
+
});
|
|
4386
4528
|
}
|
|
4387
4529
|
|
|
4388
4530
|
//#endregion
|
|
4389
4531
|
//#region src/schemas/bigint/bigint.ts
|
|
4390
4532
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4391
4533
|
function bigint(message$1) {
|
|
4392
|
-
return {
|
|
4534
|
+
return _standardSchema({
|
|
4393
4535
|
kind: "schema",
|
|
4394
4536
|
type: "bigint",
|
|
4395
4537
|
reference: bigint,
|
|
4396
4538
|
expects: "bigint",
|
|
4397
4539
|
async: false,
|
|
4398
4540
|
message: message$1,
|
|
4399
|
-
get "~standard"() {
|
|
4400
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4401
|
-
},
|
|
4402
4541
|
"~run"(dataset, config$1) {
|
|
4403
4542
|
if (typeof dataset.value === "bigint") dataset.typed = true;
|
|
4404
4543
|
else _addIssue(this, "type", dataset, config$1);
|
|
4405
4544
|
return dataset;
|
|
4406
4545
|
}
|
|
4407
|
-
};
|
|
4546
|
+
});
|
|
4408
4547
|
}
|
|
4409
4548
|
|
|
4410
4549
|
//#endregion
|
|
4411
4550
|
//#region src/schemas/blob/blob.ts
|
|
4412
4551
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4413
4552
|
function blob(message$1) {
|
|
4414
|
-
return {
|
|
4553
|
+
return _standardSchema({
|
|
4415
4554
|
kind: "schema",
|
|
4416
4555
|
type: "blob",
|
|
4417
4556
|
reference: blob,
|
|
4418
4557
|
expects: "Blob",
|
|
4419
4558
|
async: false,
|
|
4420
4559
|
message: message$1,
|
|
4421
|
-
get "~standard"() {
|
|
4422
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4423
|
-
},
|
|
4424
4560
|
"~run"(dataset, config$1) {
|
|
4425
4561
|
if (dataset.value instanceof Blob) dataset.typed = true;
|
|
4426
4562
|
else _addIssue(this, "type", dataset, config$1);
|
|
4427
4563
|
return dataset;
|
|
4428
4564
|
}
|
|
4429
|
-
};
|
|
4565
|
+
});
|
|
4430
4566
|
}
|
|
4431
4567
|
|
|
4432
4568
|
//#endregion
|
|
4433
4569
|
//#region src/schemas/boolean/boolean.ts
|
|
4434
4570
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4435
4571
|
function boolean(message$1) {
|
|
4436
|
-
return {
|
|
4572
|
+
return _standardSchema({
|
|
4437
4573
|
kind: "schema",
|
|
4438
4574
|
type: "boolean",
|
|
4439
4575
|
reference: boolean,
|
|
4440
4576
|
expects: "boolean",
|
|
4441
4577
|
async: false,
|
|
4442
4578
|
message: message$1,
|
|
4443
|
-
get "~standard"() {
|
|
4444
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4445
|
-
},
|
|
4446
4579
|
"~run"(dataset, config$1) {
|
|
4447
4580
|
if (typeof dataset.value === "boolean") dataset.typed = true;
|
|
4448
4581
|
else _addIssue(this, "type", dataset, config$1);
|
|
4449
4582
|
return dataset;
|
|
4450
4583
|
}
|
|
4451
|
-
};
|
|
4584
|
+
});
|
|
4452
4585
|
}
|
|
4453
4586
|
|
|
4454
4587
|
//#endregion
|
|
4455
4588
|
//#region src/schemas/custom/custom.ts
|
|
4456
4589
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4457
4590
|
function custom(check$1, message$1) {
|
|
4458
|
-
return {
|
|
4591
|
+
return _standardSchema({
|
|
4459
4592
|
kind: "schema",
|
|
4460
4593
|
type: "custom",
|
|
4461
4594
|
reference: custom,
|
|
@@ -4463,22 +4596,19 @@ function custom(check$1, message$1) {
|
|
|
4463
4596
|
async: false,
|
|
4464
4597
|
check: check$1,
|
|
4465
4598
|
message: message$1,
|
|
4466
|
-
get "~standard"() {
|
|
4467
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4468
|
-
},
|
|
4469
4599
|
"~run"(dataset, config$1) {
|
|
4470
4600
|
if (this.check(dataset.value)) dataset.typed = true;
|
|
4471
4601
|
else _addIssue(this, "type", dataset, config$1);
|
|
4472
4602
|
return dataset;
|
|
4473
4603
|
}
|
|
4474
|
-
};
|
|
4604
|
+
});
|
|
4475
4605
|
}
|
|
4476
4606
|
|
|
4477
4607
|
//#endregion
|
|
4478
4608
|
//#region src/schemas/custom/customAsync.ts
|
|
4479
4609
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4480
4610
|
function customAsync(check$1, message$1) {
|
|
4481
|
-
return {
|
|
4611
|
+
return _standardSchema({
|
|
4482
4612
|
kind: "schema",
|
|
4483
4613
|
type: "custom",
|
|
4484
4614
|
reference: customAsync,
|
|
@@ -4486,38 +4616,32 @@ function customAsync(check$1, message$1) {
|
|
|
4486
4616
|
async: true,
|
|
4487
4617
|
check: check$1,
|
|
4488
4618
|
message: message$1,
|
|
4489
|
-
get "~standard"() {
|
|
4490
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4491
|
-
},
|
|
4492
4619
|
async "~run"(dataset, config$1) {
|
|
4493
4620
|
if (await this.check(dataset.value)) dataset.typed = true;
|
|
4494
4621
|
else _addIssue(this, "type", dataset, config$1);
|
|
4495
4622
|
return dataset;
|
|
4496
4623
|
}
|
|
4497
|
-
};
|
|
4624
|
+
});
|
|
4498
4625
|
}
|
|
4499
4626
|
|
|
4500
4627
|
//#endregion
|
|
4501
4628
|
//#region src/schemas/date/date.ts
|
|
4502
4629
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4503
4630
|
function date(message$1) {
|
|
4504
|
-
return {
|
|
4631
|
+
return _standardSchema({
|
|
4505
4632
|
kind: "schema",
|
|
4506
4633
|
type: "date",
|
|
4507
4634
|
reference: date,
|
|
4508
4635
|
expects: "Date",
|
|
4509
4636
|
async: false,
|
|
4510
4637
|
message: message$1,
|
|
4511
|
-
get "~standard"() {
|
|
4512
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4513
|
-
},
|
|
4514
4638
|
"~run"(dataset, config$1) {
|
|
4515
4639
|
if (dataset.value instanceof Date) if (!isNaN(dataset.value)) dataset.typed = true;
|
|
4516
4640
|
else _addIssue(this, "type", dataset, config$1, { received: "\"Invalid Date\"" });
|
|
4517
4641
|
else _addIssue(this, "type", dataset, config$1);
|
|
4518
4642
|
return dataset;
|
|
4519
4643
|
}
|
|
4520
|
-
};
|
|
4644
|
+
});
|
|
4521
4645
|
}
|
|
4522
4646
|
|
|
4523
4647
|
//#endregion
|
|
@@ -4526,7 +4650,7 @@ function date(message$1) {
|
|
|
4526
4650
|
function enum_(enum__, message$1) {
|
|
4527
4651
|
const options = [];
|
|
4528
4652
|
for (const key in enum__) if (`${+key}` !== key || typeof enum__[key] !== "string" || !Object.is(enum__[enum__[key]], +key)) options.push(enum__[key]);
|
|
4529
|
-
return {
|
|
4653
|
+
return _standardSchema({
|
|
4530
4654
|
kind: "schema",
|
|
4531
4655
|
type: "enum",
|
|
4532
4656
|
reference: enum_,
|
|
@@ -4535,22 +4659,19 @@ function enum_(enum__, message$1) {
|
|
|
4535
4659
|
enum: enum__,
|
|
4536
4660
|
options,
|
|
4537
4661
|
message: message$1,
|
|
4538
|
-
get "~standard"() {
|
|
4539
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4540
|
-
},
|
|
4541
4662
|
"~run"(dataset, config$1) {
|
|
4542
4663
|
if (this.options.includes(dataset.value)) dataset.typed = true;
|
|
4543
4664
|
else _addIssue(this, "type", dataset, config$1);
|
|
4544
4665
|
return dataset;
|
|
4545
4666
|
}
|
|
4546
|
-
};
|
|
4667
|
+
});
|
|
4547
4668
|
}
|
|
4548
4669
|
|
|
4549
4670
|
//#endregion
|
|
4550
4671
|
//#region src/schemas/exactOptional/exactOptional.ts
|
|
4551
4672
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4552
4673
|
function exactOptional(wrapped, default_) {
|
|
4553
|
-
return {
|
|
4674
|
+
return _standardSchema({
|
|
4554
4675
|
kind: "schema",
|
|
4555
4676
|
type: "exact_optional",
|
|
4556
4677
|
reference: exactOptional,
|
|
@@ -4558,20 +4679,17 @@ function exactOptional(wrapped, default_) {
|
|
|
4558
4679
|
async: false,
|
|
4559
4680
|
wrapped,
|
|
4560
4681
|
default: default_,
|
|
4561
|
-
get "~standard"() {
|
|
4562
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4563
|
-
},
|
|
4564
4682
|
"~run"(dataset, config$1) {
|
|
4565
4683
|
return this.wrapped["~run"](dataset, config$1);
|
|
4566
4684
|
}
|
|
4567
|
-
};
|
|
4685
|
+
});
|
|
4568
4686
|
}
|
|
4569
4687
|
|
|
4570
4688
|
//#endregion
|
|
4571
4689
|
//#region src/schemas/exactOptional/exactOptionalAsync.ts
|
|
4572
4690
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4573
4691
|
function exactOptionalAsync(wrapped, default_) {
|
|
4574
|
-
return {
|
|
4692
|
+
return _standardSchema({
|
|
4575
4693
|
kind: "schema",
|
|
4576
4694
|
type: "exact_optional",
|
|
4577
4695
|
reference: exactOptionalAsync,
|
|
@@ -4579,64 +4697,55 @@ function exactOptionalAsync(wrapped, default_) {
|
|
|
4579
4697
|
async: true,
|
|
4580
4698
|
wrapped,
|
|
4581
4699
|
default: default_,
|
|
4582
|
-
get "~standard"() {
|
|
4583
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4584
|
-
},
|
|
4585
4700
|
async "~run"(dataset, config$1) {
|
|
4586
4701
|
return this.wrapped["~run"](dataset, config$1);
|
|
4587
4702
|
}
|
|
4588
|
-
};
|
|
4703
|
+
});
|
|
4589
4704
|
}
|
|
4590
4705
|
|
|
4591
4706
|
//#endregion
|
|
4592
4707
|
//#region src/schemas/file/file.ts
|
|
4593
4708
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4594
4709
|
function file(message$1) {
|
|
4595
|
-
return {
|
|
4710
|
+
return _standardSchema({
|
|
4596
4711
|
kind: "schema",
|
|
4597
4712
|
type: "file",
|
|
4598
4713
|
reference: file,
|
|
4599
4714
|
expects: "File",
|
|
4600
4715
|
async: false,
|
|
4601
4716
|
message: message$1,
|
|
4602
|
-
get "~standard"() {
|
|
4603
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4604
|
-
},
|
|
4605
4717
|
"~run"(dataset, config$1) {
|
|
4606
4718
|
if (dataset.value instanceof File) dataset.typed = true;
|
|
4607
4719
|
else _addIssue(this, "type", dataset, config$1);
|
|
4608
4720
|
return dataset;
|
|
4609
4721
|
}
|
|
4610
|
-
};
|
|
4722
|
+
});
|
|
4611
4723
|
}
|
|
4612
4724
|
|
|
4613
4725
|
//#endregion
|
|
4614
4726
|
//#region src/schemas/function/function.ts
|
|
4615
4727
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4616
4728
|
function function_(message$1) {
|
|
4617
|
-
return {
|
|
4729
|
+
return _standardSchema({
|
|
4618
4730
|
kind: "schema",
|
|
4619
4731
|
type: "function",
|
|
4620
4732
|
reference: function_,
|
|
4621
4733
|
expects: "Function",
|
|
4622
4734
|
async: false,
|
|
4623
4735
|
message: message$1,
|
|
4624
|
-
get "~standard"() {
|
|
4625
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4626
|
-
},
|
|
4627
4736
|
"~run"(dataset, config$1) {
|
|
4628
4737
|
if (typeof dataset.value === "function") dataset.typed = true;
|
|
4629
4738
|
else _addIssue(this, "type", dataset, config$1);
|
|
4630
4739
|
return dataset;
|
|
4631
4740
|
}
|
|
4632
|
-
};
|
|
4741
|
+
});
|
|
4633
4742
|
}
|
|
4634
4743
|
|
|
4635
4744
|
//#endregion
|
|
4636
4745
|
//#region src/schemas/instance/instance.ts
|
|
4637
4746
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4638
4747
|
function instance(class_, message$1) {
|
|
4639
|
-
return {
|
|
4748
|
+
return _standardSchema({
|
|
4640
4749
|
kind: "schema",
|
|
4641
4750
|
type: "instance",
|
|
4642
4751
|
reference: instance,
|
|
@@ -4644,15 +4753,12 @@ function instance(class_, message$1) {
|
|
|
4644
4753
|
async: false,
|
|
4645
4754
|
class: class_,
|
|
4646
4755
|
message: message$1,
|
|
4647
|
-
get "~standard"() {
|
|
4648
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4649
|
-
},
|
|
4650
4756
|
"~run"(dataset, config$1) {
|
|
4651
4757
|
if (dataset.value instanceof this.class) dataset.typed = true;
|
|
4652
4758
|
else _addIssue(this, "type", dataset, config$1);
|
|
4653
4759
|
return dataset;
|
|
4654
4760
|
}
|
|
4655
|
-
};
|
|
4761
|
+
});
|
|
4656
4762
|
}
|
|
4657
4763
|
|
|
4658
4764
|
//#endregion
|
|
@@ -4670,14 +4776,17 @@ function instance(class_, message$1) {
|
|
|
4670
4776
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4671
4777
|
function _merge(value1, value2) {
|
|
4672
4778
|
if (typeof value1 === typeof value2) {
|
|
4673
|
-
if (value1
|
|
4779
|
+
if (/* @__PURE__ */ _isSameValueZero(value1, value2) || value1 instanceof Date && value2 instanceof Date && /* @__PURE__ */ _isSameValueZero(+value1, +value2)) return { value: value1 };
|
|
4674
4780
|
if (value1 && value2 && value1.constructor === Object && value2.constructor === Object) {
|
|
4675
|
-
const nextValue = {
|
|
4676
|
-
|
|
4781
|
+
const nextValue = {
|
|
4782
|
+
...value1,
|
|
4783
|
+
...value2
|
|
4784
|
+
};
|
|
4785
|
+
for (const key in value2) if (Object.prototype.hasOwnProperty.call(value1, key) && Object.prototype.hasOwnProperty.call(value2, key)) {
|
|
4677
4786
|
const dataset = /* @__PURE__ */ _merge(value1[key], value2[key]);
|
|
4678
4787
|
if (dataset.issue) return dataset;
|
|
4679
4788
|
nextValue[key] = dataset.value;
|
|
4680
|
-
}
|
|
4789
|
+
}
|
|
4681
4790
|
return { value: nextValue };
|
|
4682
4791
|
}
|
|
4683
4792
|
if (Array.isArray(value1) && Array.isArray(value2)) {
|
|
@@ -4699,7 +4808,7 @@ function _merge(value1, value2) {
|
|
|
4699
4808
|
//#region src/schemas/intersect/intersect.ts
|
|
4700
4809
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4701
4810
|
function intersect(options, message$1) {
|
|
4702
|
-
return {
|
|
4811
|
+
return _standardSchema({
|
|
4703
4812
|
kind: "schema",
|
|
4704
4813
|
type: "intersect",
|
|
4705
4814
|
reference: intersect,
|
|
@@ -4707,9 +4816,6 @@ function intersect(options, message$1) {
|
|
|
4707
4816
|
async: false,
|
|
4708
4817
|
options,
|
|
4709
4818
|
message: message$1,
|
|
4710
|
-
get "~standard"() {
|
|
4711
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4712
|
-
},
|
|
4713
4819
|
"~run"(dataset, config$1) {
|
|
4714
4820
|
if (this.options.length) {
|
|
4715
4821
|
const input = dataset.value;
|
|
@@ -4743,14 +4849,14 @@ function intersect(options, message$1) {
|
|
|
4743
4849
|
} else _addIssue(this, "type", dataset, config$1);
|
|
4744
4850
|
return dataset;
|
|
4745
4851
|
}
|
|
4746
|
-
};
|
|
4852
|
+
});
|
|
4747
4853
|
}
|
|
4748
4854
|
|
|
4749
4855
|
//#endregion
|
|
4750
4856
|
//#region src/schemas/intersect/intersectAsync.ts
|
|
4751
4857
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4752
4858
|
function intersectAsync(options, message$1) {
|
|
4753
|
-
return {
|
|
4859
|
+
return _standardSchema({
|
|
4754
4860
|
kind: "schema",
|
|
4755
4861
|
type: "intersect",
|
|
4756
4862
|
reference: intersectAsync,
|
|
@@ -4758,9 +4864,6 @@ function intersectAsync(options, message$1) {
|
|
|
4758
4864
|
async: true,
|
|
4759
4865
|
options,
|
|
4760
4866
|
message: message$1,
|
|
4761
|
-
get "~standard"() {
|
|
4762
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4763
|
-
},
|
|
4764
4867
|
async "~run"(dataset, config$1) {
|
|
4765
4868
|
if (this.options.length) {
|
|
4766
4869
|
const input = dataset.value;
|
|
@@ -4794,7 +4897,7 @@ function intersectAsync(options, message$1) {
|
|
|
4794
4897
|
} else _addIssue(this, "type", dataset, config$1);
|
|
4795
4898
|
return dataset;
|
|
4796
4899
|
}
|
|
4797
|
-
};
|
|
4900
|
+
});
|
|
4798
4901
|
}
|
|
4799
4902
|
|
|
4800
4903
|
//#endregion
|
|
@@ -4808,20 +4911,17 @@ function intersectAsync(options, message$1) {
|
|
|
4808
4911
|
*/
|
|
4809
4912
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4810
4913
|
function lazy(getter) {
|
|
4811
|
-
return {
|
|
4914
|
+
return _standardSchema({
|
|
4812
4915
|
kind: "schema",
|
|
4813
4916
|
type: "lazy",
|
|
4814
4917
|
reference: lazy,
|
|
4815
4918
|
expects: "unknown",
|
|
4816
4919
|
async: false,
|
|
4817
4920
|
getter,
|
|
4818
|
-
get "~standard"() {
|
|
4819
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4820
|
-
},
|
|
4821
4921
|
"~run"(dataset, config$1) {
|
|
4822
4922
|
return this.getter(dataset.value)["~run"](dataset, config$1);
|
|
4823
4923
|
}
|
|
4824
|
-
};
|
|
4924
|
+
});
|
|
4825
4925
|
}
|
|
4826
4926
|
|
|
4827
4927
|
//#endregion
|
|
@@ -4835,27 +4935,24 @@ function lazy(getter) {
|
|
|
4835
4935
|
*/
|
|
4836
4936
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4837
4937
|
function lazyAsync(getter) {
|
|
4838
|
-
return {
|
|
4938
|
+
return _standardSchema({
|
|
4839
4939
|
kind: "schema",
|
|
4840
4940
|
type: "lazy",
|
|
4841
4941
|
reference: lazyAsync,
|
|
4842
4942
|
expects: "unknown",
|
|
4843
4943
|
async: true,
|
|
4844
4944
|
getter,
|
|
4845
|
-
get "~standard"() {
|
|
4846
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4847
|
-
},
|
|
4848
4945
|
async "~run"(dataset, config$1) {
|
|
4849
4946
|
return (await this.getter(dataset.value))["~run"](dataset, config$1);
|
|
4850
4947
|
}
|
|
4851
|
-
};
|
|
4948
|
+
});
|
|
4852
4949
|
}
|
|
4853
4950
|
|
|
4854
4951
|
//#endregion
|
|
4855
4952
|
//#region src/schemas/literal/literal.ts
|
|
4856
4953
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4857
4954
|
function literal(literal_, message$1) {
|
|
4858
|
-
return {
|
|
4955
|
+
return _standardSchema({
|
|
4859
4956
|
kind: "schema",
|
|
4860
4957
|
type: "literal",
|
|
4861
4958
|
reference: literal,
|
|
@@ -4863,22 +4960,19 @@ function literal(literal_, message$1) {
|
|
|
4863
4960
|
async: false,
|
|
4864
4961
|
literal: literal_,
|
|
4865
4962
|
message: message$1,
|
|
4866
|
-
get "~standard"() {
|
|
4867
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4868
|
-
},
|
|
4869
4963
|
"~run"(dataset, config$1) {
|
|
4870
|
-
if (dataset.value
|
|
4964
|
+
if (/* @__PURE__ */ _isSameValueZero(dataset.value, this.literal)) dataset.typed = true;
|
|
4871
4965
|
else _addIssue(this, "type", dataset, config$1);
|
|
4872
4966
|
return dataset;
|
|
4873
4967
|
}
|
|
4874
|
-
};
|
|
4968
|
+
});
|
|
4875
4969
|
}
|
|
4876
4970
|
|
|
4877
4971
|
//#endregion
|
|
4878
4972
|
//#region src/schemas/looseObject/looseObject.ts
|
|
4879
4973
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4880
4974
|
function looseObject(entries$1, message$1) {
|
|
4881
|
-
return {
|
|
4975
|
+
return _standardSchema({
|
|
4882
4976
|
kind: "schema",
|
|
4883
4977
|
type: "loose_object",
|
|
4884
4978
|
reference: looseObject,
|
|
@@ -4886,9 +4980,6 @@ function looseObject(entries$1, message$1) {
|
|
|
4886
4980
|
async: false,
|
|
4887
4981
|
entries: entries$1,
|
|
4888
4982
|
message: message$1,
|
|
4889
|
-
get "~standard"() {
|
|
4890
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4891
|
-
},
|
|
4892
4983
|
"~run"(dataset, config$1) {
|
|
4893
4984
|
const input = dataset.value;
|
|
4894
4985
|
if (input && typeof input === "object") {
|
|
@@ -4937,19 +5028,19 @@ function looseObject(entries$1, message$1) {
|
|
|
4937
5028
|
}
|
|
4938
5029
|
}
|
|
4939
5030
|
if (!dataset.issues || !config$1.abortEarly) {
|
|
4940
|
-
for (const key in input) if (/* @__PURE__ */ _isValidObjectKey(input, key) && !(
|
|
5031
|
+
for (const key in input) if (/* @__PURE__ */ _isValidObjectKey(input, key) && !Object.prototype.hasOwnProperty.call(this.entries, key)) dataset.value[key] = input[key];
|
|
4941
5032
|
}
|
|
4942
5033
|
} else _addIssue(this, "type", dataset, config$1);
|
|
4943
5034
|
return dataset;
|
|
4944
5035
|
}
|
|
4945
|
-
};
|
|
5036
|
+
});
|
|
4946
5037
|
}
|
|
4947
5038
|
|
|
4948
5039
|
//#endregion
|
|
4949
5040
|
//#region src/schemas/looseObject/looseObjectAsync.ts
|
|
4950
5041
|
/* @__NO_SIDE_EFFECTS__ */
|
|
4951
5042
|
function looseObjectAsync(entries$1, message$1) {
|
|
4952
|
-
return {
|
|
5043
|
+
return _standardSchema({
|
|
4953
5044
|
kind: "schema",
|
|
4954
5045
|
type: "loose_object",
|
|
4955
5046
|
reference: looseObjectAsync,
|
|
@@ -4957,9 +5048,6 @@ function looseObjectAsync(entries$1, message$1) {
|
|
|
4957
5048
|
async: true,
|
|
4958
5049
|
entries: entries$1,
|
|
4959
5050
|
message: message$1,
|
|
4960
|
-
get "~standard"() {
|
|
4961
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
4962
|
-
},
|
|
4963
5051
|
async "~run"(dataset, config$1) {
|
|
4964
5052
|
const input = dataset.value;
|
|
4965
5053
|
if (input && typeof input === "object") {
|
|
@@ -5020,19 +5108,19 @@ function looseObjectAsync(entries$1, message$1) {
|
|
|
5020
5108
|
if (config$1.abortEarly) break;
|
|
5021
5109
|
}
|
|
5022
5110
|
if (!dataset.issues || !config$1.abortEarly) {
|
|
5023
|
-
for (const key in input) if (/* @__PURE__ */ _isValidObjectKey(input, key) && !(
|
|
5111
|
+
for (const key in input) if (/* @__PURE__ */ _isValidObjectKey(input, key) && !Object.prototype.hasOwnProperty.call(this.entries, key)) dataset.value[key] = input[key];
|
|
5024
5112
|
}
|
|
5025
5113
|
} else _addIssue(this, "type", dataset, config$1);
|
|
5026
5114
|
return dataset;
|
|
5027
5115
|
}
|
|
5028
|
-
};
|
|
5116
|
+
});
|
|
5029
5117
|
}
|
|
5030
5118
|
|
|
5031
5119
|
//#endregion
|
|
5032
5120
|
//#region src/schemas/looseTuple/looseTuple.ts
|
|
5033
5121
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5034
5122
|
function looseTuple(items, message$1) {
|
|
5035
|
-
return {
|
|
5123
|
+
return _standardSchema({
|
|
5036
5124
|
kind: "schema",
|
|
5037
5125
|
type: "loose_tuple",
|
|
5038
5126
|
reference: looseTuple,
|
|
@@ -5040,9 +5128,6 @@ function looseTuple(items, message$1) {
|
|
|
5040
5128
|
async: false,
|
|
5041
5129
|
items,
|
|
5042
5130
|
message: message$1,
|
|
5043
|
-
get "~standard"() {
|
|
5044
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5045
|
-
},
|
|
5046
5131
|
"~run"(dataset, config$1) {
|
|
5047
5132
|
const input = dataset.value;
|
|
5048
5133
|
if (Array.isArray(input)) {
|
|
@@ -5077,14 +5162,14 @@ function looseTuple(items, message$1) {
|
|
|
5077
5162
|
} else _addIssue(this, "type", dataset, config$1);
|
|
5078
5163
|
return dataset;
|
|
5079
5164
|
}
|
|
5080
|
-
};
|
|
5165
|
+
});
|
|
5081
5166
|
}
|
|
5082
5167
|
|
|
5083
5168
|
//#endregion
|
|
5084
5169
|
//#region src/schemas/looseTuple/looseTupleAsync.ts
|
|
5085
5170
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5086
5171
|
function looseTupleAsync(items, message$1) {
|
|
5087
|
-
return {
|
|
5172
|
+
return _standardSchema({
|
|
5088
5173
|
kind: "schema",
|
|
5089
5174
|
type: "loose_tuple",
|
|
5090
5175
|
reference: looseTupleAsync,
|
|
@@ -5092,9 +5177,6 @@ function looseTupleAsync(items, message$1) {
|
|
|
5092
5177
|
async: true,
|
|
5093
5178
|
items,
|
|
5094
5179
|
message: message$1,
|
|
5095
|
-
get "~standard"() {
|
|
5096
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5097
|
-
},
|
|
5098
5180
|
async "~run"(dataset, config$1) {
|
|
5099
5181
|
const input = dataset.value;
|
|
5100
5182
|
if (Array.isArray(input)) {
|
|
@@ -5135,14 +5217,14 @@ function looseTupleAsync(items, message$1) {
|
|
|
5135
5217
|
} else _addIssue(this, "type", dataset, config$1);
|
|
5136
5218
|
return dataset;
|
|
5137
5219
|
}
|
|
5138
|
-
};
|
|
5220
|
+
});
|
|
5139
5221
|
}
|
|
5140
5222
|
|
|
5141
5223
|
//#endregion
|
|
5142
5224
|
//#region src/schemas/map/map.ts
|
|
5143
5225
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5144
5226
|
function map(key, value$1, message$1) {
|
|
5145
|
-
return {
|
|
5227
|
+
return _standardSchema({
|
|
5146
5228
|
kind: "schema",
|
|
5147
5229
|
type: "map",
|
|
5148
5230
|
reference: map,
|
|
@@ -5151,9 +5233,6 @@ function map(key, value$1, message$1) {
|
|
|
5151
5233
|
key,
|
|
5152
5234
|
value: value$1,
|
|
5153
5235
|
message: message$1,
|
|
5154
|
-
get "~standard"() {
|
|
5155
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5156
|
-
},
|
|
5157
5236
|
"~run"(dataset, config$1) {
|
|
5158
5237
|
const input = dataset.value;
|
|
5159
5238
|
if (input instanceof Map) {
|
|
@@ -5206,14 +5285,14 @@ function map(key, value$1, message$1) {
|
|
|
5206
5285
|
} else _addIssue(this, "type", dataset, config$1);
|
|
5207
5286
|
return dataset;
|
|
5208
5287
|
}
|
|
5209
|
-
};
|
|
5288
|
+
});
|
|
5210
5289
|
}
|
|
5211
5290
|
|
|
5212
5291
|
//#endregion
|
|
5213
5292
|
//#region src/schemas/map/mapAsync.ts
|
|
5214
5293
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5215
5294
|
function mapAsync(key, value$1, message$1) {
|
|
5216
|
-
return {
|
|
5295
|
+
return _standardSchema({
|
|
5217
5296
|
kind: "schema",
|
|
5218
5297
|
type: "map",
|
|
5219
5298
|
reference: mapAsync,
|
|
@@ -5222,9 +5301,6 @@ function mapAsync(key, value$1, message$1) {
|
|
|
5222
5301
|
key,
|
|
5223
5302
|
value: value$1,
|
|
5224
5303
|
message: message$1,
|
|
5225
|
-
get "~standard"() {
|
|
5226
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5227
|
-
},
|
|
5228
5304
|
async "~run"(dataset, config$1) {
|
|
5229
5305
|
const input = dataset.value;
|
|
5230
5306
|
if (input instanceof Map) {
|
|
@@ -5281,57 +5357,51 @@ function mapAsync(key, value$1, message$1) {
|
|
|
5281
5357
|
} else _addIssue(this, "type", dataset, config$1);
|
|
5282
5358
|
return dataset;
|
|
5283
5359
|
}
|
|
5284
|
-
};
|
|
5360
|
+
});
|
|
5285
5361
|
}
|
|
5286
5362
|
|
|
5287
5363
|
//#endregion
|
|
5288
5364
|
//#region src/schemas/nan/nan.ts
|
|
5289
5365
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5290
5366
|
function nan(message$1) {
|
|
5291
|
-
return {
|
|
5367
|
+
return _standardSchema({
|
|
5292
5368
|
kind: "schema",
|
|
5293
5369
|
type: "nan",
|
|
5294
5370
|
reference: nan,
|
|
5295
5371
|
expects: "NaN",
|
|
5296
5372
|
async: false,
|
|
5297
5373
|
message: message$1,
|
|
5298
|
-
get "~standard"() {
|
|
5299
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5300
|
-
},
|
|
5301
5374
|
"~run"(dataset, config$1) {
|
|
5302
5375
|
if (Number.isNaN(dataset.value)) dataset.typed = true;
|
|
5303
5376
|
else _addIssue(this, "type", dataset, config$1);
|
|
5304
5377
|
return dataset;
|
|
5305
5378
|
}
|
|
5306
|
-
};
|
|
5379
|
+
});
|
|
5307
5380
|
}
|
|
5308
5381
|
|
|
5309
5382
|
//#endregion
|
|
5310
5383
|
//#region src/schemas/never/never.ts
|
|
5311
5384
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5312
5385
|
function never(message$1) {
|
|
5313
|
-
return {
|
|
5386
|
+
return _standardSchema({
|
|
5314
5387
|
kind: "schema",
|
|
5315
5388
|
type: "never",
|
|
5316
5389
|
reference: never,
|
|
5317
5390
|
expects: "never",
|
|
5318
5391
|
async: false,
|
|
5319
5392
|
message: message$1,
|
|
5320
|
-
get "~standard"() {
|
|
5321
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5322
|
-
},
|
|
5323
5393
|
"~run"(dataset, config$1) {
|
|
5324
5394
|
_addIssue(this, "type", dataset, config$1);
|
|
5325
5395
|
return dataset;
|
|
5326
5396
|
}
|
|
5327
|
-
};
|
|
5397
|
+
});
|
|
5328
5398
|
}
|
|
5329
5399
|
|
|
5330
5400
|
//#endregion
|
|
5331
5401
|
//#region src/schemas/nonNullable/nonNullable.ts
|
|
5332
5402
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5333
5403
|
function nonNullable(wrapped, message$1) {
|
|
5334
|
-
return {
|
|
5404
|
+
return _standardSchema({
|
|
5335
5405
|
kind: "schema",
|
|
5336
5406
|
type: "non_nullable",
|
|
5337
5407
|
reference: nonNullable,
|
|
@@ -5339,22 +5409,19 @@ function nonNullable(wrapped, message$1) {
|
|
|
5339
5409
|
async: false,
|
|
5340
5410
|
wrapped,
|
|
5341
5411
|
message: message$1,
|
|
5342
|
-
get "~standard"() {
|
|
5343
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5344
|
-
},
|
|
5345
5412
|
"~run"(dataset, config$1) {
|
|
5346
5413
|
if (dataset.value !== null) dataset = this.wrapped["~run"](dataset, config$1);
|
|
5347
5414
|
if (dataset.value === null) _addIssue(this, "type", dataset, config$1);
|
|
5348
5415
|
return dataset;
|
|
5349
5416
|
}
|
|
5350
|
-
};
|
|
5417
|
+
});
|
|
5351
5418
|
}
|
|
5352
5419
|
|
|
5353
5420
|
//#endregion
|
|
5354
5421
|
//#region src/schemas/nonNullable/nonNullableAsync.ts
|
|
5355
5422
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5356
5423
|
function nonNullableAsync(wrapped, message$1) {
|
|
5357
|
-
return {
|
|
5424
|
+
return _standardSchema({
|
|
5358
5425
|
kind: "schema",
|
|
5359
5426
|
type: "non_nullable",
|
|
5360
5427
|
reference: nonNullableAsync,
|
|
@@ -5362,22 +5429,19 @@ function nonNullableAsync(wrapped, message$1) {
|
|
|
5362
5429
|
async: true,
|
|
5363
5430
|
wrapped,
|
|
5364
5431
|
message: message$1,
|
|
5365
|
-
get "~standard"() {
|
|
5366
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5367
|
-
},
|
|
5368
5432
|
async "~run"(dataset, config$1) {
|
|
5369
5433
|
if (dataset.value !== null) dataset = await this.wrapped["~run"](dataset, config$1);
|
|
5370
5434
|
if (dataset.value === null) _addIssue(this, "type", dataset, config$1);
|
|
5371
5435
|
return dataset;
|
|
5372
5436
|
}
|
|
5373
|
-
};
|
|
5437
|
+
});
|
|
5374
5438
|
}
|
|
5375
5439
|
|
|
5376
5440
|
//#endregion
|
|
5377
5441
|
//#region src/schemas/nonNullish/nonNullish.ts
|
|
5378
5442
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5379
5443
|
function nonNullish(wrapped, message$1) {
|
|
5380
|
-
return {
|
|
5444
|
+
return _standardSchema({
|
|
5381
5445
|
kind: "schema",
|
|
5382
5446
|
type: "non_nullish",
|
|
5383
5447
|
reference: nonNullish,
|
|
@@ -5385,22 +5449,19 @@ function nonNullish(wrapped, message$1) {
|
|
|
5385
5449
|
async: false,
|
|
5386
5450
|
wrapped,
|
|
5387
5451
|
message: message$1,
|
|
5388
|
-
get "~standard"() {
|
|
5389
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5390
|
-
},
|
|
5391
5452
|
"~run"(dataset, config$1) {
|
|
5392
5453
|
if (!(dataset.value === null || dataset.value === void 0)) dataset = this.wrapped["~run"](dataset, config$1);
|
|
5393
5454
|
if (dataset.value === null || dataset.value === void 0) _addIssue(this, "type", dataset, config$1);
|
|
5394
5455
|
return dataset;
|
|
5395
5456
|
}
|
|
5396
|
-
};
|
|
5457
|
+
});
|
|
5397
5458
|
}
|
|
5398
5459
|
|
|
5399
5460
|
//#endregion
|
|
5400
5461
|
//#region src/schemas/nonNullish/nonNullishAsync.ts
|
|
5401
5462
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5402
5463
|
function nonNullishAsync(wrapped, message$1) {
|
|
5403
|
-
return {
|
|
5464
|
+
return _standardSchema({
|
|
5404
5465
|
kind: "schema",
|
|
5405
5466
|
type: "non_nullish",
|
|
5406
5467
|
reference: nonNullishAsync,
|
|
@@ -5408,22 +5469,19 @@ function nonNullishAsync(wrapped, message$1) {
|
|
|
5408
5469
|
async: true,
|
|
5409
5470
|
wrapped,
|
|
5410
5471
|
message: message$1,
|
|
5411
|
-
get "~standard"() {
|
|
5412
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5413
|
-
},
|
|
5414
5472
|
async "~run"(dataset, config$1) {
|
|
5415
5473
|
if (!(dataset.value === null || dataset.value === void 0)) dataset = await this.wrapped["~run"](dataset, config$1);
|
|
5416
5474
|
if (dataset.value === null || dataset.value === void 0) _addIssue(this, "type", dataset, config$1);
|
|
5417
5475
|
return dataset;
|
|
5418
5476
|
}
|
|
5419
|
-
};
|
|
5477
|
+
});
|
|
5420
5478
|
}
|
|
5421
5479
|
|
|
5422
5480
|
//#endregion
|
|
5423
5481
|
//#region src/schemas/nonOptional/nonOptional.ts
|
|
5424
5482
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5425
5483
|
function nonOptional(wrapped, message$1) {
|
|
5426
|
-
return {
|
|
5484
|
+
return _standardSchema({
|
|
5427
5485
|
kind: "schema",
|
|
5428
5486
|
type: "non_optional",
|
|
5429
5487
|
reference: nonOptional,
|
|
@@ -5431,22 +5489,19 @@ function nonOptional(wrapped, message$1) {
|
|
|
5431
5489
|
async: false,
|
|
5432
5490
|
wrapped,
|
|
5433
5491
|
message: message$1,
|
|
5434
|
-
get "~standard"() {
|
|
5435
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5436
|
-
},
|
|
5437
5492
|
"~run"(dataset, config$1) {
|
|
5438
5493
|
if (dataset.value !== void 0) dataset = this.wrapped["~run"](dataset, config$1);
|
|
5439
5494
|
if (dataset.value === void 0) _addIssue(this, "type", dataset, config$1);
|
|
5440
5495
|
return dataset;
|
|
5441
5496
|
}
|
|
5442
|
-
};
|
|
5497
|
+
});
|
|
5443
5498
|
}
|
|
5444
5499
|
|
|
5445
5500
|
//#endregion
|
|
5446
5501
|
//#region src/schemas/nonOptional/nonOptionalAsync.ts
|
|
5447
5502
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5448
5503
|
function nonOptionalAsync(wrapped, message$1) {
|
|
5449
|
-
return {
|
|
5504
|
+
return _standardSchema({
|
|
5450
5505
|
kind: "schema",
|
|
5451
5506
|
type: "non_optional",
|
|
5452
5507
|
reference: nonOptionalAsync,
|
|
@@ -5454,44 +5509,38 @@ function nonOptionalAsync(wrapped, message$1) {
|
|
|
5454
5509
|
async: true,
|
|
5455
5510
|
wrapped,
|
|
5456
5511
|
message: message$1,
|
|
5457
|
-
get "~standard"() {
|
|
5458
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5459
|
-
},
|
|
5460
5512
|
async "~run"(dataset, config$1) {
|
|
5461
5513
|
if (dataset.value !== void 0) dataset = await this.wrapped["~run"](dataset, config$1);
|
|
5462
5514
|
if (dataset.value === void 0) _addIssue(this, "type", dataset, config$1);
|
|
5463
5515
|
return dataset;
|
|
5464
5516
|
}
|
|
5465
|
-
};
|
|
5517
|
+
});
|
|
5466
5518
|
}
|
|
5467
5519
|
|
|
5468
5520
|
//#endregion
|
|
5469
5521
|
//#region src/schemas/null/null.ts
|
|
5470
5522
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5471
5523
|
function null_(message$1) {
|
|
5472
|
-
return {
|
|
5524
|
+
return _standardSchema({
|
|
5473
5525
|
kind: "schema",
|
|
5474
5526
|
type: "null",
|
|
5475
5527
|
reference: null_,
|
|
5476
5528
|
expects: "null",
|
|
5477
5529
|
async: false,
|
|
5478
5530
|
message: message$1,
|
|
5479
|
-
get "~standard"() {
|
|
5480
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5481
|
-
},
|
|
5482
5531
|
"~run"(dataset, config$1) {
|
|
5483
5532
|
if (dataset.value === null) dataset.typed = true;
|
|
5484
5533
|
else _addIssue(this, "type", dataset, config$1);
|
|
5485
5534
|
return dataset;
|
|
5486
5535
|
}
|
|
5487
|
-
};
|
|
5536
|
+
});
|
|
5488
5537
|
}
|
|
5489
5538
|
|
|
5490
5539
|
//#endregion
|
|
5491
5540
|
//#region src/schemas/nullable/nullable.ts
|
|
5492
5541
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5493
5542
|
function nullable(wrapped, default_) {
|
|
5494
|
-
return {
|
|
5543
|
+
return _standardSchema({
|
|
5495
5544
|
kind: "schema",
|
|
5496
5545
|
type: "nullable",
|
|
5497
5546
|
reference: nullable,
|
|
@@ -5499,9 +5548,6 @@ function nullable(wrapped, default_) {
|
|
|
5499
5548
|
async: false,
|
|
5500
5549
|
wrapped,
|
|
5501
5550
|
default: default_,
|
|
5502
|
-
get "~standard"() {
|
|
5503
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5504
|
-
},
|
|
5505
5551
|
"~run"(dataset, config$1) {
|
|
5506
5552
|
if (dataset.value === null) {
|
|
5507
5553
|
if (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);
|
|
@@ -5512,14 +5558,14 @@ function nullable(wrapped, default_) {
|
|
|
5512
5558
|
}
|
|
5513
5559
|
return this.wrapped["~run"](dataset, config$1);
|
|
5514
5560
|
}
|
|
5515
|
-
};
|
|
5561
|
+
});
|
|
5516
5562
|
}
|
|
5517
5563
|
|
|
5518
5564
|
//#endregion
|
|
5519
5565
|
//#region src/schemas/nullable/nullableAsync.ts
|
|
5520
5566
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5521
5567
|
function nullableAsync(wrapped, default_) {
|
|
5522
|
-
return {
|
|
5568
|
+
return _standardSchema({
|
|
5523
5569
|
kind: "schema",
|
|
5524
5570
|
type: "nullable",
|
|
5525
5571
|
reference: nullableAsync,
|
|
@@ -5527,9 +5573,6 @@ function nullableAsync(wrapped, default_) {
|
|
|
5527
5573
|
async: true,
|
|
5528
5574
|
wrapped,
|
|
5529
5575
|
default: default_,
|
|
5530
|
-
get "~standard"() {
|
|
5531
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5532
|
-
},
|
|
5533
5576
|
async "~run"(dataset, config$1) {
|
|
5534
5577
|
if (dataset.value === null) {
|
|
5535
5578
|
if (this.default !== void 0) dataset.value = await /* @__PURE__ */ getDefault(this, dataset, config$1);
|
|
@@ -5540,14 +5583,14 @@ function nullableAsync(wrapped, default_) {
|
|
|
5540
5583
|
}
|
|
5541
5584
|
return this.wrapped["~run"](dataset, config$1);
|
|
5542
5585
|
}
|
|
5543
|
-
};
|
|
5586
|
+
});
|
|
5544
5587
|
}
|
|
5545
5588
|
|
|
5546
5589
|
//#endregion
|
|
5547
5590
|
//#region src/schemas/nullish/nullish.ts
|
|
5548
5591
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5549
5592
|
function nullish(wrapped, default_) {
|
|
5550
|
-
return {
|
|
5593
|
+
return _standardSchema({
|
|
5551
5594
|
kind: "schema",
|
|
5552
5595
|
type: "nullish",
|
|
5553
5596
|
reference: nullish,
|
|
@@ -5555,9 +5598,6 @@ function nullish(wrapped, default_) {
|
|
|
5555
5598
|
async: false,
|
|
5556
5599
|
wrapped,
|
|
5557
5600
|
default: default_,
|
|
5558
|
-
get "~standard"() {
|
|
5559
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5560
|
-
},
|
|
5561
5601
|
"~run"(dataset, config$1) {
|
|
5562
5602
|
if (dataset.value === null || dataset.value === void 0) {
|
|
5563
5603
|
if (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);
|
|
@@ -5568,14 +5608,14 @@ function nullish(wrapped, default_) {
|
|
|
5568
5608
|
}
|
|
5569
5609
|
return this.wrapped["~run"](dataset, config$1);
|
|
5570
5610
|
}
|
|
5571
|
-
};
|
|
5611
|
+
});
|
|
5572
5612
|
}
|
|
5573
5613
|
|
|
5574
5614
|
//#endregion
|
|
5575
5615
|
//#region src/schemas/nullish/nullishAsync.ts
|
|
5576
5616
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5577
5617
|
function nullishAsync(wrapped, default_) {
|
|
5578
|
-
return {
|
|
5618
|
+
return _standardSchema({
|
|
5579
5619
|
kind: "schema",
|
|
5580
5620
|
type: "nullish",
|
|
5581
5621
|
reference: nullishAsync,
|
|
@@ -5583,9 +5623,6 @@ function nullishAsync(wrapped, default_) {
|
|
|
5583
5623
|
async: true,
|
|
5584
5624
|
wrapped,
|
|
5585
5625
|
default: default_,
|
|
5586
|
-
get "~standard"() {
|
|
5587
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5588
|
-
},
|
|
5589
5626
|
async "~run"(dataset, config$1) {
|
|
5590
5627
|
if (dataset.value === null || dataset.value === void 0) {
|
|
5591
5628
|
if (this.default !== void 0) dataset.value = await /* @__PURE__ */ getDefault(this, dataset, config$1);
|
|
@@ -5596,36 +5633,33 @@ function nullishAsync(wrapped, default_) {
|
|
|
5596
5633
|
}
|
|
5597
5634
|
return this.wrapped["~run"](dataset, config$1);
|
|
5598
5635
|
}
|
|
5599
|
-
};
|
|
5636
|
+
});
|
|
5600
5637
|
}
|
|
5601
5638
|
|
|
5602
5639
|
//#endregion
|
|
5603
5640
|
//#region src/schemas/number/number.ts
|
|
5604
5641
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5605
5642
|
function number(message$1) {
|
|
5606
|
-
return {
|
|
5643
|
+
return _standardSchema({
|
|
5607
5644
|
kind: "schema",
|
|
5608
5645
|
type: "number",
|
|
5609
5646
|
reference: number,
|
|
5610
5647
|
expects: "number",
|
|
5611
5648
|
async: false,
|
|
5612
5649
|
message: message$1,
|
|
5613
|
-
get "~standard"() {
|
|
5614
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5615
|
-
},
|
|
5616
5650
|
"~run"(dataset, config$1) {
|
|
5617
5651
|
if (typeof dataset.value === "number" && !isNaN(dataset.value)) dataset.typed = true;
|
|
5618
5652
|
else _addIssue(this, "type", dataset, config$1);
|
|
5619
5653
|
return dataset;
|
|
5620
5654
|
}
|
|
5621
|
-
};
|
|
5655
|
+
});
|
|
5622
5656
|
}
|
|
5623
5657
|
|
|
5624
5658
|
//#endregion
|
|
5625
5659
|
//#region src/schemas/object/object.ts
|
|
5626
5660
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5627
5661
|
function object(entries$1, message$1) {
|
|
5628
|
-
return {
|
|
5662
|
+
return _standardSchema({
|
|
5629
5663
|
kind: "schema",
|
|
5630
5664
|
type: "object",
|
|
5631
5665
|
reference: object,
|
|
@@ -5633,9 +5667,6 @@ function object(entries$1, message$1) {
|
|
|
5633
5667
|
async: false,
|
|
5634
5668
|
entries: entries$1,
|
|
5635
5669
|
message: message$1,
|
|
5636
|
-
get "~standard"() {
|
|
5637
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5638
|
-
},
|
|
5639
5670
|
"~run"(dataset, config$1) {
|
|
5640
5671
|
const input = dataset.value;
|
|
5641
5672
|
if (input && typeof input === "object") {
|
|
@@ -5686,14 +5717,14 @@ function object(entries$1, message$1) {
|
|
|
5686
5717
|
} else _addIssue(this, "type", dataset, config$1);
|
|
5687
5718
|
return dataset;
|
|
5688
5719
|
}
|
|
5689
|
-
};
|
|
5720
|
+
});
|
|
5690
5721
|
}
|
|
5691
5722
|
|
|
5692
5723
|
//#endregion
|
|
5693
5724
|
//#region src/schemas/object/objectAsync.ts
|
|
5694
5725
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5695
5726
|
function objectAsync(entries$1, message$1) {
|
|
5696
|
-
return {
|
|
5727
|
+
return _standardSchema({
|
|
5697
5728
|
kind: "schema",
|
|
5698
5729
|
type: "object",
|
|
5699
5730
|
reference: objectAsync,
|
|
@@ -5701,9 +5732,6 @@ function objectAsync(entries$1, message$1) {
|
|
|
5701
5732
|
async: true,
|
|
5702
5733
|
entries: entries$1,
|
|
5703
5734
|
message: message$1,
|
|
5704
|
-
get "~standard"() {
|
|
5705
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5706
|
-
},
|
|
5707
5735
|
async "~run"(dataset, config$1) {
|
|
5708
5736
|
const input = dataset.value;
|
|
5709
5737
|
if (input && typeof input === "object") {
|
|
@@ -5766,14 +5794,14 @@ function objectAsync(entries$1, message$1) {
|
|
|
5766
5794
|
} else _addIssue(this, "type", dataset, config$1);
|
|
5767
5795
|
return dataset;
|
|
5768
5796
|
}
|
|
5769
|
-
};
|
|
5797
|
+
});
|
|
5770
5798
|
}
|
|
5771
5799
|
|
|
5772
5800
|
//#endregion
|
|
5773
5801
|
//#region src/schemas/objectWithRest/objectWithRest.ts
|
|
5774
5802
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5775
5803
|
function objectWithRest(entries$1, rest, message$1) {
|
|
5776
|
-
return {
|
|
5804
|
+
return _standardSchema({
|
|
5777
5805
|
kind: "schema",
|
|
5778
5806
|
type: "object_with_rest",
|
|
5779
5807
|
reference: objectWithRest,
|
|
@@ -5782,9 +5810,6 @@ function objectWithRest(entries$1, rest, message$1) {
|
|
|
5782
5810
|
entries: entries$1,
|
|
5783
5811
|
rest,
|
|
5784
5812
|
message: message$1,
|
|
5785
|
-
get "~standard"() {
|
|
5786
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5787
|
-
},
|
|
5788
5813
|
"~run"(dataset, config$1) {
|
|
5789
5814
|
const input = dataset.value;
|
|
5790
5815
|
if (input && typeof input === "object") {
|
|
@@ -5833,7 +5858,7 @@ function objectWithRest(entries$1, rest, message$1) {
|
|
|
5833
5858
|
}
|
|
5834
5859
|
}
|
|
5835
5860
|
if (!dataset.issues || !config$1.abortEarly) {
|
|
5836
|
-
for (const key in input) if (/* @__PURE__ */ _isValidObjectKey(input, key) && !(
|
|
5861
|
+
for (const key in input) if (/* @__PURE__ */ _isValidObjectKey(input, key) && !Object.prototype.hasOwnProperty.call(this.entries, key)) {
|
|
5837
5862
|
const valueDataset = this.rest["~run"]({ value: input[key] }, config$1);
|
|
5838
5863
|
if (valueDataset.issues) {
|
|
5839
5864
|
const pathItem = {
|
|
@@ -5861,14 +5886,14 @@ function objectWithRest(entries$1, rest, message$1) {
|
|
|
5861
5886
|
} else _addIssue(this, "type", dataset, config$1);
|
|
5862
5887
|
return dataset;
|
|
5863
5888
|
}
|
|
5864
|
-
};
|
|
5889
|
+
});
|
|
5865
5890
|
}
|
|
5866
5891
|
|
|
5867
5892
|
//#endregion
|
|
5868
5893
|
//#region src/schemas/objectWithRest/objectWithRestAsync.ts
|
|
5869
5894
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5870
5895
|
function objectWithRestAsync(entries$1, rest, message$1) {
|
|
5871
|
-
return {
|
|
5896
|
+
return _standardSchema({
|
|
5872
5897
|
kind: "schema",
|
|
5873
5898
|
type: "object_with_rest",
|
|
5874
5899
|
reference: objectWithRestAsync,
|
|
@@ -5877,9 +5902,6 @@ function objectWithRestAsync(entries$1, rest, message$1) {
|
|
|
5877
5902
|
entries: entries$1,
|
|
5878
5903
|
rest,
|
|
5879
5904
|
message: message$1,
|
|
5880
|
-
get "~standard"() {
|
|
5881
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5882
|
-
},
|
|
5883
5905
|
async "~run"(dataset, config$1) {
|
|
5884
5906
|
const input = dataset.value;
|
|
5885
5907
|
if (input && typeof input === "object") {
|
|
@@ -5901,7 +5923,7 @@ function objectWithRestAsync(entries$1, rest, message$1) {
|
|
|
5901
5923
|
valueSchema,
|
|
5902
5924
|
null
|
|
5903
5925
|
];
|
|
5904
|
-
})), Promise.all(Object.entries(input).filter(([key]) => /* @__PURE__ */ _isValidObjectKey(input, key) && !(
|
|
5926
|
+
})), Promise.all(Object.entries(input).filter(([key]) => /* @__PURE__ */ _isValidObjectKey(input, key) && !Object.prototype.hasOwnProperty.call(this.entries, key)).map(async ([key, value$1]) => [
|
|
5905
5927
|
key,
|
|
5906
5928
|
value$1,
|
|
5907
5929
|
await this.rest["~run"]({ value: value$1 }, config$1)
|
|
@@ -5969,14 +5991,14 @@ function objectWithRestAsync(entries$1, rest, message$1) {
|
|
|
5969
5991
|
} else _addIssue(this, "type", dataset, config$1);
|
|
5970
5992
|
return dataset;
|
|
5971
5993
|
}
|
|
5972
|
-
};
|
|
5994
|
+
});
|
|
5973
5995
|
}
|
|
5974
5996
|
|
|
5975
5997
|
//#endregion
|
|
5976
5998
|
//#region src/schemas/optional/optional.ts
|
|
5977
5999
|
/* @__NO_SIDE_EFFECTS__ */
|
|
5978
6000
|
function optional(wrapped, default_) {
|
|
5979
|
-
return {
|
|
6001
|
+
return _standardSchema({
|
|
5980
6002
|
kind: "schema",
|
|
5981
6003
|
type: "optional",
|
|
5982
6004
|
reference: optional,
|
|
@@ -5984,9 +6006,6 @@ function optional(wrapped, default_) {
|
|
|
5984
6006
|
async: false,
|
|
5985
6007
|
wrapped,
|
|
5986
6008
|
default: default_,
|
|
5987
|
-
get "~standard"() {
|
|
5988
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
5989
|
-
},
|
|
5990
6009
|
"~run"(dataset, config$1) {
|
|
5991
6010
|
if (dataset.value === void 0) {
|
|
5992
6011
|
if (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);
|
|
@@ -5997,14 +6016,14 @@ function optional(wrapped, default_) {
|
|
|
5997
6016
|
}
|
|
5998
6017
|
return this.wrapped["~run"](dataset, config$1);
|
|
5999
6018
|
}
|
|
6000
|
-
};
|
|
6019
|
+
});
|
|
6001
6020
|
}
|
|
6002
6021
|
|
|
6003
6022
|
//#endregion
|
|
6004
6023
|
//#region src/schemas/optional/optionalAsync.ts
|
|
6005
6024
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6006
6025
|
function optionalAsync(wrapped, default_) {
|
|
6007
|
-
return {
|
|
6026
|
+
return _standardSchema({
|
|
6008
6027
|
kind: "schema",
|
|
6009
6028
|
type: "optional",
|
|
6010
6029
|
reference: optionalAsync,
|
|
@@ -6012,9 +6031,6 @@ function optionalAsync(wrapped, default_) {
|
|
|
6012
6031
|
async: true,
|
|
6013
6032
|
wrapped,
|
|
6014
6033
|
default: default_,
|
|
6015
|
-
get "~standard"() {
|
|
6016
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6017
|
-
},
|
|
6018
6034
|
async "~run"(dataset, config$1) {
|
|
6019
6035
|
if (dataset.value === void 0) {
|
|
6020
6036
|
if (this.default !== void 0) dataset.value = await /* @__PURE__ */ getDefault(this, dataset, config$1);
|
|
@@ -6025,14 +6041,14 @@ function optionalAsync(wrapped, default_) {
|
|
|
6025
6041
|
}
|
|
6026
6042
|
return this.wrapped["~run"](dataset, config$1);
|
|
6027
6043
|
}
|
|
6028
|
-
};
|
|
6044
|
+
});
|
|
6029
6045
|
}
|
|
6030
6046
|
|
|
6031
6047
|
//#endregion
|
|
6032
6048
|
//#region src/schemas/picklist/picklist.ts
|
|
6033
6049
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6034
6050
|
function picklist(options, message$1) {
|
|
6035
|
-
return {
|
|
6051
|
+
return _standardSchema({
|
|
6036
6052
|
kind: "schema",
|
|
6037
6053
|
type: "picklist",
|
|
6038
6054
|
reference: picklist,
|
|
@@ -6040,44 +6056,38 @@ function picklist(options, message$1) {
|
|
|
6040
6056
|
async: false,
|
|
6041
6057
|
options,
|
|
6042
6058
|
message: message$1,
|
|
6043
|
-
get "~standard"() {
|
|
6044
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6045
|
-
},
|
|
6046
6059
|
"~run"(dataset, config$1) {
|
|
6047
6060
|
if (this.options.includes(dataset.value)) dataset.typed = true;
|
|
6048
6061
|
else _addIssue(this, "type", dataset, config$1);
|
|
6049
6062
|
return dataset;
|
|
6050
6063
|
}
|
|
6051
|
-
};
|
|
6064
|
+
});
|
|
6052
6065
|
}
|
|
6053
6066
|
|
|
6054
6067
|
//#endregion
|
|
6055
6068
|
//#region src/schemas/promise/promise.ts
|
|
6056
6069
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6057
6070
|
function promise(message$1) {
|
|
6058
|
-
return {
|
|
6071
|
+
return _standardSchema({
|
|
6059
6072
|
kind: "schema",
|
|
6060
6073
|
type: "promise",
|
|
6061
6074
|
reference: promise,
|
|
6062
6075
|
expects: "Promise",
|
|
6063
6076
|
async: false,
|
|
6064
6077
|
message: message$1,
|
|
6065
|
-
get "~standard"() {
|
|
6066
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6067
|
-
},
|
|
6068
6078
|
"~run"(dataset, config$1) {
|
|
6069
6079
|
if (dataset.value instanceof Promise) dataset.typed = true;
|
|
6070
6080
|
else _addIssue(this, "type", dataset, config$1);
|
|
6071
6081
|
return dataset;
|
|
6072
6082
|
}
|
|
6073
|
-
};
|
|
6083
|
+
});
|
|
6074
6084
|
}
|
|
6075
6085
|
|
|
6076
6086
|
//#endregion
|
|
6077
6087
|
//#region src/schemas/record/record.ts
|
|
6078
6088
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6079
6089
|
function record(key, value$1, message$1) {
|
|
6080
|
-
return {
|
|
6090
|
+
return _standardSchema({
|
|
6081
6091
|
kind: "schema",
|
|
6082
6092
|
type: "record",
|
|
6083
6093
|
reference: record,
|
|
@@ -6086,9 +6096,6 @@ function record(key, value$1, message$1) {
|
|
|
6086
6096
|
key,
|
|
6087
6097
|
value: value$1,
|
|
6088
6098
|
message: message$1,
|
|
6089
|
-
get "~standard"() {
|
|
6090
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6091
|
-
},
|
|
6092
6099
|
"~run"(dataset, config$1) {
|
|
6093
6100
|
const input = dataset.value;
|
|
6094
6101
|
if (input && typeof input === "object") {
|
|
@@ -6141,14 +6148,14 @@ function record(key, value$1, message$1) {
|
|
|
6141
6148
|
} else _addIssue(this, "type", dataset, config$1);
|
|
6142
6149
|
return dataset;
|
|
6143
6150
|
}
|
|
6144
|
-
};
|
|
6151
|
+
});
|
|
6145
6152
|
}
|
|
6146
6153
|
|
|
6147
6154
|
//#endregion
|
|
6148
6155
|
//#region src/schemas/record/recordAsync.ts
|
|
6149
6156
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6150
6157
|
function recordAsync(key, value$1, message$1) {
|
|
6151
|
-
return {
|
|
6158
|
+
return _standardSchema({
|
|
6152
6159
|
kind: "schema",
|
|
6153
6160
|
type: "record",
|
|
6154
6161
|
reference: recordAsync,
|
|
@@ -6157,9 +6164,6 @@ function recordAsync(key, value$1, message$1) {
|
|
|
6157
6164
|
key,
|
|
6158
6165
|
value: value$1,
|
|
6159
6166
|
message: message$1,
|
|
6160
|
-
get "~standard"() {
|
|
6161
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6162
|
-
},
|
|
6163
6167
|
async "~run"(dataset, config$1) {
|
|
6164
6168
|
const input = dataset.value;
|
|
6165
6169
|
if (input && typeof input === "object") {
|
|
@@ -6215,14 +6219,14 @@ function recordAsync(key, value$1, message$1) {
|
|
|
6215
6219
|
} else _addIssue(this, "type", dataset, config$1);
|
|
6216
6220
|
return dataset;
|
|
6217
6221
|
}
|
|
6218
|
-
};
|
|
6222
|
+
});
|
|
6219
6223
|
}
|
|
6220
6224
|
|
|
6221
6225
|
//#endregion
|
|
6222
6226
|
//#region src/schemas/set/set.ts
|
|
6223
6227
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6224
6228
|
function set(value$1, message$1) {
|
|
6225
|
-
return {
|
|
6229
|
+
return _standardSchema({
|
|
6226
6230
|
kind: "schema",
|
|
6227
6231
|
type: "set",
|
|
6228
6232
|
reference: set,
|
|
@@ -6230,9 +6234,6 @@ function set(value$1, message$1) {
|
|
|
6230
6234
|
async: false,
|
|
6231
6235
|
value: value$1,
|
|
6232
6236
|
message: message$1,
|
|
6233
|
-
get "~standard"() {
|
|
6234
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6235
|
-
},
|
|
6236
6237
|
"~run"(dataset, config$1) {
|
|
6237
6238
|
const input = dataset.value;
|
|
6238
6239
|
if (input instanceof Set) {
|
|
@@ -6265,14 +6266,14 @@ function set(value$1, message$1) {
|
|
|
6265
6266
|
} else _addIssue(this, "type", dataset, config$1);
|
|
6266
6267
|
return dataset;
|
|
6267
6268
|
}
|
|
6268
|
-
};
|
|
6269
|
+
});
|
|
6269
6270
|
}
|
|
6270
6271
|
|
|
6271
6272
|
//#endregion
|
|
6272
6273
|
//#region src/schemas/set/setAsync.ts
|
|
6273
6274
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6274
6275
|
function setAsync(value$1, message$1) {
|
|
6275
|
-
return {
|
|
6276
|
+
return _standardSchema({
|
|
6276
6277
|
kind: "schema",
|
|
6277
6278
|
type: "set",
|
|
6278
6279
|
reference: setAsync,
|
|
@@ -6280,9 +6281,6 @@ function setAsync(value$1, message$1) {
|
|
|
6280
6281
|
async: true,
|
|
6281
6282
|
value: value$1,
|
|
6282
6283
|
message: message$1,
|
|
6283
|
-
get "~standard"() {
|
|
6284
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6285
|
-
},
|
|
6286
6284
|
async "~run"(dataset, config$1) {
|
|
6287
6285
|
const input = dataset.value;
|
|
6288
6286
|
if (input instanceof Set) {
|
|
@@ -6315,14 +6313,14 @@ function setAsync(value$1, message$1) {
|
|
|
6315
6313
|
} else _addIssue(this, "type", dataset, config$1);
|
|
6316
6314
|
return dataset;
|
|
6317
6315
|
}
|
|
6318
|
-
};
|
|
6316
|
+
});
|
|
6319
6317
|
}
|
|
6320
6318
|
|
|
6321
6319
|
//#endregion
|
|
6322
6320
|
//#region src/schemas/strictObject/strictObject.ts
|
|
6323
6321
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6324
6322
|
function strictObject(entries$1, message$1) {
|
|
6325
|
-
return {
|
|
6323
|
+
return _standardSchema({
|
|
6326
6324
|
kind: "schema",
|
|
6327
6325
|
type: "strict_object",
|
|
6328
6326
|
reference: strictObject,
|
|
@@ -6330,9 +6328,6 @@ function strictObject(entries$1, message$1) {
|
|
|
6330
6328
|
async: false,
|
|
6331
6329
|
entries: entries$1,
|
|
6332
6330
|
message: message$1,
|
|
6333
|
-
get "~standard"() {
|
|
6334
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6335
|
-
},
|
|
6336
6331
|
"~run"(dataset, config$1) {
|
|
6337
6332
|
const input = dataset.value;
|
|
6338
6333
|
if (input && typeof input === "object") {
|
|
@@ -6381,7 +6376,7 @@ function strictObject(entries$1, message$1) {
|
|
|
6381
6376
|
}
|
|
6382
6377
|
}
|
|
6383
6378
|
if (!dataset.issues || !config$1.abortEarly) {
|
|
6384
|
-
for (const key in input) if (!(
|
|
6379
|
+
for (const key in input) if (!Object.prototype.hasOwnProperty.call(this.entries, key)) {
|
|
6385
6380
|
_addIssue(this, "key", dataset, config$1, {
|
|
6386
6381
|
input: key,
|
|
6387
6382
|
expected: "never",
|
|
@@ -6399,14 +6394,14 @@ function strictObject(entries$1, message$1) {
|
|
|
6399
6394
|
} else _addIssue(this, "type", dataset, config$1);
|
|
6400
6395
|
return dataset;
|
|
6401
6396
|
}
|
|
6402
|
-
};
|
|
6397
|
+
});
|
|
6403
6398
|
}
|
|
6404
6399
|
|
|
6405
6400
|
//#endregion
|
|
6406
6401
|
//#region src/schemas/strictObject/strictObjectAsync.ts
|
|
6407
6402
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6408
6403
|
function strictObjectAsync(entries$1, message$1) {
|
|
6409
|
-
return {
|
|
6404
|
+
return _standardSchema({
|
|
6410
6405
|
kind: "schema",
|
|
6411
6406
|
type: "strict_object",
|
|
6412
6407
|
reference: strictObjectAsync,
|
|
@@ -6414,9 +6409,6 @@ function strictObjectAsync(entries$1, message$1) {
|
|
|
6414
6409
|
async: true,
|
|
6415
6410
|
entries: entries$1,
|
|
6416
6411
|
message: message$1,
|
|
6417
|
-
get "~standard"() {
|
|
6418
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6419
|
-
},
|
|
6420
6412
|
async "~run"(dataset, config$1) {
|
|
6421
6413
|
const input = dataset.value;
|
|
6422
6414
|
if (input && typeof input === "object") {
|
|
@@ -6477,7 +6469,7 @@ function strictObjectAsync(entries$1, message$1) {
|
|
|
6477
6469
|
if (config$1.abortEarly) break;
|
|
6478
6470
|
}
|
|
6479
6471
|
if (!dataset.issues || !config$1.abortEarly) {
|
|
6480
|
-
for (const key in input) if (!(
|
|
6472
|
+
for (const key in input) if (!Object.prototype.hasOwnProperty.call(this.entries, key)) {
|
|
6481
6473
|
_addIssue(this, "key", dataset, config$1, {
|
|
6482
6474
|
input: key,
|
|
6483
6475
|
expected: "never",
|
|
@@ -6495,14 +6487,14 @@ function strictObjectAsync(entries$1, message$1) {
|
|
|
6495
6487
|
} else _addIssue(this, "type", dataset, config$1);
|
|
6496
6488
|
return dataset;
|
|
6497
6489
|
}
|
|
6498
|
-
};
|
|
6490
|
+
});
|
|
6499
6491
|
}
|
|
6500
6492
|
|
|
6501
6493
|
//#endregion
|
|
6502
6494
|
//#region src/schemas/strictTuple/strictTuple.ts
|
|
6503
6495
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6504
6496
|
function strictTuple(items, message$1) {
|
|
6505
|
-
return {
|
|
6497
|
+
return _standardSchema({
|
|
6506
6498
|
kind: "schema",
|
|
6507
6499
|
type: "strict_tuple",
|
|
6508
6500
|
reference: strictTuple,
|
|
@@ -6510,9 +6502,6 @@ function strictTuple(items, message$1) {
|
|
|
6510
6502
|
async: false,
|
|
6511
6503
|
items,
|
|
6512
6504
|
message: message$1,
|
|
6513
|
-
get "~standard"() {
|
|
6514
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6515
|
-
},
|
|
6516
6505
|
"~run"(dataset, config$1) {
|
|
6517
6506
|
const input = dataset.value;
|
|
6518
6507
|
if (Array.isArray(input)) {
|
|
@@ -6557,14 +6546,14 @@ function strictTuple(items, message$1) {
|
|
|
6557
6546
|
} else _addIssue(this, "type", dataset, config$1);
|
|
6558
6547
|
return dataset;
|
|
6559
6548
|
}
|
|
6560
|
-
};
|
|
6549
|
+
});
|
|
6561
6550
|
}
|
|
6562
6551
|
|
|
6563
6552
|
//#endregion
|
|
6564
6553
|
//#region src/schemas/strictTuple/strictTupleAsync.ts
|
|
6565
6554
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6566
6555
|
function strictTupleAsync(items, message$1) {
|
|
6567
|
-
return {
|
|
6556
|
+
return _standardSchema({
|
|
6568
6557
|
kind: "schema",
|
|
6569
6558
|
type: "strict_tuple",
|
|
6570
6559
|
reference: strictTupleAsync,
|
|
@@ -6572,9 +6561,6 @@ function strictTupleAsync(items, message$1) {
|
|
|
6572
6561
|
async: true,
|
|
6573
6562
|
items,
|
|
6574
6563
|
message: message$1,
|
|
6575
|
-
get "~standard"() {
|
|
6576
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6577
|
-
},
|
|
6578
6564
|
async "~run"(dataset, config$1) {
|
|
6579
6565
|
const input = dataset.value;
|
|
6580
6566
|
if (Array.isArray(input)) {
|
|
@@ -6625,58 +6611,52 @@ function strictTupleAsync(items, message$1) {
|
|
|
6625
6611
|
} else _addIssue(this, "type", dataset, config$1);
|
|
6626
6612
|
return dataset;
|
|
6627
6613
|
}
|
|
6628
|
-
};
|
|
6614
|
+
});
|
|
6629
6615
|
}
|
|
6630
6616
|
|
|
6631
6617
|
//#endregion
|
|
6632
6618
|
//#region src/schemas/string/string.ts
|
|
6633
6619
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6634
6620
|
function string(message$1) {
|
|
6635
|
-
return {
|
|
6621
|
+
return _standardSchema({
|
|
6636
6622
|
kind: "schema",
|
|
6637
6623
|
type: "string",
|
|
6638
6624
|
reference: string,
|
|
6639
6625
|
expects: "string",
|
|
6640
6626
|
async: false,
|
|
6641
6627
|
message: message$1,
|
|
6642
|
-
get "~standard"() {
|
|
6643
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6644
|
-
},
|
|
6645
6628
|
"~run"(dataset, config$1) {
|
|
6646
6629
|
if (typeof dataset.value === "string") dataset.typed = true;
|
|
6647
6630
|
else _addIssue(this, "type", dataset, config$1);
|
|
6648
6631
|
return dataset;
|
|
6649
6632
|
}
|
|
6650
|
-
};
|
|
6633
|
+
});
|
|
6651
6634
|
}
|
|
6652
6635
|
|
|
6653
6636
|
//#endregion
|
|
6654
6637
|
//#region src/schemas/symbol/symbol.ts
|
|
6655
6638
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6656
6639
|
function symbol(message$1) {
|
|
6657
|
-
return {
|
|
6640
|
+
return _standardSchema({
|
|
6658
6641
|
kind: "schema",
|
|
6659
6642
|
type: "symbol",
|
|
6660
6643
|
reference: symbol,
|
|
6661
6644
|
expects: "symbol",
|
|
6662
6645
|
async: false,
|
|
6663
6646
|
message: message$1,
|
|
6664
|
-
get "~standard"() {
|
|
6665
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6666
|
-
},
|
|
6667
6647
|
"~run"(dataset, config$1) {
|
|
6668
6648
|
if (typeof dataset.value === "symbol") dataset.typed = true;
|
|
6669
6649
|
else _addIssue(this, "type", dataset, config$1);
|
|
6670
6650
|
return dataset;
|
|
6671
6651
|
}
|
|
6672
|
-
};
|
|
6652
|
+
});
|
|
6673
6653
|
}
|
|
6674
6654
|
|
|
6675
6655
|
//#endregion
|
|
6676
6656
|
//#region src/schemas/tuple/tuple.ts
|
|
6677
6657
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6678
6658
|
function tuple(items, message$1) {
|
|
6679
|
-
return {
|
|
6659
|
+
return _standardSchema({
|
|
6680
6660
|
kind: "schema",
|
|
6681
6661
|
type: "tuple",
|
|
6682
6662
|
reference: tuple,
|
|
@@ -6684,9 +6664,6 @@ function tuple(items, message$1) {
|
|
|
6684
6664
|
async: false,
|
|
6685
6665
|
items,
|
|
6686
6666
|
message: message$1,
|
|
6687
|
-
get "~standard"() {
|
|
6688
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6689
|
-
},
|
|
6690
6667
|
"~run"(dataset, config$1) {
|
|
6691
6668
|
const input = dataset.value;
|
|
6692
6669
|
if (Array.isArray(input)) {
|
|
@@ -6720,14 +6697,14 @@ function tuple(items, message$1) {
|
|
|
6720
6697
|
} else _addIssue(this, "type", dataset, config$1);
|
|
6721
6698
|
return dataset;
|
|
6722
6699
|
}
|
|
6723
|
-
};
|
|
6700
|
+
});
|
|
6724
6701
|
}
|
|
6725
6702
|
|
|
6726
6703
|
//#endregion
|
|
6727
6704
|
//#region src/schemas/tuple/tupleAsync.ts
|
|
6728
6705
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6729
6706
|
function tupleAsync(items, message$1) {
|
|
6730
|
-
return {
|
|
6707
|
+
return _standardSchema({
|
|
6731
6708
|
kind: "schema",
|
|
6732
6709
|
type: "tuple",
|
|
6733
6710
|
reference: tupleAsync,
|
|
@@ -6735,9 +6712,6 @@ function tupleAsync(items, message$1) {
|
|
|
6735
6712
|
async: true,
|
|
6736
6713
|
items,
|
|
6737
6714
|
message: message$1,
|
|
6738
|
-
get "~standard"() {
|
|
6739
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6740
|
-
},
|
|
6741
6715
|
async "~run"(dataset, config$1) {
|
|
6742
6716
|
const input = dataset.value;
|
|
6743
6717
|
if (Array.isArray(input)) {
|
|
@@ -6777,14 +6751,14 @@ function tupleAsync(items, message$1) {
|
|
|
6777
6751
|
} else _addIssue(this, "type", dataset, config$1);
|
|
6778
6752
|
return dataset;
|
|
6779
6753
|
}
|
|
6780
|
-
};
|
|
6754
|
+
});
|
|
6781
6755
|
}
|
|
6782
6756
|
|
|
6783
6757
|
//#endregion
|
|
6784
6758
|
//#region src/schemas/tupleWithRest/tupleWithRest.ts
|
|
6785
6759
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6786
6760
|
function tupleWithRest(items, rest, message$1) {
|
|
6787
|
-
return {
|
|
6761
|
+
return _standardSchema({
|
|
6788
6762
|
kind: "schema",
|
|
6789
6763
|
type: "tuple_with_rest",
|
|
6790
6764
|
reference: tupleWithRest,
|
|
@@ -6793,9 +6767,6 @@ function tupleWithRest(items, rest, message$1) {
|
|
|
6793
6767
|
items,
|
|
6794
6768
|
rest,
|
|
6795
6769
|
message: message$1,
|
|
6796
|
-
get "~standard"() {
|
|
6797
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6798
|
-
},
|
|
6799
6770
|
"~run"(dataset, config$1) {
|
|
6800
6771
|
const input = dataset.value;
|
|
6801
6772
|
if (Array.isArray(input)) {
|
|
@@ -6854,14 +6825,14 @@ function tupleWithRest(items, rest, message$1) {
|
|
|
6854
6825
|
} else _addIssue(this, "type", dataset, config$1);
|
|
6855
6826
|
return dataset;
|
|
6856
6827
|
}
|
|
6857
|
-
};
|
|
6828
|
+
});
|
|
6858
6829
|
}
|
|
6859
6830
|
|
|
6860
6831
|
//#endregion
|
|
6861
6832
|
//#region src/schemas/tupleWithRest/tupleWithRestAsync.ts
|
|
6862
6833
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6863
6834
|
function tupleWithRestAsync(items, rest, message$1) {
|
|
6864
|
-
return {
|
|
6835
|
+
return _standardSchema({
|
|
6865
6836
|
kind: "schema",
|
|
6866
6837
|
type: "tuple_with_rest",
|
|
6867
6838
|
reference: tupleWithRestAsync,
|
|
@@ -6870,9 +6841,6 @@ function tupleWithRestAsync(items, rest, message$1) {
|
|
|
6870
6841
|
items,
|
|
6871
6842
|
rest,
|
|
6872
6843
|
message: message$1,
|
|
6873
|
-
get "~standard"() {
|
|
6874
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6875
|
-
},
|
|
6876
6844
|
async "~run"(dataset, config$1) {
|
|
6877
6845
|
const input = dataset.value;
|
|
6878
6846
|
if (Array.isArray(input)) {
|
|
@@ -6941,36 +6909,33 @@ function tupleWithRestAsync(items, rest, message$1) {
|
|
|
6941
6909
|
} else _addIssue(this, "type", dataset, config$1);
|
|
6942
6910
|
return dataset;
|
|
6943
6911
|
}
|
|
6944
|
-
};
|
|
6912
|
+
});
|
|
6945
6913
|
}
|
|
6946
6914
|
|
|
6947
6915
|
//#endregion
|
|
6948
6916
|
//#region src/schemas/undefined/undefined.ts
|
|
6949
6917
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6950
6918
|
function undefined_(message$1) {
|
|
6951
|
-
return {
|
|
6919
|
+
return _standardSchema({
|
|
6952
6920
|
kind: "schema",
|
|
6953
6921
|
type: "undefined",
|
|
6954
6922
|
reference: undefined_,
|
|
6955
6923
|
expects: "undefined",
|
|
6956
6924
|
async: false,
|
|
6957
6925
|
message: message$1,
|
|
6958
|
-
get "~standard"() {
|
|
6959
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6960
|
-
},
|
|
6961
6926
|
"~run"(dataset, config$1) {
|
|
6962
6927
|
if (dataset.value === void 0) dataset.typed = true;
|
|
6963
6928
|
else _addIssue(this, "type", dataset, config$1);
|
|
6964
6929
|
return dataset;
|
|
6965
6930
|
}
|
|
6966
|
-
};
|
|
6931
|
+
});
|
|
6967
6932
|
}
|
|
6968
6933
|
|
|
6969
6934
|
//#endregion
|
|
6970
6935
|
//#region src/schemas/undefinedable/undefinedable.ts
|
|
6971
6936
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6972
6937
|
function undefinedable(wrapped, default_) {
|
|
6973
|
-
return {
|
|
6938
|
+
return _standardSchema({
|
|
6974
6939
|
kind: "schema",
|
|
6975
6940
|
type: "undefinedable",
|
|
6976
6941
|
reference: undefinedable,
|
|
@@ -6978,9 +6943,6 @@ function undefinedable(wrapped, default_) {
|
|
|
6978
6943
|
async: false,
|
|
6979
6944
|
wrapped,
|
|
6980
6945
|
default: default_,
|
|
6981
|
-
get "~standard"() {
|
|
6982
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
6983
|
-
},
|
|
6984
6946
|
"~run"(dataset, config$1) {
|
|
6985
6947
|
if (dataset.value === void 0) {
|
|
6986
6948
|
if (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);
|
|
@@ -6991,14 +6953,14 @@ function undefinedable(wrapped, default_) {
|
|
|
6991
6953
|
}
|
|
6992
6954
|
return this.wrapped["~run"](dataset, config$1);
|
|
6993
6955
|
}
|
|
6994
|
-
};
|
|
6956
|
+
});
|
|
6995
6957
|
}
|
|
6996
6958
|
|
|
6997
6959
|
//#endregion
|
|
6998
6960
|
//#region src/schemas/undefinedable/undefinedableAsync.ts
|
|
6999
6961
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7000
6962
|
function undefinedableAsync(wrapped, default_) {
|
|
7001
|
-
return {
|
|
6963
|
+
return _standardSchema({
|
|
7002
6964
|
kind: "schema",
|
|
7003
6965
|
type: "undefinedable",
|
|
7004
6966
|
reference: undefinedableAsync,
|
|
@@ -7006,9 +6968,6 @@ function undefinedableAsync(wrapped, default_) {
|
|
|
7006
6968
|
async: true,
|
|
7007
6969
|
wrapped,
|
|
7008
6970
|
default: default_,
|
|
7009
|
-
get "~standard"() {
|
|
7010
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7011
|
-
},
|
|
7012
6971
|
async "~run"(dataset, config$1) {
|
|
7013
6972
|
if (dataset.value === void 0) {
|
|
7014
6973
|
if (this.default !== void 0) dataset.value = await /* @__PURE__ */ getDefault(this, dataset, config$1);
|
|
@@ -7019,7 +6978,7 @@ function undefinedableAsync(wrapped, default_) {
|
|
|
7019
6978
|
}
|
|
7020
6979
|
return this.wrapped["~run"](dataset, config$1);
|
|
7021
6980
|
}
|
|
7022
|
-
};
|
|
6981
|
+
});
|
|
7023
6982
|
}
|
|
7024
6983
|
|
|
7025
6984
|
//#endregion
|
|
@@ -7045,7 +7004,7 @@ function _subIssues(datasets) {
|
|
|
7045
7004
|
//#region src/schemas/union/union.ts
|
|
7046
7005
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7047
7006
|
function union(options, message$1) {
|
|
7048
|
-
return {
|
|
7007
|
+
return _standardSchema({
|
|
7049
7008
|
kind: "schema",
|
|
7050
7009
|
type: "union",
|
|
7051
7010
|
reference: union,
|
|
@@ -7053,9 +7012,6 @@ function union(options, message$1) {
|
|
|
7053
7012
|
async: false,
|
|
7054
7013
|
options,
|
|
7055
7014
|
message: message$1,
|
|
7056
|
-
get "~standard"() {
|
|
7057
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7058
|
-
},
|
|
7059
7015
|
"~run"(dataset, config$1) {
|
|
7060
7016
|
let validDataset;
|
|
7061
7017
|
let typedDatasets;
|
|
@@ -7080,14 +7036,14 @@ function union(options, message$1) {
|
|
|
7080
7036
|
else _addIssue(this, "type", dataset, config$1, { issues: /* @__PURE__ */ _subIssues(untypedDatasets) });
|
|
7081
7037
|
return dataset;
|
|
7082
7038
|
}
|
|
7083
|
-
};
|
|
7039
|
+
});
|
|
7084
7040
|
}
|
|
7085
7041
|
|
|
7086
7042
|
//#endregion
|
|
7087
7043
|
//#region src/schemas/union/unionAsync.ts
|
|
7088
7044
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7089
7045
|
function unionAsync(options, message$1) {
|
|
7090
|
-
return {
|
|
7046
|
+
return _standardSchema({
|
|
7091
7047
|
kind: "schema",
|
|
7092
7048
|
type: "union",
|
|
7093
7049
|
reference: unionAsync,
|
|
@@ -7095,9 +7051,6 @@ function unionAsync(options, message$1) {
|
|
|
7095
7051
|
async: true,
|
|
7096
7052
|
options,
|
|
7097
7053
|
message: message$1,
|
|
7098
|
-
get "~standard"() {
|
|
7099
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7100
|
-
},
|
|
7101
7054
|
async "~run"(dataset, config$1) {
|
|
7102
7055
|
let validDataset;
|
|
7103
7056
|
let typedDatasets;
|
|
@@ -7122,7 +7075,7 @@ function unionAsync(options, message$1) {
|
|
|
7122
7075
|
else _addIssue(this, "type", dataset, config$1, { issues: /* @__PURE__ */ _subIssues(untypedDatasets) });
|
|
7123
7076
|
return dataset;
|
|
7124
7077
|
}
|
|
7125
|
-
};
|
|
7078
|
+
});
|
|
7126
7079
|
}
|
|
7127
7080
|
|
|
7128
7081
|
//#endregion
|
|
@@ -7134,27 +7087,24 @@ function unionAsync(options, message$1) {
|
|
|
7134
7087
|
*/
|
|
7135
7088
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7136
7089
|
function unknown() {
|
|
7137
|
-
return {
|
|
7090
|
+
return _standardSchema({
|
|
7138
7091
|
kind: "schema",
|
|
7139
7092
|
type: "unknown",
|
|
7140
7093
|
reference: unknown,
|
|
7141
7094
|
expects: "unknown",
|
|
7142
7095
|
async: false,
|
|
7143
|
-
get "~standard"() {
|
|
7144
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7145
|
-
},
|
|
7146
7096
|
"~run"(dataset) {
|
|
7147
7097
|
dataset.typed = true;
|
|
7148
7098
|
return dataset;
|
|
7149
7099
|
}
|
|
7150
|
-
};
|
|
7100
|
+
});
|
|
7151
7101
|
}
|
|
7152
7102
|
|
|
7153
7103
|
//#endregion
|
|
7154
7104
|
//#region src/schemas/variant/variant.ts
|
|
7155
7105
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7156
7106
|
function variant(key, options, message$1) {
|
|
7157
|
-
return {
|
|
7107
|
+
return _standardSchema({
|
|
7158
7108
|
kind: "schema",
|
|
7159
7109
|
type: "variant",
|
|
7160
7110
|
reference: variant,
|
|
@@ -7163,9 +7113,6 @@ function variant(key, options, message$1) {
|
|
|
7163
7113
|
key,
|
|
7164
7114
|
options,
|
|
7165
7115
|
message: message$1,
|
|
7166
|
-
get "~standard"() {
|
|
7167
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7168
|
-
},
|
|
7169
7116
|
"~run"(dataset, config$1) {
|
|
7170
7117
|
const input = dataset.value;
|
|
7171
7118
|
if (input && typeof input === "object") {
|
|
@@ -7220,14 +7167,14 @@ function variant(key, options, message$1) {
|
|
|
7220
7167
|
} else _addIssue(this, "type", dataset, config$1);
|
|
7221
7168
|
return dataset;
|
|
7222
7169
|
}
|
|
7223
|
-
};
|
|
7170
|
+
});
|
|
7224
7171
|
}
|
|
7225
7172
|
|
|
7226
7173
|
//#endregion
|
|
7227
7174
|
//#region src/schemas/variant/variantAsync.ts
|
|
7228
7175
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7229
7176
|
function variantAsync(key, options, message$1) {
|
|
7230
|
-
return {
|
|
7177
|
+
return _standardSchema({
|
|
7231
7178
|
kind: "schema",
|
|
7232
7179
|
type: "variant",
|
|
7233
7180
|
reference: variantAsync,
|
|
@@ -7236,9 +7183,6 @@ function variantAsync(key, options, message$1) {
|
|
|
7236
7183
|
key,
|
|
7237
7184
|
options,
|
|
7238
7185
|
message: message$1,
|
|
7239
|
-
get "~standard"() {
|
|
7240
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7241
|
-
},
|
|
7242
7186
|
async "~run"(dataset, config$1) {
|
|
7243
7187
|
const input = dataset.value;
|
|
7244
7188
|
if (input && typeof input === "object") {
|
|
@@ -7293,29 +7237,26 @@ function variantAsync(key, options, message$1) {
|
|
|
7293
7237
|
} else _addIssue(this, "type", dataset, config$1);
|
|
7294
7238
|
return dataset;
|
|
7295
7239
|
}
|
|
7296
|
-
};
|
|
7240
|
+
});
|
|
7297
7241
|
}
|
|
7298
7242
|
|
|
7299
7243
|
//#endregion
|
|
7300
7244
|
//#region src/schemas/void/void.ts
|
|
7301
7245
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7302
7246
|
function void_(message$1) {
|
|
7303
|
-
return {
|
|
7247
|
+
return _standardSchema({
|
|
7304
7248
|
kind: "schema",
|
|
7305
7249
|
type: "void",
|
|
7306
7250
|
reference: void_,
|
|
7307
7251
|
expects: "void",
|
|
7308
7252
|
async: false,
|
|
7309
7253
|
message: message$1,
|
|
7310
|
-
get "~standard"() {
|
|
7311
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7312
|
-
},
|
|
7313
7254
|
"~run"(dataset, config$1) {
|
|
7314
7255
|
if (dataset.value === void 0) dataset.typed = true;
|
|
7315
7256
|
else _addIssue(this, "type", dataset, config$1);
|
|
7316
7257
|
return dataset;
|
|
7317
7258
|
}
|
|
7318
|
-
};
|
|
7259
|
+
});
|
|
7319
7260
|
}
|
|
7320
7261
|
|
|
7321
7262
|
//#endregion
|
|
@@ -7337,18 +7278,15 @@ function keyof(schema, message$1) {
|
|
|
7337
7278
|
*/
|
|
7338
7279
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7339
7280
|
function message(schema, message_) {
|
|
7340
|
-
return {
|
|
7281
|
+
return _standardSchema({
|
|
7341
7282
|
...schema,
|
|
7342
|
-
get "~standard"() {
|
|
7343
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7344
|
-
},
|
|
7345
7283
|
"~run"(dataset, config$1) {
|
|
7346
7284
|
return schema["~run"](dataset, {
|
|
7347
7285
|
...config$1,
|
|
7348
7286
|
message: message_
|
|
7349
7287
|
});
|
|
7350
7288
|
}
|
|
7351
|
-
};
|
|
7289
|
+
});
|
|
7352
7290
|
}
|
|
7353
7291
|
|
|
7354
7292
|
//#endregion
|
|
@@ -7366,13 +7304,10 @@ function message(schema, message_) {
|
|
|
7366
7304
|
function omit(schema, keys) {
|
|
7367
7305
|
const entries$1 = { ...schema.entries };
|
|
7368
7306
|
for (const key of keys) delete entries$1[key];
|
|
7369
|
-
return {
|
|
7307
|
+
return _standardSchema({
|
|
7370
7308
|
...schema,
|
|
7371
|
-
entries: entries$1
|
|
7372
|
-
|
|
7373
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7374
|
-
}
|
|
7375
|
-
};
|
|
7309
|
+
entries: entries$1
|
|
7310
|
+
});
|
|
7376
7311
|
}
|
|
7377
7312
|
|
|
7378
7313
|
//#endregion
|
|
@@ -7435,13 +7370,10 @@ function parserAsync(schema, config$1) {
|
|
|
7435
7370
|
function partial(schema, keys) {
|
|
7436
7371
|
const entries$1 = {};
|
|
7437
7372
|
for (const key in schema.entries) entries$1[key] = !keys || keys.includes(key) ? /* @__PURE__ */ optional(schema.entries[key]) : schema.entries[key];
|
|
7438
|
-
return {
|
|
7373
|
+
return _standardSchema({
|
|
7439
7374
|
...schema,
|
|
7440
|
-
entries: entries$1
|
|
7441
|
-
|
|
7442
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7443
|
-
}
|
|
7444
|
-
};
|
|
7375
|
+
entries: entries$1
|
|
7376
|
+
});
|
|
7445
7377
|
}
|
|
7446
7378
|
|
|
7447
7379
|
//#endregion
|
|
@@ -7450,13 +7382,10 @@ function partial(schema, keys) {
|
|
|
7450
7382
|
function partialAsync(schema, keys) {
|
|
7451
7383
|
const entries$1 = {};
|
|
7452
7384
|
for (const key in schema.entries) entries$1[key] = !keys || keys.includes(key) ? /* @__PURE__ */ optionalAsync(schema.entries[key]) : schema.entries[key];
|
|
7453
|
-
return {
|
|
7385
|
+
return _standardSchema({
|
|
7454
7386
|
...schema,
|
|
7455
|
-
entries: entries$1
|
|
7456
|
-
|
|
7457
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7458
|
-
}
|
|
7459
|
-
};
|
|
7387
|
+
entries: entries$1
|
|
7388
|
+
});
|
|
7460
7389
|
}
|
|
7461
7390
|
|
|
7462
7391
|
//#endregion
|
|
@@ -7474,25 +7403,19 @@ function partialAsync(schema, keys) {
|
|
|
7474
7403
|
function pick(schema, keys) {
|
|
7475
7404
|
const entries$1 = {};
|
|
7476
7405
|
for (const key of keys) entries$1[key] = schema.entries[key];
|
|
7477
|
-
return {
|
|
7406
|
+
return _standardSchema({
|
|
7478
7407
|
...schema,
|
|
7479
|
-
entries: entries$1
|
|
7480
|
-
|
|
7481
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7482
|
-
}
|
|
7483
|
-
};
|
|
7408
|
+
entries: entries$1
|
|
7409
|
+
});
|
|
7484
7410
|
}
|
|
7485
7411
|
|
|
7486
7412
|
//#endregion
|
|
7487
7413
|
//#region src/methods/pipe/pipe.ts
|
|
7488
7414
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7489
7415
|
function pipe(...pipe$1) {
|
|
7490
|
-
return {
|
|
7416
|
+
return _standardSchema({
|
|
7491
7417
|
...pipe$1[0],
|
|
7492
7418
|
pipe: pipe$1,
|
|
7493
|
-
get "~standard"() {
|
|
7494
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7495
|
-
},
|
|
7496
7419
|
"~run"(dataset, config$1) {
|
|
7497
7420
|
for (const item of pipe$1) if (item.kind !== "metadata") {
|
|
7498
7421
|
if (dataset.issues && (item.kind === "schema" || item.kind === "transformation")) {
|
|
@@ -7503,20 +7426,17 @@ function pipe(...pipe$1) {
|
|
|
7503
7426
|
}
|
|
7504
7427
|
return dataset;
|
|
7505
7428
|
}
|
|
7506
|
-
};
|
|
7429
|
+
});
|
|
7507
7430
|
}
|
|
7508
7431
|
|
|
7509
7432
|
//#endregion
|
|
7510
7433
|
//#region src/methods/pipe/pipeAsync.ts
|
|
7511
7434
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7512
7435
|
function pipeAsync(...pipe$1) {
|
|
7513
|
-
return {
|
|
7436
|
+
return _standardSchema({
|
|
7514
7437
|
...pipe$1[0],
|
|
7515
7438
|
pipe: pipe$1,
|
|
7516
7439
|
async: true,
|
|
7517
|
-
get "~standard"() {
|
|
7518
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7519
|
-
},
|
|
7520
7440
|
async "~run"(dataset, config$1) {
|
|
7521
7441
|
for (const item of pipe$1) if (item.kind !== "metadata") {
|
|
7522
7442
|
if (dataset.issues && (item.kind === "schema" || item.kind === "transformation")) {
|
|
@@ -7527,7 +7447,7 @@ function pipeAsync(...pipe$1) {
|
|
|
7527
7447
|
}
|
|
7528
7448
|
return dataset;
|
|
7529
7449
|
}
|
|
7530
|
-
};
|
|
7450
|
+
});
|
|
7531
7451
|
}
|
|
7532
7452
|
|
|
7533
7453
|
//#endregion
|
|
@@ -7538,13 +7458,10 @@ function required(schema, arg2, arg3) {
|
|
|
7538
7458
|
const message$1 = Array.isArray(arg2) ? arg3 : arg2;
|
|
7539
7459
|
const entries$1 = {};
|
|
7540
7460
|
for (const key in schema.entries) entries$1[key] = !keys || keys.includes(key) ? /* @__PURE__ */ nonOptional(schema.entries[key], message$1) : schema.entries[key];
|
|
7541
|
-
return {
|
|
7461
|
+
return _standardSchema({
|
|
7542
7462
|
...schema,
|
|
7543
|
-
entries: entries$1
|
|
7544
|
-
|
|
7545
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7546
|
-
}
|
|
7547
|
-
};
|
|
7463
|
+
entries: entries$1
|
|
7464
|
+
});
|
|
7548
7465
|
}
|
|
7549
7466
|
|
|
7550
7467
|
//#endregion
|
|
@@ -7555,13 +7472,10 @@ function requiredAsync(schema, arg2, arg3) {
|
|
|
7555
7472
|
const message$1 = Array.isArray(arg2) ? arg3 : arg2;
|
|
7556
7473
|
const entries$1 = {};
|
|
7557
7474
|
for (const key in schema.entries) entries$1[key] = !keys || keys.includes(key) ? /* @__PURE__ */ nonOptionalAsync(schema.entries[key], message$1) : schema.entries[key];
|
|
7558
|
-
return {
|
|
7475
|
+
return _standardSchema({
|
|
7559
7476
|
...schema,
|
|
7560
|
-
entries: entries$1
|
|
7561
|
-
|
|
7562
|
-
return /* @__PURE__ */ _getStandardProps(this);
|
|
7563
|
-
}
|
|
7564
|
-
};
|
|
7477
|
+
entries: entries$1
|
|
7478
|
+
});
|
|
7565
7479
|
}
|
|
7566
7480
|
|
|
7567
7481
|
//#endregion
|
|
@@ -7665,4 +7579,4 @@ function unwrap(schema) {
|
|
|
7665
7579
|
return schema.wrapped;
|
|
7666
7580
|
}
|
|
7667
7581
|
|
|
7668
|
-
export { BASE64_REGEX, BIC_REGEX, CUID2_REGEX, DECIMAL_REGEX, DIGITS_REGEX, DOMAIN_REGEX, EMAIL_REGEX, EMOJI_REGEX, HEXADECIMAL_REGEX, HEX_COLOR_REGEX, IMEI_REGEX, IPV4_REGEX, IPV6_REGEX, IP_REGEX, ISO_DATE_REGEX, ISO_DATE_TIME_REGEX, ISO_DATE_TIME_SECOND_REGEX, ISO_TIMESTAMP_REGEX, ISO_TIME_REGEX, ISO_TIME_SECOND_REGEX, ISO_WEEK_REGEX, ISRC_REGEX, JWS_COMPACT_REGEX, MAC48_REGEX, MAC64_REGEX, MAC_REGEX, NANO_ID_REGEX, OCTAL_REGEX, RFC_EMAIL_REGEX, SLUG_REGEX, ULID_REGEX, UUID_REGEX, ValiError, _addIssue, _cloneDataset, _formatCase, _getByteCount, _getGraphemeCount, _getLastMetadata,
|
|
7582
|
+
export { BASE64_REGEX, BIC_REGEX, CUID2_REGEX, DECIMAL_REGEX, DIGITS_REGEX, DOMAIN_REGEX, EMAIL_REGEX, EMOJI_REGEX, HEXADECIMAL_REGEX, HEX_COLOR_REGEX, IMEI_REGEX, IPV4_REGEX, IPV6_REGEX, IP_REGEX, ISO_DATE_REGEX, ISO_DATE_TIME_REGEX, ISO_DATE_TIME_SECOND_REGEX, ISO_TIMESTAMP_REGEX, ISO_TIME_REGEX, ISO_TIME_SECOND_REGEX, ISO_WEEK_REGEX, ISRC_REGEX, JWS_COMPACT_REGEX, KSUID_REGEX, MAC48_REGEX, MAC64_REGEX, MAC_REGEX, NANO_ID_REGEX, OCTAL_REGEX, RFC_EMAIL_REGEX, SLUG_REGEX, ULID_REGEX, UUID_REGEX, ValiError, _addIssue, _cloneDataset, _formatCase, _getByteCount, _getCodePointCount, _getGraphemeCount, _getLastMetadata, _getWordCount, _isLuhnAlgo, _isSameValueZero, _isValidObjectKey, _isValueMatch, _joinExpects, _standardSchema, _stringify, any, args, argsAsync, array, arrayAsync, assert, awaitAsync, base64, bic, bigint, blob, boolean, brand, bytes, cache, cacheAsync, check, checkAsync, checkItems, checkItemsAsync, codePoints, config, creditCard, cuid2, custom, customAsync, date, decimal, deleteGlobalConfig, deleteGlobalMessage, deleteSchemaMessage, deleteSpecificMessage, description, digits, domain, email, emoji, empty, endsWith, entries, entriesFromList, entriesFromObjects, enum_ as enum, enum_, everyItem, exactOptional, exactOptionalAsync, examples, excludes, fallback, fallbackAsync, file, filterItems, findItem, finite, flatten, flavor, forward, forwardAsync, function_ as function, function_, getDefault, getDefaults, getDefaultsAsync, getDescription, getDotPath, getExamples, getFallback, getFallbacks, getFallbacksAsync, getGlobalConfig, getGlobalMessage, getMetadata, getSchemaMessage, getSpecificMessage, getTitle, graphemes, gtValue, guard, hash, hexColor, hexadecimal, imei, includes, instance, integer, intersect, intersectAsync, ip, ipv4, ipv6, is, isOfKind, isOfType, isValiError, isbn, isoDate, isoDateTime, isoDateTimeSecond, isoTime, isoTimeSecond, isoTimestamp, isoWeek, isrc, jwsCompact, keyof, ksuid, lazy, lazyAsync, length, literal, looseObject, looseObjectAsync, looseTuple, looseTupleAsync, ltValue, mac, mac48, mac64, map, mapAsync, mapItems, maxBytes, maxCodePoints, maxEntries, maxGraphemes, maxLength, maxSize, maxValue, maxWords, message, metadata, mimeType, minBytes, minCodePoints, minEntries, minGraphemes, minLength, minSize, minValue, minWords, multipleOf, nan, nanoid, never, nonEmpty, nonNullable, nonNullableAsync, nonNullish, nonNullishAsync, nonOptional, nonOptionalAsync, normalize, notBytes, notCodePoints, notEntries, notGraphemes, notLength, notSize, notValue, notValues, notWords, null_ as null, null_, nullable, nullableAsync, nullish, nullishAsync, number, object, objectAsync, objectWithRest, objectWithRestAsync, octal, omit, optional, optionalAsync, parse, parseAsync, parseBoolean, parseJson, parser, parserAsync, partial, partialAsync, partialCheck, partialCheckAsync, pick, picklist, pipe, pipeAsync, promise, rawCheck, rawCheckAsync, rawTransform, rawTransformAsync, readonly, record, recordAsync, reduceItems, regex, required, requiredAsync, returns, returnsAsync, rfcEmail, safeInteger, safeParse, safeParseAsync, safeParser, safeParserAsync, set, setAsync, setGlobalConfig, setGlobalMessage, setSchemaMessage, setSpecificMessage, size, slug, someItem, sortItems, startsWith, strictObject, strictObjectAsync, strictTuple, strictTupleAsync, string, stringifyJson, summarize, symbol, title, toBigint, toBoolean, toCamelCase, toDate, toKebabCase, toLowerCase, toMaxValue, toMinValue, toNumber, toPascalCase, toSnakeCase, toString, toUpperCase, transform, transformAsync, trim, trimEnd, trimStart, tuple, tupleAsync, tupleWithRest, tupleWithRestAsync, ulid, undefined_ as undefined, undefined_, undefinedable, undefinedableAsync, union, unionAsync, unknown, unwrap, url, uuid, value, values, variant, variantAsync, void_ as void, void_, words };
|