@valbuild/core 0.96.2 → 0.96.3
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/{index-2e89de75.cjs.prod.js → index-5bc1d576.cjs.prod.js} +9 -25
- package/dist/{index-68cee7e3.esm.js → index-ba727e96.esm.js} +9 -25
- package/dist/{index-1d88f031.cjs.dev.js → index-d020e978.cjs.dev.js} +9 -25
- package/dist/valbuild-core.cjs.dev.js +1 -1
- package/dist/valbuild-core.cjs.prod.js +1 -1
- package/dist/valbuild-core.esm.js +1 -1
- package/package.json +1 -1
- package/patch/dist/valbuild-core-patch.cjs.dev.js +1 -1
- package/patch/dist/valbuild-core-patch.cjs.prod.js +1 -1
- package/patch/dist/valbuild-core-patch.esm.js +2 -2
|
@@ -2397,28 +2397,12 @@ var RichTextSchema = /*#__PURE__*/function (_Schema) {
|
|
|
2397
2397
|
}])
|
|
2398
2398
|
};
|
|
2399
2399
|
}
|
|
2400
|
-
var
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
if (res) {
|
|
2407
|
-
return {
|
|
2408
|
-
v: res
|
|
2409
|
-
};
|
|
2410
|
-
}
|
|
2411
|
-
} else if (typeof child === "string") {
|
|
2412
|
-
length += child.length;
|
|
2413
|
-
continue;
|
|
2414
|
-
} else {
|
|
2415
|
-
return {
|
|
2416
|
-
v: _defineProperty({}, path, [{
|
|
2417
|
-
message: "Expected 'object' or 'string', got '".concat(_typeof(child), "'"),
|
|
2418
|
-
typeError: true
|
|
2419
|
-
}])
|
|
2420
|
-
};
|
|
2421
|
-
}
|
|
2400
|
+
var childPath = unsafeCreateSourcePath(path, "children");
|
|
2401
|
+
var res = _recurse(childPath, node.children, current);
|
|
2402
|
+
if (res) {
|
|
2403
|
+
return {
|
|
2404
|
+
v: res
|
|
2405
|
+
};
|
|
2422
2406
|
}
|
|
2423
2407
|
}
|
|
2424
2408
|
},
|
|
@@ -2601,10 +2585,10 @@ var RichTextSchema = /*#__PURE__*/function (_Schema) {
|
|
|
2601
2585
|
typeError: true
|
|
2602
2586
|
});
|
|
2603
2587
|
} else {
|
|
2604
|
-
for (var
|
|
2605
|
-
var style = node.styles[
|
|
2588
|
+
for (var _i = 0; _i < node.styles.length; _i++) {
|
|
2589
|
+
var style = node.styles[_i];
|
|
2606
2590
|
if (typeof style !== "string") {
|
|
2607
|
-
var _pathAtError = unsafeCreateSourcePath(path,
|
|
2591
|
+
var _pathAtError = unsafeCreateSourcePath(path, _i);
|
|
2608
2592
|
if (!errors[_pathAtError]) {
|
|
2609
2593
|
errors[_pathAtError] = [];
|
|
2610
2594
|
}
|
|
@@ -2395,28 +2395,12 @@ var RichTextSchema = /*#__PURE__*/function (_Schema) {
|
|
|
2395
2395
|
}])
|
|
2396
2396
|
};
|
|
2397
2397
|
}
|
|
2398
|
-
var
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
if (res) {
|
|
2405
|
-
return {
|
|
2406
|
-
v: res
|
|
2407
|
-
};
|
|
2408
|
-
}
|
|
2409
|
-
} else if (typeof child === "string") {
|
|
2410
|
-
length += child.length;
|
|
2411
|
-
continue;
|
|
2412
|
-
} else {
|
|
2413
|
-
return {
|
|
2414
|
-
v: _defineProperty({}, path, [{
|
|
2415
|
-
message: "Expected 'object' or 'string', got '".concat(_typeof(child), "'"),
|
|
2416
|
-
typeError: true
|
|
2417
|
-
}])
|
|
2418
|
-
};
|
|
2419
|
-
}
|
|
2398
|
+
var childPath = unsafeCreateSourcePath(path, "children");
|
|
2399
|
+
var res = _recurse(childPath, node.children, current);
|
|
2400
|
+
if (res) {
|
|
2401
|
+
return {
|
|
2402
|
+
v: res
|
|
2403
|
+
};
|
|
2420
2404
|
}
|
|
2421
2405
|
}
|
|
2422
2406
|
},
|
|
@@ -2599,10 +2583,10 @@ var RichTextSchema = /*#__PURE__*/function (_Schema) {
|
|
|
2599
2583
|
typeError: true
|
|
2600
2584
|
});
|
|
2601
2585
|
} else {
|
|
2602
|
-
for (var
|
|
2603
|
-
var style = node.styles[
|
|
2586
|
+
for (var _i = 0; _i < node.styles.length; _i++) {
|
|
2587
|
+
var style = node.styles[_i];
|
|
2604
2588
|
if (typeof style !== "string") {
|
|
2605
|
-
var _pathAtError = unsafeCreateSourcePath(path,
|
|
2589
|
+
var _pathAtError = unsafeCreateSourcePath(path, _i);
|
|
2606
2590
|
if (!errors[_pathAtError]) {
|
|
2607
2591
|
errors[_pathAtError] = [];
|
|
2608
2592
|
}
|
|
@@ -2397,28 +2397,12 @@ var RichTextSchema = /*#__PURE__*/function (_Schema) {
|
|
|
2397
2397
|
}])
|
|
2398
2398
|
};
|
|
2399
2399
|
}
|
|
2400
|
-
var
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
if (res) {
|
|
2407
|
-
return {
|
|
2408
|
-
v: res
|
|
2409
|
-
};
|
|
2410
|
-
}
|
|
2411
|
-
} else if (typeof child === "string") {
|
|
2412
|
-
length += child.length;
|
|
2413
|
-
continue;
|
|
2414
|
-
} else {
|
|
2415
|
-
return {
|
|
2416
|
-
v: _defineProperty({}, path, [{
|
|
2417
|
-
message: "Expected 'object' or 'string', got '".concat(_typeof(child), "'"),
|
|
2418
|
-
typeError: true
|
|
2419
|
-
}])
|
|
2420
|
-
};
|
|
2421
|
-
}
|
|
2400
|
+
var childPath = unsafeCreateSourcePath(path, "children");
|
|
2401
|
+
var res = _recurse(childPath, node.children, current);
|
|
2402
|
+
if (res) {
|
|
2403
|
+
return {
|
|
2404
|
+
v: res
|
|
2405
|
+
};
|
|
2422
2406
|
}
|
|
2423
2407
|
}
|
|
2424
2408
|
},
|
|
@@ -2601,10 +2585,10 @@ var RichTextSchema = /*#__PURE__*/function (_Schema) {
|
|
|
2601
2585
|
typeError: true
|
|
2602
2586
|
});
|
|
2603
2587
|
} else {
|
|
2604
|
-
for (var
|
|
2605
|
-
var style = node.styles[
|
|
2588
|
+
for (var _i = 0; _i < node.styles.length; _i++) {
|
|
2589
|
+
var style = node.styles[_i];
|
|
2606
2590
|
if (typeof style !== "string") {
|
|
2607
|
-
var _pathAtError = unsafeCreateSourcePath(path,
|
|
2591
|
+
var _pathAtError = unsafeCreateSourcePath(path, _i);
|
|
2608
2592
|
if (!errors[_pathAtError]) {
|
|
2609
2593
|
errors[_pathAtError] = [];
|
|
2610
2594
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as ArraySchema, B as BooleanSchema, e as DEFAULT_APP_HOST, D as DEFAULT_CONTENT_HOST, f as DEFAULT_VAL_REMOTE_HOST, o as DateSchema, F as FATAL_ERROR_TYPES, g as FILE_REF_PROP, h as FILE_REF_SUBTYPE_TAG, n as FileSchema, G as GenericSelector, l as ImageSchema, I as Internal, K as KeyOfSchema, L as LiteralSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, q as RichTextSchema, p as RouteSchema, S as Schema, k as StringSchema, U as UnionSchema, V as VAL_EXTENSION, j as derefPatch, r as deserializeSchema, t as getSourcePathFromRoute, i as initVal, m as modules } from './index-
|
|
1
|
+
export { A as ArraySchema, B as BooleanSchema, e as DEFAULT_APP_HOST, D as DEFAULT_CONTENT_HOST, f as DEFAULT_VAL_REMOTE_HOST, o as DateSchema, F as FATAL_ERROR_TYPES, g as FILE_REF_PROP, h as FILE_REF_SUBTYPE_TAG, n as FileSchema, G as GenericSelector, l as ImageSchema, I as Internal, K as KeyOfSchema, L as LiteralSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, q as RichTextSchema, p as RouteSchema, S as Schema, k as StringSchema, U as UnionSchema, V as VAL_EXTENSION, j as derefPatch, r as deserializeSchema, t as getSourcePathFromRoute, i as initVal, m as modules } from './index-ba727e96.esm.js';
|
|
2
2
|
import './result-4bd63123.esm.js';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_valbuildCore = require('../../dist/index-
|
|
5
|
+
var dist_valbuildCore = require('../../dist/index-d020e978.cjs.dev.js');
|
|
6
6
|
var result = require('../../dist/result-bb1f436e.cjs.dev.js');
|
|
7
7
|
var util = require('../../dist/util-b213092b.cjs.dev.js');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_valbuildCore = require('../../dist/index-
|
|
5
|
+
var dist_valbuildCore = require('../../dist/index-5bc1d576.cjs.prod.js');
|
|
6
6
|
var result = require('../../dist/result-787e35f6.cjs.prod.js');
|
|
7
7
|
var util = require('../../dist/util-030d8a1f.cjs.prod.js');
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-
|
|
2
|
-
export { P as PatchError } from '../../dist/index-
|
|
1
|
+
import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-ba727e96.esm.js';
|
|
2
|
+
export { P as PatchError } from '../../dist/index-ba727e96.esm.js';
|
|
3
3
|
import { f as isNonEmpty, e as err, o as ok, m as map, g as flatMap, i as isErr, h as flatMapReduce, j as filterOrElse, k as mapErr, l as map$1, n as all, p as flatten, q as allT } from '../../dist/result-4bd63123.esm.js';
|
|
4
4
|
import { p as pipe } from '../../dist/util-18613e99.esm.js';
|
|
5
5
|
|