Comparing version 3.21.0 to 3.21.1
## Change Log | ||
### v3.21.1 (2015/08/28 20:58 +00:00) | ||
- [#240](https://github.com/bcoe/yargs/pull/240) hot-fix for Atom on Windows (@bcoe) | ||
### v3.21.0 (2015/08/21 21:20 +00:00) | ||
- [#238](https://github.com/bcoe/yargs/pull/238) upgrade camelcase, window-size, chai, mocha (@nexdrew) | ||
- [#237](https://github.com/bcoe/yargs/pull/237) adds defaultDescription to option() (@nexdrew) | ||
### v3.20.0 (2015/08/20 01:29 +00:00) | ||
@@ -4,0 +11,0 @@ - [#231](https://github.com/bcoe/yargs/pull/231) Merge pull request #231 from bcoe/detect-locale (@sindresorhus) |
10
index.js
@@ -22,3 +22,3 @@ var assert = require('assert') | ||
directory: path.resolve(__dirname, './locales'), | ||
locale: osLocale.sync(), | ||
locale: guessLocale(), | ||
updateFiles: false | ||
@@ -535,2 +535,10 @@ }) | ||
function guessLocale () { | ||
try { | ||
return osLocale.sync() | ||
} catch (err) { | ||
return 'en' | ||
} | ||
} | ||
function setPlaceholderKeys (argv) { | ||
@@ -537,0 +545,0 @@ Object.keys(options.key).forEach(function (key) { |
{ | ||
"name": "yargs", | ||
"version": "3.21.0", | ||
"version": "3.21.1", | ||
"description": "Light-weight option parsing with an argv hash. No optstrings attached.", | ||
@@ -17,3 +17,3 @@ "main": "./index.js", | ||
"decamelize": "^1.0.0", | ||
"os-locale": "^1.2.0", | ||
"os-locale": "^1.2.1", | ||
"window-size": "^0.1.2", | ||
@@ -20,0 +20,0 @@ "y18n": "^3.1.0" |
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
123842
1631
Updatedos-locale@^1.2.1