@poe-platform/safe-js 0.1.137 → 0.1.138
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-PH63RJBP.js → chunk-3PGVVY7D.js} +2 -2
- package/dist/safe-js/chunks/{chunk-VZV6W7GY.js → chunk-WBWD7ZCM.js} +10 -4
- package/dist/safe-js/chunks/chunk-WBWD7ZCM.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/dist/safe-js/interp/patterns.d.ts +1 -1
- package/package.json +2 -2
- package/dist/safe-js/chunks/chunk-VZV6W7GY.js.map +0 -7
- /package/dist/safe-js/chunks/{chunk-PH63RJBP.js.map → chunk-3PGVVY7D.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-WBWD7ZCM.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-3PGVVY7D.js.map
|
|
@@ -9496,7 +9496,10 @@ async function bindPattern(pattern, value, context, evaluateNode2) {
|
|
|
9496
9496
|
async function bindAssignmentPattern(pattern, value, context, evaluateNode2) {
|
|
9497
9497
|
let nextValue = value;
|
|
9498
9498
|
if (nextValue === void 0) {
|
|
9499
|
-
const defaultValue = await evaluateNode2(pattern.right,
|
|
9499
|
+
const defaultValue = await evaluateNode2(pattern.right, {
|
|
9500
|
+
...context,
|
|
9501
|
+
inferredName: pattern.left.type === "Identifier" ? pattern.left.name : void 0
|
|
9502
|
+
});
|
|
9500
9503
|
if (defaultValue.kind !== "normal") {
|
|
9501
9504
|
return {
|
|
9502
9505
|
ok: false,
|
|
@@ -24451,7 +24454,10 @@ async function bindAssignmentPattern2(pattern, value, target, scope, context) {
|
|
|
24451
24454
|
if (value !== void 0) {
|
|
24452
24455
|
return bindPattern2(pattern.left, value, target, scope, context);
|
|
24453
24456
|
}
|
|
24454
|
-
const defaultValue = await context.evaluate(
|
|
24457
|
+
const defaultValue = await context.evaluate(
|
|
24458
|
+
pattern.right,
|
|
24459
|
+
pattern.left.type === "Identifier" ? pattern.left.name : void 0
|
|
24460
|
+
);
|
|
24455
24461
|
if (defaultValue.kind !== "normal") {
|
|
24456
24462
|
return { ok: false, result: defaultValue };
|
|
24457
24463
|
}
|
|
@@ -29576,7 +29582,7 @@ function createPatternContext(context, scope = context.scope, evaluate = evaluat
|
|
|
29576
29582
|
const evaluationContext = { ...context, scope };
|
|
29577
29583
|
return {
|
|
29578
29584
|
budget: context.budget,
|
|
29579
|
-
evaluate: (node) => evaluate(node, evaluationContext),
|
|
29585
|
+
evaluate: (node, inferredName) => evaluate(node, { ...evaluationContext, inferredName }),
|
|
29580
29586
|
toPropertyKey: (value) => toPropertyKey(value, context.budget, createCoercionContext(evaluationContext)),
|
|
29581
29587
|
getProperty: (value, key) => getPropertyValue(value, key, evaluationContext),
|
|
29582
29588
|
setProperty: (target, key, value) => setSandboxProperty(target, key, value, context.budget)
|
|
@@ -34602,4 +34608,4 @@ export {
|
|
|
34602
34608
|
FileSnapshotBackend,
|
|
34603
34609
|
run
|
|
34604
34610
|
};
|
|
34605
|
-
//# sourceMappingURL=chunk-
|
|
34611
|
+
//# sourceMappingURL=chunk-WBWD7ZCM.js.map
|