@valbuild/core 0.64.0 → 0.65.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/declarations/src/expr/expr.d.ts +2 -2
- package/dist/declarations/src/expr/parser.d.ts +2 -2
- package/dist/declarations/src/index.d.ts +38 -5
- package/dist/declarations/src/initSchema.d.ts +19 -49
- package/dist/declarations/src/initVal.d.ts +8 -3
- package/dist/declarations/src/module.d.ts +6 -2
- package/dist/declarations/src/schema/file.d.ts +0 -1
- package/dist/declarations/src/schema/image.d.ts +0 -1
- package/dist/declarations/src/schema/keyOf.d.ts +5 -5
- package/dist/declarations/src/schema/richtext.d.ts +1 -21
- package/dist/declarations/src/schema/union.d.ts +13 -14
- package/dist/declarations/src/source/file.d.ts +7 -4
- package/dist/{index-41223963.cjs.prod.js → index-48930c58.cjs.dev.js} +267 -243
- package/dist/{index-4240c6a6.esm.js → index-65ec1d74.esm.js} +267 -244
- package/dist/{index-d384ec25.cjs.dev.js → index-f1a23e6c.cjs.prod.js} +267 -243
- package/dist/{result-a8316efa.esm.js → result-168dfc1d.esm.js} +42 -46
- package/dist/{result-48320acd.cjs.dev.js → result-787e35f6.cjs.prod.js} +41 -45
- package/dist/{result-26f67b40.cjs.prod.js → result-bb1f436e.cjs.dev.js} +41 -45
- package/dist/valbuild-core.cjs.d.ts +2 -2
- package/dist/valbuild-core.cjs.dev.js +3 -2
- package/dist/valbuild-core.cjs.prod.js +3 -2
- package/dist/valbuild-core.esm.js +2 -2
- package/expr/dist/valbuild-core-expr.cjs.d.ts +2 -2
- package/expr/dist/valbuild-core-expr.cjs.dev.js +2 -2
- package/expr/dist/valbuild-core-expr.cjs.prod.js +2 -2
- package/expr/dist/valbuild-core-expr.esm.js +2 -2
- package/fp/dist/valbuild-core-fp.cjs.d.ts +2 -2
- package/fp/dist/valbuild-core-fp.cjs.dev.js +1 -1
- package/fp/dist/valbuild-core-fp.cjs.prod.js +1 -1
- package/fp/dist/valbuild-core-fp.esm.js +1 -1
- package/package.json +1 -1
- package/patch/dist/valbuild-core-patch.cjs.d.ts +2 -2
- package/patch/dist/valbuild-core-patch.cjs.dev.js +8 -9
- package/patch/dist/valbuild-core-patch.cjs.prod.js +8 -9
- package/patch/dist/valbuild-core-patch.esm.js +9 -10
- package/dist/valbuild-core.cjs.d.ts.map +0 -1
- package/expr/dist/valbuild-core-expr.cjs.d.ts.map +0 -1
- package/fp/dist/valbuild-core-fp.cjs.d.ts.map +0 -1
- package/patch/dist/valbuild-core-patch.cjs.d.ts.map +0 -1
@@ -1,65 +1,61 @@
|
|
1
|
-
function _arrayLikeToArray(
|
2
|
-
|
3
|
-
for (var
|
4
|
-
return
|
1
|
+
function _arrayLikeToArray(r, a) {
|
2
|
+
(null == a || a > r.length) && (a = r.length);
|
3
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
4
|
+
return n;
|
5
5
|
}
|
6
6
|
|
7
|
-
function _unsupportedIterableToArray(
|
8
|
-
if (
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
7
|
+
function _unsupportedIterableToArray(r, a) {
|
8
|
+
if (r) {
|
9
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
10
|
+
var t = {}.toString.call(r).slice(8, -1);
|
11
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
12
|
+
}
|
14
13
|
}
|
15
14
|
|
16
|
-
function _createForOfIteratorHelper(
|
17
|
-
var
|
18
|
-
if (!
|
19
|
-
if (Array.isArray(
|
20
|
-
|
21
|
-
var
|
22
|
-
|
15
|
+
function _createForOfIteratorHelper(r, e) {
|
16
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
17
|
+
if (!t) {
|
18
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
19
|
+
t && (r = t);
|
20
|
+
var n = 0,
|
21
|
+
F = function () {};
|
23
22
|
return {
|
24
23
|
s: F,
|
25
24
|
n: function () {
|
26
|
-
|
27
|
-
done:
|
28
|
-
}
|
29
|
-
|
30
|
-
|
31
|
-
value: o[i++]
|
25
|
+
return n >= r.length ? {
|
26
|
+
done: !0
|
27
|
+
} : {
|
28
|
+
done: !1,
|
29
|
+
value: r[n++]
|
32
30
|
};
|
33
31
|
},
|
34
|
-
e: function (
|
35
|
-
throw
|
32
|
+
e: function (r) {
|
33
|
+
throw r;
|
36
34
|
},
|
37
35
|
f: F
|
38
36
|
};
|
39
37
|
}
|
40
38
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
41
39
|
}
|
42
|
-
var
|
43
|
-
|
44
|
-
|
40
|
+
var o,
|
41
|
+
a = !0,
|
42
|
+
u = !1;
|
45
43
|
return {
|
46
44
|
s: function () {
|
47
|
-
|
45
|
+
t = t.call(r);
|
48
46
|
},
|
49
47
|
n: function () {
|
50
|
-
var
|
51
|
-
|
52
|
-
return step;
|
48
|
+
var r = t.next();
|
49
|
+
return a = r.done, r;
|
53
50
|
},
|
54
|
-
e: function (
|
55
|
-
|
56
|
-
err = e;
|
51
|
+
e: function (r) {
|
52
|
+
u = !0, o = r;
|
57
53
|
},
|
58
54
|
f: function () {
|
59
55
|
try {
|
60
|
-
|
56
|
+
a || null == t.return || t.return();
|
61
57
|
} finally {
|
62
|
-
if (
|
58
|
+
if (u) throw o;
|
63
59
|
}
|
64
60
|
}
|
65
61
|
};
|
@@ -126,11 +122,11 @@ function allT(results) {
|
|
126
122
|
_step;
|
127
123
|
try {
|
128
124
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
129
|
-
var
|
130
|
-
if (isOk(
|
131
|
-
values.push(
|
125
|
+
var result = _step.value;
|
126
|
+
if (isOk(result)) {
|
127
|
+
values.push(result.value);
|
132
128
|
} else {
|
133
|
-
errors.push(
|
129
|
+
errors.push(result.error);
|
134
130
|
}
|
135
131
|
}
|
136
132
|
} catch (err) {
|
@@ -166,9 +162,9 @@ function allV(results) {
|
|
166
162
|
_step2;
|
167
163
|
try {
|
168
164
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
169
|
-
var
|
170
|
-
if (isErr(
|
171
|
-
errs.push(
|
165
|
+
var result = _step2.value;
|
166
|
+
if (isErr(result)) {
|
167
|
+
errs.push(result.error);
|
172
168
|
}
|
173
169
|
}
|
174
170
|
} catch (err) {
|
@@ -276,4 +272,4 @@ var result = /*#__PURE__*/Object.freeze({
|
|
276
272
|
filterOrElse: filterOrElse
|
277
273
|
});
|
278
274
|
|
279
|
-
export {
|
275
|
+
export { _unsupportedIterableToArray as _, _arrayLikeToArray as a, isOk as b, _createForOfIteratorHelper as c, array as d, err as e, isNonEmpty as f, flatMap as g, flatMapReduce as h, isErr as i, filterOrElse as j, mapErr as k, map$1 as l, map as m, all as n, ok as o, flatten as p, allT as q, result as r };
|
@@ -1,67 +1,63 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
function _arrayLikeToArray(
|
4
|
-
|
5
|
-
for (var
|
6
|
-
return
|
3
|
+
function _arrayLikeToArray(r, a) {
|
4
|
+
(null == a || a > r.length) && (a = r.length);
|
5
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
6
|
+
return n;
|
7
7
|
}
|
8
8
|
|
9
|
-
function _unsupportedIterableToArray(
|
10
|
-
if (
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
9
|
+
function _unsupportedIterableToArray(r, a) {
|
10
|
+
if (r) {
|
11
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
12
|
+
var t = {}.toString.call(r).slice(8, -1);
|
13
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
14
|
+
}
|
16
15
|
}
|
17
16
|
|
18
|
-
function _createForOfIteratorHelper(
|
19
|
-
var
|
20
|
-
if (!
|
21
|
-
if (Array.isArray(
|
22
|
-
|
23
|
-
var
|
24
|
-
|
17
|
+
function _createForOfIteratorHelper(r, e) {
|
18
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
19
|
+
if (!t) {
|
20
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
21
|
+
t && (r = t);
|
22
|
+
var n = 0,
|
23
|
+
F = function () {};
|
25
24
|
return {
|
26
25
|
s: F,
|
27
26
|
n: function () {
|
28
|
-
|
29
|
-
done:
|
30
|
-
}
|
31
|
-
|
32
|
-
|
33
|
-
value: o[i++]
|
27
|
+
return n >= r.length ? {
|
28
|
+
done: !0
|
29
|
+
} : {
|
30
|
+
done: !1,
|
31
|
+
value: r[n++]
|
34
32
|
};
|
35
33
|
},
|
36
|
-
e: function (
|
37
|
-
throw
|
34
|
+
e: function (r) {
|
35
|
+
throw r;
|
38
36
|
},
|
39
37
|
f: F
|
40
38
|
};
|
41
39
|
}
|
42
40
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
43
41
|
}
|
44
|
-
var
|
45
|
-
|
46
|
-
|
42
|
+
var o,
|
43
|
+
a = !0,
|
44
|
+
u = !1;
|
47
45
|
return {
|
48
46
|
s: function () {
|
49
|
-
|
47
|
+
t = t.call(r);
|
50
48
|
},
|
51
49
|
n: function () {
|
52
|
-
var
|
53
|
-
|
54
|
-
return step;
|
50
|
+
var r = t.next();
|
51
|
+
return a = r.done, r;
|
55
52
|
},
|
56
|
-
e: function (
|
57
|
-
|
58
|
-
err = e;
|
53
|
+
e: function (r) {
|
54
|
+
u = !0, o = r;
|
59
55
|
},
|
60
56
|
f: function () {
|
61
57
|
try {
|
62
|
-
|
58
|
+
a || null == t.return || t.return();
|
63
59
|
} finally {
|
64
|
-
if (
|
60
|
+
if (u) throw o;
|
65
61
|
}
|
66
62
|
}
|
67
63
|
};
|
@@ -128,11 +124,11 @@ function allT(results) {
|
|
128
124
|
_step;
|
129
125
|
try {
|
130
126
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
131
|
-
var
|
132
|
-
if (isOk(
|
133
|
-
values.push(
|
127
|
+
var result = _step.value;
|
128
|
+
if (isOk(result)) {
|
129
|
+
values.push(result.value);
|
134
130
|
} else {
|
135
|
-
errors.push(
|
131
|
+
errors.push(result.error);
|
136
132
|
}
|
137
133
|
}
|
138
134
|
} catch (err) {
|
@@ -168,9 +164,9 @@ function allV(results) {
|
|
168
164
|
_step2;
|
169
165
|
try {
|
170
166
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
171
|
-
var
|
172
|
-
if (isErr(
|
173
|
-
errs.push(
|
167
|
+
var result = _step2.value;
|
168
|
+
if (isErr(result)) {
|
169
|
+
errs.push(result.error);
|
174
170
|
}
|
175
171
|
}
|
176
172
|
} catch (err) {
|
@@ -1,67 +1,63 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
function _arrayLikeToArray(
|
4
|
-
|
5
|
-
for (var
|
6
|
-
return
|
3
|
+
function _arrayLikeToArray(r, a) {
|
4
|
+
(null == a || a > r.length) && (a = r.length);
|
5
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
6
|
+
return n;
|
7
7
|
}
|
8
8
|
|
9
|
-
function _unsupportedIterableToArray(
|
10
|
-
if (
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
9
|
+
function _unsupportedIterableToArray(r, a) {
|
10
|
+
if (r) {
|
11
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
12
|
+
var t = {}.toString.call(r).slice(8, -1);
|
13
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
14
|
+
}
|
16
15
|
}
|
17
16
|
|
18
|
-
function _createForOfIteratorHelper(
|
19
|
-
var
|
20
|
-
if (!
|
21
|
-
if (Array.isArray(
|
22
|
-
|
23
|
-
var
|
24
|
-
|
17
|
+
function _createForOfIteratorHelper(r, e) {
|
18
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
19
|
+
if (!t) {
|
20
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
21
|
+
t && (r = t);
|
22
|
+
var n = 0,
|
23
|
+
F = function () {};
|
25
24
|
return {
|
26
25
|
s: F,
|
27
26
|
n: function () {
|
28
|
-
|
29
|
-
done:
|
30
|
-
}
|
31
|
-
|
32
|
-
|
33
|
-
value: o[i++]
|
27
|
+
return n >= r.length ? {
|
28
|
+
done: !0
|
29
|
+
} : {
|
30
|
+
done: !1,
|
31
|
+
value: r[n++]
|
34
32
|
};
|
35
33
|
},
|
36
|
-
e: function (
|
37
|
-
throw
|
34
|
+
e: function (r) {
|
35
|
+
throw r;
|
38
36
|
},
|
39
37
|
f: F
|
40
38
|
};
|
41
39
|
}
|
42
40
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
43
41
|
}
|
44
|
-
var
|
45
|
-
|
46
|
-
|
42
|
+
var o,
|
43
|
+
a = !0,
|
44
|
+
u = !1;
|
47
45
|
return {
|
48
46
|
s: function () {
|
49
|
-
|
47
|
+
t = t.call(r);
|
50
48
|
},
|
51
49
|
n: function () {
|
52
|
-
var
|
53
|
-
|
54
|
-
return step;
|
50
|
+
var r = t.next();
|
51
|
+
return a = r.done, r;
|
55
52
|
},
|
56
|
-
e: function (
|
57
|
-
|
58
|
-
err = e;
|
53
|
+
e: function (r) {
|
54
|
+
u = !0, o = r;
|
59
55
|
},
|
60
56
|
f: function () {
|
61
57
|
try {
|
62
|
-
|
58
|
+
a || null == t.return || t.return();
|
63
59
|
} finally {
|
64
|
-
if (
|
60
|
+
if (u) throw o;
|
65
61
|
}
|
66
62
|
}
|
67
63
|
};
|
@@ -128,11 +124,11 @@ function allT(results) {
|
|
128
124
|
_step;
|
129
125
|
try {
|
130
126
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
131
|
-
var
|
132
|
-
if (isOk(
|
133
|
-
values.push(
|
127
|
+
var result = _step.value;
|
128
|
+
if (isOk(result)) {
|
129
|
+
values.push(result.value);
|
134
130
|
} else {
|
135
|
-
errors.push(
|
131
|
+
errors.push(result.error);
|
136
132
|
}
|
137
133
|
}
|
138
134
|
} catch (err) {
|
@@ -168,9 +164,9 @@ function allV(results) {
|
|
168
164
|
_step2;
|
169
165
|
try {
|
170
166
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
171
|
-
var
|
172
|
-
if (isErr(
|
173
|
-
errs.push(
|
167
|
+
var result = _step2.value;
|
168
|
+
if (isErr(result)) {
|
169
|
+
errs.push(result.error);
|
174
170
|
}
|
175
171
|
}
|
176
172
|
} catch (err) {
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from "./declarations/src/index";
|
2
|
-
//# sourceMappingURL=
|
1
|
+
export * from "./declarations/src/index.js";
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsYnVpbGQtY29yZS5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4vZGVjbGFyYXRpb25zL3NyYy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('./index-
|
6
|
-
require('./result-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('./index-48930c58.cjs.dev.js');
|
6
|
+
require('./result-bb1f436e.cjs.dev.js');
|
7
7
|
require('marked');
|
8
8
|
require('@valbuild/core');
|
9
9
|
|
@@ -21,6 +21,7 @@ exports.ImageSchema = expr_dist_valbuildCoreExpr.ImageSchema;
|
|
21
21
|
exports.Internal = expr_dist_valbuildCoreExpr.Internal;
|
22
22
|
exports.KeyOfSchema = expr_dist_valbuildCoreExpr.KeyOfSchema;
|
23
23
|
exports.LiteralSchema = expr_dist_valbuildCoreExpr.LiteralSchema;
|
24
|
+
exports.ModuleFilePathSep = expr_dist_valbuildCoreExpr.ModuleFilePathSep;
|
24
25
|
exports.NumberSchema = expr_dist_valbuildCoreExpr.NumberSchema;
|
25
26
|
exports.ObjectSchema = expr_dist_valbuildCoreExpr.ObjectSchema;
|
26
27
|
exports.RT_IMAGE_TAG = expr_dist_valbuildCoreExpr.RT_IMAGE_TAG;
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('./index-
|
6
|
-
require('./result-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('./index-f1a23e6c.cjs.prod.js');
|
6
|
+
require('./result-787e35f6.cjs.prod.js');
|
7
7
|
require('marked');
|
8
8
|
require('@valbuild/core');
|
9
9
|
|
@@ -21,6 +21,7 @@ exports.ImageSchema = expr_dist_valbuildCoreExpr.ImageSchema;
|
|
21
21
|
exports.Internal = expr_dist_valbuildCoreExpr.Internal;
|
22
22
|
exports.KeyOfSchema = expr_dist_valbuildCoreExpr.KeyOfSchema;
|
23
23
|
exports.LiteralSchema = expr_dist_valbuildCoreExpr.LiteralSchema;
|
24
|
+
exports.ModuleFilePathSep = expr_dist_valbuildCoreExpr.ModuleFilePathSep;
|
24
25
|
exports.NumberSchema = expr_dist_valbuildCoreExpr.NumberSchema;
|
25
26
|
exports.ObjectSchema = expr_dist_valbuildCoreExpr.ObjectSchema;
|
26
27
|
exports.RT_IMAGE_TAG = expr_dist_valbuildCoreExpr.RT_IMAGE_TAG;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { A as ArraySchema, B as BooleanSchema, D as DateSchema, F as FATAL_ERROR_TYPES, k as FILE_REF_PROP, l as FILE_REF_SUBTYPE_TAG, u as FileSchema, G as GenericSelector, t as ImageSchema, I as Internal, K as KeyOfSchema, L as LiteralSchema, r as NumberSchema, O as ObjectSchema, R as RT_IMAGE_TAG, o as RecordSchema, v as RichTextSchema, j as Schema, q as StringSchema, U as UnionSchema, V as VAL_EXTENSION, n as derefPatch, w as deserializeSchema, i as expr, h as initVal, m as modules } from './index-
|
2
|
-
import './result-
|
1
|
+
export { A as ArraySchema, B as BooleanSchema, D as DateSchema, F as FATAL_ERROR_TYPES, k as FILE_REF_PROP, l as FILE_REF_SUBTYPE_TAG, u as FileSchema, G as GenericSelector, t as ImageSchema, I as Internal, K as KeyOfSchema, L as LiteralSchema, M as ModuleFilePathSep, r as NumberSchema, O as ObjectSchema, R as RT_IMAGE_TAG, o as RecordSchema, v as RichTextSchema, j as Schema, q as StringSchema, U as UnionSchema, V as VAL_EXTENSION, n as derefPatch, w as deserializeSchema, i as expr, h as initVal, m as modules } from './index-65ec1d74.esm.js';
|
2
|
+
import './result-168dfc1d.esm.js';
|
3
3
|
import 'marked';
|
4
4
|
import '@valbuild/core';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from "../../dist/declarations/src/expr/index";
|
2
|
-
//# sourceMappingURL=
|
1
|
+
export * from "../../dist/declarations/src/expr/index.js";
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsYnVpbGQtY29yZS1leHByLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vZGlzdC9kZWNsYXJhdGlvbnMvc3JjL2V4cHIvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('../../dist/index-
|
6
|
-
require('../../dist/result-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('../../dist/index-48930c58.cjs.dev.js');
|
6
|
+
require('../../dist/result-bb1f436e.cjs.dev.js');
|
7
7
|
require('marked');
|
8
8
|
require('@valbuild/core');
|
9
9
|
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('../../dist/index-
|
6
|
-
require('../../dist/result-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('../../dist/index-f1a23e6c.cjs.prod.js');
|
6
|
+
require('../../dist/result-787e35f6.cjs.prod.js');
|
7
7
|
require('marked');
|
8
8
|
require('@valbuild/core');
|
9
9
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { C as Call, E as Expr, N as NilSym, S as StringLiteral, e as StringTemplate, f as Sym, g as evaluate, p as parse } from '../../dist/index-
|
2
|
-
import '../../dist/result-
|
1
|
+
export { C as Call, E as Expr, N as NilSym, S as StringLiteral, e as StringTemplate, f as Sym, g as evaluate, p as parse } from '../../dist/index-65ec1d74.esm.js';
|
2
|
+
import '../../dist/result-168dfc1d.esm.js';
|
3
3
|
import 'marked';
|
4
4
|
import '@valbuild/core';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from "../../dist/declarations/src/fp/index";
|
2
|
-
//# sourceMappingURL=
|
1
|
+
export * from "../../dist/declarations/src/fp/index.js";
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsYnVpbGQtY29yZS1mcC5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2Rpc3QvZGVjbGFyYXRpb25zL3NyYy9mcC9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { d as array, r as result } from '../../dist/result-
|
1
|
+
export { d as array, r as result } from '../../dist/result-168dfc1d.esm.js';
|
2
2
|
export { p as pipe, t as tap } from '../../dist/util-18613e99.esm.js';
|
package/package.json
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from "../../dist/declarations/src/patch/index";
|
2
|
-
//# sourceMappingURL=
|
1
|
+
export * from "../../dist/declarations/src/patch/index.js";
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsYnVpbGQtY29yZS1wYXRjaC5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2Rpc3QvZGVjbGFyYXRpb25zL3NyYy9wYXRjaC9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('../../dist/index-
|
6
|
-
var result = require('../../dist/result-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('../../dist/index-48930c58.cjs.dev.js');
|
6
|
+
var result = require('../../dist/result-bb1f436e.cjs.dev.js');
|
7
7
|
var util = require('../../dist/util-b213092b.cjs.dev.js');
|
8
8
|
require('marked');
|
9
9
|
require('@valbuild/core');
|
@@ -97,9 +97,9 @@ function replaceInNode(node, key, value) {
|
|
97
97
|
} else if (expr_dist_valbuildCoreExpr._typeof(node) === "object" && node !== null) {
|
98
98
|
// Prototype pollution protection
|
99
99
|
if (Object.prototype.hasOwnProperty.call(node, key)) {
|
100
|
-
var
|
100
|
+
var replaced = node[key];
|
101
101
|
node[key] = value;
|
102
|
-
return result.ok(
|
102
|
+
return result.ok(replaced);
|
103
103
|
} else {
|
104
104
|
return result.err(new expr_dist_valbuildCoreExpr.PatchError("Cannot replace object element which does not exist"));
|
105
105
|
}
|
@@ -196,13 +196,13 @@ function addToNode(node, key, value) {
|
|
196
196
|
return undefined;
|
197
197
|
}));
|
198
198
|
} else if (expr_dist_valbuildCoreExpr._typeof(node) === "object" && node !== null) {
|
199
|
-
var
|
199
|
+
var replaced;
|
200
200
|
// Prototype pollution protection
|
201
201
|
if (Object.prototype.hasOwnProperty.call(node, key)) {
|
202
|
-
|
202
|
+
replaced = node[key];
|
203
203
|
}
|
204
204
|
node[key] = value;
|
205
|
-
return result.ok(
|
205
|
+
return result.ok(replaced);
|
206
206
|
}
|
207
207
|
return result.err(new expr_dist_valbuildCoreExpr.PatchError("Cannot add to non-object/array"));
|
208
208
|
}
|
@@ -229,7 +229,7 @@ var JSONOps = /*#__PURE__*/function () {
|
|
229
229
|
function JSONOps() {
|
230
230
|
expr_dist_valbuildCoreExpr._classCallCheck(this, JSONOps);
|
231
231
|
}
|
232
|
-
expr_dist_valbuildCoreExpr._createClass(JSONOps, [{
|
232
|
+
return expr_dist_valbuildCoreExpr._createClass(JSONOps, [{
|
233
233
|
key: "get",
|
234
234
|
value: function get(document, path) {
|
235
235
|
return getAtPath(document, path);
|
@@ -273,7 +273,6 @@ var JSONOps = /*#__PURE__*/function () {
|
|
273
273
|
}));
|
274
274
|
}
|
275
275
|
}]);
|
276
|
-
return JSONOps;
|
277
276
|
}();
|
278
277
|
|
279
278
|
function parseJSONPointerReferenceToken(value) {
|