@salesforce/plugin-info 1.1.0 → 1.1.4
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/CHANGELOG.md +34 -9
- package/LICENSE.txt +1 -1
- package/README.md +11 -10
- package/lib/commands/info/releasenotes/display.js +27 -9
- package/lib/commands/info/releasenotes/display.js.map +1 -1
- package/lib/constants.d.ts +1 -1
- package/lib/constants.js +3 -2
- package/lib/constants.js.map +1 -1
- package/lib/shared/getDistTagVersion.js +1 -1
- package/lib/shared/getDistTagVersion.js.map +1 -1
- package/lib/shared/getReleaseNotes.js +1 -1
- package/lib/shared/getReleaseNotes.js.map +1 -1
- package/messages/display.js +3 -5
- package/oclif.manifest.json +1 -1
- package/package.json +5 -12
package/CHANGELOG.md
CHANGED
|
@@ -2,21 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
### [1.1.4](https://github.com/salesforcecli/plugin-info/compare/v1.1.3...v1.1.4) (2021-12-07)
|
|
6
6
|
|
|
7
|
+
### Bug Fixes
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
- update help message to make the CLI Command Ref work ([268a7b5](https://github.com/salesforcecli/plugin-info/commit/268a7b551fd05d3358691e98cb04ad70df2cef95))
|
|
10
|
+
|
|
11
|
+
### [1.1.3](https://github.com/salesforcecli/plugin-info/compare/v1.1.2...v1.1.3) (2021-12-07)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- disable emoji ([b4edbae](https://github.com/salesforcecli/plugin-info/commit/b4edbae03f308198c8fa6a90323a3c69c1e9efc5))
|
|
16
|
+
- emoji test ([10229c4](https://github.com/salesforcecli/plugin-info/commit/10229c40da67b6ea65577ddd53f685d0ce79c0ea))
|
|
17
|
+
|
|
18
|
+
### [1.1.2](https://github.com/salesforcecli/plugin-info/compare/v1.1.1...v1.1.2) (2021-12-01)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
- always show notes when running directly ([a0cd11e](https://github.com/salesforcecli/plugin-info/commit/a0cd11ec3777eb91adcfcac180d85b442b34b52a))
|
|
23
|
+
- merge conflict ([e4f7103](https://github.com/salesforcecli/plugin-info/commit/e4f7103b04f23cc9f66fa02f18286166be819812))
|
|
24
|
+
- whitespace conflict ([605d782](https://github.com/salesforcecli/plugin-info/commit/605d782be93a060e0eda69441806fe0cb76193d5))
|
|
25
|
+
|
|
26
|
+
### [1.1.1](https://github.com/salesforcecli/plugin-info/compare/v1.1.0...v1.1.1) (2021-11-30)
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
9
29
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
30
|
+
- add more telemetry ([b8af2d7](https://github.com/salesforcecli/plugin-info/commit/b8af2d7e516cd1f5347d379d1c29d6389299fab8))
|
|
31
|
+
|
|
32
|
+
## [1.1.0](https://github.com/salesforcecli/plugin-info/compare/v1.0.0...v1.1.0) (2021-11-22)
|
|
33
|
+
|
|
34
|
+
### Features
|
|
13
35
|
|
|
36
|
+
- initial setup and release notes fetch ([d258d91](https://github.com/salesforcecli/plugin-info/commit/d258d91cf3f781c0afbc4f8b3c776cd4fd0085ef))
|
|
37
|
+
- parse and render release notes ([f5e3398](https://github.com/salesforcecli/plugin-info/commit/f5e3398f14e74aa1f83fa308c9601f1b770afcae))
|
|
38
|
+
- parse release notes ([83f0a47](https://github.com/salesforcecli/plugin-info/commit/83f0a47d5e54e0e0cacace1f3bc12ad757aa6e38))
|
|
14
39
|
|
|
15
40
|
### Bug Fixes
|
|
16
41
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
42
|
+
- no more partial version match. updates footer ([010c4f3](https://github.com/salesforcecli/plugin-info/commit/010c4f38e963e416f57032db9578a28b26ed2b08))
|
|
43
|
+
- pin typescript ([c02bd4e](https://github.com/salesforcecli/plugin-info/commit/c02bd4e0beb4b686e5a3e6ced866e97d4d61ed88))
|
|
44
|
+
- switch from axios to got, added tests ([ef74275](https://github.com/salesforcecli/plugin-info/commit/ef74275517f2305e705e9f21d62f9f916a17471a))
|
|
45
|
+
- test for Windows ([16db159](https://github.com/salesforcecli/plugin-info/commit/16db159ca3fb64a51f0076881bea5df37e4edce9))
|
|
21
46
|
|
|
22
47
|
## 1.0.0 (2021-10-12)
|
package/LICENSE.txt
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# plugin-info
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@salesforce/plugin-info) [](https://circleci.com/gh/salesforcecli/plugin-info/tree/main) [](https://npmjs.org/package/@salesforce/plugin-info) [](https://raw.githubusercontent.com/salesforcecli/plugin-info/main/LICENSE.txt)
|
|
4
|
+
|
|
4
5
|
## Learn about the plugin-info
|
|
5
6
|
|
|
6
7
|
Salesforce CLI plugins are based on the [oclif plugin framework](<(https://oclif.io/docs/introduction.html)>). Read the [plugin developer guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_plugins.meta/sfdx_cli_plugins/cli_plugins_architecture_sf_cli.htm) to learn about Salesforce CLI plugin development.
|
|
@@ -74,20 +75,21 @@ sfdx plugins
|
|
|
74
75
|
## Commands
|
|
75
76
|
|
|
76
77
|
<!-- commands -->
|
|
77
|
-
|
|
78
|
+
|
|
79
|
+
- [`sfdx info:releasenotes:display [-v <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-inforeleasenotesdisplay--v-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
78
80
|
|
|
79
81
|
## `sfdx info:releasenotes:display [-v <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
80
82
|
|
|
81
|
-
|
|
83
|
+
Display Salesforce CLI release notes on the command line.
|
|
82
84
|
|
|
83
85
|
```
|
|
84
86
|
USAGE
|
|
85
|
-
$ sfdx info:releasenotes:display [-v <string>] [--json] [--loglevel
|
|
87
|
+
$ sfdx info:releasenotes:display [-v <string>] [--json] [--loglevel
|
|
86
88
|
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
87
89
|
|
|
88
90
|
OPTIONS
|
|
89
91
|
-v, --version=version CLI version or tag for which to
|
|
90
|
-
display release notes
|
|
92
|
+
display release notes.
|
|
91
93
|
|
|
92
94
|
--json format output as json
|
|
93
95
|
|
|
@@ -99,14 +101,13 @@ ALIASES
|
|
|
99
101
|
|
|
100
102
|
EXAMPLES
|
|
101
103
|
Display release notes for the currently installed CLI version:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
sfdx info:releasenotes:display
|
|
104
105
|
Display release notes for CLI version 7.120.0:
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
sfdx info:releasenotes:display --version 7.120.0
|
|
107
107
|
Display release notes for the CLI version that corresponds to a tag (stable, stable-rc, latest, latest-rc, rc):
|
|
108
|
-
|
|
108
|
+
sfdx info:releasenotes:display --version latest
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
_See code: [src/commands/info/releasenotes/display.ts](https://github.com/salesforcecli/plugin-info/blob/v1.1.
|
|
111
|
+
_See code: [src/commands/info/releasenotes/display.ts](https://github.com/salesforcecli/plugin-info/blob/v1.1.3/src/commands/info/releasenotes/display.ts)_
|
|
112
|
+
|
|
112
113
|
<!-- commandsstop -->
|
|
@@ -20,8 +20,8 @@ const getDistTagVersion_1 = require("../../../shared/getDistTagVersion");
|
|
|
20
20
|
const parseReleaseNotes_1 = require("../../../shared/parseReleaseNotes");
|
|
21
21
|
// Initialize Messages with the current plugin directory
|
|
22
22
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
23
|
-
const HIDE_NOTES = '
|
|
24
|
-
const HIDE_FOOTER = '
|
|
23
|
+
const HIDE_NOTES = 'SFDX_HIDE_RELEASE_NOTES';
|
|
24
|
+
const HIDE_FOOTER = 'SFDX_HIDE_RELEASE_NOTES_FOOTER';
|
|
25
25
|
// Load the specific messages for this file. Messages from @salesforce/command, @salesforce/core,
|
|
26
26
|
// or any library that is using the messages framework can also be loaded this way.
|
|
27
27
|
const messages = core_1.Messages.loadMessages('@salesforce/plugin-info', 'display');
|
|
@@ -29,14 +29,15 @@ class Display extends command_1.SfdxCommand {
|
|
|
29
29
|
async run() {
|
|
30
30
|
var _a;
|
|
31
31
|
const env = new kit_1.Env();
|
|
32
|
-
|
|
32
|
+
const isHook = !!this.flags.hook;
|
|
33
|
+
if (env.getBoolean(HIDE_NOTES) && isHook) {
|
|
33
34
|
// We don't ever want to exit the process for info:releasenotes:display (whatsnew)
|
|
34
35
|
// In most cases we will log a message, but here we only trace log in case someone using stdout of the update command
|
|
35
36
|
this.logger.trace(`release notes disabled via env var: ${HIDE_NOTES}`);
|
|
36
37
|
this.logger.trace('exiting');
|
|
38
|
+
await core_1.Lifecycle.getInstance().emitTelemetry({ eventName: 'NOTES_HIDDEN' });
|
|
37
39
|
return;
|
|
38
40
|
}
|
|
39
|
-
const isHook = !!this.flags.hook;
|
|
40
41
|
try {
|
|
41
42
|
const installedVersion = this.config.pjson.version;
|
|
42
43
|
const infoConfig = await (0, getInfoConfig_1.getInfoConfig)(this.config.root);
|
|
@@ -48,21 +49,38 @@ class Display extends command_1.SfdxCommand {
|
|
|
48
49
|
const releaseNotes = await (0, getReleaseNotes_1.getReleaseNotes)(releaseNotesPath, releaseNotesFilename, version);
|
|
49
50
|
const tokens = (0, parseReleaseNotes_1.parseReleaseNotes)(releaseNotes, version, releaseNotesPath);
|
|
50
51
|
marked_1.marked.setOptions({
|
|
51
|
-
renderer: new TerminalRenderer(),
|
|
52
|
+
renderer: new TerminalRenderer({ emoji: false }),
|
|
52
53
|
});
|
|
54
|
+
this.ux.log(marked_1.marked.parse(`# Release notes for '${this.config.bin}':`));
|
|
53
55
|
this.ux.log(marked_1.marked.parser(tokens));
|
|
54
|
-
if (isHook
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
if (isHook) {
|
|
57
|
+
if (env.getBoolean(HIDE_FOOTER)) {
|
|
58
|
+
await core_1.Lifecycle.getInstance().emitTelemetry({ eventName: 'FOOTER_HIDDEN' });
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
const footer = messages.getMessage('footer', [this.config.bin, releaseNotesPath, HIDE_NOTES, HIDE_FOOTER]);
|
|
62
|
+
this.ux.log(marked_1.marked.parse(footer));
|
|
63
|
+
}
|
|
57
64
|
}
|
|
58
65
|
}
|
|
59
66
|
catch (err) {
|
|
60
67
|
if (isHook) {
|
|
61
68
|
// Do not throw error if --hook is passed, just warn so we don't exit any processes.
|
|
62
69
|
// --hook is passed in the post install/update scripts
|
|
63
|
-
const { message, stack } = err;
|
|
70
|
+
const { message, stack, name } = err;
|
|
64
71
|
this.ux.warn(`${this.id} failed: ${message}`);
|
|
65
72
|
this.logger.trace(stack);
|
|
73
|
+
await core_1.Lifecycle.getInstance().emitTelemetry({
|
|
74
|
+
eventName: 'COMMAND_ERROR',
|
|
75
|
+
type: 'EXCEPTION',
|
|
76
|
+
errorName: name,
|
|
77
|
+
errorMessage: message,
|
|
78
|
+
Error: Object.assign({
|
|
79
|
+
name,
|
|
80
|
+
message,
|
|
81
|
+
stack,
|
|
82
|
+
}, err),
|
|
83
|
+
});
|
|
66
84
|
return;
|
|
67
85
|
}
|
|
68
86
|
throw err;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../../../src/commands/info/releasenotes/display.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,4EAA4E;AAC5E,uDAAuD;AAEvD,yBAAyB;AACzB,mCAAgC;AAChC,oDAAoD;AACpD,yCAAsC;AACtC,iDAAyD;AACzD,
|
|
1
|
+
{"version":3,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AQ,CAAC,UAAU,CAAC,eAAe,CAAC;KAClD,CAAC;IACF,IAAI,EAAE,eAAK,CAAC,OAAO,CAAC;QAClB,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC;KAC/C,CAAC;CACH,CAAC"}
|
package/lib/constants.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const SFDX_RELEASE_NOTES_TIMEOUT: number;
|
package/lib/constants.js
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* Licensed under the BSD 3-Clause license.
|
|
6
6
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
7
|
*/
|
|
8
|
+
var _a;
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
10
|
+
exports.SFDX_RELEASE_NOTES_TIMEOUT = void 0;
|
|
11
|
+
exports.SFDX_RELEASE_NOTES_TIMEOUT = ((_a = process.env.SFDX_RELEASE_NOTES_TIMEOUT) !== null && _a !== void 0 ? _a : 3000);
|
|
11
12
|
//# sourceMappingURL=constants.js.map
|
package/lib/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA;;;;;GAKG
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAEU,QAAA,0BAA0B,GAAG,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,0BAA0B,mCAAI,IAAI,CAAW,CAAC"}
|
|
@@ -12,7 +12,7 @@ const constants_1 = require("../constants");
|
|
|
12
12
|
const getDistTagVersion = async (url, distTag) => {
|
|
13
13
|
// TODO: Could use npm instead here. That way private cli repos could auth with .npmrc
|
|
14
14
|
// -- could utilize this: https://github.com/salesforcecli/plugin-trust/blob/0393b906a30e8858816625517eda5db69377c178/src/lib/npmCommand.ts
|
|
15
|
-
const options = { timeout: constants_1.
|
|
15
|
+
const options = { timeout: constants_1.SFDX_RELEASE_NOTES_TIMEOUT };
|
|
16
16
|
const body = await (0, got_1.default)(url, options).json();
|
|
17
17
|
// We are only interested in latest and latest-rc, could update this if other tags are desired
|
|
18
18
|
return distTag.includes('rc') ? body['latest-rc'] : body['latest'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDistTagVersion.js","sourceRoot":"","sources":["../../src/shared/getDistTagVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6BAAsB;AACtB,
|
|
1
|
+
{"version":3,"file":"getDistTagVersion.js","sourceRoot":"","sources":["../../src/shared/getDistTagVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6BAAsB;AACtB,4CAA0D;AAO1D,MAAM,iBAAiB,GAAG,KAAK,EAAE,GAAW,EAAE,OAAe,EAAmB,EAAE;IAChF,sFAAsF;IACtF,2IAA2I;IAC3I,MAAM,OAAO,GAAG,EAAE,OAAO,EAAE,sCAA0B,EAAE,CAAC;IAExD,MAAM,IAAI,GAAG,MAAM,IAAA,aAAG,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,EAAe,CAAC;IAEzD,8FAA8F;IAC9F,OAAO,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACrE,CAAC,CAAC;AAEO,8CAAiB"}
|
|
@@ -14,7 +14,7 @@ const getReleaseNotes = async (base, filename, version) => {
|
|
|
14
14
|
const majorVersion = (0, semver_1.major)(version);
|
|
15
15
|
const rawBase = base.replace('github.com', 'raw.githubusercontent.com').replace('/blob/', '/').replace('/tree/', '/');
|
|
16
16
|
const options = {
|
|
17
|
-
timeout: constants_1.
|
|
17
|
+
timeout: constants_1.SFDX_RELEASE_NOTES_TIMEOUT,
|
|
18
18
|
throwHttpErrors: false,
|
|
19
19
|
};
|
|
20
20
|
const getPromises = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getReleaseNotes.js","sourceRoot":"","sources":["../../src/shared/getReleaseNotes.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6BAAsB;AACtB,mCAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"getReleaseNotes.js","sourceRoot":"","sources":["../../src/shared/getReleaseNotes.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,6BAAsB;AACtB,mCAA+B;AAC/B,4CAA0D;AAE1D,MAAM,eAAe,GAAG,KAAK,EAAE,IAAY,EAAE,QAAgB,EAAE,OAAe,EAAmB,EAAE;IACjG,MAAM,YAAY,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,CAAC;IAEpC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,2BAA2B,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IAEtH,MAAM,OAAO,GAAG;QACd,OAAO,EAAE,sCAA0B;QACnC,eAAe,EAAE,KAAK;KACvB,CAAC;IAEF,MAAM,WAAW,GAAG;QAClB,IAAA,aAAG,EAAC,GAAG,OAAO,KAAK,YAAY,KAAK,EAAE,OAAO,CAAC;QAC9C,IAAA,aAAG,EAAC,GAAG,OAAO,IAAI,QAAQ,EAAE,EAAE,EAAE,GAAG,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;KACrE,CAAC;IAEF,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAE3D,MAAM,EAAE,IAAI,EAAE,GAAG,SAAS,CAAC,UAAU,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;IAEnE,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEO,0CAAe"}
|
package/messages/display.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
commandDescription: '
|
|
2
|
+
commandDescription: 'Display Salesforce CLI release notes on the command line.',
|
|
3
3
|
flags: {
|
|
4
|
-
version: 'CLI version or tag for which to display release notes',
|
|
5
|
-
hook: '
|
|
4
|
+
version: 'CLI version or tag for which to display release notes.',
|
|
5
|
+
hook: 'This hidden parameter is used in post install or update hooks.',
|
|
6
6
|
},
|
|
7
7
|
examples: [
|
|
8
8
|
`Display release notes for the currently installed CLI version:
|
|
9
9
|
<%= config.bin %> <%= command.id %>
|
|
10
|
-
|
|
11
10
|
Display release notes for CLI version 7.120.0:
|
|
12
11
|
<%= config.bin %> <%= command.id %> --version 7.120.0
|
|
13
|
-
|
|
14
12
|
Display release notes for the CLI version that corresponds to a tag (%s):
|
|
15
13
|
<%= config.bin %> <%= command.id %> --version latest
|
|
16
14
|
`,
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.1.
|
|
1
|
+
{"version":"1.1.4","commands":{"info:releasenotes:display":{"id":"info:releasenotes:display","description":"Display Salesforce CLI release notes on the command line.","usage":"<%= command.id %> [-v <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-info","pluginType":"core","aliases":["whatsnew"],"examples":["Display release notes for the currently installed CLI version:"," <%= config.bin %> <%= command.id %>","Display release notes for CLI version 7.120.0:"," <%= config.bin %> <%= command.id %> --version 7.120.0","Display release notes for the CLI version that corresponds to a tag (stable, stable-rc, latest, latest-rc, rc):"," <%= config.bin %> <%= command.id %> --version latest"," "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"version":{"name":"version","type":"option","char":"v","description":"CLI version or tag for which to display release notes."},"hook":{"name":"hook","type":"boolean","description":"This hidden parameter is used in post install or update hooks.","hidden":true,"allowNo":false}},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-info",
|
|
3
3
|
"description": "Plugin for accessing cli info from the command line",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.4",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@oclif/plugin-command-snapshot": "^2.2.2",
|
|
22
22
|
"@salesforce/cli-plugins-testkit": "^1.4.17",
|
|
23
23
|
"@salesforce/dev-config": "^2.1.2",
|
|
24
|
-
"@salesforce/dev-scripts": "^0.
|
|
24
|
+
"@salesforce/dev-scripts": "^1.0.2",
|
|
25
25
|
"@salesforce/plugin-command-reference": "^1.3.17",
|
|
26
26
|
"@salesforce/prettier-config": "^0.0.2",
|
|
27
27
|
"@salesforce/ts-sinon": "1.3.21",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"eslint-plugin-import": "^2.25.3",
|
|
43
43
|
"eslint-plugin-jsdoc": "^35.5.1",
|
|
44
44
|
"eslint-plugin-prettier": "^3.4.1",
|
|
45
|
-
"husky": "^
|
|
45
|
+
"husky": "^7.0.4",
|
|
46
46
|
"lint-staged": "^11.2.6",
|
|
47
47
|
"mocha": "^8.4.0",
|
|
48
48
|
"nyc": "^15.1.0",
|
|
@@ -115,18 +115,11 @@
|
|
|
115
115
|
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
|
|
116
116
|
"version": "oclif-dev readme"
|
|
117
117
|
},
|
|
118
|
-
"husky": {
|
|
119
|
-
"hooks": {
|
|
120
|
-
"pre-commit": "sf-husky-pre-commit",
|
|
121
|
-
"commit-msg": "sf-husky-commit-msg",
|
|
122
|
-
"pre-push": "sf-husky-pre-push"
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
118
|
"publishConfig": {
|
|
126
119
|
"access": "public"
|
|
127
120
|
},
|
|
128
121
|
"sfdx": {
|
|
129
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-info/1.1.
|
|
130
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-info/1.1.
|
|
122
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-info/1.1.4.crt",
|
|
123
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-info/1.1.4.sig"
|
|
131
124
|
}
|
|
132
125
|
}
|