yargs 14.2.1 → 14.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/yargs.js +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### 14.2.2
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* temporary fix for libraries that call Object.freeze() ([#1483](https://www.github.com/yargs/yargs/issues/1483)) ([99c2dc8](https://www.github.com/yargs/yargs/commit/99c2dc850e67c606644f8b0c0bca1a59c87dcbcd))
|
|
10
|
+
|
|
5
11
|
### [14.2.1](https://github.com/yargs/yargs/compare/v14.2.0...v14.2.1) (2019-10-30)
|
|
6
12
|
|
|
7
13
|
|
package/package.json
CHANGED
package/yargs.js
CHANGED
|
@@ -1191,9 +1191,15 @@ function Yargs (processArgs, cwd, parentRequire) {
|
|
|
1191
1191
|
// we temporarily populate '--' rather than _, with arguments
|
|
1192
1192
|
// after the '--' directive. After the parse, we copy these back.
|
|
1193
1193
|
self._copyDoubleDash = function (argv) {
|
|
1194
|
-
if (!argv._) return argv
|
|
1194
|
+
if (!argv._ || !argv['--']) return argv
|
|
1195
1195
|
argv._.push.apply(argv._, argv['--'])
|
|
1196
|
-
|
|
1196
|
+
|
|
1197
|
+
// TODO(bcoe): refactor command parsing such that this delete is not
|
|
1198
|
+
// necessary: https://github.com/yargs/yargs/issues/1482
|
|
1199
|
+
try {
|
|
1200
|
+
delete argv['--']
|
|
1201
|
+
} catch (_err) {}
|
|
1202
|
+
|
|
1197
1203
|
return argv
|
|
1198
1204
|
}
|
|
1199
1205
|
|