@oclif/core 1.13.3 → 1.13.4

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.13.4](https://github.com/oclif/core/compare/v1.13.3...v1.13.4) (2022-08-08)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * retain enable json flag get/set apply flag at parse ([#460](https://github.com/oclif/core/issues/460)) ([9812937](https://github.com/oclif/core/commit/9812937e43a573cf4a10d4b03fca47555de5a1d9))
11
+
5
12
  ### [1.13.3](https://github.com/oclif/core/compare/v1.13.2...v1.13.3) (2022-08-06)
6
13
 
7
14
 
package/lib/command.js CHANGED
@@ -44,8 +44,15 @@ class Command {
44
44
  }
45
45
  static set enableJsonFlag(value) {
46
46
  this._enableJsonFlag = value;
47
- if (value)
47
+ if (value === true) {
48
48
  this.globalFlags = jsonFlag;
49
+ }
50
+ else {
51
+ // @ts-ignore
52
+ delete this.globalFlags.json;
53
+ // @ts-ignore
54
+ delete this.flags.json;
55
+ }
49
56
  }
50
57
  static get globalFlags() {
51
58
  return this._globalFlags;
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.13.3",
4
+ "version": "1.13.4",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {