npm-package-arg
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -116,2 +116,10 @@ 'use strict' | ||
Result.prototype.toString = function () { | ||
const full = [] | ||
if (this.name != null && this.name !== '') full.push(this.name) | ||
const spec = this.saveSpec || this.fetchSpec || this.rawSpec | ||
if (spec != null && spec !== '') full.push(spec) | ||
return full.length ? full.join('@') : this.raw | ||
} | ||
Result.prototype.toJSON = function () { | ||
@@ -118,0 +126,0 @@ const result = Object.assign({}, this) |
{ | ||
"name": "npm-package-arg", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Parse the things that can be arguments to `npm install`", | ||
@@ -5,0 +5,0 @@ "main": "npa.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13429
224
0