Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-package-arg

Package Overview
Dependencies
Maintainers
4
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 5.0.0 to 5.0.1

8

npa.js

@@ -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)

2

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

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