Socket
Socket
Sign inDemoInstall

npm-package-arg

Package Overview
Dependencies
Maintainers
6
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-package-arg - npm Package Compare versions

Comparing version 8.1.5 to 9.0.0

lib/npa.js

33

package.json
{
"name": "npm-package-arg",
"version": "8.1.5",
"version": "9.0.0",
"description": "Parse the things that can be arguments to `npm install`",
"main": "npa.js",
"main": "./lib/npa.js",
"directories": {

@@ -10,12 +10,13 @@ "test": "test"

"files": [
"npa.js"
"bin",
"lib"
],
"dependencies": {
"hosted-git-info": "^4.0.1",
"semver": "^7.3.4",
"hosted-git-info": "^4.1.0",
"semver": "^7.3.5",
"validate-npm-package-name": "^3.0.0"
},
"devDependencies": {
"@npmcli/lint": "^1.0.1",
"tap": "^15.0.9"
"@npmcli/template-oss": "^2.7.1",
"tap": "^15.1.6"
},

@@ -29,6 +30,8 @@ "scripts": {

"npmclilint": "npmcli-lint",
"lint": "npm run npmclilint -- \"*.*js\" \"test/**/*.*js\"",
"lint": "eslint '**/*.js'",
"lintfix": "npm run lint -- --fix",
"posttest": "npm run lint --",
"postsnap": "npm run lintfix --"
"posttest": "npm run lint",
"postsnap": "npm run lintfix --",
"postlint": "npm-template-check",
"template-copy": "npm-template-copy --force"
},

@@ -39,3 +42,3 @@ "repository": {

},
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"author": "GitHub Inc.",
"license": "ISC",

@@ -47,4 +50,10 @@ "bugs": {

"engines": {
"node": ">=10"
"node": "^12.13.0 || ^14.15.0 || >=16"
},
"tap": {
"branches": 97
},
"templateOSS": {
"version": "2.7.1"
}
}

@@ -61,2 +61,3 @@ # npm-package-arg

* `remote` - An http url (presumably to a tgz)
* `alias` - A specifier with an alias, like `myalias@npm:foo@1.2.3`
* `registry` - If true this specifier refers to a resource hosted on a

@@ -85,1 +86,3 @@ registry. This is true for `tag`, `version` and `range` types.

`npa.resolve(name, spec)` then this will be `name + '@' + spec`.
* `subSpec` - If `type === 'alias'`, this is a Result Object for parsing the
target specifier for the alias.
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