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

dashdash

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dashdash - npm Package Compare versions

Comparing version 1.12.2 to 1.13.0

2

lib/dashdash.js

@@ -142,3 +142,3 @@ /**

var num = Number(arg);
if (!/^[0-9]+$/.test(arg) || isNaN(num)) {
if (!/^[0-9]+$/.test(arg) || isNaN(num) || num === 0) {
throw new Error(format('arg for "%s" is not a positive integer: "%s"',

@@ -145,0 +145,0 @@ optstr, arg));

{
"name": "dashdash",
"description": "A light, featureful and explicit option parsing library.",
"version": "1.12.2",
"version": "1.13.0",
"author": "Trent Mick <trentm@gmail.com> (http://trentm.com)",

@@ -14,3 +14,3 @@ "keywords": ["option", "parser", "parsing", "cli", "command", "args",

"dependencies": {
"assert-plus": "^0.2.0"
"assert-plus": "^1.0.0"
},

@@ -21,3 +21,3 @@ "devDependencies": {

"engines": {
"node": ">=0.8"
"node": ">=0.10"
},

@@ -24,0 +24,0 @@ "scripts": {

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