arktype 2.2.10 → 3.0.0-beta.1
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/README.md +181 -15
- package/out/attributes.d.ts +50 -14
- package/out/checkers.d.ts +172 -0
- package/out/chunk-2U2AWCI3.js +626 -0
- package/out/chunk-4CUA5XIP.js +7 -0
- package/out/chunk-5U2ZMDNI.js +1566 -0
- package/out/chunk-DLWCO4RV.js +18 -0
- package/out/chunk-E3DZXEZK.js +72 -0
- package/out/chunk-EVCML554.js +47 -0
- package/out/chunk-G45P2CLE.js +63 -0
- package/out/chunk-GPNK5353.js +2529 -0
- package/out/chunk-MLKGABMK.js +9 -0
- package/out/chunk-NRIGTMPM.js +7 -0
- package/out/chunk-PRTMQCHS.js +3 -0
- package/out/chunk-R5G57XC7.js +7 -0
- package/out/chunk-RAZ3TXOE.js +313 -0
- package/out/chunk-SWOOCAHN.js +4 -0
- package/out/chunk-TAHPKDNM.js +3 -0
- package/out/chunk-UETB6YE2.js +14 -0
- package/out/chunk-UK5UGFOX.js +254 -0
- package/out/chunk-VV6YDN2D.js +6118 -0
- package/out/codecs.d.ts +21 -0
- package/out/codecs.js +7 -0
- package/out/config.d.ts +8 -3
- package/out/config.js +2 -3
- package/out/declare.d.ts +17 -3
- package/out/deferred.d.ts +10 -0
- package/out/errors.d.ts +1 -0
- package/out/errors.js +2 -0
- package/out/fn.d.ts +1 -1
- package/out/generic.d.ts +3 -3
- package/out/i18n.d.ts +2 -0
- package/out/i18n.js +2 -0
- package/out/index.d.ts +5 -4
- package/out/index.js +8 -9
- package/out/internal.d.ts +70 -0
- package/out/internal.js +17 -0
- package/out/island.d.ts +2 -0
- package/out/island.js +6 -0
- package/out/islandDependency.d.ts +2 -0
- package/out/islandDependency.js +18 -0
- package/out/keywords/Array.d.ts +2 -2
- package/out/keywords/builtins.d.ts +5 -3
- package/out/keywords/constructors.d.ts +9 -1
- package/out/keywords/functions.d.ts +254 -0
- package/out/keywords/keywords.d.ts +8 -9
- package/out/keywords/number.d.ts +2 -8
- package/out/keywords/phrases.d.ts +245 -0
- package/out/keywords/string.d.ts +14 -113
- package/out/keywords/ts.d.ts +35 -33
- package/out/keywords/ts.js +4 -82
- package/out/locale.d.ts +19 -0
- package/out/locales/de.d.ts +2 -0
- package/out/locales/de.js +2 -0
- package/out/locales/en.d.ts +4 -0
- package/out/locales/en.js +5 -0
- package/out/match.d.ts +6 -6
- package/out/module.d.ts +1 -1
- package/out/mutatesInput.js +3 -0
- package/out/parser/ast/generic.d.ts +6 -3
- package/out/parser/ast/infer.d.ts +1 -1
- package/out/parser/ast/validate.d.ts +11 -6
- package/out/parser/definition.d.ts +68 -7
- package/out/parser/objectLiteral.d.ts +40 -12
- package/out/parser/property.d.ts +3 -5
- package/out/parser/reduce/dynamic.d.ts +16 -7
- package/out/parser/reduce/shared.d.ts +4 -0
- package/out/parser/reduce/static.d.ts +13 -13
- package/out/parser/shift/operand/date.d.ts +0 -5
- package/out/parser/shift/operand/operand.d.ts +2 -1
- package/out/parser/shift/operand/unenclosed.d.ts +9 -6
- package/out/parser/shift/operand/unresolvable.d.ts +68 -0
- package/out/parser/shift/operator/bounds.d.ts +9 -4
- package/out/parser/shift/operator/brand.d.ts +2 -2
- package/out/parser/shift/operator/default.d.ts +2 -2
- package/out/parser/shift/operator/divisor.d.ts +2 -2
- package/out/parser/shift/operator/operator.d.ts +1 -1
- package/out/parser/shift/tokens.d.ts +9 -2
- package/out/parser/string.d.ts +61 -7
- package/out/parser/tupleExpressions.d.ts +7 -3
- package/out/precompiled.d.ts +1 -0
- package/out/precompiled.js +2 -0
- package/out/runtime.d.ts +181 -0
- package/out/runtime.js +4 -0
- package/out/runtimeDevelopment.d.ts +1 -0
- package/out/runtimeDevelopment.js +133 -0
- package/out/runtimeExports.d.ts +1 -0
- package/out/scope.d.ts +40 -11
- package/out/standalone/artifact.d.ts +265 -0
- package/out/standalone/baking.d.ts +201 -0
- package/out/standalone/combinators.d.ts +13 -0
- package/out/standalone/compilers.d.ts +23 -0
- package/out/standalone/creators.d.ts +41 -0
- package/out/standalone/fallbacks.d.ts +48 -0
- package/out/standalone/keys.d.ts +31 -0
- package/out/standalone/modules.d.ts +26 -0
- package/out/standalone/sites.d.ts +52 -0
- package/out/standalone/units.d.ts +31 -0
- package/out/standalone/values.d.ts +60 -0
- package/out/standalone.d.ts +16 -0
- package/out/type.d.ts +45 -6
- package/out/variants/array.d.ts +1 -1
- package/out/variants/base.d.ts +47 -27
- package/out/variants/date.d.ts +1 -1
- package/out/variants/instantiate.d.ts +4 -2
- package/out/variants/number.d.ts +1 -1
- package/out/variants/object.d.ts +17 -12
- package/out/variants/string.d.ts +1 -1
- package/package.json +169 -8
- package/skills/arktype/SKILL.md +278 -43
- package/skills/arktype/references/migrating.md +1296 -0
- package/skills/arktype/references/precompile.md +191 -0
- package/out/attributes.js +0 -3
- package/out/fn.js +0 -58
- package/out/generic.js +0 -37
- package/out/keywords/Array.js +0 -21
- package/out/keywords/FormData.js +0 -40
- package/out/keywords/TypedArray.js +0 -16
- package/out/keywords/builtins.js +0 -11
- package/out/keywords/constructors.js +0 -16
- package/out/keywords/keywords.js +0 -48
- package/out/keywords/number.js +0 -49
- package/out/keywords/string.js +0 -467
- package/out/match.js +0 -95
- package/out/module.js +0 -3
- package/out/nary.js +0 -1
- package/out/parser/ast/bounds.js +0 -1
- package/out/parser/ast/default.js +0 -1
- package/out/parser/ast/divisor.js +0 -1
- package/out/parser/ast/generic.js +0 -1
- package/out/parser/ast/infer.js +0 -1
- package/out/parser/ast/keyof.js +0 -1
- package/out/parser/ast/utils.js +0 -1
- package/out/parser/ast/validate.js +0 -3
- package/out/parser/definition.js +0 -78
- package/out/parser/objectLiteral.js +0 -113
- package/out/parser/property.js +0 -16
- package/out/parser/reduce/dynamic.js +0 -153
- package/out/parser/reduce/shared.js +0 -25
- package/out/parser/reduce/static.js +0 -1
- package/out/parser/shift/operand/date.js +0 -23
- package/out/parser/shift/operand/enclosed.js +0 -82
- package/out/parser/shift/operand/genericArgs.js +0 -16
- package/out/parser/shift/operand/operand.js +0 -16
- package/out/parser/shift/operand/unenclosed.js +0 -59
- package/out/parser/shift/operator/bounds.js +0 -91
- package/out/parser/shift/operator/brand.js +0 -6
- package/out/parser/shift/operator/default.js +0 -29
- package/out/parser/shift/operator/divisor.js +0 -13
- package/out/parser/shift/operator/operator.js +0 -28
- package/out/parser/shift/tokens.js +0 -37
- package/out/parser/string.js +0 -42
- package/out/parser/tupleExpressions.js +0 -75
- package/out/parser/tupleLiteral.js +0 -128
- package/out/scope.js +0 -106
- package/out/type.js +0 -55
- package/out/variants/array.js +0 -1
- package/out/variants/base.js +0 -1
- package/out/variants/date.js +0 -1
- package/out/variants/instantiate.js +0 -1
- package/out/variants/number.js +0 -1
- package/out/variants/object.js +0 -1
- package/out/variants/string.js +0 -1
- /package/out/{declare.js → mutatesInput.d.ts} +0 -0
package/out/variants/object.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { BaseMappedPropInner, OptionalMappedPropInner, Prop } from "@ark/schema";
|
|
2
2
|
import type { arkGet, arkIndexableOf, arkKeyOf, array, ErrorType, inferred, intersectUnion, JsonStructure, Key, listable, merge, optionalKeyOf, show, toArkKey } from "@ark/util";
|
|
3
|
-
import type { Default, withDefault } from "../attributes.ts";
|
|
3
|
+
import type { Default, required, withDefault } from "../attributes.ts";
|
|
4
4
|
import type { type } from "../keywords/keywords.ts";
|
|
5
5
|
import type { ArrayType } from "./array.ts";
|
|
6
6
|
import type { BaseType } from "./base.ts";
|
|
7
7
|
import type { instantiateType } from "./instantiate.ts";
|
|
8
8
|
/** @ts-ignore cast variance */
|
|
9
|
-
interface Type<out t extends object = object, $ = {}> extends BaseType<t, $> {
|
|
9
|
+
interface Type<out t extends object = object, in out $ = {}> extends BaseType<t, $> {
|
|
10
10
|
readonly(): t extends array ? ArrayType<{
|
|
11
11
|
readonly [i in keyof t]: t[i];
|
|
12
12
|
}, $> : Type<{
|
|
@@ -51,9 +51,9 @@ interface Type<out t extends object = object, $ = {}> extends BaseType<t, $> {
|
|
|
51
51
|
* narrow, filter or metadata on this `Type` is not carried over
|
|
52
52
|
* ({@link https://arktype.io/docs/objects#properties-structural | docs})
|
|
53
53
|
*
|
|
54
|
-
* @example type({ a: "1", b: "2" }).merge({ b: "3", c: "4" }) // Type<{ a: 1
|
|
54
|
+
* @example type({ a: "1", b: "2" }).merge({ b: "3", c: "4" }) // Type<{ a: 1; b: 3; c: 4 }>
|
|
55
55
|
*/
|
|
56
|
-
merge<const def, inferredDef = type.infer<def, $>, r = Type<merge<t, inferredDef>, $>>(def: type.validate<def, $> & (
|
|
56
|
+
merge<const def, inferredDef = type.infer<def, $>, r = Type<merge<t, inferredDef>, $>>(def: type.validate<def, $> & (type.infer<def, $> extends object ? unknown : ErrorType<[NonObjectMergeErrorMessage, actual: inferredDef]>)): r extends infer _ ? _ : never;
|
|
57
57
|
/**
|
|
58
58
|
* Create a copy of this `Type` with all properties required.
|
|
59
59
|
*
|
|
@@ -64,11 +64,9 @@ interface Type<out t extends object = object, $ = {}> extends BaseType<t, $> {
|
|
|
64
64
|
* 🔗 like TS's `Required`, an array or tuple base is preserved and
|
|
65
65
|
* applied to its elements, e.g. `type(["string", "number"]).required()`
|
|
66
66
|
*
|
|
67
|
-
* @example const T = type({ "foo?"
|
|
67
|
+
* @example const T = type({ "foo?": "string" }).required() // Type<{ foo: string }>
|
|
68
68
|
*/
|
|
69
|
-
required(): Type<
|
|
70
|
-
[k in keyof t]-?: t[k];
|
|
71
|
-
}, $>;
|
|
69
|
+
required(): Type<show<required<t>>, $>;
|
|
72
70
|
/**
|
|
73
71
|
* Create a copy of this `Type` with all properties optional.
|
|
74
72
|
*
|
|
@@ -79,7 +77,7 @@ interface Type<out t extends object = object, $ = {}> extends BaseType<t, $> {
|
|
|
79
77
|
* 🔗 like TS's `Partial`, an array or tuple base is preserved and
|
|
80
78
|
* applied to its elements, e.g. `type(["string", "number"]).partial()`
|
|
81
79
|
*
|
|
82
|
-
* @example
|
|
80
|
+
* @example const T = type({ foo: "string" }).partial() // Type<{ foo?: string }>
|
|
83
81
|
*/
|
|
84
82
|
partial(): Type<{
|
|
85
83
|
[k in keyof t]?: t[k];
|
|
@@ -94,14 +92,14 @@ interface Type<out t extends object = object, $ = {}> extends BaseType<t, $> {
|
|
|
94
92
|
*
|
|
95
93
|
* @example type({ foo: "string" }).map(prop => ({ key: prop.key, value: prop.value.or("null") })) // Type<{ foo: string | null }>
|
|
96
94
|
*/
|
|
97
|
-
map<transformed extends listable<MappedTypeProp>, r = Type<
|
|
95
|
+
map<transformed extends listable<MappedTypeProp>, r = Type<mapped<t, transformed, $>, $>>(flatMapEntry: (entry: typePropOf<t, $>) => transformed): r extends infer _ ? _ : never;
|
|
98
96
|
/**
|
|
99
97
|
* List of property info of this `Type<object>`.
|
|
100
|
-
* @example type({ foo: "string = "
|
|
98
|
+
* @example type({ foo: "string = 'x'" }).props // [{ kind: "optional", key: "foo", value: Type<string>, default: "x" }]
|
|
101
99
|
*/
|
|
102
100
|
props: array<typePropOf<t, $>>;
|
|
103
101
|
}
|
|
104
|
-
type typePropOf<o, $> = keyof o extends infer k ? k extends keyof o ? typeProp<o, k, $> : never : never;
|
|
102
|
+
type typePropOf<o, $> = o extends unknown ? keyof o extends infer k ? k extends keyof o ? typeProp<o, k, $> : never : never : never;
|
|
105
103
|
type typeProp<o, k extends keyof o, $, t = o[k] & ({} | null)> = t extends Default<infer t, infer defaultValue> ? DefaultedTypeProp<k & Key, t, defaultValue, $> : BaseTypeProp<k extends optionalKeyOf<o> ? "optional" : "required", k & Key, t, $>;
|
|
106
104
|
export interface BaseTypeProp<kind extends Prop.Kind = Prop.Kind, k extends Key = Key,
|
|
107
105
|
/** @ts-ignore cast variance */
|
|
@@ -125,6 +123,13 @@ type OptionalMappedTypeProp<k extends Key, v> = merge<OptionalMappedPropInner, {
|
|
|
125
123
|
value: type.cast<v>;
|
|
126
124
|
default?: v;
|
|
127
125
|
}>;
|
|
126
|
+
type mapped<t, transformed extends listable<MappedTypeProp>, $> = [
|
|
127
|
+
t
|
|
128
|
+
] extends [intersectUnion<t>] ? constructMapped<t, transformed> : mappedBranches<t, transformed extends array ? transformed[number] : transformed, typePropOf<t, $>, t extends unknown ? keyof t : never, $>;
|
|
129
|
+
type mappedBranches<branch, prop, entry, key, $> = branch extends unknown ? constructMapped<branch, branchPropsOf<branch, prop, entry, key, $>> : never;
|
|
130
|
+
type branchPropsOf<branch, prop, entry, key, $> = Extract<prop, typePropOf<branch, $>> | (Exclude<prop, entry> extends infer p ? p extends {
|
|
131
|
+
key: infer k;
|
|
132
|
+
} ? k extends keyof branch ? p : k extends key ? never : p : never : never);
|
|
128
133
|
type constructMapped<t, transformed extends listable<MappedTypeProp>> = show<intersectUnion<fromTypeProps<t, transformed extends array ? transformed : [transformed]>>>;
|
|
129
134
|
type fromTypeProps<t, props extends array<MappedTypeProp>> = show<{
|
|
130
135
|
[prop in props[number] as Extract<applyHomomorphicOptionality<t, prop>, {
|
package/out/variants/string.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ExactLength, ExclusiveNumericRangeSchema, InclusiveNumericRangeSch
|
|
|
2
2
|
import type { regex } from "arkregex";
|
|
3
3
|
import type { BaseType } from "./base.ts";
|
|
4
4
|
/** @ts-ignore cast variance */
|
|
5
|
-
interface Type<out t extends string = string, $ = {}> extends BaseType<t, $> {
|
|
5
|
+
interface Type<out t extends string = string, in out $ = {}> extends BaseType<t, $> {
|
|
6
6
|
matching<const schema extends Pattern.Schema>(schema: schema): schema extends string ? Type<regex.infer<schema>, $> : schema extends {
|
|
7
7
|
rule: infer pattern extends string;
|
|
8
8
|
} ? Type<regex.infer<pattern>, $> : this;
|
package/package.json
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arktype",
|
|
3
3
|
"description": "TypeScript's 1:1 validator, optimized from editor to runtime",
|
|
4
|
-
"
|
|
4
|
+
"keywords": [
|
|
5
|
+
"typescript",
|
|
6
|
+
"validation",
|
|
7
|
+
"validator",
|
|
8
|
+
"schema",
|
|
9
|
+
"runtime",
|
|
10
|
+
"types",
|
|
11
|
+
"inference",
|
|
12
|
+
"type-safe",
|
|
13
|
+
"parser",
|
|
14
|
+
"standard-schema",
|
|
15
|
+
"json-schema",
|
|
16
|
+
"precompile"
|
|
17
|
+
],
|
|
18
|
+
"version": "3.0.0-beta.1",
|
|
19
|
+
"arkAotVersion": "0.0.1-beta.1",
|
|
5
20
|
"license": "MIT",
|
|
21
|
+
"homepage": "https://arktype.io",
|
|
6
22
|
"repository": {
|
|
7
23
|
"type": "git",
|
|
8
24
|
"url": "https://github.com/arktypeio/arktype.git",
|
|
@@ -16,22 +32,154 @@
|
|
|
16
32
|
"type": "module",
|
|
17
33
|
"main": "./out/index.js",
|
|
18
34
|
"types": "./out/index.d.ts",
|
|
35
|
+
"typesVersions": {
|
|
36
|
+
"*": {
|
|
37
|
+
"codecs": [
|
|
38
|
+
"./out/codecs.d.ts"
|
|
39
|
+
],
|
|
40
|
+
"config": [
|
|
41
|
+
"./out/config.d.ts"
|
|
42
|
+
],
|
|
43
|
+
"errors": [
|
|
44
|
+
"./out/errors.d.ts"
|
|
45
|
+
],
|
|
46
|
+
"i18n": [
|
|
47
|
+
"./out/i18n.d.ts"
|
|
48
|
+
],
|
|
49
|
+
"locales/*": [
|
|
50
|
+
"./out/locales/*.d.ts"
|
|
51
|
+
],
|
|
52
|
+
"mutatesInput": [
|
|
53
|
+
"./out/mutatesInput.d.ts"
|
|
54
|
+
],
|
|
55
|
+
"runtime": [
|
|
56
|
+
"./out/runtime.d.ts"
|
|
57
|
+
],
|
|
58
|
+
"internal": [
|
|
59
|
+
"./out/internal.d.ts"
|
|
60
|
+
],
|
|
61
|
+
"internal/arktype.js": [
|
|
62
|
+
"./out/index.d.ts"
|
|
63
|
+
],
|
|
64
|
+
"internal/*": [
|
|
65
|
+
"./out/*"
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
19
69
|
"exports": {
|
|
20
70
|
".": {
|
|
21
71
|
"ark-ts": "./index.ts",
|
|
22
72
|
"default": "./out/index.js"
|
|
23
73
|
},
|
|
74
|
+
"./codecs": {
|
|
75
|
+
"ark-ts": "./codecs.ts",
|
|
76
|
+
"default": "./out/codecs.js"
|
|
77
|
+
},
|
|
24
78
|
"./config": {
|
|
25
79
|
"ark-ts": "./config.ts",
|
|
26
80
|
"default": "./out/config.js"
|
|
27
81
|
},
|
|
82
|
+
"./errors": {
|
|
83
|
+
"ark-ts": "./errors.ts",
|
|
84
|
+
"default": "./out/errors.js"
|
|
85
|
+
},
|
|
86
|
+
"./i18n": {
|
|
87
|
+
"ark-ts": "./i18n.ts",
|
|
88
|
+
"default": "./out/i18n.js"
|
|
89
|
+
},
|
|
90
|
+
"./locales/de": {
|
|
91
|
+
"ark-ts": "./locales/de.ts",
|
|
92
|
+
"default": "./out/locales/de.js"
|
|
93
|
+
},
|
|
94
|
+
"./locales/en": {
|
|
95
|
+
"ark-ts": "./locales/en.ts",
|
|
96
|
+
"default": "./out/locales/en.js"
|
|
97
|
+
},
|
|
98
|
+
"./mutatesInput": {
|
|
99
|
+
"ark-ts": "./mutatesInput.ts",
|
|
100
|
+
"default": "./out/mutatesInput.js"
|
|
101
|
+
},
|
|
102
|
+
"./runtime": {
|
|
103
|
+
"ark-ts": {
|
|
104
|
+
"development": "./runtimeDevelopment.ts",
|
|
105
|
+
"default": "./runtime.ts"
|
|
106
|
+
},
|
|
107
|
+
"development": "./out/runtimeDevelopment.js",
|
|
108
|
+
"default": "./out/runtime.js"
|
|
109
|
+
},
|
|
110
|
+
"./internal": {
|
|
111
|
+
"ark-ts": "./internal.ts",
|
|
112
|
+
"default": "./out/internal.js"
|
|
113
|
+
},
|
|
114
|
+
"./internal/config.ts": {
|
|
115
|
+
"ark-ts": "./config.ts",
|
|
116
|
+
"default": "./out/config.js"
|
|
117
|
+
},
|
|
118
|
+
"./internal/config.js": {
|
|
119
|
+
"ark-ts": "./config.ts",
|
|
120
|
+
"default": "./out/config.js"
|
|
121
|
+
},
|
|
122
|
+
"./internal/keywords/ts.ts": {
|
|
123
|
+
"ark-ts": "./keywords/ts.ts",
|
|
124
|
+
"default": "./out/keywords/ts.js"
|
|
125
|
+
},
|
|
126
|
+
"./internal/keywords/ts.js": {
|
|
127
|
+
"ark-ts": "./keywords/ts.ts",
|
|
128
|
+
"default": "./out/keywords/ts.js"
|
|
129
|
+
},
|
|
130
|
+
"./internal/precompiled.js": {
|
|
131
|
+
"ark-ts": "./precompiled.ts",
|
|
132
|
+
"default": "./out/precompiled.js"
|
|
133
|
+
},
|
|
134
|
+
"./internal/island.js": {
|
|
135
|
+
"ark-ts": "./island.ts",
|
|
136
|
+
"default": "./out/island.js"
|
|
137
|
+
},
|
|
138
|
+
"./internal/islandDependency.js": {
|
|
139
|
+
"ark-ts": "./islandDependency.ts",
|
|
140
|
+
"default": "./out/islandDependency.js"
|
|
141
|
+
},
|
|
142
|
+
"./internal/arktype.js": {
|
|
143
|
+
"ark-ts": "./index.ts",
|
|
144
|
+
"default": "./out/index.js"
|
|
145
|
+
},
|
|
146
|
+
"./internal/runtime.ts": {
|
|
147
|
+
"ark-ts": "./runtime.ts",
|
|
148
|
+
"default": "./out/runtime.js"
|
|
149
|
+
},
|
|
150
|
+
"./internal/runtime.js": {
|
|
151
|
+
"ark-ts": "./runtime.ts",
|
|
152
|
+
"default": "./out/runtime.js"
|
|
153
|
+
},
|
|
154
|
+
"./internal/runtimeExports.ts": {
|
|
155
|
+
"ark-ts": "./runtimeExports.ts",
|
|
156
|
+
"types": "./out/runtimeExports.d.ts",
|
|
157
|
+
"default": "./out/runtime.js"
|
|
158
|
+
},
|
|
159
|
+
"./internal/runtimeExports.js": {
|
|
160
|
+
"ark-ts": "./runtimeExports.ts",
|
|
161
|
+
"types": "./out/runtimeExports.d.ts",
|
|
162
|
+
"default": "./out/runtime.js"
|
|
163
|
+
},
|
|
164
|
+
"./internal/checkers.ts": {
|
|
165
|
+
"ark-ts": "./checkers.ts",
|
|
166
|
+
"types": "./out/checkers.d.ts",
|
|
167
|
+
"default": "./out/runtime.js"
|
|
168
|
+
},
|
|
169
|
+
"./internal/checkers.js": {
|
|
170
|
+
"ark-ts": "./checkers.ts",
|
|
171
|
+
"types": "./out/checkers.d.ts",
|
|
172
|
+
"default": "./out/runtime.js"
|
|
173
|
+
},
|
|
28
174
|
"./internal/*.ts": {
|
|
29
175
|
"ark-ts": "./*.ts",
|
|
30
|
-
"
|
|
176
|
+
"types": "./out/*.d.ts",
|
|
177
|
+
"default": "./out/internal.js"
|
|
31
178
|
},
|
|
32
179
|
"./internal/*.js": {
|
|
33
180
|
"ark-ts": "./*.ts",
|
|
34
|
-
"
|
|
181
|
+
"types": "./out/*.d.ts",
|
|
182
|
+
"default": "./out/internal.js"
|
|
35
183
|
}
|
|
36
184
|
},
|
|
37
185
|
"files": [
|
|
@@ -39,9 +187,10 @@
|
|
|
39
187
|
"skills"
|
|
40
188
|
],
|
|
41
189
|
"dependencies": {
|
|
42
|
-
"@ark/util": "0.
|
|
43
|
-
"@ark/schema": "0.
|
|
44
|
-
"arkregex": "0.0.
|
|
190
|
+
"@ark/util": "0.57.0-beta.1",
|
|
191
|
+
"@ark/schema": "0.57.0-beta.1",
|
|
192
|
+
"arkregex": "0.0.16-beta.1",
|
|
193
|
+
"arksets": "0.0.1-beta.1"
|
|
45
194
|
},
|
|
46
195
|
"publishConfig": {
|
|
47
196
|
"access": "public"
|
|
@@ -49,10 +198,22 @@
|
|
|
49
198
|
"scripts": {
|
|
50
199
|
"build": "ts ../repo/build.ts",
|
|
51
200
|
"test": "ts ../repo/testPackage.ts; pnpm testIntegration",
|
|
52
|
-
"testIntegration": "pnpm testSimpleConfig && pnpm testAllConfig && pnpm testOnFailConfig && pnpm testEoptConfig",
|
|
201
|
+
"testIntegration": "pnpm testSimpleConfig && pnpm testAllConfig && pnpm testOnFailConfig && pnpm testEoptConfig && pnpm testJitlessConfig && pnpm testCsp && pnpm testCspConfiguredAfterImport && pnpm testCspAfterLoad && pnpm testPrecompiled && pnpm testSchemaFirst && pnpm testConfigAfterImport && pnpm testMissingGlobals && pnpm testLocaleConfig && pnpm testLocaleWithoutIntl && pnpm testLocaleWithoutI18n && pnpm testLocaleImportedAfter",
|
|
53
202
|
"testSimpleConfig": "ts ./__tests__/integration/testSimpleConfig.ts",
|
|
54
203
|
"testAllConfig": "ts ./__tests__/integration/testAllConfig.ts",
|
|
55
204
|
"testOnFailConfig": "ts ./__tests__/integration/testOnFailConfig.ts",
|
|
56
|
-
"testEoptConfig": "ts ./__tests__/integration/testEoptConfig.ts"
|
|
205
|
+
"testEoptConfig": "ts ./__tests__/integration/testEoptConfig.ts",
|
|
206
|
+
"testJitlessConfig": "ts ./__tests__/integration/testJitlessConfig.ts",
|
|
207
|
+
"testCsp": "ts ./__tests__/integration/testCsp.ts",
|
|
208
|
+
"testCspConfiguredAfterImport": "ts ./__tests__/integration/testCspConfiguredAfterImport.ts",
|
|
209
|
+
"testCspAfterLoad": "ts ./__tests__/integration/testCspAfterLoad.ts",
|
|
210
|
+
"testPrecompiled": "ts ./__tests__/integration/testPrecompiled.ts",
|
|
211
|
+
"testSchemaFirst": "ts ./__tests__/integration/testSchemaFirst.ts",
|
|
212
|
+
"testConfigAfterImport": "ts ./__tests__/integration/testConfigAfterImport.ts",
|
|
213
|
+
"testMissingGlobals": "ts ./__tests__/integration/testMissingGlobals.ts",
|
|
214
|
+
"testLocaleConfig": "ts ./__tests__/integration/testLocaleConfig.ts",
|
|
215
|
+
"testLocaleWithoutIntl": "ts ./__tests__/integration/testLocaleWithoutIntl.ts",
|
|
216
|
+
"testLocaleWithoutI18n": "ts ./__tests__/integration/testLocaleWithoutI18n.ts",
|
|
217
|
+
"testLocaleImportedAfter": "ts ./__tests__/integration/testLocaleImportedAfter.ts"
|
|
57
218
|
}
|
|
58
219
|
}
|