@oclif/plugin-update 4.3.3 → 4.3.5
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/README.md +1 -1
- package/dist/update.js +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
@@ -55,7 +55,7 @@ EXAMPLES
|
|
55
55
|
$ oclif-example update --available
|
56
56
|
```
|
57
57
|
|
58
|
-
_See code: [src/commands/update.ts](https://github.com/oclif/plugin-update/blob/v4.3.
|
58
|
+
_See code: [src/commands/update.ts](https://github.com/oclif/plugin-update/blob/v4.3.5/src/commands/update.ts)_
|
59
59
|
<!-- commandsstop -->
|
60
60
|
|
61
61
|
# Contributing
|
package/dist/update.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Config, ux } from '@oclif/core';
|
2
|
-
import
|
2
|
+
import { green, yellow } from 'ansis';
|
3
3
|
import makeDebug from 'debug';
|
4
4
|
import fileSize from 'filesize';
|
5
5
|
import { got } from 'got';
|
@@ -186,7 +186,7 @@ ${binPathEnvVar}="\$DIR/${bin}" ${redirectedEnvVar}=1 "$DIR/../${version}/bin/${
|
|
186
186
|
}
|
187
187
|
// eslint-disable-next-line max-params
|
188
188
|
async update(manifest, current, updated, force, channel) {
|
189
|
-
ux.action.start(`${this.config.name}: Updating CLI from ${
|
189
|
+
ux.action.start(`${this.config.name}: Updating CLI from ${green(current)} to ${green(updated)}${channel === 'stable' ? '' : ' (' + yellow(channel) + ')'}`);
|
190
190
|
await ensureClientDir(this.clientRoot);
|
191
191
|
const output = join(this.clientRoot, updated);
|
192
192
|
if (force || !existsSync(output))
|
@@ -196,7 +196,7 @@ ${binPathEnvVar}="\$DIR/${bin}" ${redirectedEnvVar}=1 "$DIR/../${version}/bin/${
|
|
196
196
|
await this.createBin(updated);
|
197
197
|
}
|
198
198
|
async updateToExistingVersion(current, updated) {
|
199
|
-
ux.action.start(`${this.config.name}: Updating CLI from ${
|
199
|
+
ux.action.start(`${this.config.name}: Updating CLI from ${green(current)} to ${green(updated)}`);
|
200
200
|
await ensureClientDir(this.clientRoot);
|
201
201
|
await this.refreshConfig(updated);
|
202
202
|
await this.createBin(updated);
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@oclif/plugin-update",
|
3
|
-
"version": "4.3.
|
3
|
+
"version": "4.3.5",
|
4
4
|
"author": "Salesforce",
|
5
5
|
"bugs": "https://github.com/oclif/plugin-update/issues",
|
6
6
|
"dependencies": {
|
7
7
|
"@inquirer/select": "^2.3.5",
|
8
8
|
"@oclif/core": "^4",
|
9
|
-
"
|
9
|
+
"ansis": "^3.2.0",
|
10
10
|
"debug": "^4.3.5",
|
11
11
|
"filesize": "^6.1.0",
|
12
12
|
"got": "^13",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"mocha": "^10.4.0",
|
38
38
|
"nock": "^13.5.4",
|
39
39
|
"oclif": "^4",
|
40
|
-
"prettier": "^3.
|
40
|
+
"prettier": "^3.3.1",
|
41
41
|
"shx": "^0.3.4",
|
42
42
|
"sinon": "^18.0.0",
|
43
43
|
"strip-ansi": "^7.1.0",
|