@poe-platform/safe-js 0.1.486 → 0.1.488

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.
@@ -6468,6 +6468,9 @@ function findMalformedTemplateEscape(value) {
6468
6468
  index += 2;
6469
6469
  continue;
6470
6470
  }
6471
+ if (next === "8" || next === "9") {
6472
+ return { index, message: "Invalid decimal escape sequence in template" };
6473
+ }
6471
6474
  if (isOctalDigit2(next)) {
6472
6475
  return { index, message: "Legacy octal escape sequences are not supported" };
6473
6476
  }
@@ -36913,9 +36916,10 @@ function validateGenericValue(value, path, depth, state) {
36913
36916
  }
36914
36917
  const entries = state.dataPropertiesOnly ? snapshotDataEntries(value, path) : Object.entries(value);
36915
36918
  for (const [key, entry] of entries) {
36916
- requireString(key, `${path}${formatKey(key)}`, state.limits);
36919
+ const entryPath = `${path}${formatKey(key)}`;
36920
+ requireString(key, entryPath, state.limits);
36917
36921
  state.dataSize += key.length;
36918
- validateGenericValue(entry, `${path}${formatKey(key)}`, depth + 1, state);
36922
+ validateGenericValue(entry, entryPath, depth + 1, state);
36919
36923
  }
36920
36924
  } else if (!["boolean", "number"].includes(typeof value) && !(state.allowFunctions && typeof value === "function") && !(state.allowUndefined && value === void 0) && value !== null) {
36921
36925
  fail("invalidType", path, "contains an unsupported value");
@@ -36931,7 +36935,8 @@ function snapshotDataEntries(value, path) {
36931
36935
  if (Object.getOwnPropertySymbols(value).length > 0) {
36932
36936
  fail("invalidType", path, "snapshot data must not have symbol properties");
36933
36937
  }
36934
- return Object.entries(Object.getOwnPropertyDescriptors(value)).map(([key, descriptor]) => {
36938
+ return Object.getOwnPropertyNames(value).map((key) => {
36939
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
36935
36940
  if (!("value" in descriptor))
36936
36941
  fail("invalidType", `${path}${formatKey(key)}`, "snapshot data must not have accessors");
36937
36942
  return [key, descriptor.value];
@@ -57273,4 +57278,4 @@ authorization of the copyright holder.
57273
57278
  SPDX-License-Identifier: Unicode-3.0
57274
57279
 
57275
57280
  */
57276
- //# sourceMappingURL=chunk-6I6LKRVY.js.map
57281
+ //# sourceMappingURL=chunk-3IBFK7UI.js.map