@poe-platform/safe-js 0.1.372 → 0.1.373
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-MABO4QY7.js → chunk-CFRO3VRS.js} +2 -2
- package/dist/safe-js/chunks/{chunk-LS3B42FU.js → chunk-SCIKHRZS.js} +13 -3
- package/dist/safe-js/chunks/chunk-SCIKHRZS.js.map +7 -0
- 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-LS3B42FU.js.map +0 -7
- /package/dist/safe-js/chunks/{chunk-MABO4QY7.js.map → chunk-CFRO3VRS.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SCIKHRZS.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-CFRO3VRS.js.map
|
|
@@ -8086,6 +8086,17 @@ function isGuestClosure(value) {
|
|
|
8086
8086
|
function getGuestFunctionProperties(closure) {
|
|
8087
8087
|
return functionProperties.get(closure);
|
|
8088
8088
|
}
|
|
8089
|
+
function intrinsicFunctionDataDescriptors(properties) {
|
|
8090
|
+
const state = functionPropertyRevisions.get(properties);
|
|
8091
|
+
if (state?.measuredDescriptors !== void 0 && state.measuredRevision === state.revision)
|
|
8092
|
+
return state.measuredDescriptors;
|
|
8093
|
+
const descriptors2 = Object.entries(Object.getOwnPropertyDescriptors(properties)).filter(([key]) => key !== "prototype" && key !== "name" && key !== "length");
|
|
8094
|
+
if (state !== void 0) {
|
|
8095
|
+
state.measuredRevision = state.revision;
|
|
8096
|
+
state.measuredDescriptors = descriptors2;
|
|
8097
|
+
}
|
|
8098
|
+
return descriptors2;
|
|
8099
|
+
}
|
|
8089
8100
|
function materializeFunctionProperties(closure) {
|
|
8090
8101
|
if (!isGuestClosure(closure)) throw new TypeError("Host function properties are read only.");
|
|
8091
8102
|
const existing = functionProperties.get(closure);
|
|
@@ -28601,8 +28612,7 @@ function measureSandboxData(values, options = {}) {
|
|
|
28601
28612
|
if (options.ignoreClosures) return;
|
|
28602
28613
|
if (value.properties !== void 0) {
|
|
28603
28614
|
if (isIntrinsicFunction(value)) {
|
|
28604
|
-
for (const [key, descriptor] of
|
|
28605
|
-
if (key === "prototype" || key === "name" || key === "length") continue;
|
|
28615
|
+
for (const [key, descriptor] of intrinsicFunctionDataDescriptors(value.properties)) {
|
|
28606
28616
|
usage += key.length + 1;
|
|
28607
28617
|
if ("value" in descriptor) visit(descriptor.value, depth + 1);
|
|
28608
28618
|
else for (const closure of retainedAccessorClosures(descriptor)) visit(closure, depth + 1);
|
|
@@ -43632,4 +43642,4 @@ export {
|
|
|
43632
43642
|
FileSnapshotBackend,
|
|
43633
43643
|
run
|
|
43634
43644
|
};
|
|
43635
|
-
//# sourceMappingURL=chunk-
|
|
43645
|
+
//# sourceMappingURL=chunk-SCIKHRZS.js.map
|