@poe-platform/safe-js 0.1.740 → 0.1.741
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-QUDIENBB.js → chunk-24Z6PSCN.js} +2 -2
- package/dist/safe-js/chunks/{chunk-FKV4UG26.js → chunk-47JWFV2B.js} +4 -4
- package/dist/safe-js/chunks/{chunk-OEFI64BI.js → chunk-AUVGHYM5.js} +3 -3
- package/dist/safe-js/chunks/{chunk-762WTEEI.js → chunk-EMH7CXQM.js} +2 -2
- package/dist/safe-js/chunks/{chunk-HR4F3RRX.js → chunk-IRYOK5BR.js} +3 -3
- package/dist/safe-js/chunks/{chunk-ELJ4PYL2.js → chunk-J3CUCOMP.js} +2 -2
- package/dist/safe-js/chunks/{chunk-4TXOBR4J.js → chunk-JCVARKWT.js} +2 -2
- package/dist/safe-js/chunks/{chunk-VQGYRKM4.js → chunk-LMS5SSTN.js} +10 -2
- package/dist/safe-js/chunks/{chunk-VQGYRKM4.js.map → chunk-LMS5SSTN.js.map} +2 -2
- package/dist/safe-js/chunks/{chunk-TAC75RFB.js → chunk-UIUJHTWG.js} +2 -2
- package/dist/safe-js/chunks/{chunk-FOPBX4EE.js → chunk-V72WS373.js} +4 -4
- package/dist/safe-js/chunks/{chunk-7DLY2WYQ.js → chunk-WEGFNME4.js} +2 -2
- package/dist/safe-js/chunks/{chunk-35JWEKXL.js → chunk-WWETRQCF.js} +3 -3
- package/dist/safe-js/chunks/{chunk-JRUMDV3W.js → chunk-YDVEVDVT.js} +6 -6
- package/dist/safe-js/chunks/{cli-runtime-GZL4KBFM.js → cli-runtime-3SOHLG5M.js} +11 -11
- package/dist/safe-js/chunks/{dump-5HPQH2TV.js → dump-CSLHITIE.js} +4 -4
- package/dist/safe-js/chunks/harness-QKPVLVOT.js +11 -0
- package/dist/safe-js/chunks/{mcp-PADFJXDB.js → mcp-A4YKQCIS.js} +4 -4
- package/dist/safe-js/chunks/{migration-file-WIJFLWAW.js → migration-file-QCZTVXEU.js} +5 -5
- package/dist/safe-js/chunks/restore-22OGYS6N.js +14 -0
- package/dist/safe-js/chunks/{run-N3TS7H43.js → run-EMFOFJ22.js} +7 -7
- package/dist/safe-js/chunks/{runtime-modules-75NU2HLD.js → runtime-modules-QCVDLUVF.js} +4 -4
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +7 -7
- package/dist/safe-js/index.js +13 -13
- package/dist/safe-js/modules/fs.js +3 -3
- package/package.json +2 -2
- package/dist/safe-js/chunks/harness-3Z4ABNRY.js +0 -11
- package/dist/safe-js/chunks/restore-275PJW3U.js +0 -14
- /package/dist/safe-js/chunks/{chunk-QUDIENBB.js.map → chunk-24Z6PSCN.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-FKV4UG26.js.map → chunk-47JWFV2B.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-OEFI64BI.js.map → chunk-AUVGHYM5.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-762WTEEI.js.map → chunk-EMH7CXQM.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-HR4F3RRX.js.map → chunk-IRYOK5BR.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-ELJ4PYL2.js.map → chunk-J3CUCOMP.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-4TXOBR4J.js.map → chunk-JCVARKWT.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-TAC75RFB.js.map → chunk-UIUJHTWG.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-FOPBX4EE.js.map → chunk-V72WS373.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-7DLY2WYQ.js.map → chunk-WEGFNME4.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-35JWEKXL.js.map → chunk-WWETRQCF.js.map} +0 -0
- /package/dist/safe-js/chunks/{chunk-JRUMDV3W.js.map → chunk-YDVEVDVT.js.map} +0 -0
- /package/dist/safe-js/chunks/{cli-runtime-GZL4KBFM.js.map → cli-runtime-3SOHLG5M.js.map} +0 -0
- /package/dist/safe-js/chunks/{dump-5HPQH2TV.js.map → dump-CSLHITIE.js.map} +0 -0
- /package/dist/safe-js/chunks/{harness-3Z4ABNRY.js.map → harness-QKPVLVOT.js.map} +0 -0
- /package/dist/safe-js/chunks/{mcp-PADFJXDB.js.map → mcp-A4YKQCIS.js.map} +0 -0
- /package/dist/safe-js/chunks/{migration-file-WIJFLWAW.js.map → migration-file-QCZTVXEU.js.map} +0 -0
- /package/dist/safe-js/chunks/{restore-275PJW3U.js.map → restore-22OGYS6N.js.map} +0 -0
- /package/dist/safe-js/chunks/{run-N3TS7H43.js.map → run-EMFOFJ22.js.map} +0 -0
- /package/dist/safe-js/chunks/{runtime-modules-75NU2HLD.js.map → runtime-modules-QCVDLUVF.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deepCopyToSandbox
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J3CUCOMP.js";
|
|
4
4
|
|
|
5
5
|
// packages/safe-js/src/modules/harness.ts
|
|
6
6
|
function makeHarnessModule(frontmatter, meta) {
|
|
@@ -52,4 +52,4 @@ ${prompt}`;
|
|
|
52
52
|
export {
|
|
53
53
|
makeHarnessModule
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=chunk-
|
|
55
|
+
//# sourceMappingURL=chunk-24Z6PSCN.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
validateMigrationReconciliation,
|
|
11
11
|
validateMigrationSemantics,
|
|
12
12
|
validateSnapshotMigration
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AUVGHYM5.js";
|
|
14
14
|
import {
|
|
15
15
|
DUMP_FORMAT_VERSION,
|
|
16
16
|
EXECUTION_SEMANTICS,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
serializeSafeJSSnapshot,
|
|
21
21
|
validateDumpEnvelope,
|
|
22
22
|
validateSnapshotData
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-J3CUCOMP.js";
|
|
24
24
|
import {
|
|
25
25
|
parseModule
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LMS5SSTN.js";
|
|
27
27
|
import {
|
|
28
28
|
paths_default
|
|
29
29
|
} from "./chunk-YUQFFRUF.js";
|
|
@@ -215,4 +215,4 @@ export {
|
|
|
215
215
|
migrateSnapshot,
|
|
216
216
|
migrateSnapshotFile
|
|
217
217
|
};
|
|
218
|
-
//# sourceMappingURL=chunk-
|
|
218
|
+
//# sourceMappingURL=chunk-47JWFV2B.js.map
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
HostCallJournal,
|
|
3
3
|
decodeReplayData,
|
|
4
4
|
validateSnapshotData
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-J3CUCOMP.js";
|
|
6
6
|
import {
|
|
7
7
|
CompileScope,
|
|
8
8
|
SandboxError,
|
|
9
9
|
functionSources,
|
|
10
10
|
parse,
|
|
11
11
|
parseModule
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LMS5SSTN.js";
|
|
13
13
|
|
|
14
14
|
// packages/safe-js/src/parse/hash.ts
|
|
15
15
|
var FNV_OFFSET_BASIS = 2166136261;
|
|
@@ -219,4 +219,4 @@ export {
|
|
|
219
219
|
validateMigrationReconciliation,
|
|
220
220
|
validateSnapshotMigration
|
|
221
221
|
};
|
|
222
|
-
//# sourceMappingURL=chunk-
|
|
222
|
+
//# sourceMappingURL=chunk-AUVGHYM5.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
numericTypedArrayConstructors,
|
|
9
9
|
parseModule,
|
|
10
10
|
tokenize
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LMS5SSTN.js";
|
|
12
12
|
|
|
13
13
|
// packages/safe-js/src/lint/rules/AS001.ts
|
|
14
14
|
function AS001(source, options = {}) {
|
|
@@ -11177,4 +11177,4 @@ function hasOnlyRegexLiteralDiagnostics(diagnostics) {
|
|
|
11177
11177
|
export {
|
|
11178
11178
|
lint
|
|
11179
11179
|
};
|
|
11180
|
-
//# sourceMappingURL=chunk-
|
|
11180
|
+
//# sourceMappingURL=chunk-EMH7CXQM.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SnapshotNotReadyError,
|
|
3
3
|
serializeSafeJSSnapshot
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-J3CUCOMP.js";
|
|
5
5
|
import {
|
|
6
6
|
SandboxError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LMS5SSTN.js";
|
|
8
8
|
|
|
9
9
|
// packages/safe-js/src/snapshot/dump.ts
|
|
10
10
|
var RUN_DUMP_CONTROLLER = /* @__PURE__ */ Symbol("SafeJS.run-dump-controller");
|
|
@@ -195,4 +195,4 @@ export {
|
|
|
195
195
|
dumpCurrent,
|
|
196
196
|
serializeRunSnapshot
|
|
197
197
|
};
|
|
198
|
-
//# sourceMappingURL=chunk-
|
|
198
|
+
//# sourceMappingURL=chunk-IRYOK5BR.js.map
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
sandboxErrorTypes,
|
|
41
41
|
syntaxDiagnostics,
|
|
42
42
|
templateRealms
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-LMS5SSTN.js";
|
|
44
44
|
import {
|
|
45
45
|
AsyncLocalStorage,
|
|
46
46
|
cloneSharedBufferWrapper,
|
|
@@ -49367,4 +49367,4 @@ authorization of the copyright holder.
|
|
|
49367
49367
|
SPDX-License-Identifier: Unicode-3.0
|
|
49368
49368
|
|
|
49369
49369
|
*/
|
|
49370
|
-
//# sourceMappingURL=chunk-
|
|
49370
|
+
//# sourceMappingURL=chunk-J3CUCOMP.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
declareBudgetedHostOperation,
|
|
9
9
|
declareHostOperation
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J3CUCOMP.js";
|
|
11
11
|
import {
|
|
12
12
|
basename,
|
|
13
13
|
dirname,
|
|
@@ -746,4 +746,4 @@ export {
|
|
|
746
746
|
FS_OPTION_SURFACE,
|
|
747
747
|
makeFsModule
|
|
748
748
|
};
|
|
749
|
-
//# sourceMappingURL=chunk-
|
|
749
|
+
//# sourceMappingURL=chunk-JCVARKWT.js.map
|
|
@@ -4769,7 +4769,9 @@ var Parser = class {
|
|
|
4769
4769
|
if (this.conditionalDepths.has(frame.node)) {
|
|
4770
4770
|
pending.pop();
|
|
4771
4771
|
} else if (frame.children === void 0) {
|
|
4772
|
-
|
|
4772
|
+
const type = compilerField(frame.node, "type");
|
|
4773
|
+
const children = type === "ArrowFunctionExpression" || type === "FunctionExpression" || type === "FunctionDeclaration" || type === "StaticBlock" ? [] : type === "PropertyDefinition" ? compilerField(frame.node, "computed") ? [compilerField(frame.node, "key")] : [] : [...compilerElements(frame.node)];
|
|
4774
|
+
frame.children = children.filter(
|
|
4773
4775
|
(child) => child !== null && typeof child === "object"
|
|
4774
4776
|
);
|
|
4775
4777
|
for (const child of frame.children) {
|
|
@@ -7673,10 +7675,14 @@ var Parser = class {
|
|
|
7673
7675
|
withFunctionContext(functionContext, callback) {
|
|
7674
7676
|
const previousBreakableDepth = this.breakableDepth;
|
|
7675
7677
|
const previousLoopDepth = this.loopDepth;
|
|
7678
|
+
const previousConditionalExpressionDepth = this.conditionalExpressionDepth;
|
|
7679
|
+
const previousIfStatementDepth = this.ifStatementDepth;
|
|
7676
7680
|
const previousLabels = this.activeLabels;
|
|
7677
7681
|
const previousFunctionContext = this.functionContext;
|
|
7678
7682
|
this.breakableDepth = 0;
|
|
7679
7683
|
this.loopDepth = 0;
|
|
7684
|
+
this.conditionalExpressionDepth = 0;
|
|
7685
|
+
this.ifStatementDepth = 0;
|
|
7680
7686
|
this.activeLabels = /* @__PURE__ */ new Map();
|
|
7681
7687
|
this.functionContext = functionContext;
|
|
7682
7688
|
try {
|
|
@@ -7684,6 +7690,8 @@ var Parser = class {
|
|
|
7684
7690
|
} finally {
|
|
7685
7691
|
this.breakableDepth = previousBreakableDepth;
|
|
7686
7692
|
this.loopDepth = previousLoopDepth;
|
|
7693
|
+
this.conditionalExpressionDepth = previousConditionalExpressionDepth;
|
|
7694
|
+
this.ifStatementDepth = previousIfStatementDepth;
|
|
7687
7695
|
this.activeLabels = previousLabels;
|
|
7688
7696
|
this.functionContext = previousFunctionContext;
|
|
7689
7697
|
}
|
|
@@ -8772,4 +8780,4 @@ export {
|
|
|
8772
8780
|
Float16Array2 as Float16Array,
|
|
8773
8781
|
numericTypedArrayConstructors
|
|
8774
8782
|
};
|
|
8775
|
-
//# sourceMappingURL=chunk-
|
|
8783
|
+
//# sourceMappingURL=chunk-LMS5SSTN.js.map
|