@jsenv/urls
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "@jsenv/urls", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"license": "MIT", | ||
@@ -33,5 +33,3 @@ "repository": { | ||
}, | ||
"dependencies": { | ||
"@jsenv/log": "1.6.3" | ||
} | ||
"dependencies": {} | ||
} |
@@ -1,2 +0,3 @@ | ||
import { isFileSystemPath, fileSystemPathToUrl } from "@jsenv/urls" | ||
import { isFileSystemPath } from "./is_filesystem_path.js" | ||
import { fileSystemPathToUrl } from "./filesystem_path_to_url.js" | ||
@@ -3,0 +4,0 @@ export const getCallerPosition = () => { |
@@ -7,3 +7,2 @@ // consider switching to https://babeljs.io/docs/en/babel-code-frame | ||
import { urlToFileSystemPath } from "./url_to_filesystem_path.js" | ||
import { ANSI } from "@jsenv/log" | ||
@@ -87,10 +86,9 @@ export const stringifyUrlTrace = (trace) => { | ||
lineMaxLength = 120, | ||
color = false, | ||
} = {}) => { | ||
let mark = (string) => string | ||
let aside = (string) => string | ||
if (color) { | ||
mark = (string) => ANSI.color(string, ANSI.RED) | ||
aside = (string) => ANSI.color(string, ANSI.GREY) | ||
} | ||
// if (color) { | ||
// mark = (string) => ANSI.color(string, ANSI.RED) | ||
// aside = (string) => ANSI.color(string, ANSI.GREY) | ||
// } | ||
@@ -97,0 +95,0 @@ const lines = content.split(/\r?\n/) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
38269
1161
- Removed@jsenv/log@1.6.3
- Removed@jsenv/log@1.6.3(transitive)
- Removedansi-escapes@5.0.0(transitive)
- Removedansi-regex@6.1.0(transitive)
- Removedeastasianwidth@0.2.0(transitive)
- Removedemoji-regex@9.2.2(transitive)
- Removedis-unicode-supported@1.1.0(transitive)
- Removedstring-width@5.1.2(transitive)
- Removedstrip-ansi@7.1.0(transitive)
- Removedsupports-color@9.2.2(transitive)
- Removedtype-fest@1.4.0(transitive)