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

yargs-unparser

Package Overview
Dependencies
Maintainers
15
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yargs-unparser - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

index.js

@@ -25,6 +25,2 @@ 'use strict';

function unparseOption(key, value, unparsed) {
if (value == null) {
throw new TypeError(`Value of \`${key}\` cannot be null or undefined`);
}
if (typeof value === 'string') {

@@ -45,3 +41,3 @@ unparsed.push(keyToFlag(key), value);

// Fallback case (numbers and other types)
} else {
} else if (value != null) {
unparsed.push(keyToFlag(key), `${value}`);

@@ -48,0 +44,0 @@ }

2

package.json
{
"name": "yargs-unparser",
"description": "Converts back a yargs argv object to its original array form.",
"version": "1.0.2",
"version": "1.0.3",
"keywords": [

@@ -6,0 +6,0 @@ "yargs",

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