@oclif/core 1.13.7 → 1.13.10

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,22 @@
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.10](https://github.com/oclif/core/compare/v1.13.9...v1.13.10) (2022-08-09)
6
+
7
+ ### [1.13.9](https://github.com/oclif/core/compare/v1.13.8...v1.13.9) (2022-08-09)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * remove json flag if subclass overrides enableJsonFlag ([#467](https://github.com/oclif/core/issues/467)) ([05dd12a](https://github.com/oclif/core/commit/05dd12ad114f37d0512df2d89a8e51d0984fa3d4))
13
+
14
+ ### [1.13.8](https://github.com/oclif/core/compare/v1.13.7...v1.13.8) (2022-08-09)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * revert [#460](https://github.com/oclif/core/issues/460) ([#466](https://github.com/oclif/core/issues/466)) ([4c28acf](https://github.com/oclif/core/commit/4c28acfc2131eadbac423fa722b8cc0dc16a1b5b))
20
+
5
21
  ### [1.13.7](https://github.com/oclif/core/compare/v1.13.6...v1.13.7) (2022-08-08)
6
22
 
7
23
 
@@ -32,6 +32,6 @@ export declare const ux: {
32
32
  log(format?: string | undefined, ...args: string[]): void;
33
33
  url(text: string, uri: string, params?: {}): void;
34
34
  annotation(text: string, annotation: string): void;
35
- flush(): Promise<void>;
35
+ flush(ms?: number): Promise<void>;
36
36
  };
37
37
  export { config, ActionBase, Config, ExitError, IPromptOptions, Table, };
@@ -120,8 +120,8 @@ exports.ux = {
120
120
  this.log(text);
121
121
  }
122
122
  },
123
- async flush() {
124
- await timeout(flush(), 10000);
123
+ async flush(ms = 10000) {
124
+ await timeout(flush(), ms);
125
125
  },
126
126
  };
127
127
  const cliuxProcessExitHandler = async () => {
package/lib/command.js CHANGED
@@ -48,10 +48,11 @@ class Command {
48
48
  this.globalFlags = jsonFlag;
49
49
  }
50
50
  else {
51
- // @ts-ignore
52
- delete this.globalFlags.json;
53
- // @ts-ignore
54
- delete this.flags.json;
51
+ // @ts-expect-error because this.globalFlags is typed as a plain object
52
+ delete this.globalFlags?.json;
53
+ this.flags = {}; // force the flags setter to run
54
+ // @ts-expect-error because this.flags is typed as a plain object
55
+ delete this.flags?.json;
55
56
  }
56
57
  }
57
58
  static get globalFlags() {
package/lib/index.d.ts CHANGED
@@ -11,5 +11,5 @@ import { Hook } from './interfaces/hooks';
11
11
  import { settings, Settings } from './settings';
12
12
  import { HelpSection, HelpSectionRenderer, HelpSectionKeyValueTable } from './help/formatter';
13
13
  import * as cliUx from './cli-ux';
14
- declare const flush: () => Promise<void>;
14
+ declare const flush: (ms?: number) => Promise<void>;
15
15
  export { Command, CommandHelp, Config, Errors, Flags, loadHelpClass, Help, HelpBase, HelpSection, HelpSectionRenderer, HelpSectionKeyValueTable, Hook, Interfaces, Parser, Plugin, run, toCached, tsPath, toStandardizedId, toConfiguredId, settings, Settings, flush, cliUx as CliUx, };
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.7",
4
+ "version": "1.13.10",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {