@poe-platform/safe-js 0.1.435 → 0.1.438
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-JJ3J6ZJF.js → chunk-ANWXJ2PE.js} +2 -2
- package/dist/safe-js/chunks/{chunk-H3E7APSE.js → chunk-WFY3GNFP.js} +26 -7
- package/dist/safe-js/chunks/{chunk-H3E7APSE.js.map → chunk-WFY3GNFP.js.map} +2 -2
- 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/dist/safe-js/snapshot/replay-data.d.ts +13 -0
- package/package.json +2 -2
- /package/dist/safe-js/chunks/{chunk-JJ3J6ZJF.js.map → chunk-ANWXJ2PE.js.map} +0 -0
package/dist/safe-js/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveFsConfig,
|
|
23
23
|
splitFrontmatter,
|
|
24
24
|
withBrokenPipeGuard
|
|
25
|
-
} from "./chunks/chunk-
|
|
25
|
+
} from "./chunks/chunk-ANWXJ2PE.js";
|
|
26
26
|
import {
|
|
27
27
|
Budget,
|
|
28
28
|
SandboxError,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
replaceErrorStack,
|
|
35
35
|
restore,
|
|
36
36
|
run
|
|
37
|
-
} from "./chunks/chunk-
|
|
37
|
+
} from "./chunks/chunk-WFY3GNFP.js";
|
|
38
38
|
import "./chunks/chunk-4YIDX44G.js";
|
|
39
39
|
|
|
40
40
|
// packages/safe-js/src/cli.ts
|
package/dist/safe-js/core.js
CHANGED
package/dist/safe-js/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
runWithSpawnUsageAccumulator,
|
|
27
27
|
splitFrontmatter,
|
|
28
28
|
supportsSpawnMode
|
|
29
|
-
} from "./chunks/chunk-
|
|
29
|
+
} from "./chunks/chunk-ANWXJ2PE.js";
|
|
30
30
|
import {
|
|
31
31
|
Budget,
|
|
32
32
|
FileSnapshotBackend,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
registerPendingHostCallPolicy,
|
|
51
51
|
restore,
|
|
52
52
|
run
|
|
53
|
-
} from "./chunks/chunk-
|
|
53
|
+
} from "./chunks/chunk-WFY3GNFP.js";
|
|
54
54
|
import "./chunks/chunk-4YIDX44G.js";
|
|
55
55
|
|
|
56
56
|
// packages/safe-js/src/parse.ts
|
|
@@ -120,14 +120,27 @@ export type ReplayPathSegment = string | {
|
|
|
120
120
|
};
|
|
121
121
|
export declare class MissingReplayCapabilityError extends TypeError {
|
|
122
122
|
}
|
|
123
|
+
export declare function createReplayEncodingContext(): {
|
|
124
|
+
nodes: DataNode[];
|
|
125
|
+
seen: WeakMap<object, number>;
|
|
126
|
+
symbols: Map<symbol, number>;
|
|
127
|
+
float32Buffers: WeakMap<ArrayBuffer, number>;
|
|
128
|
+
failed: boolean;
|
|
129
|
+
};
|
|
123
130
|
export declare function encodeReplayData(value: SandboxValue, options?: {
|
|
124
131
|
identifyCapability?: (value: SandboxClosure, path: readonly ReplayPathSegment[]) => string | undefined;
|
|
125
132
|
captureCapabilityProperties?: boolean;
|
|
126
133
|
identifyPromise?: (value: SandboxPromise, path: readonly ReplayPathSegment[]) => string | undefined;
|
|
134
|
+
context?: ReturnType<typeof createReplayEncodingContext>;
|
|
135
|
+
path?: readonly ReplayPathSegment[];
|
|
127
136
|
}): ReplayData;
|
|
128
137
|
export declare function decodeReplayData(input: unknown, options?: {
|
|
129
138
|
resolveCapability?: (id: string) => SandboxClosure | undefined;
|
|
130
139
|
resolvePromise?: (id: string) => SandboxPromise | undefined;
|
|
131
140
|
onCapabilityRestored?: (original: SandboxClosure, restored: SandboxClosure) => void;
|
|
141
|
+
memo?: {
|
|
142
|
+
nodes: ReplayData["nodes"];
|
|
143
|
+
values: Map<number, SandboxValue>;
|
|
144
|
+
};
|
|
132
145
|
}, parent?: CompileScope): SandboxValue;
|
|
133
146
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poe-platform/safe-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.438",
|
|
4
4
|
"description": "Budgeted JavaScript interpreter with explicit host capabilities and resumable execution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@poe-platform/safe-fs": "0.1.
|
|
61
|
+
"@poe-platform/safe-fs": "0.1.438",
|
|
62
62
|
"@petamoriken/float16": "^3.9.3",
|
|
63
63
|
"yaml": "^2.8.2",
|
|
64
64
|
"jose": "^6.1.3",
|
|
File without changes
|