@jsenv/plugin-supervisor 1.4.12 → 1.4.14

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.
@@ -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 ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin);
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 ([^(]+) \((.+)\)$/.exec(origin);
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]+)\-L([0-9]+)C([0-9]+)(\.[\w]+)$/);
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+/gm, match => {
819
+ return source.replace(/(?:https?|ftp|file):\/\/\S+/g, match => {
820
820
  let replacement = "";
821
821
  const lastChar = match[match.length - 1];
822
822
 
@@ -217,7 +217,7 @@ const createAnsi = ({
217
217
  };
218
218
  const processSupportsBasicColor = createSupportsColor(process.stdout).hasBasic;
219
219
  const ANSI = createAnsi({
220
- supported: processSupportsBasicColor ||
220
+ supported: process.env.FORCE_COLOR === "1" || processSupportsBasicColor ||
221
221
  // GitHub workflow does support ANSI but "supports-color" returns false
222
222
  // because stream.isTTY returns false, see https://github.com/actions/runner/issues/241
223
223
  process.env.GITHUB_WORKFLOW
@@ -261,6 +261,9 @@ const createUnicode = ({
261
261
  get CIRCLE_CROSS_RAW() {
262
262
  return UNICODE.supported ? "\u24E7" : "(\xD7)";
263
263
  },
264
+ get CIRCLE_DOTTED_RAW() {
265
+ return UNICODE.supported ? "\u25CC" : "*";
266
+ },
264
267
  get COMMAND() {
265
268
  return ANSI.color(UNICODE.COMMAND_RAW, ANSI.GREY); // ANSI_MAGENTA)
266
269
  },
@@ -289,7 +292,7 @@ const createUnicode = ({
289
292
  return UNICODE;
290
293
  };
291
294
  createUnicode({
292
- supported: isUnicodeSupported() || process.env.FORCE_UNICODE === "1",
295
+ supported: process.env.FORCE_UNICODE === "1" || isUnicodeSupported(),
293
296
  ANSI
294
297
  });
295
298
  const formatDefault = v => v;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-supervisor",
3
- "version": "1.4.12",
3
+ "version": "1.4.14",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,9 +26,9 @@
26
26
  "/dist/"
27
27
  ],
28
28
  "dependencies": {
29
- "@jsenv/ast": "6.1.0",
30
- "@jsenv/urls": "2.2.7",
31
- "@jsenv/sourcemap": "1.2.10",
29
+ "@jsenv/ast": "6.1.2",
30
+ "@jsenv/urls": "2.2.8",
31
+ "@jsenv/sourcemap": "1.2.11",
32
32
  "launch-editor": "2.8.0"
33
33
  },
34
34
  "scripts": {
@@ -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
- /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin);
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 ([^(]+) \((.+)\)$/.exec(origin);
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]+)\-L([0-9]+)C([0-9]+)(\.[\w]+)$/,
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+/gm, (match) => {
794
+ return source.replace(/(?:https?|ftp|file):\/\/\S+/g, (match) => {
794
795
  let replacement = "";
795
796
  const lastChar = match[match.length - 1];
796
797