Socket
Socket
Sign inDemoInstall

@jsenv/urls

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/urls - npm Package Compare versions

Comparing version 1.2.6 to 1.2.7

7

package.json
{
"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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc