@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 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
 
@@ -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
- const parsedValue = flag.type === 'option' && flag.parse ?
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/core",
3
3
  "description": "base library for oclif CLIs",
4
- "version": "1.3.5",
4
+ "version": "1.3.6",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {