@oclif/plugin-update 3.1.31 → 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 +3 -4
- package/oclif.manifest.json +1 -1
- package/package.json +6 -6
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
|
-
|
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 ${
|
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 ${
|
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);
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
{
|
2
2
|
"name": "@oclif/plugin-update",
|
3
|
-
"version": "3.
|
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",
|
12
12
|
"fs-extra": "^9.0.1",
|
13
13
|
"http-call": "^5.3.0",
|
14
|
-
"inquirer": "^8.2.
|
14
|
+
"inquirer": "^8.2.6",
|
15
15
|
"lodash.throttle": "^4.1.1",
|
16
16
|
"log-chopper": "^1.0.2",
|
17
17
|
"semver": "^7.5.4",
|
18
18
|
"tar-fs": "^2.1.1"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
|
-
"@oclif/plugin-help": "^5.2.
|
21
|
+
"@oclif/plugin-help": "^5.2.17",
|
22
22
|
"@oclif/test": "^2.4.4",
|
23
23
|
"@types/chai": "^4.3.5",
|
24
24
|
"@types/cross-spawn": "^6.0.2",
|
@@ -39,7 +39,7 @@
|
|
39
39
|
"globby": "^11.0.2",
|
40
40
|
"mocha": "^9",
|
41
41
|
"nock": "^13.3.2",
|
42
|
-
"oclif": "^3.
|
42
|
+
"oclif": "^3.11.3",
|
43
43
|
"qqjs": "^0.3.11",
|
44
44
|
"sinon": "^12.0.1",
|
45
45
|
"ts-node": "^9.1.1",
|
@@ -81,4 +81,4 @@
|
|
81
81
|
"build": "rm -rf lib && tsc"
|
82
82
|
},
|
83
83
|
"main": "lib/index.js"
|
84
|
-
}
|
84
|
+
}
|