@valbuild/core 0.93.0 → 0.94.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.
@@ -272,4 +272,4 @@ var result = /*#__PURE__*/Object.freeze({
272
272
  filterOrElse: filterOrElse
273
273
  });
274
274
 
275
- export { _unsupportedIterableToArray as _, _arrayLikeToArray as a, _createForOfIteratorHelper as b, isOk 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 { _arrayLikeToArray as _, _unsupportedIterableToArray as a, _createForOfIteratorHelper as b, isOk 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 };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('./index-fcce0216.cjs.dev.js');
5
+ var dist_valbuildCore = require('./index-c9252d4a.cjs.dev.js');
6
6
  require('./result-bb1f436e.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 dist_valbuildCore = require('./index-4421cd12.cjs.prod.js');
5
+ var dist_valbuildCore = require('./index-f8101689.cjs.prod.js');
6
6
  require('./result-787e35f6.cjs.prod.js');
7
7
 
8
8
 
@@ -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, i as initVal, m as modules } from './index-d1491224.esm.js';
2
- import './result-daff1cae.esm.js';
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, i as initVal, m as modules } from './index-bfe08f16.esm.js';
2
+ import './result-4bd63123.esm.js';
@@ -1,2 +1,2 @@
1
- export { d as array, r as result } from '../../dist/result-daff1cae.esm.js';
1
+ export { d as array, r as result } from '../../dist/result-4bd63123.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.93.0",
3
+ "version": "0.94.0",
4
4
  "private": false,
5
5
  "description": "Val - supercharged hard-coded content",
6
6
  "repository": {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('../../dist/index-fcce0216.cjs.dev.js');
5
+ var dist_valbuildCore = require('../../dist/index-c9252d4a.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
 
@@ -63,6 +63,7 @@ function sourceToPatchPath(sourcePath) {
63
63
  var _splitModuleFilePathA = dist_valbuildCore.splitModuleFilePathAndModulePath(sourcePath),
64
64
  _splitModuleFilePathA2 = dist_valbuildCore._slicedToArray(_splitModuleFilePathA, 2),
65
65
  modulePath = _splitModuleFilePathA2[1];
66
+ if (!modulePath) return [];
66
67
  return modulePath.split(".").map(function (p) {
67
68
  return JSON.parse(p).toString();
68
69
  });
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('../../dist/index-4421cd12.cjs.prod.js');
5
+ var dist_valbuildCore = require('../../dist/index-f8101689.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
 
@@ -63,6 +63,7 @@ function sourceToPatchPath(sourcePath) {
63
63
  var _splitModuleFilePathA = dist_valbuildCore.splitModuleFilePathAndModulePath(sourcePath),
64
64
  _splitModuleFilePathA2 = dist_valbuildCore._slicedToArray(_splitModuleFilePathA, 2),
65
65
  modulePath = _splitModuleFilePathA2[1];
66
+ if (!modulePath) return [];
66
67
  return modulePath.split(".").map(function (p) {
67
68
  return JSON.parse(p).toString();
68
69
  });
@@ -1,6 +1,6 @@
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-d1491224.esm.js';
2
- export { P as PatchError } from '../../dist/index-d1491224.esm.js';
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-daff1cae.esm.js';
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-bfe08f16.esm.js';
2
+ export { P as PatchError } from '../../dist/index-bfe08f16.esm.js';
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
 
6
6
  function isNotRoot(path) {
@@ -60,6 +60,7 @@ function sourceToPatchPath(sourcePath) {
60
60
  var _splitModuleFilePathA = splitModuleFilePathAndModulePath(sourcePath),
61
61
  _splitModuleFilePathA2 = _slicedToArray(_splitModuleFilePathA, 2),
62
62
  modulePath = _splitModuleFilePathA2[1];
63
+ if (!modulePath) return [];
63
64
  return modulePath.split(".").map(function (p) {
64
65
  return JSON.parse(p).toString();
65
66
  });