@jsenv/urls
Advanced tools
Comparing version 1.2.6 to 1.2.7
{ | ||
"name": "@jsenv/urls", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"license": "MIT", | ||
@@ -11,4 +11,3 @@ "repository": { | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org" | ||
"access": "public" | ||
}, | ||
@@ -34,2 +33,2 @@ "author": { | ||
"dependencies": {} | ||
} | ||
} |
@@ -6,3 +6,2 @@ export { DATA_URL } from "./data_url.js" | ||
stringifyUrlSite, | ||
humanizeUrl, | ||
showSourceLocation, | ||
@@ -9,0 +8,0 @@ } from "./url_trace.js" |
@@ -6,4 +6,2 @@ // consider switching to https://babeljs.io/docs/en/babel-code-frame | ||
import { urlToFileSystemPath } from "./url_to_filesystem_path.js" | ||
export const stringifyUrlTrace = (trace) => { | ||
@@ -45,3 +43,3 @@ let string = "" | ||
) => { | ||
let string = `${humanizeUrl(url)}` | ||
let string = url | ||
@@ -72,11 +70,2 @@ if (typeof line === "number") { | ||
export const humanizeUrl = (url) => { | ||
if (url.startsWith("file://")) { | ||
// we prefer file system path because vscode reliably make them clickable | ||
// and sometimes it won't for file:// urls | ||
return urlToFileSystemPath(url) | ||
} | ||
return url | ||
} | ||
export const showSourceLocation = ({ | ||
@@ -83,0 +72,0 @@ content, |
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
23284
704