Socket
Socket
Sign inDemoInstall

yargs

Package Overview
Dependencies
2
Maintainers
2
Versions
250
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.2 to 3.0.3

17

lib/parser.js

@@ -206,6 +206,17 @@ // fancy-pants parsing of argv, originally forked

setKey(argv, key.split('.'), value);
var splitKey = key.split('.');
setKey(argv, splitKey, value);
(aliases[key] || []).forEach(function (x) {
setKey(argv, x.split('.'), value);
(aliases[splitKey[0]] || []).forEach(function (x) {
x = x.split('.');
// handle populating dot notation for both
// the key and its aliases.
if (splitKey.length > 1) {
var a = [].concat(splitKey);
a.shift(); // nuke the old key.
x = x.concat(a);
}
setKey(argv, x, value);
});

@@ -212,0 +223,0 @@

2

package.json
{
"name": "yargs",
"version": "3.0.2",
"version": "3.0.3",
"description": "Light-weight option parsing with an argv hash. No optstrings attached.",

@@ -5,0 +5,0 @@ "main": "./index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc