New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cmd-args

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cmd-args - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

4

dist/validateParsedOptions.js

@@ -27,3 +27,5 @@ "use strict";

if (option.required) {
throw new cmd_args_1.ParseError(`Missing required option ${option.key}.`, parsedOptions);
throw new cmd_args_1.ParseError(option.type === 'env'
? `Missing required env var ${option.env}`
: `Missing required option ${option.key}.`, parsedOptions);
}

@@ -30,0 +32,0 @@ else {

{
"name": "cmd-args",
"version": "2.0.4",
"version": "2.0.5",
"description": "A simple command-line argument parser for NodeJS command-line tools.",

@@ -5,0 +5,0 @@ "main": "dist/cmd-args.js",

@@ -33,3 +33,5 @@ import { CommandInternal, ParsedOptions } from './types'

throw new ParseError(
`Missing required option ${option.key}.`,
option.type === 'env'
? `Missing required env var ${option.env}`
: `Missing required option ${option.key}.`,
parsedOptions

@@ -36,0 +38,0 @@ )

Sorry, the diff of this file is not supported yet

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