poe-code 13.0.5 → 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 +3 -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-FH5X7CUS.js → chunk-ES7OFCHQ.js} +2 -2
- package/packages/safe-js/dist/chunks/{chunk-BI5UBZ7A.js → chunk-YVTMQWCX.js} +3 -3
- package/packages/safe-js/dist/chunks/{chunk-BI5UBZ7A.js.map → chunk-YVTMQWCX.js.map} +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/methods/string.js +4 -2
- /package/packages/safe-js/dist/chunks/{chunk-FH5X7CUS.js.map → chunk-ES7OFCHQ.js.map} +0 -0
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveFsConfig,
|
|
23
23
|
splitFrontmatter,
|
|
24
24
|
withBrokenPipeGuard
|
|
25
|
-
} from "./chunks/chunk-
|
|
25
|
+
} from "./chunks/chunk-ES7OFCHQ.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-YVTMQWCX.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-ES7OFCHQ.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-YVTMQWCX.js";
|
|
55
55
|
import "./chunks/chunk-ZRX5HT5L.js";
|
|
56
56
|
import "./chunks/chunk-WVN5MMDR.js";
|
|
57
57
|
import "./chunks/chunk-4YIDX44G.js";
|
|
@@ -330,9 +330,11 @@ function callMatchLikeMethod(value, methodName, args, compilation) {
|
|
|
330
330
|
throw new TypeError(`String#${methodName} requires a regex argument.`);
|
|
331
331
|
if (methodName === "search") {
|
|
332
332
|
const lastIndex = regex.lastIndex;
|
|
333
|
-
|
|
333
|
+
if (!Object.is(lastIndex, 0))
|
|
334
|
+
regex.lastIndex = 0;
|
|
334
335
|
const match = executeRegex(regex, value);
|
|
335
|
-
regex.lastIndex
|
|
336
|
+
if (!Object.is(regex.lastIndex, lastIndex))
|
|
337
|
+
regex.lastIndex = lastIndex;
|
|
336
338
|
return match?.index ?? -1;
|
|
337
339
|
}
|
|
338
340
|
if (methodName === "matchAll" && !regex.flags.includes("g"))
|
|
File without changes
|