arktype 3.0.0-rc.2 → 3.0.0-rc.4
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/out/_internal/schema/runtime.d.ts +1 -0
- package/out/_internal/schema/shared/errorReaders.d.ts +28 -0
- package/out/_internal/schema/shared/errors.d.ts +1 -17
- package/out/_internal/util/registry.d.ts +1 -1
- package/out/{chunk-Y2TFSHFX.js → chunk-26Q54DLB.js} +1 -1
- package/out/{chunk-7Z2PAVYM.js → chunk-2CTZEGD2.js} +2 -2
- package/out/{chunk-EKGIGICV.js → chunk-2ZLGZFMR.js} +1 -1
- package/out/{chunk-VAINYPPF.js → chunk-45TLVTHM.js} +8 -3
- package/out/{chunk-OYXE5CE5.js → chunk-5FMUN4UX.js} +3 -3
- package/out/{chunk-LTN7VXMY.js → chunk-7WE6VANM.js} +1 -1
- package/out/{chunk-5PRGHK54.js → chunk-ADLJDWDI.js} +2 -2
- package/out/{chunk-KJZZKC2H.js → chunk-AHXBL3IH.js} +1 -1
- package/out/{chunk-S6DRXKT4.js → chunk-AK2LKC6C.js} +3 -3
- package/out/{chunk-4HAPNBDR.js → chunk-BGUHS6JL.js} +2 -2
- package/out/{chunk-XYY247DI.js → chunk-CRZREJ4G.js} +2 -2
- package/out/{chunk-MBNIYKKT.js → chunk-D4LE34UY.js} +2 -53
- package/out/{chunk-V6DOZAY6.js → chunk-DHHFHTCR.js} +26 -16
- package/out/{chunk-VP4BXXZ3.js → chunk-EQMTLVCQ.js} +5 -5
- package/out/{chunk-3KBOPH3J.js → chunk-GU3X7OIZ.js} +55 -1
- package/out/{chunk-DHYWNLY2.js → chunk-IL34UI7W.js} +2 -2
- package/out/{chunk-27A5YUWC.js → chunk-J7NBKIKH.js} +1 -1
- package/out/{chunk-XGHWKRD2.js → chunk-J7QORHIL.js} +3 -3
- package/out/{chunk-IPRMNVLB.js → chunk-KCMI6RWS.js} +15 -15
- package/out/{chunk-ZWHHA52N.js → chunk-KSJQV74J.js} +3 -3
- package/out/{chunk-4FZ7IGD5.js → chunk-PGCPLG3X.js} +3 -3
- package/out/{chunk-Q66VX6I4.js → chunk-QV545A7L.js} +3 -3
- package/out/{chunk-BNRMJNNR.js → chunk-SKBFK3NY.js} +5 -5
- package/out/{chunk-YX63Q6AT.js → chunk-U73QHTHA.js} +3 -3
- package/out/{chunk-TEE6JS3X.js → chunk-WNFWNDER.js} +6 -6
- package/out/codecs.js +12 -12
- package/out/config.js +6 -6
- package/out/errors.js +7 -7
- package/out/i18n.js +4 -4
- package/out/index.js +12 -12
- package/out/internal.js +25 -25
- package/out/island.js +13 -13
- package/out/islandDependency.js +26 -26
- package/out/keywords/ts.js +8 -8
- package/out/locales/de.js +5 -5
- package/out/locales/en.js +10 -10
- package/out/mutatesInput.js +9 -9
- package/out/precompiled.js +7 -7
- package/out/runtime.d.ts +4 -2
- package/out/runtime.js +1 -1
- package/out/schema.js +7 -7
- package/out/schemaInternal.js +17 -17
- package/out/schemaRuntime.js +2 -2
- package/out/schemaRuntimeLean.js +87 -0
- package/out/schemaRuntimeNone.js +87 -0
- package/out/schemaRuntimeNoneLean.js +87 -0
- package/out/util.js +1 -1
- package/package.json +4 -4
- package/skills/arktype/references/precompile.md +25 -25
- /package/out/{chunk-46PLKNON.js → chunk-BMIVLSDP.js} +0 -0
package/out/keywords/ts.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { RecordHkt, arkTsGenerics, arkTsKeywords, json, object, tsGenericDefinitions, tsKeywordDefinitions, unknown, writeUnresolvedFilterMessage } from "../chunk-
|
|
1
|
+
export { RecordHkt, arkTsGenerics, arkTsKeywords, json, object, tsGenericDefinitions, tsKeywordDefinitions, unknown, writeUnresolvedFilterMessage } from "../chunk-EQMTLVCQ.js";
|
|
2
2
|
import "../chunk-4FTHWK63.js";
|
|
3
3
|
import "../chunk-BDJVONP7.js";
|
|
4
4
|
import "../chunk-4HREHNIV.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-WNFWNDER.js";
|
|
6
6
|
import "../chunk-CWSF57VM.js";
|
|
7
7
|
import "../chunk-UJJGG4VQ.js";
|
|
8
8
|
import "../chunk-US6BWOGJ.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-KSJQV74J.js";
|
|
10
10
|
import "../chunk-W2XOI5DY.js";
|
|
11
11
|
import "../chunk-TACLEIDM.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-PGCPLG3X.js";
|
|
13
|
+
import "../chunk-ADLJDWDI.js";
|
|
14
|
+
import "../chunk-D4LE34UY.js";
|
|
15
|
+
import "../chunk-GU3X7OIZ.js";
|
|
16
|
+
import "../chunk-J7NBKIKH.js";
|
|
17
17
|
import "../chunk-3SH2BQ4T.js";
|
|
18
18
|
import "../chunk-3HZC67MT.js";
|
|
19
19
|
import "../chunk-I2KLQ2HA.js";
|
package/out/locales/de.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { de } from "../chunk-
|
|
1
|
+
export { de } from "../chunk-BGUHS6JL.js";
|
|
2
2
|
import "../chunk-XLG66ZDF.js";
|
|
3
|
-
import "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
import "../chunk-2CTZEGD2.js";
|
|
4
|
+
import "../chunk-D4LE34UY.js";
|
|
5
|
+
import "../chunk-GU3X7OIZ.js";
|
|
6
|
+
import "../chunk-J7NBKIKH.js";
|
|
7
7
|
import "../chunk-3SH2BQ4T.js";
|
|
8
8
|
import "../chunk-3HZC67MT.js";
|
|
9
9
|
import "../chunk-I2KLQ2HA.js";
|
package/out/locales/en.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export { en } from "../chunk-
|
|
2
|
-
import "../chunk-
|
|
1
|
+
export { en } from "../chunk-AHXBL3IH.js";
|
|
2
|
+
import "../chunk-7WE6VANM.js";
|
|
3
3
|
import "../chunk-22RQSVV3.js";
|
|
4
4
|
import "../chunk-XLG66ZDF.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-2CTZEGD2.js";
|
|
6
6
|
import "../chunk-4HREHNIV.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-WNFWNDER.js";
|
|
8
8
|
import "../chunk-CWSF57VM.js";
|
|
9
9
|
import "../chunk-UJJGG4VQ.js";
|
|
10
10
|
import "../chunk-US6BWOGJ.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-KSJQV74J.js";
|
|
12
12
|
import "../chunk-W2XOI5DY.js";
|
|
13
13
|
import "../chunk-TACLEIDM.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-PGCPLG3X.js";
|
|
15
|
+
import "../chunk-ADLJDWDI.js";
|
|
16
|
+
import "../chunk-D4LE34UY.js";
|
|
17
|
+
import "../chunk-GU3X7OIZ.js";
|
|
18
|
+
import "../chunk-J7NBKIKH.js";
|
|
19
19
|
import "../chunk-3SH2BQ4T.js";
|
|
20
20
|
import "../chunk-3HZC67MT.js";
|
|
21
21
|
import "../chunk-I2KLQ2HA.js";
|
package/out/mutatesInput.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "./chunk-
|
|
2
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-IL34UI7W.js";
|
|
2
|
+
import "./chunk-QV545A7L.js";
|
|
3
3
|
import "./chunk-4HREHNIV.js";
|
|
4
|
-
import "./chunk-
|
|
4
|
+
import "./chunk-WNFWNDER.js";
|
|
5
5
|
import "./chunk-CWSF57VM.js";
|
|
6
6
|
import "./chunk-UJJGG4VQ.js";
|
|
7
7
|
import "./chunk-US6BWOGJ.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-KSJQV74J.js";
|
|
9
9
|
import "./chunk-W2XOI5DY.js";
|
|
10
10
|
import "./chunk-TACLEIDM.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-PGCPLG3X.js";
|
|
12
|
+
import "./chunk-ADLJDWDI.js";
|
|
13
|
+
import "./chunk-D4LE34UY.js";
|
|
14
|
+
import "./chunk-GU3X7OIZ.js";
|
|
15
|
+
import "./chunk-J7NBKIKH.js";
|
|
16
16
|
import "./chunk-3SH2BQ4T.js";
|
|
17
17
|
import "./chunk-3HZC67MT.js";
|
|
18
18
|
import "./chunk-I2KLQ2HA.js";
|
package/out/precompiled.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "./chunk-LHNEY6QW.js";
|
|
2
|
-
export { registerPrecompiledUnits } from "./chunk-
|
|
2
|
+
export { registerPrecompiledUnits } from "./chunk-WNFWNDER.js";
|
|
3
3
|
import "./chunk-CWSF57VM.js";
|
|
4
4
|
import "./chunk-UJJGG4VQ.js";
|
|
5
5
|
import "./chunk-US6BWOGJ.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-KSJQV74J.js";
|
|
7
7
|
import "./chunk-W2XOI5DY.js";
|
|
8
8
|
import "./chunk-TACLEIDM.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-PGCPLG3X.js";
|
|
10
|
+
import "./chunk-ADLJDWDI.js";
|
|
11
|
+
import "./chunk-D4LE34UY.js";
|
|
12
|
+
import "./chunk-GU3X7OIZ.js";
|
|
13
|
+
import "./chunk-J7NBKIKH.js";
|
|
14
14
|
import "./chunk-3SH2BQ4T.js";
|
|
15
15
|
import "./chunk-3HZC67MT.js";
|
|
16
16
|
import "./chunk-I2KLQ2HA.js";
|
package/out/runtime.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ArkEnv, JsonSchema, RootApply, StandardJSONSchemaV1, StandardSchemaV1, ToJsonSchema } from "./_internal/schema/index.js";
|
|
2
2
|
import { ArkErrors, type ArkErrorCode, type ArkIssue, type CompactApply, type ContextualTarget, type UnionIssueOf, type FailHandler, type FailureContext, type FailureSite, type InternalTraversal, type IssuesClass, type SiteContext, type Traversal } from "./_internal/schema/runtime.js";
|
|
3
3
|
import { type Fn, type inferred, type JsonStructure } from "./_internal/util/index.js";
|
|
4
|
+
import type { regex as arkregex } from "./_internal/regex/index.js";
|
|
4
5
|
import { InternalTypedFn } from "./fn.ts";
|
|
5
6
|
import type { introspectionMembers } from "./standalone.ts";
|
|
6
7
|
import type { ArrayType } from "./variants/array.ts";
|
|
@@ -8,8 +9,9 @@ import type { DateType } from "./variants/date.ts";
|
|
|
8
9
|
import type { NumberType } from "./variants/number.ts";
|
|
9
10
|
import type { ObjectType } from "./variants/object.ts";
|
|
10
11
|
import type { StringType } from "./variants/string.ts";
|
|
11
|
-
export { addErrors, addMorphErrs, aliasVisits, allowsAcyclic, allowsInBranch, allowsInBranchBy, allowsInContext, allowsUntracked, appliesValues, applyCyclic, applyIssues, applyRejected, ArkErrors, arrayIndexMatcher, callMorph, codedIssue, computeDefaultValueMorph, configure, configuredFallbackOf, configuredWriterOf, copyDeclared, copyOf, alikeIssue, describeCollapsibleDate, describePredicate, disallowed, discriminatesBooleans, enInfo, enterApplied, enterResolution, execMorph, exitResolution, exitApplied, failsInBranches, failsKey, failsKeySite, failsSite, FirstIssues, FirstIssueTraversal, fixConfig, foundErrors, fixConfigured, holdsOnlyIndices, keepOwn, InternalTraversal, listedIssue, matchesRepeated, mergeTransformed, missingTextOf, pipe, pipeApplied, pipeChecked, pipeTransformed, printKind, rejected, rejects, runtimeConfig, runtimeScope, silentCtx, throwIssues, throwOnDefault, TransformErrors, transformed, transformedInApply, transformIfAllowed, transformResolution, transformsBranches, transformsValid, Traversal, TraversalError, tryMorph, withContextOf, writeDomainActual, writeLengthActual, writeMessage, writeNotEqualActual, writeProtoActual, writeNullableJsonSchema, writeUnionJsonSchema, writeUnitActual, writeUnitMessage, type ArkError } from "./_internal/schema/runtime.js";
|
|
12
|
+
export { addErrors, addMorphErrs, aliasVisits, allowsAcyclic, allowsInBranch, allowsInBranchBy, allowsInContext, allowsUntracked, appliesValues, applyCyclic, applyIssues, applyRejected, ArkErrors, arrayIndexMatcher, byAncestorPath, byPath, callMorph, codedIssue, computeDefaultValueMorph, configure, configuredFallbackOf, configuredWriterOf, copyDeclared, copyOf, alikeIssue, describeCollapsibleDate, describePredicate, disallowed, discriminatesBooleans, enInfo, enterApplied, enterResolution, execMorph, exitResolution, exitApplied, failsInBranches, failsKey, failsKeySite, failsSite, FirstIssues, FirstIssueTraversal, fixConfig, flatByPath, flatMessagesByPath, foundErrors, fixConfigured, holdsOnlyIndices, keepOwn, InternalTraversal, listedIssue, matchesRepeated, mergeTransformed, missingTextOf, pipe, pipeApplied, pipeChecked, pipeTransformed, printKind, rejected, rejects, runtimeConfig, runtimeScope, silentCtx, throwIssues, throwOnDefault, TransformErrors, transformed, transformedInApply, transformIfAllowed, transformResolution, transformsBranches, transformsValid, Traversal, TraversalError, tryMorph, withContextOf, writeDomainActual, writeLengthActual, writeMessage, writeNotEqualActual, writeProtoActual, writeNullableJsonSchema, writeUnionJsonSchema, writeUnitActual, writeUnitMessage, type ArkError } from "./_internal/schema/runtime.js";
|
|
12
13
|
export { baseNameOf, functionNameOf, isIpv4, isIpv6, isIso8601, isNumericString, isPlainObjectOrArray, isUuid, isValidDate, isWellFormedInteger, jsTypeOfDescriptions, liftArray, ParseError, printable, throwParseError, timeOf } from "./_internal/util/index.js";
|
|
14
|
+
export declare const regex: typeof arkregex;
|
|
13
15
|
export * from "./checkers.ts";
|
|
14
16
|
export * from "./keywords/functions.ts";
|
|
15
17
|
export interface ValidatorAttributes {
|
|
@@ -22,7 +24,7 @@ export interface ValidatorAttributes {
|
|
|
22
24
|
"~standard"?: Pick<StandardJSONSchemaV1.Props, "jsonSchema">;
|
|
23
25
|
}
|
|
24
26
|
export type IntrospectionMember = (typeof introspectionMembers)[number];
|
|
25
|
-
export declare const
|
|
27
|
+
export declare const precompiledForArktype_3_0_0_rc_4 = true;
|
|
26
28
|
export declare const assign: {
|
|
27
29
|
<T extends {}, U>(target: T, source: U): T & U;
|
|
28
30
|
<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
|
package/out/runtime.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ArkErrors, FirstIssueTraversal, FirstIssues, InternalTraversal, InvalidErrors, TransformErrors, Traversal, TraversalError, Validator, addErrors, addMorphErrs, aliasVisits, aliasedMember, aliasedValue, alikeIssue, allowsAcyclic, allowsInBranch, allowsInBranchBy, allowsInContext, allowsOf, allowsReadingCtx, allowsUntracked, appliesValues, applyCallErrors, applyCyclic, applyElements, applyErrors, applyIssues, applyNodeErrors, applyRejected, arrayCheck, arrayIndexMatcher, arrayOf, assign, bakeInto, bakedJsonSchema, bakedJsonSchemaOptionsMessage, bakedStandardJsonSchema, booleanChecker, callMorph, callingDeferredRootApply, callingRootApply, canParseUrl, check, checkArity, checkDefault, checkDigest, checkFacts, checkFunction, checkHeld, checkHelper, checkIdentity, checkInput, checkProgress, checkerNode, closedProps, codeSiteOf, codedIssue, compiled, computeDefaultValueMorph, configure, configuredFallbackOf, configuredWriterOf, copyDeclared, copyOf, createValidator, createValidatorWith, ctxNode, deepFreeze, deferred, deletingProps, describeCollapsibleDate, describeDomains, describePredicate, describeShape, describeValues, digestOf, disallowed, discriminate, discriminateOr, discriminatesBooleans, divisor, domains, elementsOf, emptyMeta, enInfo, enterApplied, enterResolution, exactLength, execMorph, exitApplied, exitResolution, factOfHole, failingArrayOf, failingBranches, failingClosedProps, failingDeletingProps, failingElementsOf, failingProps, failsAt, failsAtKey, failsAtPath, failsBranches, failsIn, failsInBranches, failsKey, failsKeySite, failsKeyWith, failsListed, failsSite, failsWith, fallbackThrower, firstIssue, fixConfig, fixConfigured, foundErrors, freeze, holdHoles, holdingAlias, holdsOnlyIndices, holesOf, indexed, integerCheck, integerRange, intern, internIn, internTable, interned, internedTable, intersection, is, keepOwn, keySiteOf, lessThan, listedIssue, matchesRepeated, max, maxLength, mergeTransformed, min, minLength, missingTextOf, moreThan, morphing, narrowed, narrowedAfter, narrowedBy, narrowedByEach, narrowedInCtx, narrowedRejecting, narrowedWithCtx, nullable, nullableDescriptionOf, nullableObject, numberCheck, objectCheck, once, optional, own, ownIssue, pattern, pipe, pipeApplied, pipeChecked, pipeTransformed, piped, pipedIntoUndetailed,
|
|
1
|
+
export { ArkErrors, FirstIssueTraversal, FirstIssues, InternalTraversal, InvalidErrors, TransformErrors, Traversal, TraversalError, Validator, addErrors, addMorphErrs, aliasVisits, aliasedMember, aliasedValue, alikeIssue, allowsAcyclic, allowsInBranch, allowsInBranchBy, allowsInContext, allowsOf, allowsReadingCtx, allowsUntracked, appliesValues, applyCallErrors, applyCyclic, applyElements, applyErrors, applyIssues, applyNodeErrors, applyRejected, arrayCheck, arrayIndexMatcher, arrayOf, assign, bakeInto, bakedJsonSchema, bakedJsonSchemaOptionsMessage, bakedStandardJsonSchema, booleanChecker, byAncestorPath, byPath, callMorph, callingDeferredRootApply, callingRootApply, canParseUrl, check, checkArity, checkDefault, checkDigest, checkFacts, checkFunction, checkHeld, checkHelper, checkIdentity, checkInput, checkProgress, checkerNode, closedProps, codeSiteOf, codedIssue, compiled, computeDefaultValueMorph, configure, configuredFallbackOf, configuredWriterOf, copyDeclared, copyOf, createValidator, createValidatorWith, ctxNode, deepFreeze, deferred, deletingProps, describeCollapsibleDate, describeDomains, describePredicate, describeShape, describeValues, digestOf, disallowed, discriminate, discriminateOr, discriminatesBooleans, divisor, domains, elementsOf, emptyMeta, enInfo, enterApplied, enterResolution, exactLength, execMorph, exitApplied, exitResolution, factOfHole, failingArrayOf, failingBranches, failingClosedProps, failingDeletingProps, failingElementsOf, failingProps, failsAt, failsAtKey, failsAtPath, failsBranches, failsIn, failsInBranches, failsKey, failsKeySite, failsKeyWith, failsListed, failsSite, failsWith, fallbackThrower, firstIssue, fixConfig, fixConfigured, flatByPath, flatMessagesByPath, foundErrors, freeze, holdHoles, holdingAlias, holdsOnlyIndices, holesOf, indexed, integerCheck, integerRange, intern, internIn, internTable, interned, internedTable, intersection, is, keepOwn, keySiteOf, lessThan, listedIssue, matchesRepeated, max, maxLength, mergeTransformed, min, minLength, missingTextOf, moreThan, morphing, narrowed, narrowedAfter, narrowedBy, narrowedByEach, narrowedInCtx, narrowedRejecting, narrowedWithCtx, nullable, nullableDescriptionOf, nullableObject, numberCheck, objectCheck, once, optional, own, ownIssue, pattern, pipe, pipeApplied, pipeChecked, pipeTransformed, piped, pipedIntoUndetailed, precompiledForArktype_3_0_0_rc_4, printKind, props, raisingTraversalOf, readingCtx, readingCtxNode, receiverOf, recordOf, regex, rejected, rejecting, rejects, rejectsWith, rekeyed, replacingUndefined, replayedJsonSchema, required, requiredSiteOf, runtimeConfig, runtimeScope, saying, sayingMissing, setPrototypeOf, silentCtx, siteOf, sited, sitedProps, standardResultOf, standardValidated, stringCheck, stringRange, throwIssues, throwJsonSchemaError, throwOnDefault, throwUnbaked, transformIfAllowed, transformOf, transformResolution, transformed, transformedInApply, transformingClosedProps, transformingElementsOf, transformingNarrowedAfter, transformingProps, transformsBranches, transformsValid, tryMorph, type, typedFn, union, unit, units, unnamed, unreadCallErrors, unreadElements, unreadErrors, withContextOf, writeCreationMismatchMessage, writeDigestMismatchMessage, writeDomainActual, writeIdentityMismatchMessage, writeLengthActual, writeMessage, writeNotEqualActual, writeNullableJsonSchema, writeProtoActual, writeUnbakedMessage, writeUnionJsonSchema, writeUnitActual, writeUnitMessage, writtenBy, writtenSiteOf } from "./chunk-45TLVTHM.js";
|
|
2
2
|
import "./chunk-4FTHWK63.js";
|
|
3
3
|
export { capitalizeString, emptyCollectionDefaults, epochDescriptions, isEpochString, isJsonString, isLuhnValid, isParsableDate, isParsableUrl, isRegexPattern, keepFormatted, lowercaseString, maxEpoch, normalizationsByForm, parseDate, parseEpoch, parseFormData, parseInteger, parseIsoDate, parseJson, parseNumeric, parseUrl, parsesFinite, raisedErrorPhrases, stringifyJson, trimString, uppercaseString, writeEpoch, writeIsoDate, writeUrl } from "./chunk-4HREHNIV.js";
|
|
4
4
|
export { isIpv4, isIpv6, isIso8601, isUuid } from "./chunk-US6BWOGJ.js";
|
package/out/schema.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { After, AfterNode, Alias, AliasNode, BaseConstraint, BaseNode, BaseProp, BaseRange, BaseRoot, BaseScope, Before, BeforeNode, Disjoint, Divisor, DivisorNode, Domain, DomainNode, ExactLength, ExactLengthNode, GenericRoot, Index, IndexNode, InternalPrimitiveConstraint, Intersection, IntersectionNode, LazyGenericBody, LazyGenericRoot, Max, MaxLength, MaxLengthNode, MaxNode, Min, MinLength, MinLengthNode, MinNode, Morph, MorphNode, NotEqual, NotEqualLength, NotEqualLengthNode, NotEqualNode, Optional, OptionalNode, Pattern, PatternNode, Predicate, PredicateNode, Proto, ProtoNode, Required, RequiredNode, RootModule, SchemaModule, SchemaScope, Sequence, SequenceNode, Structure, StructureNode, TraversalCompiler, Union, UnionNode, Unit, UnitNode, appendUniqueNodes, assertDefaultValueAssignability, assertLengthRule, bindModule, bindPrecompiledUnits, bootstrap, bootstrapRootScope, boundClassesByKind, boundImplementationsByKind, boundKindPairsByLower, checkDefault, compareInnerKeys, compileComparator, compileDefault, compileDomainOf, constraintInputOf, createNode, dateLimitToString, deferAliases, deferredCallable, defineSchema, emptyBrandNameMessage, en, encodeWithoutCodecsMessage, exclusivizeRangeSchema, finalizeExport, flatMorphsAreEqual, flatRef, flatRefsAreEqual, flatRefsAt, forgetReferences, genericNode, hashedPrefixLength, hashesMatch, holdsSameChildren, identityOf, innerHashesMatch, intrinsic, ioOf, isFinalResolution, isMutuallySimulated, isResolvable, jsonLengthOf, lastCreated, madeMorphs, makeMorph, missingSetEngineMessage, node, nodeClassesByKind, nodeImplementationsByKind, normalizeIndex, normalizeOrder, ownKeysOf, parseAsSchema, parseGeneric, parseNode, parseNodeSchema, parseSchema, postfixAfterOptionalOrDefaultableMessage, postfixWithoutVariadicMessage, precompileInPlace, precompileRootUnits, referencesThroughAliases, referencesWithoutCases, registerNodeId, registerPrecompiledUnits, requiredPropOf, resolveAmbient, resolveDescription, resolveReachedAliases, resolveShallowAliases, rootApplyRuntimeOf, rootSchema, rootSchemaScope, schemaKindOf, schemaScope, sets, throwInvalidOperandError, typeKeyToString, typeOrTermExtends, typePathToPropString, uniqueFlatRefs, whileResolvingAmbient, withId, withMeta, withoutUndefined, writeContextAtDefinitionMessage, writeDuplicateAliasError, writeDuplicateKeyMessage, writeEnumerableIndexBranches, writeForeignArkMessage, writeGlobalOnlyConfigMessage, writeIndivisibleMessage, writeInnerJson, writeInvalidKeysMessage, writeInvalidLengthBoundMessage, writeInvalidMergeOperandMessage, writeInvalidOperandMessage, writeInvalidPropertyKeyMessage, writeInvalidRangeRuleMessage, writeInvalidSchemaMessage, writeLiteralUnionEntriesMessage, writeMissingImportMessage, writeMissingSubmoduleAccessMessage, writeNonIntegerDivisorMessage, writeNonPrimitiveNonFunctionDefaultValueMessage, writeNonStructuralOperandMessage, writeNonSubmoduleDotMessage, writeNumberIndexMessage, writePrecompiledUnits, writeShallowCycleErrorMessage, writeUnboundableMessage, writeUnclosedGenericCycleMessage, writeUnresolvableMessage, writeUnsatisfiableExpressionError, writeUnsatisfiedParameterConstraintMessage, zeroDivisorMessage } from "./chunk-
|
|
1
|
+
export { After, AfterNode, Alias, AliasNode, BaseConstraint, BaseNode, BaseProp, BaseRange, BaseRoot, BaseScope, Before, BeforeNode, Disjoint, Divisor, DivisorNode, Domain, DomainNode, ExactLength, ExactLengthNode, GenericRoot, Index, IndexNode, InternalPrimitiveConstraint, Intersection, IntersectionNode, LazyGenericBody, LazyGenericRoot, Max, MaxLength, MaxLengthNode, MaxNode, Min, MinLength, MinLengthNode, MinNode, Morph, MorphNode, NotEqual, NotEqualLength, NotEqualLengthNode, NotEqualNode, Optional, OptionalNode, Pattern, PatternNode, Predicate, PredicateNode, Proto, ProtoNode, Required, RequiredNode, RootModule, SchemaModule, SchemaScope, Sequence, SequenceNode, Structure, StructureNode, TraversalCompiler, Union, UnionNode, Unit, UnitNode, appendUniqueNodes, assertDefaultValueAssignability, assertLengthRule, bindModule, bindPrecompiledUnits, bootstrap, bootstrapRootScope, boundClassesByKind, boundImplementationsByKind, boundKindPairsByLower, checkDefault, compareInnerKeys, compileComparator, compileDefault, compileDomainOf, constraintInputOf, createNode, dateLimitToString, deferAliases, deferredCallable, defineSchema, emptyBrandNameMessage, en, encodeWithoutCodecsMessage, exclusivizeRangeSchema, finalizeExport, flatMorphsAreEqual, flatRef, flatRefsAreEqual, flatRefsAt, forgetReferences, genericNode, hashedPrefixLength, hashesMatch, holdsSameChildren, identityOf, innerHashesMatch, intrinsic, ioOf, isFinalResolution, isMutuallySimulated, isResolvable, jsonLengthOf, lastCreated, madeMorphs, makeMorph, missingSetEngineMessage, node, nodeClassesByKind, nodeImplementationsByKind, normalizeIndex, normalizeOrder, ownKeysOf, parseAsSchema, parseGeneric, parseNode, parseNodeSchema, parseSchema, postfixAfterOptionalOrDefaultableMessage, postfixWithoutVariadicMessage, precompileInPlace, precompileRootUnits, referencesThroughAliases, referencesWithoutCases, registerNodeId, registerPrecompiledUnits, requiredPropOf, resolveAmbient, resolveDescription, resolveReachedAliases, resolveShallowAliases, rootApplyRuntimeOf, rootSchema, rootSchemaScope, schemaKindOf, schemaScope, sets, throwInvalidOperandError, typeKeyToString, typeOrTermExtends, typePathToPropString, uniqueFlatRefs, whileResolvingAmbient, withId, withMeta, withoutUndefined, writeContextAtDefinitionMessage, writeDuplicateAliasError, writeDuplicateKeyMessage, writeEnumerableIndexBranches, writeForeignArkMessage, writeGlobalOnlyConfigMessage, writeIndivisibleMessage, writeInnerJson, writeInvalidKeysMessage, writeInvalidLengthBoundMessage, writeInvalidMergeOperandMessage, writeInvalidOperandMessage, writeInvalidPropertyKeyMessage, writeInvalidRangeRuleMessage, writeInvalidSchemaMessage, writeLiteralUnionEntriesMessage, writeMissingImportMessage, writeMissingSubmoduleAccessMessage, writeNonIntegerDivisorMessage, writeNonPrimitiveNonFunctionDefaultValueMessage, writeNonStructuralOperandMessage, writeNonSubmoduleDotMessage, writeNumberIndexMessage, writePrecompiledUnits, writeShallowCycleErrorMessage, writeUnboundableMessage, writeUnclosedGenericCycleMessage, writeUnresolvableMessage, writeUnsatisfiableExpressionError, writeUnsatisfiedParameterConstraintMessage, zeroDivisorMessage } from "./chunk-WNFWNDER.js";
|
|
2
2
|
import "./chunk-CWSF57VM.js";
|
|
3
3
|
import "./chunk-UJJGG4VQ.js";
|
|
4
4
|
import "./chunk-US6BWOGJ.js";
|
|
5
|
-
export { ToJsonSchema, annotatingFallback, assertNoProblemConfig, assertNodeKind, basisKinds, compileObjectLiteral, configureSchema, constraintKeys, constraintKinds, defaultValueSerializer, foreignTypesByMorph, implementNode, isNodeKind, mergeConfigs, mergeToJsonSchemaConfigs, metaJsonOf, morphChildKinds, nodeKinds, precedenceByKind, precedenceOfKind, prestructuralKinds, refinementKinds, resolveGlobalConfig, rootKinds, schemaKindsRightOf, structuralKinds, structureKeys, unionChildKinds, unionJsonSchemaWritersKey, writeInvalidLocaleMessage, writeInvalidUndeclaredKeyBehaviorMessage, writeUnknownConfigOptionMessage } from "./chunk-
|
|
5
|
+
export { ToJsonSchema, annotatingFallback, assertNoProblemConfig, assertNodeKind, basisKinds, compileObjectLiteral, configureSchema, constraintKeys, constraintKinds, defaultValueSerializer, foreignTypesByMorph, implementNode, isNodeKind, mergeConfigs, mergeToJsonSchemaConfigs, metaJsonOf, morphChildKinds, nodeKinds, precedenceByKind, precedenceOfKind, prestructuralKinds, refinementKinds, resolveGlobalConfig, rootKinds, schemaKindsRightOf, structuralKinds, structureKeys, unionChildKinds, unionJsonSchemaWritersKey, writeInvalidLocaleMessage, writeInvalidUndeclaredKeyBehaviorMessage, writeUnknownConfigOptionMessage } from "./chunk-KSJQV74J.js";
|
|
6
6
|
export { ToJsonSchemaError, openApiNull, supportedJsonSchemaTargets, toJsonSchemaTargets, validateStandardJsonSchemaTarget, validateToJsonSchemaTarget, writeInvalidJsonSchemaTargetMessage, writeNullableJsonSchema, writeUnionJsonSchema } from "./chunk-W2XOI5DY.js";
|
|
7
7
|
import "./chunk-TACLEIDM.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
export { CompiledFunction, NodeCompiler, canJit, compileLiteralPropAccess, compileSerializedValue, expectedOf, indexPropAccess, isDecidedByAllows, isRefinedBasis, isRefinedPattern, returnsTransformErrors, serializeLiteralKey, tryJit } from "./chunk-
|
|
10
|
-
export { $ark, ArkErrors, ArkTraversal, SiteTraversal, ThrownErrors as TraversalError, actualAtPathOf, alternativesOf, ambientResolver, applyUnread, asTemplated,
|
|
11
|
-
export { FirstIssueTraversal, InternalTraversal, TransformErrors, Traversal, addErrors, addMorphErrs, aliasVisits, allowsAcyclic, allowsInBranch, allowsInBranchBy, allowsInContext, allowsUntracked, applyCyclic, applyMember, applyRejected, applyResolution, applyValue, assertUnchecked, callMorph, composing, computeDefaultValueMorph, copyDeclared, copyOf, defining, describeBranches, describeCases, describePredicate, disallowed, elided, enterApplied, enterResolution, errorsOf, execMorph, exitApplied, exitResolution, expressBranches, hasArkKind, holdsOnlyIndices, holeNameMarker, inContext, inProgress, isAbsent, isCustomIssue, isIoFinal, isNode, isResolutionFinal, keepOwn, makeRootAndArrayPropertiesMutable, matchesRepeated, maxAliasDepth, maxAliasVisits, mergeTransformed, pipe, pipeApplied, pipeChecked, pipeOf, pipeTransformed, printSelfAsThis, queueUnchecked, readingContextWith, rejected, rejects, removedProblemMessage, resolving, setOwnValue, silentCtx, throwOnDefault, throwOnProblem, transform, transformIfAllowed, transformResolution, transformed, transformedInApply, transformsValid, travKey, tryMorph, valueAtPath, withContextOf, withoutHoleNames } from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-PGCPLG3X.js";
|
|
9
|
+
export { CompiledFunction, NodeCompiler, canJit, compileLiteralPropAccess, compileSerializedValue, expectedOf, indexPropAccess, isDecidedByAllows, isRefinedBasis, isRefinedPattern, returnsTransformErrors, serializeLiteralKey, tryJit } from "./chunk-ADLJDWDI.js";
|
|
10
|
+
export { $ark, ArkErrors, ArkTraversal, SiteTraversal, ThrownErrors as TraversalError, actualAtPathOf, alternativesOf, ambientResolver, applyUnread, asTemplated, configureAfterTypeMessage, configureLocale, configuredMessageOf, copiedErrorMessage, defaultConfig, describeCause, describeMissing, errorFromContext, errorFromNodeAt, errorFromUnion, errorOfIssue, firstIssue, groupByPath, invalidError, isArkError, isCustom, isCustomError, keywordWriterOf, labelOf, messageIn, namedReference, nodesById, reference, registerBuilderCompiler, registerLocaleRenderer, registeredReference, registryName, serializableErrors, siteTraversalOf, suppliedText, unrenderedLocaleMessage, unwrittenError, writeActual, writeInvalidLocaleObjectMessage, writeKeywordExpected, writeText } from "./chunk-D4LE34UY.js";
|
|
11
|
+
export { FirstIssueTraversal, InternalTraversal, TransformErrors, Traversal, addErrors, addMorphErrs, aliasVisits, allowsAcyclic, allowsInBranch, allowsInBranchBy, allowsInContext, allowsUntracked, applyCyclic, applyMember, applyRejected, applyResolution, applyValue, assertUnchecked, byAncestorPath, byPath, callMorph, composing, computeDefaultValueMorph, copyDeclared, copyOf, defining, describeBranches, describeCases, describePredicate, disallowed, elided, enterApplied, enterResolution, errorsOf, execMorph, exitApplied, exitResolution, expressBranches, flatByPath, flatMessagesByPath, hasArkKind, holdsOnlyIndices, holeNameMarker, inContext, inProgress, isAbsent, isCustomIssue, isIoFinal, isNode, isResolutionFinal, keepOwn, makeRootAndArrayPropertiesMutable, matchesRepeated, maxAliasDepth, maxAliasVisits, mergeTransformed, pipe, pipeApplied, pipeChecked, pipeOf, pipeTransformed, printSelfAsThis, queueUnchecked, readingContextWith, rejected, rejects, removedProblemMessage, resolving, setOwnValue, silentCtx, throwOnDefault, throwOnProblem, transform, transformIfAllowed, transformResolution, transformed, transformedInApply, transformsValid, travKey, tryMorph, valueAtPath, withContextOf, withoutHoleNames } from "./chunk-GU3X7OIZ.js";
|
|
12
|
+
import "./chunk-J7NBKIKH.js";
|
|
13
13
|
import "./chunk-3SH2BQ4T.js";
|
|
14
14
|
export { ParseError, arkKind } from "./chunk-3HZC67MT.js";
|
|
15
15
|
import "./chunk-I2KLQ2HA.js";
|
package/out/schemaInternal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
internal_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KCMI6RWS.js";
|
|
4
4
|
import {
|
|
5
5
|
appliesValues,
|
|
6
6
|
configMismatchMessage,
|
|
@@ -24,27 +24,27 @@ import {
|
|
|
24
24
|
traversesUnions,
|
|
25
25
|
writeCreatedBeforeConfigureMessage,
|
|
26
26
|
writtenConfigMessage
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-BMIVLSDP.js";
|
|
28
28
|
import {
|
|
29
29
|
encode,
|
|
30
30
|
inverses,
|
|
31
31
|
writeMissingInverseMessage
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-U73QHTHA.js";
|
|
33
33
|
import {
|
|
34
34
|
ArkFirstIssueTraversal,
|
|
35
35
|
UndetailedErrors,
|
|
36
36
|
UndetailedTraversal,
|
|
37
37
|
errorModes,
|
|
38
38
|
rejectUndetailed
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-AK2LKC6C.js";
|
|
40
40
|
import {
|
|
41
41
|
normalizeLocale
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-2CTZEGD2.js";
|
|
43
43
|
import {
|
|
44
44
|
inPlaceTransforms,
|
|
45
45
|
inputOnlyMorphs,
|
|
46
46
|
writesInPlace
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-QV545A7L.js";
|
|
48
48
|
import {
|
|
49
49
|
After,
|
|
50
50
|
AfterNode,
|
|
@@ -230,7 +230,7 @@ import {
|
|
|
230
230
|
writeUnsatisfiableExpressionError,
|
|
231
231
|
writeUnsatisfiedParameterConstraintMessage,
|
|
232
232
|
zeroDivisorMessage
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-WNFWNDER.js";
|
|
234
234
|
import {
|
|
235
235
|
arrayIndexMatcher,
|
|
236
236
|
arrayIndexSource,
|
|
@@ -271,7 +271,7 @@ import {
|
|
|
271
271
|
writeInvalidLocaleMessage,
|
|
272
272
|
writeInvalidUndeclaredKeyBehaviorMessage,
|
|
273
273
|
writeUnknownConfigOptionMessage
|
|
274
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-KSJQV74J.js";
|
|
275
275
|
import {
|
|
276
276
|
ToJsonSchemaError,
|
|
277
277
|
openApiNull,
|
|
@@ -289,7 +289,7 @@ import {
|
|
|
289
289
|
rootApplyParts,
|
|
290
290
|
rootApplyRuntime,
|
|
291
291
|
writeRootApply
|
|
292
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-PGCPLG3X.js";
|
|
293
293
|
import {
|
|
294
294
|
CompiledFunction,
|
|
295
295
|
NodeCompiler,
|
|
@@ -304,7 +304,7 @@ import {
|
|
|
304
304
|
returnsTransformErrors,
|
|
305
305
|
serializeLiteralKey,
|
|
306
306
|
tryJit
|
|
307
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-ADLJDWDI.js";
|
|
308
308
|
import {
|
|
309
309
|
$ark,
|
|
310
310
|
ArkErrors,
|
|
@@ -316,8 +316,6 @@ import {
|
|
|
316
316
|
ambientResolver,
|
|
317
317
|
applyUnread,
|
|
318
318
|
asTemplated,
|
|
319
|
-
byAncestorPath,
|
|
320
|
-
byPath,
|
|
321
319
|
configureAfterTypeMessage,
|
|
322
320
|
configureLocale,
|
|
323
321
|
configuredMessageOf,
|
|
@@ -333,8 +331,6 @@ import {
|
|
|
333
331
|
errorWriters,
|
|
334
332
|
errorWritersByCode,
|
|
335
333
|
firstIssue,
|
|
336
|
-
flatByPath,
|
|
337
|
-
flatMessagesByPath,
|
|
338
334
|
groupByPath,
|
|
339
335
|
invalidError,
|
|
340
336
|
isArkError,
|
|
@@ -361,7 +357,7 @@ import {
|
|
|
361
357
|
writeInvalidLocaleObjectMessage,
|
|
362
358
|
writeKeywordExpected,
|
|
363
359
|
writeText
|
|
364
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-D4LE34UY.js";
|
|
365
361
|
import {
|
|
366
362
|
FirstIssueTraversal,
|
|
367
363
|
FirstIssues,
|
|
@@ -384,6 +380,8 @@ import {
|
|
|
384
380
|
applyResolution,
|
|
385
381
|
applyValue,
|
|
386
382
|
assertUnchecked,
|
|
383
|
+
byAncestorPath,
|
|
384
|
+
byPath,
|
|
387
385
|
callMorph,
|
|
388
386
|
codedIssue,
|
|
389
387
|
composing,
|
|
@@ -409,6 +407,8 @@ import {
|
|
|
409
407
|
failsKey,
|
|
410
408
|
failsKeySite,
|
|
411
409
|
failsSite,
|
|
410
|
+
flatByPath,
|
|
411
|
+
flatMessagesByPath,
|
|
412
412
|
foundErrors,
|
|
413
413
|
hasArkKind,
|
|
414
414
|
holdsOnlyIndices,
|
|
@@ -476,8 +476,8 @@ import {
|
|
|
476
476
|
writeProtoActual,
|
|
477
477
|
writeUnitActual,
|
|
478
478
|
writeUnitMessage
|
|
479
|
-
} from "./chunk-
|
|
480
|
-
import "./chunk-
|
|
479
|
+
} from "./chunk-GU3X7OIZ.js";
|
|
480
|
+
import "./chunk-J7NBKIKH.js";
|
|
481
481
|
import "./chunk-3SH2BQ4T.js";
|
|
482
482
|
import {
|
|
483
483
|
ParseError,
|
package/out/schemaRuntime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { appliesValues, configMismatchMessage, configure, configuredFallbackOf, configuredUnlikeBuildMessage, configuredWriterOf, discriminatesBooleans, failsInBranches, findsOnRead, fingerprintOf, fixConfig, fixConfigured, holdsExpression, listsUnions, reconfiguredMessage, runtimeConfig, runtimeScope, shareConfig, transformsBranches, traversesUnions, writeCreatedBeforeConfigureMessage, writtenConfigMessage } from "./chunk-
|
|
1
|
+
export { appliesValues, configMismatchMessage, configure, configuredFallbackOf, configuredUnlikeBuildMessage, configuredWriterOf, discriminatesBooleans, failsInBranches, findsOnRead, fingerprintOf, fixConfig, fixConfigured, holdsExpression, listsUnions, reconfiguredMessage, runtimeConfig, runtimeScope, shareConfig, transformsBranches, traversesUnions, writeCreatedBeforeConfigureMessage, writtenConfigMessage } from "./chunk-BMIVLSDP.js";
|
|
2
2
|
export { arrayIndexMatcher } from "./chunk-CWSF57VM.js";
|
|
3
3
|
export { ToJsonSchemaError, supportedJsonSchemaTargets, validateStandardJsonSchemaTarget, writeNullableJsonSchema, writeUnionJsonSchema } from "./chunk-W2XOI5DY.js";
|
|
4
|
-
export { FirstIssueTraversal, FirstIssues, InternalTraversal, Issues as ArkErrors, ThrownIssues as TraversalError, TransformErrors, Traversal, addErrors, addMorphErrs, aliasVisits, alikeIssue, allowsAcyclic, allowsInBranch, allowsInBranchBy, allowsInContext, allowsUntracked, applyCyclic, applyIssues, applyMember, applyRejected, applyResolution, applyValue, callMorph, codedIssue, computeDefaultValueMorph, copyDeclared, copyOf, describeActual, describePredicate, describeUnwrittenActual, disallowed, enInfo, enterApplied, enterResolution, errorsOf, execMorph, exitApplied, exitResolution, failsKey, failsKeySite, failsSite, foundErrors, holdsOnlyIndices, inContext, isCustomIssue, issueAt, issuesOf, keepOwn, lineOf, listedIssue, matchesRepeated, maxAliasDepth, maxAliasVisits, mergeIssues, mergeTransformed, messageOf, missingTextOf, movedIssue, notedAs, pathOf, pipe, pipeApplied, pipeChecked, pipeOf, pipeTransformed, printedActualOf, readingContextWith, rejected, rejects, setOwnValue, sharedMessageOf, silentCtx, throwIssues, throwOnDefault, throwOnProblem, transform, transformIfAllowed, transformResolution, transformed, transformedInApply, transformsValid, travKey, tryMorph, withContextOf, writeDomainActual, writeFromPath, writeLengthActual, writeLine, writeListed, writeMessage, writeNotEqualActual, writeProtoActual, writeUnitActual, writeUnitMessage } from "./chunk-
|
|
4
|
+
export { FirstIssueTraversal, FirstIssues, InternalTraversal, Issues as ArkErrors, ThrownIssues as TraversalError, TransformErrors, Traversal, addErrors, addMorphErrs, aliasVisits, alikeIssue, allowsAcyclic, allowsInBranch, allowsInBranchBy, allowsInContext, allowsUntracked, applyCyclic, applyIssues, applyMember, applyRejected, applyResolution, applyValue, byAncestorPath, byPath, callMorph, codedIssue, computeDefaultValueMorph, copyDeclared, copyOf, describeActual, describePredicate, describeUnwrittenActual, disallowed, enInfo, enterApplied, enterResolution, errorsOf, execMorph, exitApplied, exitResolution, failsKey, failsKeySite, failsSite, flatByPath, flatMessagesByPath, foundErrors, holdsOnlyIndices, inContext, isCustomIssue, issueAt, issuesOf, keepOwn, lineOf, listedIssue, matchesRepeated, maxAliasDepth, maxAliasVisits, mergeIssues, mergeTransformed, messageOf, missingTextOf, movedIssue, notedAs, pathOf, pipe, pipeApplied, pipeChecked, pipeOf, pipeTransformed, printedActualOf, readingContextWith, rejected, rejects, setOwnValue, sharedMessageOf, silentCtx, throwIssues, throwOnDefault, throwOnProblem, transform, transformIfAllowed, transformResolution, transformed, transformedInApply, transformsValid, travKey, tryMorph, withContextOf, writeDomainActual, writeFromPath, writeLengthActual, writeLine, writeListed, writeMessage, writeNotEqualActual, writeProtoActual, writeUnitActual, writeUnitMessage } from "./chunk-GU3X7OIZ.js";
|
|
5
5
|
import "./chunk-3SH2BQ4T.js";
|
|
6
6
|
export { describeCollapsibleDate, printKind } from "./chunk-3HZC67MT.js";
|
|
7
7
|
import "./chunk-I2KLQ2HA.js";
|
package/out/schemaRuntimeLean.js
CHANGED
|
@@ -342,6 +342,41 @@ var baseNameOf = (value) => {
|
|
|
342
342
|
};
|
|
343
343
|
var baseNameOfSymbol = (symbol) => symbol.description && isDotAccessible(symbol.description) ? symbol.description : "symbol";
|
|
344
344
|
|
|
345
|
+
// ../util/out/path.js
|
|
346
|
+
var keySuffixes = /* @__PURE__ */ new Map();
|
|
347
|
+
var keySuffixOf = (key) => {
|
|
348
|
+
let suffix = keySuffixes.get(key);
|
|
349
|
+
if (suffix === void 0) {
|
|
350
|
+
suffix = isDotAccessible(key) ? `.${key}` : `[${JSON.stringify(key)}]`;
|
|
351
|
+
if (key.length <= 64) {
|
|
352
|
+
if (keySuffixes.size === 1024)
|
|
353
|
+
keySuffixes.clear();
|
|
354
|
+
keySuffixes.set(key, suffix);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return suffix;
|
|
358
|
+
};
|
|
359
|
+
var indexSuffixes = [];
|
|
360
|
+
var appendStringifiedKey = ((path, prop, opts) => {
|
|
361
|
+
switch (typeof prop) {
|
|
362
|
+
case "string": {
|
|
363
|
+
const suffix = keySuffixOf(prop);
|
|
364
|
+
return path === "" && suffix[0] === "." ? prop : path + suffix;
|
|
365
|
+
}
|
|
366
|
+
case "number":
|
|
367
|
+
return path + (prop >>> 0 === prop && prop < 256 ? indexSuffixes[prop] ??= `[${prop}]` : `[${prop}]`);
|
|
368
|
+
case "symbol":
|
|
369
|
+
return `${path}[${(opts?.stringifySymbol ?? String)(prop)}]`;
|
|
370
|
+
}
|
|
371
|
+
return opts?.stringifyNonKey ? `${path}[${opts.stringifyNonKey(prop)}]` : throwParseError(`${typeof prop} must be a PropertyKey or stringifyNonKey must be passed to options`);
|
|
372
|
+
});
|
|
373
|
+
var stringifyPath = ((path, opts) => {
|
|
374
|
+
let s = "";
|
|
375
|
+
for (const k of path)
|
|
376
|
+
s = appendStringifiedKey(s, k, opts);
|
|
377
|
+
return s;
|
|
378
|
+
});
|
|
379
|
+
|
|
345
380
|
// ../schema/out/shared/configured.js
|
|
346
381
|
var isPlain = (value) => {
|
|
347
382
|
const proto = Object.getPrototypeOf(value);
|
|
@@ -421,6 +456,54 @@ var enInfo = /* @__PURE__ */ Object.freeze({
|
|
|
421
456
|
verbatim: (text) => text
|
|
422
457
|
});
|
|
423
458
|
|
|
459
|
+
// ../schema/out/shared/errorReaders.js
|
|
460
|
+
var byPath = (errors) => {
|
|
461
|
+
const result = {};
|
|
462
|
+
for (const error of errors.issues) {
|
|
463
|
+
const k = propStringOf(error);
|
|
464
|
+
if (!hasOwn(result, k))
|
|
465
|
+
defineEntry(result, k, error);
|
|
466
|
+
}
|
|
467
|
+
return result;
|
|
468
|
+
};
|
|
469
|
+
var flatByPath = (errors) => {
|
|
470
|
+
const result = {};
|
|
471
|
+
for (const error of errors.issues)
|
|
472
|
+
addEntry(result, propStringOf(error), error);
|
|
473
|
+
return result;
|
|
474
|
+
};
|
|
475
|
+
var flatMessagesByPath = (errors) => {
|
|
476
|
+
const result = {};
|
|
477
|
+
for (const error of errors.issues)
|
|
478
|
+
addEntry(result, propStringOf(error), error.message);
|
|
479
|
+
return result;
|
|
480
|
+
};
|
|
481
|
+
var byAncestorPath = (errors) => {
|
|
482
|
+
const result = {};
|
|
483
|
+
for (const error of errors.issues) {
|
|
484
|
+
let propString = "";
|
|
485
|
+
addEntry(result, propString, error);
|
|
486
|
+
for (const k of error.path) {
|
|
487
|
+
propString = appendStringifiedKey(propString, k);
|
|
488
|
+
addEntry(result, propString, error);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
return result;
|
|
492
|
+
};
|
|
493
|
+
var propStringOf = (error) => error.propString ?? stringifyPath(error.path);
|
|
494
|
+
var addEntry = (result, k, value) => {
|
|
495
|
+
if (hasOwn(result, k))
|
|
496
|
+
result[k].push(value);
|
|
497
|
+
else
|
|
498
|
+
defineEntry(result, k, [value]);
|
|
499
|
+
};
|
|
500
|
+
var defineEntry = (result, k, value) => Object.defineProperty(result, k, {
|
|
501
|
+
value,
|
|
502
|
+
enumerable: true,
|
|
503
|
+
writable: true,
|
|
504
|
+
configurable: true
|
|
505
|
+
});
|
|
506
|
+
|
|
424
507
|
// ../schema/out/runtime.js
|
|
425
508
|
export { appliesValues, discriminatesBooleans, failsInBranches, findsOnRead, holdsExpression, listsUnions, transformsBranches, traversesUnions } from "./shared/issueFeatures.js";
|
|
426
509
|
|
|
@@ -1775,6 +1858,8 @@ export {
|
|
|
1775
1858
|
applyResolution,
|
|
1776
1859
|
applyValue,
|
|
1777
1860
|
arrayIndexMatcher,
|
|
1861
|
+
byAncestorPath,
|
|
1862
|
+
byPath,
|
|
1778
1863
|
callMorph,
|
|
1779
1864
|
codedIssue,
|
|
1780
1865
|
computeDefaultValueMorph,
|
|
@@ -1803,6 +1888,8 @@ export {
|
|
|
1803
1888
|
fingerprintOf,
|
|
1804
1889
|
fixConfig,
|
|
1805
1890
|
fixConfigured,
|
|
1891
|
+
flatByPath,
|
|
1892
|
+
flatMessagesByPath,
|
|
1806
1893
|
foundErrors,
|
|
1807
1894
|
holdsOnlyIndices,
|
|
1808
1895
|
inContext,
|
package/out/schemaRuntimeNone.js
CHANGED
|
@@ -343,6 +343,41 @@ var baseNameOf = (value) => {
|
|
|
343
343
|
};
|
|
344
344
|
var baseNameOfSymbol = (symbol) => symbol.description && isDotAccessible(symbol.description) ? symbol.description : "symbol";
|
|
345
345
|
|
|
346
|
+
// ../util/out/path.js
|
|
347
|
+
var keySuffixes = /* @__PURE__ */ new Map();
|
|
348
|
+
var keySuffixOf = (key) => {
|
|
349
|
+
let suffix = keySuffixes.get(key);
|
|
350
|
+
if (suffix === void 0) {
|
|
351
|
+
suffix = isDotAccessible(key) ? `.${key}` : `[${JSON.stringify(key)}]`;
|
|
352
|
+
if (key.length <= 64) {
|
|
353
|
+
if (keySuffixes.size === 1024)
|
|
354
|
+
keySuffixes.clear();
|
|
355
|
+
keySuffixes.set(key, suffix);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
return suffix;
|
|
359
|
+
};
|
|
360
|
+
var indexSuffixes = [];
|
|
361
|
+
var appendStringifiedKey = ((path, prop, opts) => {
|
|
362
|
+
switch (typeof prop) {
|
|
363
|
+
case "string": {
|
|
364
|
+
const suffix = keySuffixOf(prop);
|
|
365
|
+
return path === "" && suffix[0] === "." ? prop : path + suffix;
|
|
366
|
+
}
|
|
367
|
+
case "number":
|
|
368
|
+
return path + (prop >>> 0 === prop && prop < 256 ? indexSuffixes[prop] ??= `[${prop}]` : `[${prop}]`);
|
|
369
|
+
case "symbol":
|
|
370
|
+
return `${path}[${(opts?.stringifySymbol ?? String)(prop)}]`;
|
|
371
|
+
}
|
|
372
|
+
return opts?.stringifyNonKey ? `${path}[${opts.stringifyNonKey(prop)}]` : throwParseError(`${typeof prop} must be a PropertyKey or stringifyNonKey must be passed to options`);
|
|
373
|
+
});
|
|
374
|
+
var stringifyPath = ((path, opts) => {
|
|
375
|
+
let s = "";
|
|
376
|
+
for (const k of path)
|
|
377
|
+
s = appendStringifiedKey(s, k, opts);
|
|
378
|
+
return s;
|
|
379
|
+
});
|
|
380
|
+
|
|
346
381
|
// ../schema/out/shared/configured.js
|
|
347
382
|
var isPlain = (value) => {
|
|
348
383
|
const proto = Object.getPrototypeOf(value);
|
|
@@ -422,6 +457,54 @@ var enInfo = /* @__PURE__ */ Object.freeze({
|
|
|
422
457
|
verbatim: (text) => text
|
|
423
458
|
});
|
|
424
459
|
|
|
460
|
+
// ../schema/out/shared/errorReaders.js
|
|
461
|
+
var byPath = (errors) => {
|
|
462
|
+
const result = {};
|
|
463
|
+
for (const error of errors.issues) {
|
|
464
|
+
const k = propStringOf(error);
|
|
465
|
+
if (!hasOwn(result, k))
|
|
466
|
+
defineEntry(result, k, error);
|
|
467
|
+
}
|
|
468
|
+
return result;
|
|
469
|
+
};
|
|
470
|
+
var flatByPath = (errors) => {
|
|
471
|
+
const result = {};
|
|
472
|
+
for (const error of errors.issues)
|
|
473
|
+
addEntry(result, propStringOf(error), error);
|
|
474
|
+
return result;
|
|
475
|
+
};
|
|
476
|
+
var flatMessagesByPath = (errors) => {
|
|
477
|
+
const result = {};
|
|
478
|
+
for (const error of errors.issues)
|
|
479
|
+
addEntry(result, propStringOf(error), error.message);
|
|
480
|
+
return result;
|
|
481
|
+
};
|
|
482
|
+
var byAncestorPath = (errors) => {
|
|
483
|
+
const result = {};
|
|
484
|
+
for (const error of errors.issues) {
|
|
485
|
+
let propString = "";
|
|
486
|
+
addEntry(result, propString, error);
|
|
487
|
+
for (const k of error.path) {
|
|
488
|
+
propString = appendStringifiedKey(propString, k);
|
|
489
|
+
addEntry(result, propString, error);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return result;
|
|
493
|
+
};
|
|
494
|
+
var propStringOf = (error) => error.propString ?? stringifyPath(error.path);
|
|
495
|
+
var addEntry = (result, k, value) => {
|
|
496
|
+
if (hasOwn(result, k))
|
|
497
|
+
result[k].push(value);
|
|
498
|
+
else
|
|
499
|
+
defineEntry(result, k, [value]);
|
|
500
|
+
};
|
|
501
|
+
var defineEntry = (result, k, value) => Object.defineProperty(result, k, {
|
|
502
|
+
value,
|
|
503
|
+
enumerable: true,
|
|
504
|
+
writable: true,
|
|
505
|
+
configurable: true
|
|
506
|
+
});
|
|
507
|
+
|
|
425
508
|
// ../schema/out/runtime.js
|
|
426
509
|
export { appliesValues, discriminatesBooleans, failsInBranches, findsOnRead, holdsExpression, listsUnions, transformsBranches, traversesUnions } from "./shared/issueFeatures.js";
|
|
427
510
|
|
|
@@ -1679,6 +1762,8 @@ export {
|
|
|
1679
1762
|
applyResolution,
|
|
1680
1763
|
applyValue,
|
|
1681
1764
|
arrayIndexMatcher,
|
|
1765
|
+
byAncestorPath,
|
|
1766
|
+
byPath,
|
|
1682
1767
|
callMorph,
|
|
1683
1768
|
codedIssue,
|
|
1684
1769
|
computeDefaultValueMorph,
|
|
@@ -1707,6 +1792,8 @@ export {
|
|
|
1707
1792
|
fingerprintOf,
|
|
1708
1793
|
fixConfig,
|
|
1709
1794
|
fixConfigured,
|
|
1795
|
+
flatByPath,
|
|
1796
|
+
flatMessagesByPath,
|
|
1710
1797
|
foundErrors,
|
|
1711
1798
|
holdsOnlyIndices,
|
|
1712
1799
|
inContext,
|