@poe-platform/safe-js 0.1.321 → 0.1.322

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-6SSHJVLI.js";
30
+ } from "./chunk-ECGDQJ7F.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-UEFYW6FZ.js.map
8252
+ //# sourceMappingURL=chunk-CBU6A7YV.js.map
@@ -11947,42 +11947,43 @@ function defineArrayResult(result, index, value, options) {
11947
11947
  var arrayLikeSources = /* @__PURE__ */ new WeakMap();
11948
11948
  var activeArrayCallbacks = /* @__PURE__ */ new WeakMap();
11949
11949
  var localeArrays = /* @__PURE__ */ new WeakSet();
11950
- var arrayMethodNames = /* @__PURE__ */ new Set([
11951
- "map",
11952
- "filter",
11953
- "find",
11954
- "findIndex",
11955
- "findLast",
11956
- "findLastIndex",
11957
- "some",
11958
- "every",
11959
- "reduce",
11960
- "reduceRight",
11961
- "forEach",
11962
- "flatMap",
11963
- "flat",
11964
- "includes",
11965
- "indexOf",
11966
- "lastIndexOf",
11967
- "join",
11968
- "toLocaleString",
11969
- "slice",
11970
- "concat",
11971
- "splice",
11972
- "fill",
11973
- "copyWithin",
11974
- "at",
11975
- "sort",
11976
- "reverse",
11977
- "toSorted",
11978
- "toReversed",
11979
- "toSpliced",
11980
- "with",
11981
- "push",
11982
- "pop",
11983
- "shift",
11984
- "unshift"
11985
- ]);
11950
+ var arrayMethodLengths = {
11951
+ map: 1,
11952
+ filter: 1,
11953
+ find: 1,
11954
+ findIndex: 1,
11955
+ findLast: 1,
11956
+ findLastIndex: 1,
11957
+ some: 1,
11958
+ every: 1,
11959
+ reduce: 1,
11960
+ reduceRight: 1,
11961
+ forEach: 1,
11962
+ flatMap: 1,
11963
+ flat: 0,
11964
+ includes: 1,
11965
+ indexOf: 1,
11966
+ lastIndexOf: 1,
11967
+ join: 1,
11968
+ toLocaleString: 0,
11969
+ slice: 2,
11970
+ concat: 1,
11971
+ splice: 2,
11972
+ fill: 1,
11973
+ copyWithin: 2,
11974
+ at: 1,
11975
+ sort: 1,
11976
+ reverse: 0,
11977
+ toSorted: 1,
11978
+ toReversed: 0,
11979
+ toSpliced: 2,
11980
+ with: 2,
11981
+ push: 1,
11982
+ pop: 0,
11983
+ shift: 0,
11984
+ unshift: 1
11985
+ };
11986
+ var arrayMethodNames = new Set(Object.keys(arrayMethodLengths));
11986
11987
  function getArrayMember(value, property, options) {
11987
11988
  const index = getArrayIndex(property);
11988
11989
  if (index !== void 0) {
@@ -13503,7 +13504,7 @@ function createArrayGlobal(budget) {
13503
13504
  guest: true,
13504
13505
  sandbox: true,
13505
13506
  name,
13506
- length: Object.getOwnPropertyDescriptor(Array.prototype, name).value.length,
13507
+ length: arrayMethodLengths[name],
13507
13508
  call: (args, context) => callArrayMethod(context?.thisValue, name, args, {
13508
13509
  budget,
13509
13510
  context,
@@ -42340,4 +42341,4 @@ export {
42340
42341
  FileSnapshotBackend,
42341
42342
  run
42342
42343
  };
42343
- //# sourceMappingURL=chunk-6SSHJVLI.js.map
42344
+ //# sourceMappingURL=chunk-ECGDQJ7F.js.map