poe-code 13.0.4 → 13.0.5
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/index.js +4 -1
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safe-js/dist/chunks/{chunk-WGS5B4OT.js → chunk-BI5UBZ7A.js} +4 -1
- package/packages/safe-js/dist/chunks/chunk-BI5UBZ7A.js.map +7 -0
- package/packages/safe-js/dist/chunks/{chunk-ZGWWEL43.js → chunk-FH5X7CUS.js} +2 -2
- package/packages/safe-js/dist/cli.js +2 -2
- package/packages/safe-js/dist/core.js +1 -1
- package/packages/safe-js/dist/index.js +2 -2
- package/packages/safe-js/dist/interp/values.js +4 -0
- package/packages/safe-js/dist/chunks/chunk-WGS5B4OT.js.map +0 -7
- /package/packages/safe-js/dist/chunks/{chunk-ZGWWEL43.js.map → chunk-FH5X7CUS.js.map} +0 -0
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-BI5UBZ7A.js";
|
|
31
31
|
import {
|
|
32
32
|
createFileSystem,
|
|
33
33
|
createNodeFileSystemAdapterRegistry,
|
|
@@ -8183,4 +8183,4 @@ export {
|
|
|
8183
8183
|
parseMcpConfig,
|
|
8184
8184
|
makeMcpModule
|
|
8185
8185
|
};
|
|
8186
|
-
//# sourceMappingURL=chunk-
|
|
8186
|
+
//# sourceMappingURL=chunk-FH5X7CUS.js.map
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveFsConfig,
|
|
23
23
|
splitFrontmatter,
|
|
24
24
|
withBrokenPipeGuard
|
|
25
|
-
} from "./chunks/chunk-
|
|
25
|
+
} from "./chunks/chunk-FH5X7CUS.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-BI5UBZ7A.js";
|
|
38
38
|
import "./chunks/chunk-ZRX5HT5L.js";
|
|
39
39
|
import "./chunks/chunk-WVN5MMDR.js";
|
|
40
40
|
import "./chunks/chunk-4YIDX44G.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
runWithSpawnUsageAccumulator,
|
|
30
30
|
splitFrontmatter,
|
|
31
31
|
supportsSpawnMode
|
|
32
|
-
} from "./chunks/chunk-
|
|
32
|
+
} from "./chunks/chunk-FH5X7CUS.js";
|
|
33
33
|
import {
|
|
34
34
|
Budget,
|
|
35
35
|
FileSnapshotBackend,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
registerPendingHostCallPolicy,
|
|
52
52
|
restore,
|
|
53
53
|
run
|
|
54
|
-
} from "./chunks/chunk-
|
|
54
|
+
} from "./chunks/chunk-BI5UBZ7A.js";
|
|
55
55
|
import "./chunks/chunk-ZRX5HT5L.js";
|
|
56
56
|
import "./chunks/chunk-WVN5MMDR.js";
|
|
57
57
|
import "./chunks/chunk-4YIDX44G.js";
|
|
@@ -472,10 +472,14 @@ function copyFromSandbox(value, state, path = "<root>", options, depth = 0) {
|
|
|
472
472
|
const guard = new RegexCompileGuard(options.compilation);
|
|
473
473
|
try {
|
|
474
474
|
guard.preflight(source, flags);
|
|
475
|
+
const existing = state.seen.get(value);
|
|
476
|
+
if (existing !== undefined)
|
|
477
|
+
return existing;
|
|
475
478
|
guard.allocate(1 + source.length + flags.length);
|
|
476
479
|
const regex = new RegExp(source, flags);
|
|
477
480
|
regex.lastIndex = lastIndex;
|
|
478
481
|
guard.retainScratch();
|
|
482
|
+
state.seen.set(value, regex);
|
|
479
483
|
return regex;
|
|
480
484
|
}
|
|
481
485
|
finally {
|