@jsenv/plugin-supervisor 1.4.12 → 1.4.13
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/js/supervisor.js
CHANGED
|
@@ -544,7 +544,7 @@ window.__supervisor__ = (() => {
|
|
|
544
544
|
Error.prepareStackTrace = prepareStackTrace;
|
|
545
545
|
const getPropertiesFromEvalOrigin = origin => {
|
|
546
546
|
// Most eval() calls are in this format
|
|
547
|
-
const topLevelEvalMatch = /^eval at
|
|
547
|
+
const topLevelEvalMatch = /^eval at [^(]+ \(.+:\d+:\d+\)$/.exec(origin);
|
|
548
548
|
if (topLevelEvalMatch) {
|
|
549
549
|
const source = topLevelEvalMatch[2];
|
|
550
550
|
const line = Number(topLevelEvalMatch[3]);
|
|
@@ -556,7 +556,7 @@ window.__supervisor__ = (() => {
|
|
|
556
556
|
};
|
|
557
557
|
}
|
|
558
558
|
// Parse nested eval() calls using recursion
|
|
559
|
-
const nestedEvalMatch = /^eval at
|
|
559
|
+
const nestedEvalMatch = /^eval at [^(]+ \(.+\)$/.exec(origin);
|
|
560
560
|
if (nestedEvalMatch) {
|
|
561
561
|
return getPropertiesFromEvalOrigin(nestedEvalMatch[2]);
|
|
562
562
|
}
|
|
@@ -744,7 +744,7 @@ window.__supervisor__ = (() => {
|
|
|
744
744
|
line,
|
|
745
745
|
column
|
|
746
746
|
}) => {
|
|
747
|
-
const inlineUrlMatch = url.match(/@L([0-9]+)C([0-9]+)
|
|
747
|
+
const inlineUrlMatch = url.match(/@L([0-9]+)C([0-9]+)-L([0-9]+)C([0-9]+)(\.\w+)$/);
|
|
748
748
|
if (inlineUrlMatch) {
|
|
749
749
|
const htmlUrl = url.slice(0, inlineUrlMatch.index);
|
|
750
750
|
const tagLineStart = parseInt(inlineUrlMatch[1]);
|
|
@@ -816,7 +816,7 @@ window.__supervisor__ = (() => {
|
|
|
816
816
|
// debugger
|
|
817
817
|
// })
|
|
818
818
|
const replaceUrls = (source, replace) => {
|
|
819
|
-
return source.replace(/(?:https?|ftp|file):\/\/\S+/
|
|
819
|
+
return source.replace(/(?:https?|ftp|file):\/\/\S+/g, match => {
|
|
820
820
|
let replacement = "";
|
|
821
821
|
const lastChar = match[match.length - 1];
|
|
822
822
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-supervisor",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"/dist/"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@jsenv/ast": "6.1.
|
|
29
|
+
"@jsenv/ast": "6.1.1",
|
|
30
30
|
"@jsenv/urls": "2.2.7",
|
|
31
31
|
"@jsenv/sourcemap": "1.2.10",
|
|
32
32
|
"launch-editor": "2.8.0"
|
package/src/client/supervisor.js
CHANGED
|
@@ -502,8 +502,9 @@ window.__supervisor__ = (() => {
|
|
|
502
502
|
|
|
503
503
|
const getPropertiesFromEvalOrigin = (origin) => {
|
|
504
504
|
// Most eval() calls are in this format
|
|
505
|
-
const topLevelEvalMatch =
|
|
506
|
-
|
|
505
|
+
const topLevelEvalMatch = /^eval at [^(]+ \(.+:\d+:\d+\)$/.exec(
|
|
506
|
+
origin,
|
|
507
|
+
);
|
|
507
508
|
if (topLevelEvalMatch) {
|
|
508
509
|
const source = topLevelEvalMatch[2];
|
|
509
510
|
const line = Number(topLevelEvalMatch[3]);
|
|
@@ -515,7 +516,7 @@ window.__supervisor__ = (() => {
|
|
|
515
516
|
};
|
|
516
517
|
}
|
|
517
518
|
// Parse nested eval() calls using recursion
|
|
518
|
-
const nestedEvalMatch = /^eval at
|
|
519
|
+
const nestedEvalMatch = /^eval at [^(]+ \(.+\)$/.exec(origin);
|
|
519
520
|
if (nestedEvalMatch) {
|
|
520
521
|
return getPropertiesFromEvalOrigin(nestedEvalMatch[2]);
|
|
521
522
|
}
|
|
@@ -710,7 +711,7 @@ window.__supervisor__ = (() => {
|
|
|
710
711
|
|
|
711
712
|
const resolveUrlSite = ({ url, line, column }) => {
|
|
712
713
|
const inlineUrlMatch = url.match(
|
|
713
|
-
/@L([0-9]+)C([0-9]+)
|
|
714
|
+
/@L([0-9]+)C([0-9]+)-L([0-9]+)C([0-9]+)(\.\w+)$/,
|
|
714
715
|
);
|
|
715
716
|
if (inlineUrlMatch) {
|
|
716
717
|
const htmlUrl = url.slice(0, inlineUrlMatch.index);
|
|
@@ -790,7 +791,7 @@ window.__supervisor__ = (() => {
|
|
|
790
791
|
// debugger
|
|
791
792
|
// })
|
|
792
793
|
const replaceUrls = (source, replace) => {
|
|
793
|
-
return source.replace(/(?:https?|ftp|file):\/\/\S+/
|
|
794
|
+
return source.replace(/(?:https?|ftp|file):\/\/\S+/g, (match) => {
|
|
794
795
|
let replacement = "";
|
|
795
796
|
const lastChar = match[match.length - 1];
|
|
796
797
|
|