@cms0/shared 0.2.20 → 0.2.21
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/asset-storage.d.ts +9 -0
- package/dist/asset-storage.d.ts.map +1 -0
- package/dist/asset-storage.js +50 -0
- package/dist/descriptor-capabilities.d.ts.map +1 -0
- package/dist/graph-query.d.ts +35 -0
- package/dist/graph-query.d.ts.map +1 -0
- package/dist/graph-query.js +140 -0
- package/dist/index.d.ts +106 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +185 -0
- package/dist/saas.d.ts +87 -0
- package/dist/saas.d.ts.map +1 -0
- package/dist/saas.js +17 -0
- package/dist/union.d.ts.map +1 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/{esm/validation.js → validation.js} +13 -3
- package/package.json +22 -34
- package/dist/cjs/descriptor-capabilities.js +0 -404
- package/dist/cjs/index.js +0 -22
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/union.js +0 -170
- package/dist/cjs/validation.js +0 -135
- package/dist/esm/index.js +0 -4
- package/dist/responsive-break.css +0 -65
- package/dist/types/descriptor-capabilities.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/union.d.ts.map +0 -1
- package/dist/types/validation.d.ts.map +0 -1
- /package/dist/{types/descriptor-capabilities.d.ts → descriptor-capabilities.d.ts} +0 -0
- /package/dist/{esm/descriptor-capabilities.js → descriptor-capabilities.js} +0 -0
- /package/dist/{types/union.d.ts → union.d.ts} +0 -0
- /package/dist/{esm/union.js → union.js} +0 -0
- /package/dist/{types/validation.d.ts → validation.d.ts} +0 -0
package/dist/cjs/union.js
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CMS0_UNION_META_KEY = void 0;
|
|
4
|
-
exports.computeUnionBranchKeys = computeUnionBranchKeys;
|
|
5
|
-
exports.getUnionBranchKeys = getUnionBranchKeys;
|
|
6
|
-
exports.getUnionBranchKeyAt = getUnionBranchKeyAt;
|
|
7
|
-
exports.isTaggedUnionValue = isTaggedUnionValue;
|
|
8
|
-
exports.encodeTaggedUnionValue = encodeTaggedUnionValue;
|
|
9
|
-
exports.decodeTaggedUnionValue = decodeTaggedUnionValue;
|
|
10
|
-
exports.createTaggedUnionValue = createTaggedUnionValue;
|
|
11
|
-
exports.resolveTaggedUnionBranchIndex = resolveTaggedUnionBranchIndex;
|
|
12
|
-
exports.CMS0_UNION_META_KEY = "__cms0Union";
|
|
13
|
-
function isObjectRecord(value) {
|
|
14
|
-
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
15
|
-
}
|
|
16
|
-
function normalizeBranchShape(descriptor) {
|
|
17
|
-
if (descriptor?.kind === "modelRef") {
|
|
18
|
-
return {
|
|
19
|
-
kind: "modelRef",
|
|
20
|
-
model: descriptor.model,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
if (descriptor?.kind === "enum") {
|
|
24
|
-
return {
|
|
25
|
-
kind: "enum",
|
|
26
|
-
valueType: descriptor.valueType ?? "string",
|
|
27
|
-
values: Array.isArray(descriptor.values)
|
|
28
|
-
? [...descriptor.values]
|
|
29
|
-
: [],
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
if (descriptor?.kind === "union") {
|
|
33
|
-
const branches = Array.isArray(descriptor?.anyOf)
|
|
34
|
-
? descriptor.anyOf
|
|
35
|
-
: [];
|
|
36
|
-
return {
|
|
37
|
-
kind: "union",
|
|
38
|
-
anyOf: branches.map((branch) => normalizeBranchShape(branch)),
|
|
39
|
-
...(typeof descriptor?.discriminator?.key === "string"
|
|
40
|
-
? { discriminator: { key: descriptor.discriminator.key } }
|
|
41
|
-
: {}),
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
if (descriptor?.type === "array") {
|
|
45
|
-
return {
|
|
46
|
-
kind: "array",
|
|
47
|
-
items: normalizeBranchShape(descriptor.items),
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
if (descriptor?.type === "object") {
|
|
51
|
-
const properties = descriptor?.properties &&
|
|
52
|
-
typeof descriptor.properties === "object"
|
|
53
|
-
? descriptor.properties
|
|
54
|
-
: {};
|
|
55
|
-
const normalizedProperties = Object.fromEntries(Object.keys(properties)
|
|
56
|
-
.sort((a, b) => a.localeCompare(b))
|
|
57
|
-
.map((key) => [key, normalizeBranchShape(properties[key])]));
|
|
58
|
-
return {
|
|
59
|
-
kind: "object",
|
|
60
|
-
properties: normalizedProperties,
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
kind: "primitive",
|
|
65
|
-
type: descriptor?.type ?? "json",
|
|
66
|
-
...(typeof descriptor?.customType === "string"
|
|
67
|
-
? { customType: descriptor.customType }
|
|
68
|
-
: {}),
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function stableStringify(value) {
|
|
72
|
-
if (value === null)
|
|
73
|
-
return "null";
|
|
74
|
-
if (typeof value === "string")
|
|
75
|
-
return JSON.stringify(value);
|
|
76
|
-
if (typeof value === "number" || typeof value === "boolean")
|
|
77
|
-
return String(value);
|
|
78
|
-
if (Array.isArray(value)) {
|
|
79
|
-
return `[${value.map((entry) => stableStringify(entry)).join(",")}]`;
|
|
80
|
-
}
|
|
81
|
-
if (!isObjectRecord(value))
|
|
82
|
-
return JSON.stringify(value);
|
|
83
|
-
const entries = Object.keys(value)
|
|
84
|
-
.sort((a, b) => a.localeCompare(b))
|
|
85
|
-
.map((key) => `${JSON.stringify(key)}:${stableStringify(value[key])}`);
|
|
86
|
-
return `{${entries.join(",")}}`;
|
|
87
|
-
}
|
|
88
|
-
function fnv1a32(input) {
|
|
89
|
-
let hash = 0x811c9dc5;
|
|
90
|
-
for (let i = 0; i < input.length; i += 1) {
|
|
91
|
-
hash ^= input.charCodeAt(i);
|
|
92
|
-
hash = Math.imul(hash, 0x01000193);
|
|
93
|
-
}
|
|
94
|
-
return (hash >>> 0).toString(16).padStart(8, "0");
|
|
95
|
-
}
|
|
96
|
-
function computeUnionBranchKeys(branches) {
|
|
97
|
-
const used = new Set();
|
|
98
|
-
return branches.map((branch, index) => {
|
|
99
|
-
const signature = stableStringify(normalizeBranchShape(branch));
|
|
100
|
-
const base = `branch_${fnv1a32(signature)}`;
|
|
101
|
-
let key = base;
|
|
102
|
-
let suffix = 1;
|
|
103
|
-
while (used.has(key)) {
|
|
104
|
-
suffix += 1;
|
|
105
|
-
key = `${base}_${suffix}`;
|
|
106
|
-
}
|
|
107
|
-
used.add(key);
|
|
108
|
-
return key || `branch_${index + 1}`;
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
function getUnionBranchKeys(descriptor) {
|
|
112
|
-
const branches = Array.isArray(descriptor?.anyOf)
|
|
113
|
-
? descriptor.anyOf
|
|
114
|
-
: [];
|
|
115
|
-
if (!branches.length)
|
|
116
|
-
return [];
|
|
117
|
-
const explicit = Array.isArray(descriptor?.branchKeys)
|
|
118
|
-
? descriptor.branchKeys
|
|
119
|
-
: [];
|
|
120
|
-
const normalizedExplicit = explicit
|
|
121
|
-
.map((entry) => (typeof entry === "string" ? entry.trim() : ""))
|
|
122
|
-
.filter((entry) => entry.length > 0);
|
|
123
|
-
if (normalizedExplicit.length === branches.length &&
|
|
124
|
-
new Set(normalizedExplicit).size === normalizedExplicit.length) {
|
|
125
|
-
return normalizedExplicit;
|
|
126
|
-
}
|
|
127
|
-
return computeUnionBranchKeys(branches);
|
|
128
|
-
}
|
|
129
|
-
function getUnionBranchKeyAt(descriptor, index) {
|
|
130
|
-
const keys = getUnionBranchKeys(descriptor);
|
|
131
|
-
return keys[index];
|
|
132
|
-
}
|
|
133
|
-
function isTaggedUnionValue(value) {
|
|
134
|
-
if (!isObjectRecord(value))
|
|
135
|
-
return false;
|
|
136
|
-
const meta = value[exports.CMS0_UNION_META_KEY];
|
|
137
|
-
if (!isObjectRecord(meta))
|
|
138
|
-
return false;
|
|
139
|
-
if (typeof meta.branchKey !== "string" || !meta.branchKey.trim())
|
|
140
|
-
return false;
|
|
141
|
-
return Object.prototype.hasOwnProperty.call(value, "value");
|
|
142
|
-
}
|
|
143
|
-
function encodeTaggedUnionValue(branchKey, value) {
|
|
144
|
-
return {
|
|
145
|
-
[exports.CMS0_UNION_META_KEY]: { branchKey },
|
|
146
|
-
value,
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
function decodeTaggedUnionValue(value) {
|
|
150
|
-
if (!isTaggedUnionValue(value))
|
|
151
|
-
return null;
|
|
152
|
-
const meta = value[exports.CMS0_UNION_META_KEY];
|
|
153
|
-
return {
|
|
154
|
-
branchKey: meta.branchKey.trim(),
|
|
155
|
-
value: value.value,
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
function createTaggedUnionValue(descriptor, branchIndex, branchValue) {
|
|
159
|
-
const branchKey = getUnionBranchKeyAt(descriptor, branchIndex);
|
|
160
|
-
if (!branchKey)
|
|
161
|
-
return null;
|
|
162
|
-
return encodeTaggedUnionValue(branchKey, branchValue);
|
|
163
|
-
}
|
|
164
|
-
function resolveTaggedUnionBranchIndex(descriptor, value) {
|
|
165
|
-
const decoded = decodeTaggedUnionValue(value);
|
|
166
|
-
if (!decoded)
|
|
167
|
-
return -1;
|
|
168
|
-
const keys = getUnionBranchKeys(descriptor);
|
|
169
|
-
return keys.findIndex((key) => key === decoded.branchKey);
|
|
170
|
-
}
|
package/dist/cjs/validation.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildZodSchemasFromDescriptor = buildZodSchemasFromDescriptor;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
// Map custom primitive-models (or types) you defined
|
|
6
|
-
const customTypeSchemas = {
|
|
7
|
-
Asset: zod_1.z.object({ id: zod_1.z.string(), url: zod_1.z.string().url() }),
|
|
8
|
-
RichText: zod_1.z.object({ html: zod_1.z.string(), delta: zod_1.z.array(zod_1.z.any()) }),
|
|
9
|
-
Url: zod_1.z.string().url(),
|
|
10
|
-
};
|
|
11
|
-
function convertDescriptorToZod(desc, modelZodSchemas, opts = {}) {
|
|
12
|
-
const applyOptionality = (schema) => {
|
|
13
|
-
let out = schema;
|
|
14
|
-
if (desc.nullable || opts.loose)
|
|
15
|
-
out = out.nullable();
|
|
16
|
-
if (desc.optional || opts.loose)
|
|
17
|
-
out = out.optional();
|
|
18
|
-
return out;
|
|
19
|
-
};
|
|
20
|
-
if (desc.kind === "primitive") {
|
|
21
|
-
switch (desc.type) {
|
|
22
|
-
case "string":
|
|
23
|
-
return applyOptionality(zod_1.z.string());
|
|
24
|
-
case "number":
|
|
25
|
-
return applyOptionality(zod_1.z.number());
|
|
26
|
-
case "boolean":
|
|
27
|
-
return applyOptionality(zod_1.z.boolean());
|
|
28
|
-
case "json":
|
|
29
|
-
return applyOptionality(zod_1.z.any());
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
if (desc.kind === "enum") {
|
|
33
|
-
const literals = Array.isArray(desc.values) ? desc.values : [];
|
|
34
|
-
if (!literals.length) {
|
|
35
|
-
switch (desc.valueType) {
|
|
36
|
-
case "number":
|
|
37
|
-
return applyOptionality(zod_1.z.number());
|
|
38
|
-
case "boolean":
|
|
39
|
-
return applyOptionality(zod_1.z.boolean());
|
|
40
|
-
case "string":
|
|
41
|
-
default:
|
|
42
|
-
return applyOptionality(zod_1.z.string());
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
if (desc.valueType === "string") {
|
|
46
|
-
const values = literals
|
|
47
|
-
.filter((value) => typeof value === "string")
|
|
48
|
-
.map((value) => value.trim())
|
|
49
|
-
.filter((value) => value.length > 0);
|
|
50
|
-
if (!values.length) {
|
|
51
|
-
return applyOptionality(zod_1.z.string());
|
|
52
|
-
}
|
|
53
|
-
const unique = Array.from(new Set(values));
|
|
54
|
-
const [first, ...rest] = unique;
|
|
55
|
-
if (!first)
|
|
56
|
-
return applyOptionality(zod_1.z.string());
|
|
57
|
-
return applyOptionality(zod_1.z.enum([first, ...rest]));
|
|
58
|
-
}
|
|
59
|
-
if (desc.valueType === "number") {
|
|
60
|
-
const values = literals.filter((value) => typeof value === "number" && Number.isFinite(value));
|
|
61
|
-
if (!values.length)
|
|
62
|
-
return applyOptionality(zod_1.z.number());
|
|
63
|
-
const unique = Array.from(new Set(values));
|
|
64
|
-
const [first, ...rest] = unique;
|
|
65
|
-
if (first === undefined)
|
|
66
|
-
return applyOptionality(zod_1.z.number());
|
|
67
|
-
const schema = rest.length
|
|
68
|
-
? zod_1.z.union([zod_1.z.literal(first), ...rest.map((value) => zod_1.z.literal(value))])
|
|
69
|
-
: zod_1.z.literal(first);
|
|
70
|
-
return applyOptionality(schema);
|
|
71
|
-
}
|
|
72
|
-
const values = literals.filter((value) => typeof value === "boolean");
|
|
73
|
-
if (!values.length)
|
|
74
|
-
return applyOptionality(zod_1.z.boolean());
|
|
75
|
-
if (values.includes(true) && values.includes(false)) {
|
|
76
|
-
return applyOptionality(zod_1.z.boolean());
|
|
77
|
-
}
|
|
78
|
-
return applyOptionality(zod_1.z.literal(values[0]));
|
|
79
|
-
}
|
|
80
|
-
if (desc.kind === "union") {
|
|
81
|
-
const branches = (Array.isArray(desc.anyOf) ? desc.anyOf : [])
|
|
82
|
-
.map((branch) => convertDescriptorToZod(branch, modelZodSchemas, opts))
|
|
83
|
-
.filter(Boolean);
|
|
84
|
-
if (!branches.length)
|
|
85
|
-
return applyOptionality(zod_1.z.any());
|
|
86
|
-
if (branches.length === 1)
|
|
87
|
-
return applyOptionality(branches[0]);
|
|
88
|
-
const [first, second, ...rest] = branches;
|
|
89
|
-
const schema = zod_1.z.union([first, second, ...rest]);
|
|
90
|
-
return applyOptionality(schema);
|
|
91
|
-
}
|
|
92
|
-
if (desc.kind === "modelRef") {
|
|
93
|
-
const schema = modelZodSchemas[desc.model];
|
|
94
|
-
const base = schema ?? zod_1.z.any();
|
|
95
|
-
// For loose schemas (root singletons), accept either the object or just an id.
|
|
96
|
-
const withId = opts.loose ? zod_1.z.union([base, zod_1.z.string()]) : base;
|
|
97
|
-
return applyOptionality(withId);
|
|
98
|
-
}
|
|
99
|
-
if (desc.type === "object" && desc.properties) {
|
|
100
|
-
const shape = {};
|
|
101
|
-
for (const [key, valueDesc] of Object.entries(desc.properties)) {
|
|
102
|
-
shape[key] = convertDescriptorToZod(valueDesc, modelZodSchemas, opts);
|
|
103
|
-
}
|
|
104
|
-
const objectSchema = opts.loose ? zod_1.z.object(shape).partial() : zod_1.z.object(shape);
|
|
105
|
-
return applyOptionality(objectSchema);
|
|
106
|
-
}
|
|
107
|
-
if (desc.type === "array" && desc.items) {
|
|
108
|
-
return applyOptionality(zod_1.z.array(convertDescriptorToZod(desc.items, modelZodSchemas, opts)));
|
|
109
|
-
}
|
|
110
|
-
if (typeof desc.type === "string") {
|
|
111
|
-
const custom = customTypeSchemas[desc.type];
|
|
112
|
-
if (custom) {
|
|
113
|
-
return applyOptionality(custom);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return applyOptionality(zod_1.z.any());
|
|
117
|
-
}
|
|
118
|
-
function buildZodSchemasFromDescriptor(descriptor) {
|
|
119
|
-
const modelZodSchemas = {};
|
|
120
|
-
const zodSchemas = {};
|
|
121
|
-
for (const [modelName, modelDesc] of Object.entries(descriptor.models)) {
|
|
122
|
-
const shape = {};
|
|
123
|
-
for (const [propName, propDesc] of Object.entries(modelDesc.properties)) {
|
|
124
|
-
shape[propName] = convertDescriptorToZod(propDesc, modelZodSchemas);
|
|
125
|
-
}
|
|
126
|
-
modelZodSchemas[modelName] = zod_1.z.object(shape);
|
|
127
|
-
}
|
|
128
|
-
for (const [rootKey, rootDesc] of Object.entries(descriptor.roots)) {
|
|
129
|
-
// Root schemas are used for singleton PATCH; make nested structures loose/optional.
|
|
130
|
-
zodSchemas[rootKey] = convertDescriptorToZod(rootDesc, modelZodSchemas, {
|
|
131
|
-
loose: true,
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
return { zodSchemas, modelZodSchemas };
|
|
135
|
-
}
|
package/dist/esm/index.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
cms0 responsive break contract:
|
|
3
|
-
- mode is persisted on each <br> via data-cms0-break
|
|
4
|
-
- default Tailwind breakpoints:
|
|
5
|
-
sm: 640px, md: 768px, lg: 1024px, xl: 1280px, 2xl: 1536px
|
|
6
|
-
- cms0 semantic aliases:
|
|
7
|
-
mobile-only: 0..<md
|
|
8
|
-
tablet-only: md..<lg
|
|
9
|
-
desktop-only: lg+
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
br[data-cms0-break="mobile-only"],
|
|
13
|
-
br[data-cms0-break="tablet-only"],
|
|
14
|
-
br[data-cms0-break="desktop-only"],
|
|
15
|
-
br[data-cms0-break="sm-only"],
|
|
16
|
-
br[data-cms0-break="md-only"],
|
|
17
|
-
br[data-cms0-break="lg-only"],
|
|
18
|
-
br[data-cms0-break="xl-only"],
|
|
19
|
-
br[data-cms0-break="2xl-only"] {
|
|
20
|
-
display: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@media (max-width: 767.98px) {
|
|
24
|
-
br[data-cms0-break="mobile-only"] {
|
|
25
|
-
display: revert;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@media (min-width: 640px) and (max-width: 767.98px) {
|
|
30
|
-
br[data-cms0-break="sm-only"] {
|
|
31
|
-
display: revert;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@media (min-width: 768px) and (max-width: 1023.98px) {
|
|
36
|
-
br[data-cms0-break="tablet-only"],
|
|
37
|
-
br[data-cms0-break="md-only"] {
|
|
38
|
-
display: revert;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@media (min-width: 1024px) {
|
|
43
|
-
br[data-cms0-break="desktop-only"],
|
|
44
|
-
br[data-cms0-break="lg-only"] {
|
|
45
|
-
display: revert;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@media (min-width: 1280px) {
|
|
50
|
-
br[data-cms0-break="lg-only"] {
|
|
51
|
-
display: none;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@media (min-width: 1280px) and (max-width: 1535.98px) {
|
|
56
|
-
br[data-cms0-break="xl-only"] {
|
|
57
|
-
display: revert;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@media (min-width: 1536px) {
|
|
62
|
-
br[data-cms0-break="2xl-only"] {
|
|
63
|
-
display: revert;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"descriptor-capabilities.d.ts","sourceRoot":"","sources":["../../src/descriptor-capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,oBAAoB,EAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,SAAS,EACT,aAAa,EACb,eAAe,EACf,cAAc,EACd,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAEvD,MAAM,MAAM,wBAAwB,GAChC;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,aAAa,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GACD;IACE,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,aAAa,CAAC;IACzB,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB,GACD;IACE,IAAI,EAAE,kBAAkB,CAAC;CAC1B,GACD;IACE,IAAI,EAAE,WAAW,CAAC;CACnB,GACD;IACE,IAAI,EAAE,qBAAqB,CAAC;C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AE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,EACtD,KAAK,EAAE,OAAO,WAiCf;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAE5D;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GACzC,OAAO,CAmBT;AA0ED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,OAAO,CAAC,eAAe,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,EACvD,KAAK,EAAE,OAAO,GACb,MAAM,CA0BR;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,OAAO,CAAC,eAAe,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,EACvD,KAAK,EAAE,OAAO,EACd,OAAO,GAAE;IACP,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACnB,GACL,oBAAoB,GAAG,IAAI,CAoB7B;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,eAAe,EAC3B,KAAK,SAAI,GACR,MAAM,CAeR"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC;AAE7C,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,qBAA8C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../src/union.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,eAAO,MAAM,mBAAmB,EAAG,aAAsB,CAAC;AAE1D,MAAM,MAA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AE,MAAM,EAAE,CAAC;SACnB,CAAC;KACH,CAAC;CACH,CAAC;AAwIF,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,cAAc;;;EAoBvE"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|