poe-code 13.0.4 → 13.0.6
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 +6 -3
- 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-ZGWWEL43.js → chunk-ES7OFCHQ.js} +2 -2
- package/packages/safe-js/dist/chunks/{chunk-WGS5B4OT.js → chunk-YVTMQWCX.js} +6 -3
- package/packages/safe-js/dist/chunks/chunk-YVTMQWCX.js.map +7 -0
- 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/methods/string.js +4 -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-ES7OFCHQ.js.map} +0 -0
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
validateMigrationSemantics,
|
|
28
28
|
validateSnapshotData,
|
|
29
29
|
validateSnapshotMigration
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YVTMQWCX.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-ES7OFCHQ.js.map
|
|
@@ -10444,10 +10444,13 @@ function copyFromSandbox(value, state, path = "<root>", options, depth = 0) {
|
|
|
10444
10444
|
const guard = new RegexCompileGuard(options.compilation);
|
|
10445
10445
|
try {
|
|
10446
10446
|
guard.preflight(source, flags);
|
|
10447
|
+
const existing = state.seen.get(value);
|
|
10448
|
+
if (existing !== void 0) return existing;
|
|
10447
10449
|
guard.allocate(1 + source.length + flags.length);
|
|
10448
10450
|
const regex = new RegExp(source, flags);
|
|
10449
10451
|
regex.lastIndex = lastIndex;
|
|
10450
10452
|
guard.retainScratch();
|
|
10453
|
+
state.seen.set(value, regex);
|
|
10451
10454
|
return regex;
|
|
10452
10455
|
} finally {
|
|
10453
10456
|
guard.close();
|
|
@@ -26780,9 +26783,9 @@ function callMatchLikeMethod(value, methodName, args, compilation) {
|
|
|
26780
26783
|
throw new TypeError(`String#${methodName} requires a regex argument.`);
|
|
26781
26784
|
if (methodName === "search") {
|
|
26782
26785
|
const lastIndex = regex.lastIndex;
|
|
26783
|
-
regex.lastIndex = 0;
|
|
26786
|
+
if (!Object.is(lastIndex, 0)) regex.lastIndex = 0;
|
|
26784
26787
|
const match = executeRegex(regex, value);
|
|
26785
|
-
regex.lastIndex = lastIndex;
|
|
26788
|
+
if (!Object.is(regex.lastIndex, lastIndex)) regex.lastIndex = lastIndex;
|
|
26786
26789
|
return match?.index ?? -1;
|
|
26787
26790
|
}
|
|
26788
26791
|
if (methodName === "matchAll" && !regex.flags.includes("g"))
|
|
@@ -30653,4 +30656,4 @@ export {
|
|
|
30653
30656
|
FileSnapshotBackend,
|
|
30654
30657
|
run
|
|
30655
30658
|
};
|
|
30656
|
-
//# sourceMappingURL=chunk-
|
|
30659
|
+
//# sourceMappingURL=chunk-YVTMQWCX.js.map
|