@poe-platform/safe-js 0.1.358 → 0.1.360

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-SFVXIJWY.js";
30
+ } from "./chunk-RHEDM44A.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-MAUUDZQS.js.map
8252
+ //# sourceMappingURL=chunk-JFOSC26Y.js.map
@@ -6888,7 +6888,17 @@ function arrayBufferDataProperties(value) {
6888
6888
  }
6889
6889
 
6890
6890
  // packages/safe-js/src/interp/typed-array.ts
6891
- var numericTypedArrayConstructors = { Float32Array, Uint8Array };
6891
+ var numericTypedArrayConstructors = {
6892
+ Float32Array,
6893
+ Uint8Array,
6894
+ Int8Array,
6895
+ Uint8ClampedArray,
6896
+ Int16Array,
6897
+ Uint16Array,
6898
+ Int32Array,
6899
+ Uint32Array,
6900
+ Float64Array
6901
+ };
6892
6902
  var typedArrayPrototype = Object.getPrototypeOf(Float32Array.prototype);
6893
6903
  var readLength2 = Object.getOwnPropertyDescriptor(typedArrayPrototype, "length").get;
6894
6904
  var readOffset = Object.getOwnPropertyDescriptor(typedArrayPrototype, "byteOffset").get;
@@ -27881,11 +27891,15 @@ function measureSandboxData(values, options = {}) {
27881
27891
  return;
27882
27892
  }
27883
27893
  if (isSandboxArguments(value)) {
27884
- const entries = getSandboxArgumentEntries(value);
27885
- usage += entries.length;
27886
- for (const [key, entry] of entries) {
27887
- usage += key.length;
27888
- visit(entry, depth + 1);
27894
+ const entries = [];
27895
+ for (const key of Object.getOwnPropertyNames(value)) {
27896
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
27897
+ const retained = "value" in descriptor ? [descriptor.value] : retainedAccessorClosures(descriptor);
27898
+ if (retained.length > 0) entries.push([key, retained]);
27899
+ }
27900
+ for (const [key, retained] of entries) {
27901
+ usage += 1 + key.length;
27902
+ for (const entry of retained) visit(entry, depth + 1);
27889
27903
  }
27890
27904
  return;
27891
27905
  }
@@ -30297,6 +30311,13 @@ var KNOWN_RUNTIME_GLOBALS = [
30297
30311
  "Map",
30298
30312
  "Float32Array",
30299
30313
  "Uint8Array",
30314
+ "Int8Array",
30315
+ "Uint8ClampedArray",
30316
+ "Int16Array",
30317
+ "Uint16Array",
30318
+ "Int32Array",
30319
+ "Uint32Array",
30320
+ "Float64Array",
30300
30321
  "Math",
30301
30322
  "NaN",
30302
30323
  "Number",
@@ -42795,4 +42816,4 @@ export {
42795
42816
  FileSnapshotBackend,
42796
42817
  run
42797
42818
  };
42798
- //# sourceMappingURL=chunk-SFVXIJWY.js.map
42819
+ //# sourceMappingURL=chunk-RHEDM44A.js.map