@oclif/core 1.9.4 → 1.9.7

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,17 @@
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.9.7](https://github.com/oclif/core/compare/v1.9.6...v1.9.7) (2022-07-14)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * can not find module 'cli-ux' ([#403](https://github.com/oclif/core/issues/403)) ([f16b67f](https://github.com/oclif/core/commit/f16b67f8b6cd3eaaf24c26d4e7c4d490c0937ff3))
11
+
12
+ ### [1.9.6](https://github.com/oclif/core/compare/v1.9.5...v1.9.6) (2022-07-14)
13
+
14
+ ### [1.9.5](https://github.com/oclif/core/compare/v1.9.4...v1.9.5) (2022-06-23)
15
+
5
16
  ### [1.9.4](https://github.com/oclif/core/compare/v1.9.3...v1.9.4) (2022-06-23)
6
17
 
7
18
  ### [1.9.3](https://github.com/oclif/core/compare/v1.9.2...v1.9.3) (2022-06-16)
package/flush.js CHANGED
@@ -1,6 +1 @@
1
- module.exports = async () => {
2
- try {
3
- const {ux} = require('cli-ux')
4
- await ux.flush()
5
- } catch (error) { }
6
- }
1
+ module.exports = require('./lib').flush
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: any;
14
+ declare const flush: () => 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/lib/index.js CHANGED
@@ -32,7 +32,7 @@ const settings_1 = require("./settings");
32
32
  Object.defineProperty(exports, "settings", { enumerable: true, get: function () { return settings_1.settings; } });
33
33
  const cliUx = require("./cli-ux");
34
34
  exports.CliUx = cliUx;
35
- const flush = require('../flush');
35
+ const flush = cliUx.ux.flush;
36
36
  exports.flush = flush;
37
37
  function checkCWD() {
38
38
  try {
@@ -11,7 +11,7 @@ function build(defaults) {
11
11
  ...defaults,
12
12
  ...options,
13
13
  input: [],
14
- multiple: Boolean(options.multiple),
14
+ multiple: Boolean(options.multiple === undefined ? defaults.multiple : options.multiple),
15
15
  type: 'option',
16
16
  };
17
17
  };
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.9.4",
4
+ "version": "1.9.7",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/core/issues",
7
7
  "dependencies": {