🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

pacote

Package Overview
Dependencies
Maintainers
4
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pacote - npm Package Compare versions

Comparing version
21.5.0
to
21.5.1
+4
-1
lib/util/add-git-sha.js

@@ -11,3 +11,6 @@ // add a sha to a git remote url spec

// don't use new URL for this, because it doesn't handle scp urls
return spec.rawSpec.replace(/#.*$/, '') + `#${sha}`
// strip the committish with indexOf/slice to avoid a regexp redos
const hashIndex = spec.rawSpec.indexOf('#')
const base = hashIndex === -1 ? spec.rawSpec : spec.rawSpec.slice(0, hashIndex)
return `${base}#${sha}`
}

@@ -14,0 +17,0 @@ }

+3
-3
{
"name": "pacote",
"version": "21.5.0",
"version": "21.5.1",
"description": "JavaScript package downloader",

@@ -31,3 +31,3 @@ "author": "GitHub Inc.",

"@npmcli/eslint-config": "^6.0.0",
"@npmcli/template-oss": "4.29.0",
"@npmcli/template-oss": "5.1.0",
"hosted-git-info": "^9.0.0",

@@ -77,3 +77,3 @@ "mutate-fs": "^2.1.1",

"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.29.0",
"version": "5.1.0",
"windowsCI": false,

@@ -80,0 +80,0 @@ "publish": "true"