@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.
@@ -27,7 +27,7 @@ import {
27
27
  validateMigrationSemantics,
28
28
  validateSnapshotData,
29
29
  validateSnapshotMigration
30
- } from "./chunk-6I6LKRVY.js";
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-DKWCAJSP.js.map
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
- requireString(key, `${path}${formatKey(key)}`, state.limits);
36916
+ const entryPath = `${path}${formatKey(key)}`;
36917
+ requireString(key, entryPath, state.limits);
36917
36918
  state.dataSize += key.length;
36918
- validateGenericValue(entry, `${path}${formatKey(key)}`, depth + 1, state);
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.entries(Object.getOwnPropertyDescriptors(value)).map(([key, descriptor]) => {
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-6I6LKRVY.js.map
57278
+ //# sourceMappingURL=chunk-RUKE7ZJR.js.map