@poe-platform/safe-js 0.1.486 → 0.1.487
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/safe-js/chunks/{chunk-DKWCAJSP.js → chunk-QOKKICAU.js} +2 -2
- package/dist/safe-js/chunks/{chunk-6I6LKRVY.js → chunk-RUKE7ZJR.js} +6 -4
- package/dist/safe-js/chunks/{chunk-6I6LKRVY.js.map → chunk-RUKE7ZJR.js.map} +2 -2
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +1 -1
- package/dist/safe-js/index.js +2 -2
- package/package.json +2 -2
- /package/dist/safe-js/chunks/{chunk-DKWCAJSP.js.map → chunk-QOKKICAU.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-RUKE7ZJR.js";
|
|
31
31
|
|
|
32
32
|
// packages/safe-js/src/migrate.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -8249,4 +8249,4 @@ export {
|
|
|
8249
8249
|
parseMcpConfig,
|
|
8250
8250
|
makeMcpModule
|
|
8251
8251
|
};
|
|
8252
|
-
//# sourceMappingURL=chunk-
|
|
8252
|
+
//# sourceMappingURL=chunk-QOKKICAU.js.map
|
|
@@ -36913,9 +36913,10 @@ function validateGenericValue(value, path, depth, state) {
|
|
|
36913
36913
|
}
|
|
36914
36914
|
const entries = state.dataPropertiesOnly ? snapshotDataEntries(value, path) : Object.entries(value);
|
|
36915
36915
|
for (const [key, entry] of entries) {
|
|
36916
|
-
|
|
36916
|
+
const entryPath = `${path}${formatKey(key)}`;
|
|
36917
|
+
requireString(key, entryPath, state.limits);
|
|
36917
36918
|
state.dataSize += key.length;
|
|
36918
|
-
validateGenericValue(entry,
|
|
36919
|
+
validateGenericValue(entry, entryPath, depth + 1, state);
|
|
36919
36920
|
}
|
|
36920
36921
|
} else if (!["boolean", "number"].includes(typeof value) && !(state.allowFunctions && typeof value === "function") && !(state.allowUndefined && value === void 0) && value !== null) {
|
|
36921
36922
|
fail("invalidType", path, "contains an unsupported value");
|
|
@@ -36931,7 +36932,8 @@ function snapshotDataEntries(value, path) {
|
|
|
36931
36932
|
if (Object.getOwnPropertySymbols(value).length > 0) {
|
|
36932
36933
|
fail("invalidType", path, "snapshot data must not have symbol properties");
|
|
36933
36934
|
}
|
|
36934
|
-
return Object.
|
|
36935
|
+
return Object.getOwnPropertyNames(value).map((key) => {
|
|
36936
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
36935
36937
|
if (!("value" in descriptor))
|
|
36936
36938
|
fail("invalidType", `${path}${formatKey(key)}`, "snapshot data must not have accessors");
|
|
36937
36939
|
return [key, descriptor.value];
|
|
@@ -57273,4 +57275,4 @@ authorization of the copyright holder.
|
|
|
57273
57275
|
SPDX-License-Identifier: Unicode-3.0
|
|
57274
57276
|
|
|
57275
57277
|
*/
|
|
57276
|
-
//# sourceMappingURL=chunk-
|
|
57278
|
+
//# sourceMappingURL=chunk-RUKE7ZJR.js.map
|