@valbuild/shared 0.148.0 → 0.148.2
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/CHANGELOG.md +21 -0
- package/client/dist/valbuild-shared-client.cjs.dev.js +1 -1
- package/client/dist/valbuild-shared-client.cjs.prod.js +1 -1
- package/client/dist/valbuild-shared-client.esm.js +1 -1
- package/dist/{getSitemapTree-109be3b8.cjs.prod.js → getSitemapTree-40d76bf8.cjs.prod.js} +1 -1
- package/dist/{getSitemapTree-f6254b32.cjs.dev.js → getSitemapTree-a7f2cc6d.cjs.dev.js} +1 -1
- package/dist/{getSitemapTree-c70ea145.esm.js → getSitemapTree-cd006a36.esm.js} +1 -1
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +11 -11
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +11 -11
- package/internal/dist/valbuild-shared-internal.esm.js +12 -12
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @valbuild/shared
|
|
2
2
|
|
|
3
|
+
## 0.148.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#889](https://github.com/valbuild/val/pull/889) [`dc7c8cc`](https://github.com/valbuild/val/commit/dc7c8ccd82f643e662d00225fabec411b5d39e3a) Thanks [@freekh](https://github.com/freekh)! - Val is quieter in your app's console. Errors and warnings you can act on still
|
|
8
|
+
print, now prefixed with `[val]` so you can filter them. Val's own debug
|
|
9
|
+
output, which used to reach your terminal and browser console, is now off by
|
|
10
|
+
default. That includes the `Invalid JWT` line that printed on every request
|
|
11
|
+
with an expired session cookie, the "verifying draft mode" and polling notices,
|
|
12
|
+
and the Studio's sync and WebSocket chatter.
|
|
13
|
+
|
|
14
|
+
To turn the debug output back on, for example when reporting a bug:
|
|
15
|
+
|
|
16
|
+
- on the server, set `VAL_DEBUG=1`
|
|
17
|
+
- in the browser, run `localStorage.setItem("val:debug", "1")` in the console.
|
|
18
|
+
It takes effect immediately, with no reload. Remove the key to turn it off
|
|
19
|
+
again.
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`dc7c8cc`](https://github.com/valbuild/val/commit/dc7c8ccd82f643e662d00225fabec411b5d39e3a)]:
|
|
22
|
+
- @valbuild/core@0.148.2
|
|
23
|
+
|
|
3
24
|
## 0.148.0
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { D as DEFAULT_CANVAS_SELECTION, e as DEFAULT_CANVAS_SELECTION_SOFT, b as VAL_AI_SESSION_STORAGE_KEY, d as VAL_CANVAS_MESSAGE, c as VAL_CANVAS_PARAM, V as VAL_CONFIG_SESSION_STORAGE_KEY, a as VAL_THEME_SESSION_STORAGE_KEY, h as formatRoutePattern, j as getNextAppRouterSourceFolder, n as getPageRouterSitemapTree, l as getPageRouterSourceFolder, o as getPatternFromModuleFilePath, k as getTanStackRouterSourceFolder, m as isTanStackRoutesFolder, g as isValCanvasFrame, i as isValCanvasPageMessage, f as isValCanvasStudioMessage, p as parseRoutePattern, w as withValCanvasParam } from '../../dist/getSitemapTree-
|
|
1
|
+
export { D as DEFAULT_CANVAS_SELECTION, e as DEFAULT_CANVAS_SELECTION_SOFT, b as VAL_AI_SESSION_STORAGE_KEY, d as VAL_CANVAS_MESSAGE, c as VAL_CANVAS_PARAM, V as VAL_CONFIG_SESSION_STORAGE_KEY, a as VAL_THEME_SESSION_STORAGE_KEY, h as formatRoutePattern, j as getNextAppRouterSourceFolder, n as getPageRouterSitemapTree, l as getPageRouterSourceFolder, o as getPatternFromModuleFilePath, k as getTanStackRouterSourceFolder, m as isTanStackRoutesFolder, g as isValCanvasFrame, i as isValCanvasPageMessage, f as isValCanvasStudioMessage, p as parseRoutePattern, w as withValCanvasParam } from '../../dist/getSitemapTree-cd006a36.esm.js';
|
|
2
2
|
import '@valbuild/core';
|
|
@@ -388,7 +388,7 @@ function getPageRouterSitemapTree(srcFolder, paths) {
|
|
|
388
388
|
moduleFilePathS = path.moduleFilePath;
|
|
389
389
|
var moduleFilePath = moduleFilePathS;
|
|
390
390
|
if (!urlPath.startsWith("/")) {
|
|
391
|
-
|
|
391
|
+
core.Internal.log.error("urlPath must start with /: ".concat(urlPath));
|
|
392
392
|
return 0; // continue
|
|
393
393
|
}
|
|
394
394
|
var pattern = getPatternFromModuleFilePath(moduleFilePath, srcFolder);
|
|
@@ -388,7 +388,7 @@ function getPageRouterSitemapTree(srcFolder, paths) {
|
|
|
388
388
|
moduleFilePathS = path.moduleFilePath;
|
|
389
389
|
var moduleFilePath = moduleFilePathS;
|
|
390
390
|
if (!urlPath.startsWith("/")) {
|
|
391
|
-
|
|
391
|
+
core.Internal.log.error("urlPath must start with /: ".concat(urlPath));
|
|
392
392
|
return 0; // continue
|
|
393
393
|
}
|
|
394
394
|
var pattern = getPatternFromModuleFilePath(moduleFilePath, srcFolder);
|
|
@@ -386,7 +386,7 @@ function getPageRouterSitemapTree(srcFolder, paths) {
|
|
|
386
386
|
moduleFilePathS = path.moduleFilePath;
|
|
387
387
|
var moduleFilePath = moduleFilePathS;
|
|
388
388
|
if (!urlPath.startsWith("/")) {
|
|
389
|
-
|
|
389
|
+
Internal.log.error("urlPath must start with /: ".concat(urlPath));
|
|
390
390
|
return 0; // continue
|
|
391
391
|
}
|
|
392
392
|
var pattern = getPatternFromModuleFilePath(moduleFilePath, srcFolder);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var getSitemapTree = require('../../dist/getSitemapTree-
|
|
5
|
+
var getSitemapTree = require('../../dist/getSitemapTree-a7f2cc6d.cjs.dev.js');
|
|
6
6
|
var core = require('@valbuild/core');
|
|
7
7
|
var zod = require('zod');
|
|
8
8
|
var zodValidationError = require('zod-validation-error');
|
|
@@ -266,17 +266,17 @@ function convertImageNode(path, node, files, configDirectory, remoteOptions) {
|
|
|
266
266
|
if (remoteRef) {
|
|
267
267
|
noParamsUrl = decodeURIComponent(remoteRef);
|
|
268
268
|
} else {
|
|
269
|
-
|
|
269
|
+
core.Internal.log.error("Remote image URL does not contain ref: " + url);
|
|
270
270
|
}
|
|
271
271
|
} else if (noParamsUrl.startsWith("/api/val/files/public")) {
|
|
272
272
|
noParamsUrl = noParamsUrl.slice("/api/val/files".length);
|
|
273
273
|
} else {
|
|
274
|
-
|
|
274
|
+
core.Internal.log.error("Patched image URL does not start with /api/val/files: " + url);
|
|
275
275
|
}
|
|
276
276
|
} else if (core.Internal.remote.splitRemoteRef(noParamsUrl).status === "success") ; else if (!noParamsUrl.startsWith("/public")) {
|
|
277
277
|
noParamsUrl = "/public".concat(noParamsUrl);
|
|
278
278
|
} else {
|
|
279
|
-
|
|
279
|
+
core.Internal.log.error("Unpatched image URL starts with /public: " + url);
|
|
280
280
|
}
|
|
281
281
|
var tag = {
|
|
282
282
|
tag: "img",
|
|
@@ -3928,7 +3928,7 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3928
3928
|
_context2.n = 2;
|
|
3929
3929
|
break;
|
|
3930
3930
|
}
|
|
3931
|
-
|
|
3931
|
+
core.Internal.log.error("Got an invalid request body while validating client-side. This is most likely a Val bug.", {
|
|
3932
3932
|
path: path,
|
|
3933
3933
|
method: method,
|
|
3934
3934
|
body: anyReq.body,
|
|
@@ -4006,7 +4006,7 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
4006
4006
|
_context.n = 4;
|
|
4007
4007
|
break;
|
|
4008
4008
|
}
|
|
4009
|
-
|
|
4009
|
+
core.Internal.log.error("Server responded with an error", json);
|
|
4010
4010
|
message = getErrorMessageFromUnknownJson(json, "Unknown error");
|
|
4011
4011
|
return _context.a(2, {
|
|
4012
4012
|
status: 500,
|
|
@@ -4631,14 +4631,14 @@ function filterRoutesByPatterns(routes, includePattern, excludePattern) {
|
|
|
4631
4631
|
try {
|
|
4632
4632
|
includeRegex = new RegExp(includePattern.source, includePattern.flags);
|
|
4633
4633
|
} catch (e) {
|
|
4634
|
-
|
|
4634
|
+
core.Internal.log.warn("[Val] Invalid include pattern: /".concat(includePattern.source, "/").concat(includePattern.flags), "\nError: ".concat(e instanceof Error ? e.message : String(e)), "\nAll routes will be filtered out due to malformed include pattern.");
|
|
4635
4635
|
}
|
|
4636
4636
|
}
|
|
4637
4637
|
if (excludePattern) {
|
|
4638
4638
|
try {
|
|
4639
4639
|
excludeRegex = new RegExp(excludePattern.source, excludePattern.flags);
|
|
4640
4640
|
} catch (e) {
|
|
4641
|
-
|
|
4641
|
+
core.Internal.log.warn("[Val] Invalid exclude pattern: /".concat(excludePattern.source, "/").concat(excludePattern.flags), "\nError: ".concat(e instanceof Error ? e.message : String(e)), "\nAll routes will be filtered out due to malformed exclude pattern.");
|
|
4642
4642
|
}
|
|
4643
4643
|
}
|
|
4644
4644
|
return routes.filter(function (route) {
|
|
@@ -8360,7 +8360,7 @@ function schemaTypesOfPath(schema, patchPath) {
|
|
|
8360
8360
|
} else {
|
|
8361
8361
|
var _unreachable = current;
|
|
8362
8362
|
var unknownType = _unreachable.type;
|
|
8363
|
-
|
|
8363
|
+
core.Internal.log.error("Unexecpted resolved schema type: ".concat(unknownType, " in ").concat(patchPath.join("/"), " at ").concat(pathPart));
|
|
8364
8364
|
return new Set([unknownType]);
|
|
8365
8365
|
}
|
|
8366
8366
|
}
|
|
@@ -8699,9 +8699,9 @@ var PatchSets = /*#__PURE__*/function () {
|
|
|
8699
8699
|
} catch (e) {
|
|
8700
8700
|
// We might be in this situation if the schema changes, etc etc:
|
|
8701
8701
|
if (e instanceof Error) {
|
|
8702
|
-
|
|
8702
|
+
core.Internal.log.error("Could not resolve path while creating patch set", e.message);
|
|
8703
8703
|
} else {
|
|
8704
|
-
|
|
8704
|
+
core.Internal.log.error("Could not resolve path while creating patch set", e);
|
|
8705
8705
|
}
|
|
8706
8706
|
// "terminate" the entire module file path (i.e. all patches are their own patch set)
|
|
8707
8707
|
this.insertPath(moduleFilePath, [], patchId, createdAt, author, op.op, [schema.type], op.path);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var getSitemapTree = require('../../dist/getSitemapTree-
|
|
5
|
+
var getSitemapTree = require('../../dist/getSitemapTree-40d76bf8.cjs.prod.js');
|
|
6
6
|
var core = require('@valbuild/core');
|
|
7
7
|
var zod = require('zod');
|
|
8
8
|
var zodValidationError = require('zod-validation-error');
|
|
@@ -266,17 +266,17 @@ function convertImageNode(path, node, files, configDirectory, remoteOptions) {
|
|
|
266
266
|
if (remoteRef) {
|
|
267
267
|
noParamsUrl = decodeURIComponent(remoteRef);
|
|
268
268
|
} else {
|
|
269
|
-
|
|
269
|
+
core.Internal.log.error("Remote image URL does not contain ref: " + url);
|
|
270
270
|
}
|
|
271
271
|
} else if (noParamsUrl.startsWith("/api/val/files/public")) {
|
|
272
272
|
noParamsUrl = noParamsUrl.slice("/api/val/files".length);
|
|
273
273
|
} else {
|
|
274
|
-
|
|
274
|
+
core.Internal.log.error("Patched image URL does not start with /api/val/files: " + url);
|
|
275
275
|
}
|
|
276
276
|
} else if (core.Internal.remote.splitRemoteRef(noParamsUrl).status === "success") ; else if (!noParamsUrl.startsWith("/public")) {
|
|
277
277
|
noParamsUrl = "/public".concat(noParamsUrl);
|
|
278
278
|
} else {
|
|
279
|
-
|
|
279
|
+
core.Internal.log.error("Unpatched image URL starts with /public: " + url);
|
|
280
280
|
}
|
|
281
281
|
var tag = {
|
|
282
282
|
tag: "img",
|
|
@@ -3928,7 +3928,7 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3928
3928
|
_context2.n = 2;
|
|
3929
3929
|
break;
|
|
3930
3930
|
}
|
|
3931
|
-
|
|
3931
|
+
core.Internal.log.error("Got an invalid request body while validating client-side. This is most likely a Val bug.", {
|
|
3932
3932
|
path: path,
|
|
3933
3933
|
method: method,
|
|
3934
3934
|
body: anyReq.body,
|
|
@@ -4006,7 +4006,7 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
4006
4006
|
_context.n = 4;
|
|
4007
4007
|
break;
|
|
4008
4008
|
}
|
|
4009
|
-
|
|
4009
|
+
core.Internal.log.error("Server responded with an error", json);
|
|
4010
4010
|
message = getErrorMessageFromUnknownJson(json, "Unknown error");
|
|
4011
4011
|
return _context.a(2, {
|
|
4012
4012
|
status: 500,
|
|
@@ -4631,14 +4631,14 @@ function filterRoutesByPatterns(routes, includePattern, excludePattern) {
|
|
|
4631
4631
|
try {
|
|
4632
4632
|
includeRegex = new RegExp(includePattern.source, includePattern.flags);
|
|
4633
4633
|
} catch (e) {
|
|
4634
|
-
|
|
4634
|
+
core.Internal.log.warn("[Val] Invalid include pattern: /".concat(includePattern.source, "/").concat(includePattern.flags), "\nError: ".concat(e instanceof Error ? e.message : String(e)), "\nAll routes will be filtered out due to malformed include pattern.");
|
|
4635
4635
|
}
|
|
4636
4636
|
}
|
|
4637
4637
|
if (excludePattern) {
|
|
4638
4638
|
try {
|
|
4639
4639
|
excludeRegex = new RegExp(excludePattern.source, excludePattern.flags);
|
|
4640
4640
|
} catch (e) {
|
|
4641
|
-
|
|
4641
|
+
core.Internal.log.warn("[Val] Invalid exclude pattern: /".concat(excludePattern.source, "/").concat(excludePattern.flags), "\nError: ".concat(e instanceof Error ? e.message : String(e)), "\nAll routes will be filtered out due to malformed exclude pattern.");
|
|
4642
4642
|
}
|
|
4643
4643
|
}
|
|
4644
4644
|
return routes.filter(function (route) {
|
|
@@ -8360,7 +8360,7 @@ function schemaTypesOfPath(schema, patchPath) {
|
|
|
8360
8360
|
} else {
|
|
8361
8361
|
var _unreachable = current;
|
|
8362
8362
|
var unknownType = _unreachable.type;
|
|
8363
|
-
|
|
8363
|
+
core.Internal.log.error("Unexecpted resolved schema type: ".concat(unknownType, " in ").concat(patchPath.join("/"), " at ").concat(pathPart));
|
|
8364
8364
|
return new Set([unknownType]);
|
|
8365
8365
|
}
|
|
8366
8366
|
}
|
|
@@ -8699,9 +8699,9 @@ var PatchSets = /*#__PURE__*/function () {
|
|
|
8699
8699
|
} catch (e) {
|
|
8700
8700
|
// We might be in this situation if the schema changes, etc etc:
|
|
8701
8701
|
if (e instanceof Error) {
|
|
8702
|
-
|
|
8702
|
+
core.Internal.log.error("Could not resolve path while creating patch set", e.message);
|
|
8703
8703
|
} else {
|
|
8704
|
-
|
|
8704
|
+
core.Internal.log.error("Could not resolve path while creating patch set", e);
|
|
8705
8705
|
}
|
|
8706
8706
|
// "terminate" the entire module file path (i.e. all patches are their own patch set)
|
|
8707
8707
|
this.insertPath(moduleFilePath, [], patchId, createdAt, author, op.op, [schema.type], op.path);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _createForOfIteratorHelper, q as _objectSpread2, r as _arrayLikeToArray, s as _unsupportedIterableToArray, t as _typeof, u as _defineProperty, v as _toPropertyKey } from '../../dist/getSitemapTree-
|
|
2
|
-
export { D as DEFAULT_CANVAS_SELECTION, e as DEFAULT_CANVAS_SELECTION_SOFT, b as VAL_AI_SESSION_STORAGE_KEY, d as VAL_CANVAS_MESSAGE, c as VAL_CANVAS_PARAM, V as VAL_CONFIG_SESSION_STORAGE_KEY, a as VAL_THEME_SESSION_STORAGE_KEY, h as formatRoutePattern, j as getNextAppRouterSourceFolder, n as getPageRouterSitemapTree, l as getPageRouterSourceFolder, o as getPatternFromModuleFilePath, k as getTanStackRouterSourceFolder, m as isTanStackRoutesFolder, g as isValCanvasFrame, i as isValCanvasPageMessage, f as isValCanvasStudioMessage, p as parseRoutePattern, w as withValCanvasParam } from '../../dist/getSitemapTree-
|
|
1
|
+
import { _ as _createForOfIteratorHelper, q as _objectSpread2, r as _arrayLikeToArray, s as _unsupportedIterableToArray, t as _typeof, u as _defineProperty, v as _toPropertyKey } from '../../dist/getSitemapTree-cd006a36.esm.js';
|
|
2
|
+
export { D as DEFAULT_CANVAS_SELECTION, e as DEFAULT_CANVAS_SELECTION_SOFT, b as VAL_AI_SESSION_STORAGE_KEY, d as VAL_CANVAS_MESSAGE, c as VAL_CANVAS_PARAM, V as VAL_CONFIG_SESSION_STORAGE_KEY, a as VAL_THEME_SESSION_STORAGE_KEY, h as formatRoutePattern, j as getNextAppRouterSourceFolder, n as getPageRouterSitemapTree, l as getPageRouterSourceFolder, o as getPatternFromModuleFilePath, k as getTanStackRouterSourceFolder, m as isTanStackRoutesFolder, g as isValCanvasFrame, i as isValCanvasPageMessage, f as isValCanvasStudioMessage, p as parseRoutePattern, w as withValCanvasParam } from '../../dist/getSitemapTree-cd006a36.esm.js';
|
|
3
3
|
import { Internal, CODE_LANGUAGES, resolveSettingsModule, missingDeclaredKeys, localeOfValue, discriminatedUnionBranchOf, routePatternOf, matchRoutePattern, DEFAULT_COLOR_FORMAT, declaredKeySetOf } from '@valbuild/core';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { fromError } from 'zod-validation-error';
|
|
@@ -259,17 +259,17 @@ function convertImageNode(path, node, files, configDirectory, remoteOptions) {
|
|
|
259
259
|
if (remoteRef) {
|
|
260
260
|
noParamsUrl = decodeURIComponent(remoteRef);
|
|
261
261
|
} else {
|
|
262
|
-
|
|
262
|
+
Internal.log.error("Remote image URL does not contain ref: " + url);
|
|
263
263
|
}
|
|
264
264
|
} else if (noParamsUrl.startsWith("/api/val/files/public")) {
|
|
265
265
|
noParamsUrl = noParamsUrl.slice("/api/val/files".length);
|
|
266
266
|
} else {
|
|
267
|
-
|
|
267
|
+
Internal.log.error("Patched image URL does not start with /api/val/files: " + url);
|
|
268
268
|
}
|
|
269
269
|
} else if (Internal.remote.splitRemoteRef(noParamsUrl).status === "success") ; else if (!noParamsUrl.startsWith("/public")) {
|
|
270
270
|
noParamsUrl = "/public".concat(noParamsUrl);
|
|
271
271
|
} else {
|
|
272
|
-
|
|
272
|
+
Internal.log.error("Unpatched image URL starts with /public: " + url);
|
|
273
273
|
}
|
|
274
274
|
var tag = {
|
|
275
275
|
tag: "img",
|
|
@@ -3921,7 +3921,7 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3921
3921
|
_context2.n = 2;
|
|
3922
3922
|
break;
|
|
3923
3923
|
}
|
|
3924
|
-
|
|
3924
|
+
Internal.log.error("Got an invalid request body while validating client-side. This is most likely a Val bug.", {
|
|
3925
3925
|
path: path,
|
|
3926
3926
|
method: method,
|
|
3927
3927
|
body: anyReq.body,
|
|
@@ -3999,7 +3999,7 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3999
3999
|
_context.n = 4;
|
|
4000
4000
|
break;
|
|
4001
4001
|
}
|
|
4002
|
-
|
|
4002
|
+
Internal.log.error("Server responded with an error", json);
|
|
4003
4003
|
message = getErrorMessageFromUnknownJson(json, "Unknown error");
|
|
4004
4004
|
return _context.a(2, {
|
|
4005
4005
|
status: 500,
|
|
@@ -4624,14 +4624,14 @@ function filterRoutesByPatterns(routes, includePattern, excludePattern) {
|
|
|
4624
4624
|
try {
|
|
4625
4625
|
includeRegex = new RegExp(includePattern.source, includePattern.flags);
|
|
4626
4626
|
} catch (e) {
|
|
4627
|
-
|
|
4627
|
+
Internal.log.warn("[Val] Invalid include pattern: /".concat(includePattern.source, "/").concat(includePattern.flags), "\nError: ".concat(e instanceof Error ? e.message : String(e)), "\nAll routes will be filtered out due to malformed include pattern.");
|
|
4628
4628
|
}
|
|
4629
4629
|
}
|
|
4630
4630
|
if (excludePattern) {
|
|
4631
4631
|
try {
|
|
4632
4632
|
excludeRegex = new RegExp(excludePattern.source, excludePattern.flags);
|
|
4633
4633
|
} catch (e) {
|
|
4634
|
-
|
|
4634
|
+
Internal.log.warn("[Val] Invalid exclude pattern: /".concat(excludePattern.source, "/").concat(excludePattern.flags), "\nError: ".concat(e instanceof Error ? e.message : String(e)), "\nAll routes will be filtered out due to malformed exclude pattern.");
|
|
4635
4635
|
}
|
|
4636
4636
|
}
|
|
4637
4637
|
return routes.filter(function (route) {
|
|
@@ -8353,7 +8353,7 @@ function schemaTypesOfPath(schema, patchPath) {
|
|
|
8353
8353
|
} else {
|
|
8354
8354
|
var _unreachable = current;
|
|
8355
8355
|
var unknownType = _unreachable.type;
|
|
8356
|
-
|
|
8356
|
+
Internal.log.error("Unexecpted resolved schema type: ".concat(unknownType, " in ").concat(patchPath.join("/"), " at ").concat(pathPart));
|
|
8357
8357
|
return new Set([unknownType]);
|
|
8358
8358
|
}
|
|
8359
8359
|
}
|
|
@@ -8692,9 +8692,9 @@ var PatchSets = /*#__PURE__*/function () {
|
|
|
8692
8692
|
} catch (e) {
|
|
8693
8693
|
// We might be in this situation if the schema changes, etc etc:
|
|
8694
8694
|
if (e instanceof Error) {
|
|
8695
|
-
|
|
8695
|
+
Internal.log.error("Could not resolve path while creating patch set", e.message);
|
|
8696
8696
|
} else {
|
|
8697
|
-
|
|
8697
|
+
Internal.log.error("Could not resolve path while creating patch set", e);
|
|
8698
8698
|
}
|
|
8699
8699
|
// "terminate" the entire module file path (i.e. all patches are their own patch set)
|
|
8700
8700
|
this.insertPath(moduleFilePath, [], patchId, createdAt, author, op.op, [schema.type], op.path);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/shared",
|
|
3
|
-
"version": "0.148.
|
|
3
|
+
"version": "0.148.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Val shared types and utilities",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"flexsearch": "^0.8.212",
|
|
38
38
|
"zod": "^4.4.3",
|
|
39
39
|
"zod-validation-error": "^5.0.0",
|
|
40
|
-
"@valbuild/core": "0.148.
|
|
40
|
+
"@valbuild/core": "0.148.2"
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
43
|
"CHANGELOG.md",
|