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
package/package.json
CHANGED
|
@@ -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();
|
|
@@ -30653,4 +30656,4 @@ export {
|
|
|
30653
30656
|
FileSnapshotBackend,
|
|
30654
30657
|
run
|
|
30655
30658
|
};
|
|
30656
|
-
//# sourceMappingURL=chunk-
|
|
30659
|
+
//# sourceMappingURL=chunk-BI5UBZ7A.js.map
|