@valbuild/core 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SelectorProxy-2af1b2b8.cjs.prod.js +756 -0
- package/dist/SelectorProxy-63c2d0e2.esm.js +722 -0
- package/dist/SelectorProxy-873782a5.cjs.dev.js +756 -0
- package/dist/declarations/src/index.d.ts +2 -0
- package/dist/declarations/src/initVal.d.ts +1 -1
- package/dist/declarations/src/patch/index.d.ts +1 -1
- package/dist/declarations/src/patch/util.d.ts +2 -0
- package/dist/declarations/src/schema/array.d.ts +3 -2
- package/dist/declarations/src/schema/boolean.d.ts +3 -2
- package/dist/declarations/src/schema/i18n.d.ts +3 -2
- package/dist/declarations/src/schema/image.d.ts +3 -2
- package/dist/declarations/src/schema/index.d.ts +5 -2
- package/dist/declarations/src/schema/literal.d.ts +3 -2
- package/dist/declarations/src/schema/number.d.ts +3 -2
- package/dist/declarations/src/schema/object.d.ts +3 -2
- package/dist/declarations/src/schema/oneOf.d.ts +3 -2
- package/dist/declarations/src/schema/richtext.d.ts +3 -2
- package/dist/declarations/src/schema/string.d.ts +3 -2
- package/dist/declarations/src/schema/union.d.ts +3 -2
- package/dist/declarations/src/schema/validation/ValidationError.d.ts +14 -0
- package/dist/declarations/src/schema/validation/ValidationFix.d.ts +2 -0
- package/dist/index-2fff5ca8.cjs.dev.js +456 -0
- package/dist/{index-06df0a5b.esm.js → index-af761363.esm.js} +2 -555
- package/dist/index-cac9ecbd.cjs.prod.js +456 -0
- package/dist/ops-1b6e0e35.cjs.prod.js +552 -0
- package/dist/ops-74661336.esm.js +541 -0
- package/dist/ops-ea4827fc.cjs.dev.js +552 -0
- package/dist/valbuild-core.cjs.dev.js +151 -531
- package/dist/valbuild-core.cjs.prod.js +151 -531
- package/dist/valbuild-core.esm.js +65 -445
- package/expr/dist/valbuild-core-expr.cjs.dev.js +8 -8
- package/expr/dist/valbuild-core-expr.cjs.prod.js +8 -8
- package/expr/dist/valbuild-core-expr.esm.js +2 -2
- package/package.json +2 -1
- package/patch/dist/valbuild-core-patch.cjs.dev.js +30 -21
- package/patch/dist/valbuild-core-patch.cjs.prod.js +30 -21
- package/patch/dist/valbuild-core-patch.esm.js +12 -4
- package/src/expr/repl.ts +2 -2
- package/src/index.ts +5 -0
- package/src/initVal.ts +1 -1
- package/src/patch/index.ts +1 -0
- package/src/patch/util.ts +7 -0
- package/src/schema/array.ts +45 -4
- package/src/schema/boolean.ts +14 -3
- package/src/schema/i18n.ts +4 -2
- package/src/schema/image.ts +65 -5
- package/src/schema/index.ts +23 -2
- package/src/schema/literal.ts +24 -3
- package/src/schema/number.ts +14 -3
- package/src/schema/object.ts +50 -7
- package/src/schema/oneOf.ts +3 -2
- package/src/schema/richtext.ts +63 -3
- package/src/schema/string.ts +14 -3
- package/src/schema/union.ts +3 -2
- package/src/schema/validation/ValidationError.ts +16 -0
- package/src/schema/validation/ValidationFix.ts +6 -0
- package/src/schema/validation.test.ts +226 -0
- package/src/selector/SelectorProxy.ts +1 -1
- package/dist/createClass-012eebbf.esm.js +0 -109
- package/dist/createClass-a436dbfe.cjs.dev.js +0 -116
- package/dist/createClass-de7426aa.cjs.prod.js +0 -116
- package/dist/index-9663f28a.cjs.dev.js +0 -1037
- package/dist/index-b2270f8f.cjs.prod.js +0 -1037
- package/dist/ops-6fae92a1.esm.js +0 -12
- package/dist/ops-87cdbafc.cjs.dev.js +0 -14
- package/dist/ops-ae4d1bc2.cjs.prod.js +0 -14
@@ -1,109 +0,0 @@
|
|
1
|
-
import { b as _arrayLikeToArray, c as _unsupportedIterableToArray } from './result-b96df128.esm.js';
|
2
|
-
|
3
|
-
function _toPrimitive(input, hint) {
|
4
|
-
if (typeof input !== "object" || input === null) return input;
|
5
|
-
var prim = input[Symbol.toPrimitive];
|
6
|
-
if (prim !== undefined) {
|
7
|
-
var res = prim.call(input, hint || "default");
|
8
|
-
if (typeof res !== "object") return res;
|
9
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
10
|
-
}
|
11
|
-
return (hint === "string" ? String : Number)(input);
|
12
|
-
}
|
13
|
-
|
14
|
-
function _toPropertyKey(arg) {
|
15
|
-
var key = _toPrimitive(arg, "string");
|
16
|
-
return typeof key === "symbol" ? key : String(key);
|
17
|
-
}
|
18
|
-
|
19
|
-
function _arrayWithoutHoles(arr) {
|
20
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
21
|
-
}
|
22
|
-
|
23
|
-
function _iterableToArray(iter) {
|
24
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
25
|
-
}
|
26
|
-
|
27
|
-
function _nonIterableSpread() {
|
28
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
29
|
-
}
|
30
|
-
|
31
|
-
function _toConsumableArray(arr) {
|
32
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
33
|
-
}
|
34
|
-
|
35
|
-
function _typeof(obj) {
|
36
|
-
"@babel/helpers - typeof";
|
37
|
-
|
38
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
39
|
-
return typeof obj;
|
40
|
-
} : function (obj) {
|
41
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
42
|
-
}, _typeof(obj);
|
43
|
-
}
|
44
|
-
|
45
|
-
function _arrayWithHoles(arr) {
|
46
|
-
if (Array.isArray(arr)) return arr;
|
47
|
-
}
|
48
|
-
|
49
|
-
function _iterableToArrayLimit(arr, i) {
|
50
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
51
|
-
if (null != _i) {
|
52
|
-
var _s,
|
53
|
-
_e,
|
54
|
-
_x,
|
55
|
-
_r,
|
56
|
-
_arr = [],
|
57
|
-
_n = !0,
|
58
|
-
_d = !1;
|
59
|
-
try {
|
60
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
61
|
-
if (Object(_i) !== _i) return;
|
62
|
-
_n = !1;
|
63
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
64
|
-
} catch (err) {
|
65
|
-
_d = !0, _e = err;
|
66
|
-
} finally {
|
67
|
-
try {
|
68
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
69
|
-
} finally {
|
70
|
-
if (_d) throw _e;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
return _arr;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
|
77
|
-
function _nonIterableRest() {
|
78
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
79
|
-
}
|
80
|
-
|
81
|
-
function _slicedToArray(arr, i) {
|
82
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
83
|
-
}
|
84
|
-
|
85
|
-
function _classCallCheck(instance, Constructor) {
|
86
|
-
if (!(instance instanceof Constructor)) {
|
87
|
-
throw new TypeError("Cannot call a class as a function");
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
function _defineProperties(target, props) {
|
92
|
-
for (var i = 0; i < props.length; i++) {
|
93
|
-
var descriptor = props[i];
|
94
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
95
|
-
descriptor.configurable = true;
|
96
|
-
if ("value" in descriptor) descriptor.writable = true;
|
97
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
98
|
-
}
|
99
|
-
}
|
100
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
101
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
102
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
103
|
-
Object.defineProperty(Constructor, "prototype", {
|
104
|
-
writable: false
|
105
|
-
});
|
106
|
-
return Constructor;
|
107
|
-
}
|
108
|
-
|
109
|
-
export { _classCallCheck as _, _createClass as a, _typeof as b, _slicedToArray as c, _toConsumableArray as d, _toPropertyKey as e };
|
@@ -1,116 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var result = require('./result-48320acd.cjs.dev.js');
|
4
|
-
|
5
|
-
function _toPrimitive(input, hint) {
|
6
|
-
if (typeof input !== "object" || input === null) return input;
|
7
|
-
var prim = input[Symbol.toPrimitive];
|
8
|
-
if (prim !== undefined) {
|
9
|
-
var res = prim.call(input, hint || "default");
|
10
|
-
if (typeof res !== "object") return res;
|
11
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
12
|
-
}
|
13
|
-
return (hint === "string" ? String : Number)(input);
|
14
|
-
}
|
15
|
-
|
16
|
-
function _toPropertyKey(arg) {
|
17
|
-
var key = _toPrimitive(arg, "string");
|
18
|
-
return typeof key === "symbol" ? key : String(key);
|
19
|
-
}
|
20
|
-
|
21
|
-
function _arrayWithoutHoles(arr) {
|
22
|
-
if (Array.isArray(arr)) return result._arrayLikeToArray(arr);
|
23
|
-
}
|
24
|
-
|
25
|
-
function _iterableToArray(iter) {
|
26
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
27
|
-
}
|
28
|
-
|
29
|
-
function _nonIterableSpread() {
|
30
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
31
|
-
}
|
32
|
-
|
33
|
-
function _toConsumableArray(arr) {
|
34
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || result._unsupportedIterableToArray(arr) || _nonIterableSpread();
|
35
|
-
}
|
36
|
-
|
37
|
-
function _typeof(obj) {
|
38
|
-
"@babel/helpers - typeof";
|
39
|
-
|
40
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
41
|
-
return typeof obj;
|
42
|
-
} : function (obj) {
|
43
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
44
|
-
}, _typeof(obj);
|
45
|
-
}
|
46
|
-
|
47
|
-
function _arrayWithHoles(arr) {
|
48
|
-
if (Array.isArray(arr)) return arr;
|
49
|
-
}
|
50
|
-
|
51
|
-
function _iterableToArrayLimit(arr, i) {
|
52
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
53
|
-
if (null != _i) {
|
54
|
-
var _s,
|
55
|
-
_e,
|
56
|
-
_x,
|
57
|
-
_r,
|
58
|
-
_arr = [],
|
59
|
-
_n = !0,
|
60
|
-
_d = !1;
|
61
|
-
try {
|
62
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
63
|
-
if (Object(_i) !== _i) return;
|
64
|
-
_n = !1;
|
65
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
66
|
-
} catch (err) {
|
67
|
-
_d = !0, _e = err;
|
68
|
-
} finally {
|
69
|
-
try {
|
70
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
71
|
-
} finally {
|
72
|
-
if (_d) throw _e;
|
73
|
-
}
|
74
|
-
}
|
75
|
-
return _arr;
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
function _nonIterableRest() {
|
80
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
81
|
-
}
|
82
|
-
|
83
|
-
function _slicedToArray(arr, i) {
|
84
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || result._unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
85
|
-
}
|
86
|
-
|
87
|
-
function _classCallCheck(instance, Constructor) {
|
88
|
-
if (!(instance instanceof Constructor)) {
|
89
|
-
throw new TypeError("Cannot call a class as a function");
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
function _defineProperties(target, props) {
|
94
|
-
for (var i = 0; i < props.length; i++) {
|
95
|
-
var descriptor = props[i];
|
96
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
97
|
-
descriptor.configurable = true;
|
98
|
-
if ("value" in descriptor) descriptor.writable = true;
|
99
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
100
|
-
}
|
101
|
-
}
|
102
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
103
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
104
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
105
|
-
Object.defineProperty(Constructor, "prototype", {
|
106
|
-
writable: false
|
107
|
-
});
|
108
|
-
return Constructor;
|
109
|
-
}
|
110
|
-
|
111
|
-
exports._classCallCheck = _classCallCheck;
|
112
|
-
exports._createClass = _createClass;
|
113
|
-
exports._slicedToArray = _slicedToArray;
|
114
|
-
exports._toConsumableArray = _toConsumableArray;
|
115
|
-
exports._toPropertyKey = _toPropertyKey;
|
116
|
-
exports._typeof = _typeof;
|
@@ -1,116 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var result = require('./result-26f67b40.cjs.prod.js');
|
4
|
-
|
5
|
-
function _toPrimitive(input, hint) {
|
6
|
-
if (typeof input !== "object" || input === null) return input;
|
7
|
-
var prim = input[Symbol.toPrimitive];
|
8
|
-
if (prim !== undefined) {
|
9
|
-
var res = prim.call(input, hint || "default");
|
10
|
-
if (typeof res !== "object") return res;
|
11
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
12
|
-
}
|
13
|
-
return (hint === "string" ? String : Number)(input);
|
14
|
-
}
|
15
|
-
|
16
|
-
function _toPropertyKey(arg) {
|
17
|
-
var key = _toPrimitive(arg, "string");
|
18
|
-
return typeof key === "symbol" ? key : String(key);
|
19
|
-
}
|
20
|
-
|
21
|
-
function _arrayWithoutHoles(arr) {
|
22
|
-
if (Array.isArray(arr)) return result._arrayLikeToArray(arr);
|
23
|
-
}
|
24
|
-
|
25
|
-
function _iterableToArray(iter) {
|
26
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
27
|
-
}
|
28
|
-
|
29
|
-
function _nonIterableSpread() {
|
30
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
31
|
-
}
|
32
|
-
|
33
|
-
function _toConsumableArray(arr) {
|
34
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || result._unsupportedIterableToArray(arr) || _nonIterableSpread();
|
35
|
-
}
|
36
|
-
|
37
|
-
function _typeof(obj) {
|
38
|
-
"@babel/helpers - typeof";
|
39
|
-
|
40
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
41
|
-
return typeof obj;
|
42
|
-
} : function (obj) {
|
43
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
44
|
-
}, _typeof(obj);
|
45
|
-
}
|
46
|
-
|
47
|
-
function _arrayWithHoles(arr) {
|
48
|
-
if (Array.isArray(arr)) return arr;
|
49
|
-
}
|
50
|
-
|
51
|
-
function _iterableToArrayLimit(arr, i) {
|
52
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
53
|
-
if (null != _i) {
|
54
|
-
var _s,
|
55
|
-
_e,
|
56
|
-
_x,
|
57
|
-
_r,
|
58
|
-
_arr = [],
|
59
|
-
_n = !0,
|
60
|
-
_d = !1;
|
61
|
-
try {
|
62
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
63
|
-
if (Object(_i) !== _i) return;
|
64
|
-
_n = !1;
|
65
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
66
|
-
} catch (err) {
|
67
|
-
_d = !0, _e = err;
|
68
|
-
} finally {
|
69
|
-
try {
|
70
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
71
|
-
} finally {
|
72
|
-
if (_d) throw _e;
|
73
|
-
}
|
74
|
-
}
|
75
|
-
return _arr;
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
function _nonIterableRest() {
|
80
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
81
|
-
}
|
82
|
-
|
83
|
-
function _slicedToArray(arr, i) {
|
84
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || result._unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
85
|
-
}
|
86
|
-
|
87
|
-
function _classCallCheck(instance, Constructor) {
|
88
|
-
if (!(instance instanceof Constructor)) {
|
89
|
-
throw new TypeError("Cannot call a class as a function");
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
function _defineProperties(target, props) {
|
94
|
-
for (var i = 0; i < props.length; i++) {
|
95
|
-
var descriptor = props[i];
|
96
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
97
|
-
descriptor.configurable = true;
|
98
|
-
if ("value" in descriptor) descriptor.writable = true;
|
99
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
100
|
-
}
|
101
|
-
}
|
102
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
103
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
104
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
105
|
-
Object.defineProperty(Constructor, "prototype", {
|
106
|
-
writable: false
|
107
|
-
});
|
108
|
-
return Constructor;
|
109
|
-
}
|
110
|
-
|
111
|
-
exports._classCallCheck = _classCallCheck;
|
112
|
-
exports._createClass = _createClass;
|
113
|
-
exports._slicedToArray = _slicedToArray;
|
114
|
-
exports._toConsumableArray = _toConsumableArray;
|
115
|
-
exports._toPropertyKey = _toPropertyKey;
|
116
|
-
exports._typeof = _typeof;
|