@oclif/plugin-update 3.1.32 → 3.2.0

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/lib/update.js CHANGED
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Updater = void 0;
4
4
  const tslib_1 = require("tslib");
5
- /* eslint-disable unicorn/prefer-module */
6
- const color_1 = (0, tslib_1.__importDefault)(require("@oclif/color"));
5
+ const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
7
6
  const core_1 = require("@oclif/core");
8
7
  const fs = (0, tslib_1.__importStar)(require("fs-extra"));
9
8
  const http_call_1 = (0, tslib_1.__importDefault)(require("http-call"));
@@ -196,7 +195,7 @@ class Updater {
196
195
  }
197
196
  // eslint-disable-next-line max-params
198
197
  async update(manifest, current, updated, force, channel) {
199
- core_1.ux.action.start(`${this.config.name}: Updating CLI from ${color_1.default.green(current)} to ${color_1.default.green(updated)}${channel === 'stable' ? '' : ' (' + color_1.default.yellow(channel) + ')'}`);
198
+ core_1.ux.action.start(`${this.config.name}: Updating CLI from ${chalk_1.default.green(current)} to ${chalk_1.default.green(updated)}${channel === 'stable' ? '' : ' (' + chalk_1.default.yellow(channel) + ')'}`);
200
199
  await this.ensureClientDir();
201
200
  const output = path.join(this.clientRoot, updated);
202
201
  if (force || !await fs.pathExists(output))
@@ -206,7 +205,7 @@ class Updater {
206
205
  await this.createBin(updated);
207
206
  }
208
207
  async updateToExistingVersion(current, updated) {
209
- core_1.ux.action.start(`${this.config.name}: Updating CLI from ${color_1.default.green(current)} to ${color_1.default.green(updated)}`);
208
+ core_1.ux.action.start(`${this.config.name}: Updating CLI from ${chalk_1.default.green(current)} to ${chalk_1.default.green(updated)}`);
210
209
  await this.ensureClientDir();
211
210
  await this.refreshConfig(updated);
212
211
  await this.createBin(updated);
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.1.32",
2
+ "version": "3.2.0",
3
3
  "commands": {
4
4
  "update": {
5
5
  "id": "update",
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@oclif/plugin-update",
3
- "version": "3.1.32",
3
+ "version": "3.2.0",
4
4
  "author": "Salesforce",
5
5
  "bugs": "https://github.com/oclif/plugin-update/issues",
6
6
  "dependencies": {
7
- "@oclif/color": "^1.0.10",
8
7
  "@oclif/core": "^2.11.8",
8
+ "chalk": "^4",
9
9
  "cross-spawn": "^7.0.3",
10
10
  "debug": "^4.3.1",
11
11
  "filesize": "^6.1.0",
@@ -81,4 +81,4 @@
81
81
  "build": "rm -rf lib && tsc"
82
82
  },
83
83
  "main": "lib/index.js"
84
- }
84
+ }