ac-storage 0.16.4 → 0.16.5
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/bundle.cjs +8 -2
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.mjs +8 -2
- package/dist/bundle.mjs.map +1 -1
- package/package.json +2 -2
package/dist/bundle.cjs
CHANGED
|
@@ -172,13 +172,19 @@ function isJSONTypeData(target) {
|
|
|
172
172
|
typeof target === 'object' &&
|
|
173
173
|
target[JSON_TYPE_FLAG] === true);
|
|
174
174
|
}
|
|
175
|
+
function Struct(tree) {
|
|
176
|
+
return new StructJSONTypeLeaf(tree);
|
|
177
|
+
}
|
|
178
|
+
function Replace(tree) {
|
|
179
|
+
return new ReplaceJSONTypeLeaf(tree);
|
|
180
|
+
}
|
|
175
181
|
const JSONType = {
|
|
176
182
|
Union: (...candidates) => new UnionJSONTypeLeaf(...candidates),
|
|
177
183
|
String: () => new StringJSONTypeLeaf(),
|
|
178
184
|
Number: () => new NumberJSONTypeLeaf(),
|
|
179
185
|
Bool: () => new BooleanJSONTypeLeaf(),
|
|
180
|
-
Struct
|
|
181
|
-
Replace
|
|
186
|
+
Struct,
|
|
187
|
+
Replace,
|
|
182
188
|
Array: (jsonTree) => new ArrayJSONTypeLeaf(jsonTree),
|
|
183
189
|
Any: () => new BaseJSONTypeLeaf('any'),
|
|
184
190
|
};
|