@poe-platform/safe-js 0.1.181 → 0.1.182
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/safe-js/chunks/{chunk-IJRSYEH5.js → chunk-A6KP64IV.js} +4 -4
- package/dist/safe-js/chunks/chunk-A6KP64IV.js.map +7 -0
- package/dist/safe-js/chunks/{chunk-27CDLBE5.js → chunk-J5JNS3B3.js} +2 -2
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +1 -1
- package/dist/safe-js/index.js +2 -2
- package/package.json +2 -2
- package/dist/safe-js/chunks/chunk-IJRSYEH5.js.map +0 -7
- /package/dist/safe-js/chunks/{chunk-27CDLBE5.js.map → chunk-J5JNS3B3.js.map} +0 -0
|
@@ -10660,8 +10660,8 @@ function callStringMethodBody(value, methodName, args, budget, parent, context)
|
|
|
10660
10660
|
const regex = args[0];
|
|
10661
10661
|
if (methodName === "search" && isSandboxRegex(regex) && getSandboxPropertyDescriptor(regex, "exec", budget) !== void 0)
|
|
10662
10662
|
return callCustomRegexSearch(value, regex, budget, context);
|
|
10663
|
-
if (methodName === "match" && isSandboxRegex(regex) && getSandboxPropertyDescriptor(regex,
|
|
10664
|
-
return
|
|
10663
|
+
if (methodName === "match" && isSandboxRegex(regex) && ["exec", "flags", ...Object.keys(regexFlagProperties)].some((key) => getSandboxPropertyDescriptor(regex, key, budget) !== void 0))
|
|
10664
|
+
return callObservableRegexMatch(value, regex, budget, context);
|
|
10665
10665
|
if (isSandboxRegex(regex) && (methodName === "matchAll" || methodName === "match" && !regex.flags.includes("g") && regex.lastIndex !== null && typeof regex.lastIndex === "object")) {
|
|
10666
10666
|
return callStringRegexCursor(value, methodName, regex, budget, parent, context);
|
|
10667
10667
|
}
|
|
@@ -11025,7 +11025,7 @@ async function callCustomRegexSearch(value, regex, budget, context) {
|
|
|
11025
11025
|
release();
|
|
11026
11026
|
}
|
|
11027
11027
|
}
|
|
11028
|
-
async function
|
|
11028
|
+
async function callObservableRegexMatch(value, regex, budget, context) {
|
|
11029
11029
|
const matches = [];
|
|
11030
11030
|
let result;
|
|
11031
11031
|
let matched;
|
|
@@ -36567,4 +36567,4 @@ export {
|
|
|
36567
36567
|
FileSnapshotBackend,
|
|
36568
36568
|
run
|
|
36569
36569
|
};
|
|
36570
|
-
//# sourceMappingURL=chunk-
|
|
36570
|
+
//# sourceMappingURL=chunk-A6KP64IV.js.map
|