@oclif/plugin-version 2.2.57 → 2.3.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/README.md +1 -1
- package/lib/commands/version.d.ts +1 -1
- package/lib/commands/version.js +3 -2
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ FLAG DESCRIPTIONS
|
|
|
27
27
|
Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
_See code: [src/commands/version.ts](https://github.com/oclif/plugin-version/blob/2.
|
|
30
|
+
_See code: [src/commands/version.ts](https://github.com/oclif/plugin-version/blob/2.3.0/src/commands/version.ts)_
|
|
31
31
|
<!-- commandsstop -->
|
|
32
32
|
|
|
33
33
|
# Contributing
|
package/lib/commands/version.js
CHANGED
|
@@ -43,7 +43,8 @@ function humanReadableDate(date) {
|
|
|
43
43
|
async function formatPlugins(config, plugins) {
|
|
44
44
|
const sorted = Object.entries(plugins)
|
|
45
45
|
.map(([name, plugin]) => ({ name, ...plugin }))
|
|
46
|
-
|
|
46
|
+
// eslint-disable-next-line unicorn/prefer-simple-sort-comparator
|
|
47
|
+
.toSorted((a, b) => (a.name > b.name ? 1 : -1));
|
|
47
48
|
return Promise.all(sorted.map(async (plugin) => {
|
|
48
49
|
const base = `${getFriendlyName(config, plugin.name)} ${ansis.dim(plugin.version)} ${ansis.dim(`(${plugin.type})`)} ${plugin.type === 'link' ? ansis.dim(plugin.root) : ''}`.trim();
|
|
49
50
|
if (plugin.type === 'user') {
|
|
@@ -80,7 +81,7 @@ export default class Version extends Command {
|
|
|
80
81
|
const { flags } = await this.parse(Version);
|
|
81
82
|
const { pluginVersions, ...theRest } = this.config.versionDetails;
|
|
82
83
|
const versionDetail = { ...theRest };
|
|
83
|
-
let output =
|
|
84
|
+
let output = this.config.userAgent;
|
|
84
85
|
if (flags.verbose) {
|
|
85
86
|
const details = await getNpmDetails(this.config.pjson.name);
|
|
86
87
|
const cliPublishedString = details
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-version",
|
|
3
3
|
"description": "A command that shows the CLI version",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-version/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@types/which": "^3",
|
|
22
22
|
"chai": "^4.5.0",
|
|
23
23
|
"commitlint": "^19",
|
|
24
|
-
"eslint": "^
|
|
25
|
-
"eslint-config-oclif": "^
|
|
24
|
+
"eslint": "^10.8.1",
|
|
25
|
+
"eslint-config-oclif": "^7.1.5",
|
|
26
26
|
"eslint-config-prettier": "^10.1.8",
|
|
27
27
|
"husky": "^9.1.7",
|
|
28
28
|
"lint-staged": "^15",
|