@poe-platform/safe-js 0.1.130 → 0.1.131
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-ZTGKRKQH.js → chunk-DZRTLKIV.js} +131 -44
- package/dist/safe-js/chunks/chunk-DZRTLKIV.js.map +7 -0
- package/dist/safe-js/chunks/{chunk-SGKEOIQL.js → chunk-RA54CNI6.js} +7 -3
- package/dist/safe-js/chunks/chunk-RA54CNI6.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/values.d.ts +3 -0
- package/dist/safe-js/parse/function-source.d.ts +7 -0
- package/dist/safe-js/snapshot/dump-format.d.ts +1 -1
- package/package.json +2 -2
- package/dist/safe-js/chunks/chunk-SGKEOIQL.js.map +0 -7
- package/dist/safe-js/chunks/chunk-ZTGKRKQH.js.map +0 -7
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-DZRTLKIV.js";
|
|
31
31
|
|
|
32
32
|
// packages/safe-js/src/migrate.ts
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
@@ -36,7 +36,11 @@ function inspectSnapshotMigration(snapshot, options) {
|
|
|
36
36
|
validateSnapshotData(snapshot);
|
|
37
37
|
validateDumpEnvelope(snapshot);
|
|
38
38
|
validateMigrationSemantics(snapshot.executionSemantics);
|
|
39
|
-
const sourceHash = hashSource(
|
|
39
|
+
const sourceHash = hashSource(
|
|
40
|
+
options.source,
|
|
41
|
+
void 0,
|
|
42
|
+
snapshot.executionSemantics === EXECUTION_SEMANTICS
|
|
43
|
+
);
|
|
40
44
|
if (snapshot.sourceHash !== sourceHash)
|
|
41
45
|
throw new TypeError(
|
|
42
46
|
`Migration requires the original executable source (checkpoint hash ${snapshot.sourceHash}, supplied ${sourceHash}). Preserve the checkpoint; do not replace its hash.`
|
|
@@ -8245,4 +8249,4 @@ export {
|
|
|
8245
8249
|
parseMcpConfig,
|
|
8246
8250
|
makeMcpModule
|
|
8247
8251
|
};
|
|
8248
|
-
//# sourceMappingURL=chunk-
|
|
8252
|
+
//# sourceMappingURL=chunk-RA54CNI6.js.map
|