@oclif/core 1.3.5 → 1.3.6
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 +7 -0
- package/lib/parser/parse.js +1 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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
|
+
### [1.3.6](https://github.com/oclif/core/compare/v1.3.5...v1.3.6) (2022-02-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* parsing the default is wrong types ([ba08723](https://github.com/oclif/core/commit/ba087237773e6f4b3649d03dc88f693a22681de9))
|
|
11
|
+
|
|
5
12
|
### [1.3.5](https://github.com/oclif/core/compare/v1.3.4...v1.3.5) (2022-02-25)
|
|
6
13
|
|
|
7
14
|
|
package/lib/parser/parse.js
CHANGED
|
@@ -181,11 +181,7 @@ class Parser {
|
|
|
181
181
|
this.metaData.flags[k] = { setFromDefault: true };
|
|
182
182
|
// eslint-disable-next-line no-await-in-loop
|
|
183
183
|
const defaultValue = (typeof flag.default === 'function' ? await flag.default({ options: flag, flags, ...this.context }) : flag.default);
|
|
184
|
-
|
|
185
|
-
// eslint-disable-next-line no-await-in-loop
|
|
186
|
-
await flag.parse(defaultValue, this.context) :
|
|
187
|
-
defaultValue;
|
|
188
|
-
flags[k] = parsedValue;
|
|
184
|
+
flags[k] = defaultValue;
|
|
189
185
|
}
|
|
190
186
|
}
|
|
191
187
|
return flags;
|