@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.
Files changed (39) hide show
  1. package/dist/declarations/src/expr/expr.d.ts +2 -2
  2. package/dist/declarations/src/expr/parser.d.ts +2 -2
  3. package/dist/declarations/src/index.d.ts +38 -5
  4. package/dist/declarations/src/initSchema.d.ts +19 -49
  5. package/dist/declarations/src/initVal.d.ts +8 -3
  6. package/dist/declarations/src/module.d.ts +6 -2
  7. package/dist/declarations/src/schema/file.d.ts +0 -1
  8. package/dist/declarations/src/schema/image.d.ts +0 -1
  9. package/dist/declarations/src/schema/keyOf.d.ts +5 -5
  10. package/dist/declarations/src/schema/richtext.d.ts +1 -21
  11. package/dist/declarations/src/schema/union.d.ts +13 -14
  12. package/dist/declarations/src/source/file.d.ts +7 -4
  13. package/dist/{index-41223963.cjs.prod.js → index-48930c58.cjs.dev.js} +267 -243
  14. package/dist/{index-4240c6a6.esm.js → index-65ec1d74.esm.js} +267 -244
  15. package/dist/{index-d384ec25.cjs.dev.js → index-f1a23e6c.cjs.prod.js} +267 -243
  16. package/dist/{result-a8316efa.esm.js → result-168dfc1d.esm.js} +42 -46
  17. package/dist/{result-48320acd.cjs.dev.js → result-787e35f6.cjs.prod.js} +41 -45
  18. package/dist/{result-26f67b40.cjs.prod.js → result-bb1f436e.cjs.dev.js} +41 -45
  19. package/dist/valbuild-core.cjs.d.ts +2 -2
  20. package/dist/valbuild-core.cjs.dev.js +3 -2
  21. package/dist/valbuild-core.cjs.prod.js +3 -2
  22. package/dist/valbuild-core.esm.js +2 -2
  23. package/expr/dist/valbuild-core-expr.cjs.d.ts +2 -2
  24. package/expr/dist/valbuild-core-expr.cjs.dev.js +2 -2
  25. package/expr/dist/valbuild-core-expr.cjs.prod.js +2 -2
  26. package/expr/dist/valbuild-core-expr.esm.js +2 -2
  27. package/fp/dist/valbuild-core-fp.cjs.d.ts +2 -2
  28. package/fp/dist/valbuild-core-fp.cjs.dev.js +1 -1
  29. package/fp/dist/valbuild-core-fp.cjs.prod.js +1 -1
  30. package/fp/dist/valbuild-core-fp.esm.js +1 -1
  31. package/package.json +1 -1
  32. package/patch/dist/valbuild-core-patch.cjs.d.ts +2 -2
  33. package/patch/dist/valbuild-core-patch.cjs.dev.js +8 -9
  34. package/patch/dist/valbuild-core-patch.cjs.prod.js +8 -9
  35. package/patch/dist/valbuild-core-patch.esm.js +9 -10
  36. package/dist/valbuild-core.cjs.d.ts.map +0 -1
  37. package/expr/dist/valbuild-core-expr.cjs.d.ts.map +0 -1
  38. package/fp/dist/valbuild-core-fp.cjs.d.ts.map +0 -1
  39. package/patch/dist/valbuild-core-patch.cjs.d.ts.map +0 -1
@@ -1,65 +1,61 @@
1
- function _arrayLikeToArray(arr, len) {
2
- if (len == null || len > arr.length) len = arr.length;
3
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
4
- return arr2;
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(o, minLen) {
8
- if (!o) return;
9
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
10
- var n = Object.prototype.toString.call(o).slice(8, -1);
11
- if (n === "Object" && o.constructor) n = o.constructor.name;
12
- if (n === "Map" || n === "Set") return Array.from(o);
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(o, allowArrayLike) {
17
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
18
- if (!it) {
19
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
20
- if (it) o = it;
21
- var i = 0;
22
- var F = function () {};
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
- if (i >= o.length) return {
27
- done: true
28
- };
29
- return {
30
- done: false,
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 (e) {
35
- throw e;
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 normalCompletion = true,
43
- didErr = false,
44
- err;
40
+ var o,
41
+ a = !0,
42
+ u = !1;
45
43
  return {
46
44
  s: function () {
47
- it = it.call(o);
45
+ t = t.call(r);
48
46
  },
49
47
  n: function () {
50
- var step = it.next();
51
- normalCompletion = step.done;
52
- return step;
48
+ var r = t.next();
49
+ return a = r.done, r;
53
50
  },
54
- e: function (e) {
55
- didErr = true;
56
- err = e;
51
+ e: function (r) {
52
+ u = !0, o = r;
57
53
  },
58
54
  f: function () {
59
55
  try {
60
- if (!normalCompletion && it.return != null) it.return();
56
+ a || null == t.return || t.return();
61
57
  } finally {
62
- if (didErr) throw err;
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 _result = _step.value;
130
- if (isOk(_result)) {
131
- values.push(_result.value);
125
+ var result = _step.value;
126
+ if (isOk(result)) {
127
+ values.push(result.value);
132
128
  } else {
133
- errors.push(_result.error);
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 _result2 = _step2.value;
170
- if (isErr(_result2)) {
171
- errs.push(_result2.error);
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 { _arrayLikeToArray as _, _unsupportedIterableToArray 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 };
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(arr, len) {
4
- if (len == null || len > arr.length) len = arr.length;
5
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
6
- return arr2;
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(o, minLen) {
10
- if (!o) return;
11
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
12
- var n = Object.prototype.toString.call(o).slice(8, -1);
13
- if (n === "Object" && o.constructor) n = o.constructor.name;
14
- if (n === "Map" || n === "Set") return Array.from(o);
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(o, allowArrayLike) {
19
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
20
- if (!it) {
21
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
22
- if (it) o = it;
23
- var i = 0;
24
- var F = function () {};
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
- if (i >= o.length) return {
29
- done: true
30
- };
31
- return {
32
- done: false,
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 (e) {
37
- throw e;
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 normalCompletion = true,
45
- didErr = false,
46
- err;
42
+ var o,
43
+ a = !0,
44
+ u = !1;
47
45
  return {
48
46
  s: function () {
49
- it = it.call(o);
47
+ t = t.call(r);
50
48
  },
51
49
  n: function () {
52
- var step = it.next();
53
- normalCompletion = step.done;
54
- return step;
50
+ var r = t.next();
51
+ return a = r.done, r;
55
52
  },
56
- e: function (e) {
57
- didErr = true;
58
- err = e;
53
+ e: function (r) {
54
+ u = !0, o = r;
59
55
  },
60
56
  f: function () {
61
57
  try {
62
- if (!normalCompletion && it.return != null) it.return();
58
+ a || null == t.return || t.return();
63
59
  } finally {
64
- if (didErr) throw err;
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 _result = _step.value;
132
- if (isOk(_result)) {
133
- values.push(_result.value);
127
+ var result = _step.value;
128
+ if (isOk(result)) {
129
+ values.push(result.value);
134
130
  } else {
135
- errors.push(_result.error);
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 _result2 = _step2.value;
172
- if (isErr(_result2)) {
173
- errs.push(_result2.error);
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(arr, len) {
4
- if (len == null || len > arr.length) len = arr.length;
5
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
6
- return arr2;
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(o, minLen) {
10
- if (!o) return;
11
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
12
- var n = Object.prototype.toString.call(o).slice(8, -1);
13
- if (n === "Object" && o.constructor) n = o.constructor.name;
14
- if (n === "Map" || n === "Set") return Array.from(o);
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(o, allowArrayLike) {
19
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
20
- if (!it) {
21
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
22
- if (it) o = it;
23
- var i = 0;
24
- var F = function () {};
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
- if (i >= o.length) return {
29
- done: true
30
- };
31
- return {
32
- done: false,
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 (e) {
37
- throw e;
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 normalCompletion = true,
45
- didErr = false,
46
- err;
42
+ var o,
43
+ a = !0,
44
+ u = !1;
47
45
  return {
48
46
  s: function () {
49
- it = it.call(o);
47
+ t = t.call(r);
50
48
  },
51
49
  n: function () {
52
- var step = it.next();
53
- normalCompletion = step.done;
54
- return step;
50
+ var r = t.next();
51
+ return a = r.done, r;
55
52
  },
56
- e: function (e) {
57
- didErr = true;
58
- err = e;
53
+ e: function (r) {
54
+ u = !0, o = r;
59
55
  },
60
56
  f: function () {
61
57
  try {
62
- if (!normalCompletion && it.return != null) it.return();
58
+ a || null == t.return || t.return();
63
59
  } finally {
64
- if (didErr) throw err;
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 _result = _step.value;
132
- if (isOk(_result)) {
133
- values.push(_result.value);
127
+ var result = _step.value;
128
+ if (isOk(result)) {
129
+ values.push(result.value);
134
130
  } else {
135
- errors.push(_result.error);
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 _result2 = _step2.value;
172
- if (isErr(_result2)) {
173
- errs.push(_result2.error);
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=valbuild-core.cjs.d.ts.map
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-d384ec25.cjs.dev.js');
6
- require('./result-48320acd.cjs.dev.js');
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-41223963.cjs.prod.js');
6
- require('./result-26f67b40.cjs.prod.js');
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-4240c6a6.esm.js';
2
- import './result-a8316efa.esm.js';
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=valbuild-core-expr.cjs.d.ts.map
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-d384ec25.cjs.dev.js');
6
- require('../../dist/result-48320acd.cjs.dev.js');
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-41223963.cjs.prod.js');
6
- require('../../dist/result-26f67b40.cjs.prod.js');
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-4240c6a6.esm.js';
2
- import '../../dist/result-a8316efa.esm.js';
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=valbuild-core-fp.cjs.d.ts.map
1
+ export * from "../../dist/declarations/src/fp/index.js";
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsYnVpbGQtY29yZS1mcC5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2Rpc3QvZGVjbGFyYXRpb25zL3NyYy9mcC9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var result = require('../../dist/result-48320acd.cjs.dev.js');
5
+ var result = require('../../dist/result-bb1f436e.cjs.dev.js');
6
6
  var util = require('../../dist/util-b213092b.cjs.dev.js');
7
7
 
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var result = require('../../dist/result-26f67b40.cjs.prod.js');
5
+ var result = require('../../dist/result-787e35f6.cjs.prod.js');
6
6
  var util = require('../../dist/util-030d8a1f.cjs.prod.js');
7
7
 
8
8
 
@@ -1,2 +1,2 @@
1
- export { d as array, r as result } from '../../dist/result-a8316efa.esm.js';
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/core",
3
- "version": "0.64.0",
3
+ "version": "0.65.0",
4
4
  "private": false,
5
5
  "description": "Val - supercharged hard-coded content",
6
6
  "scripts": {
@@ -1,2 +1,2 @@
1
- export * from "../../dist/declarations/src/patch/index";
2
- //# sourceMappingURL=valbuild-core-patch.cjs.d.ts.map
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-d384ec25.cjs.dev.js');
6
- var result = require('../../dist/result-48320acd.cjs.dev.js');
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 _replaced = node[key];
100
+ var replaced = node[key];
101
101
  node[key] = value;
102
- return result.ok(_replaced);
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 _replaced2;
199
+ var replaced;
200
200
  // Prototype pollution protection
201
201
  if (Object.prototype.hasOwnProperty.call(node, key)) {
202
- _replaced2 = node[key];
202
+ replaced = node[key];
203
203
  }
204
204
  node[key] = value;
205
- return result.ok(_replaced2);
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) {