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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "13.0.4",
3
+ "version": "13.0.6",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,7 +27,7 @@ import {
27
27
  validateMigrationSemantics,
28
28
  validateSnapshotData,
29
29
  validateSnapshotMigration
30
- } from "./chunk-WGS5B4OT.js";
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-ZGWWEL43.js.map
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-WGS5B4OT.js.map
30659
+ //# sourceMappingURL=chunk-YVTMQWCX.js.map