yargs-unparser
Advanced tools
Comparing version 1.5.0 to 1.5.1
11
index.js
@@ -5,8 +5,3 @@ 'use strict'; | ||
const flatten = require('flat'); | ||
const castArray = require('lodash/castArray'); | ||
const some = require('lodash/some'); | ||
const isPlainObject = require('lodash/isPlainObject'); | ||
const camelCase = require('lodash/camelCase'); | ||
const kebabCase = require('lodash/kebabCase'); | ||
const omitBy = require('lodash/omitBy'); | ||
const {castArray, some, isPlainObject, camelCase, kebabCase, omitBy} = require('lodash'); | ||
@@ -43,3 +38,5 @@ function isAlias(key, alias) { | ||
for (const flattenedKey in flattened) { | ||
unparseOption(`${key}.${flattenedKey}`, flattened[flattenedKey], unparsed); | ||
if (!isCamelCased(flattenedKey, flattened)) { | ||
unparseOption(`${key}.${flattenedKey}`, flattened[flattenedKey], unparsed); | ||
} | ||
} | ||
@@ -46,0 +43,0 @@ // Fallback case (numbers and other types) |
{ | ||
"name": "yargs-unparser", | ||
"description": "Converts back a yargs argv object to its original array form", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"keywords": [ | ||
@@ -34,3 +34,3 @@ "yargs", | ||
"scripts": { | ||
"posttag": "git push --follow-tags origin master && npm publish" | ||
"posttag": "git push --follow-tags origin master" | ||
} | ||
@@ -50,18 +50,18 @@ }, | ||
"devDependencies": { | ||
"@commitlint/cli": "^7.2.1", | ||
"@commitlint/config-conventional": "^7.1.2", | ||
"eslint": "^5.9.0", | ||
"eslint-config-moxy": "^6.1.1", | ||
"husky": "^1.2.0", | ||
"jest": "^23.6.0", | ||
"lint-staged": "^8.1.0", | ||
"@commitlint/cli": "^8.1.0", | ||
"@commitlint/config-conventional": "^8.1.0", | ||
"eslint": "^6.1.0", | ||
"eslint-config-moxy": "^7.1.0", | ||
"husky": "^3.0.1", | ||
"jest": "^24.8.0", | ||
"lint-staged": "^9.2.1", | ||
"minimist": "^1.2.0", | ||
"standard-version": "^4.4.0", | ||
"yargs-parser": "^11.1.1" | ||
"standard-version": "^7.0.0", | ||
"yargs-parser": "^13.1.1" | ||
}, | ||
"dependencies": { | ||
"flat": "^4.1.0", | ||
"lodash": "^4.17.11", | ||
"yargs": "^12.0.5" | ||
"lodash": "^4.17.15", | ||
"yargs": "^13.3.0" | ||
} | ||
} |
@@ -58,3 +58,3 @@ # yargs-unparser | ||
const yargs = require('yargs'); | ||
const unparse = require('yargs-unparse'); | ||
const unparse = require('yargs-unparser'); | ||
@@ -61,0 +61,0 @@ const argv = yargs |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
11207
101
+ Addedansi-regex@4.1.1(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedcliui@5.0.0(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedemoji-regex@7.0.3(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedrequire-main-filename@2.0.0(transitive)
+ Addedstring-width@3.1.0(transitive)
+ Addedstrip-ansi@5.2.0(transitive)
+ Addedwrap-ansi@5.1.0(transitive)
+ Addedyargs@13.3.2(transitive)
+ Addedyargs-parser@13.1.2(transitive)
- Removedansi-regex@2.1.13.0.1(transitive)
- Removedcliui@4.1.0(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedcross-spawn@6.0.5(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedexeca@1.0.0(transitive)
- Removedget-caller-file@1.0.3(transitive)
- Removedget-stream@4.1.0(transitive)
- Removedinvert-kv@2.0.0(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedlcid@2.0.0(transitive)
- Removedmap-age-cleaner@0.1.3(transitive)
- Removedmem@4.3.0(transitive)
- Removedmimic-fn@2.1.0(transitive)
- Removednice-try@1.0.5(transitive)
- Removednpm-run-path@2.0.2(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedos-locale@3.1.0(transitive)
- Removedp-defer@1.0.0(transitive)
- Removedp-finally@1.0.0(transitive)
- Removedp-is-promise@2.1.0(transitive)
- Removedpath-key@2.0.1(transitive)
- Removedpump@3.0.2(transitive)
- Removedrequire-main-filename@1.0.1(transitive)
- Removedsemver@5.7.2(transitive)
- Removedshebang-command@1.2.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstring-width@1.0.22.1.1(transitive)
- Removedstrip-ansi@3.0.14.0.0(transitive)
- Removedstrip-eof@1.0.0(transitive)
- Removedwhich@1.3.1(transitive)
- Removedwrap-ansi@2.1.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedyargs@12.0.5(transitive)
- Removedyargs-parser@11.1.1(transitive)
Updatedlodash@^4.17.15
Updatedyargs@^13.3.0