@oclif/plugin-version 2.1.0 → 2.1.2

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 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/v2.1.0/src/commands/version.ts)_
30
+ _See code: [src/commands/version.ts](https://github.com/oclif/plugin-version/blob/v2.1.2/src/commands/version.ts)_
31
31
  <!-- commandsstop -->
32
32
 
33
33
  # Contributing
@@ -68,7 +68,7 @@ export default class Version extends Command {
68
68
  if (flags.verbose) {
69
69
  const details = await getNpmDetails(this.config.pjson.name);
70
70
  const cliPublishedString = details
71
- ? ansis.dim(` published ${daysAgo(details.time[details.version])} days ago (${humanReadableDate(details.time[details.version])})`)
71
+ ? ansis.dim(` published ${daysAgo(details.time[this.config.version])} days ago (${humanReadableDate(details.time[this.config.version])})`)
72
72
  : '';
73
73
  const notLatestWarning = details && this.config.version !== details['dist-tags'].latest
74
74
  ? ansis.red(` (latest is ${details['dist-tags'].latest})`)
@@ -35,5 +35,5 @@
35
35
  ]
36
36
  }
37
37
  },
38
- "version": "2.1.0"
38
+ "version": "2.1.2"
39
39
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@oclif/plugin-version",
3
3
  "description": "A command that shows the CLI version",
4
- "version": "2.1.0",
4
+ "version": "2.1.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-version/issues",
7
7
  "dependencies": {
8
- "@oclif/core": "^3.26.5",
8
+ "@oclif/core": "^3.26.6",
9
9
  "ansis": "^3.2.0"
10
10
  },
11
11
  "devDependencies": {