@salesforce/sf-plugins-core 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/lib/hooks.js +1 -1
- package/lib/sfCommand.js +1 -1
- package/package.json +2 -2
package/lib/hooks.js
CHANGED
|
@@ -18,7 +18,7 @@ class SfHook {
|
|
|
18
18
|
*/
|
|
19
19
|
static async run(config, hookName, options = {}) {
|
|
20
20
|
const timeout = kit_1.Duration.milliseconds(kit_1.env.getNumber('SF_HOOK_TIMEOUT_MS') ?? 5000);
|
|
21
|
-
const results = await config.runHook(hookName, options, timeout.milliseconds);
|
|
21
|
+
const results = await config.runHook(hookName, options, timeout.milliseconds, true);
|
|
22
22
|
results.failures.forEach((failure) => {
|
|
23
23
|
core_1.ux.debug(`Failed to run ${hookName} hook for ${failure.plugin.name}`);
|
|
24
24
|
core_1.ux.debug(failure.error.toString());
|
package/lib/sfCommand.js
CHANGED
|
@@ -84,7 +84,7 @@ class SfCommand extends core_1.Command {
|
|
|
84
84
|
const message = typeof input === 'string' ? input : input.message;
|
|
85
85
|
colorizedArgs.push(`${exports.StandardColors.warning(messages.getMessage('warning.prefix'))} ${message}`);
|
|
86
86
|
colorizedArgs.push(...this.formatActions(typeof input === 'string' ? [] : input.actions ?? [], { actionColor: exports.StandardColors.info }));
|
|
87
|
-
this.
|
|
87
|
+
this.logToStderr(colorizedArgs.join(os.EOL));
|
|
88
88
|
return input;
|
|
89
89
|
}
|
|
90
90
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/sf-plugins-core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Utils for writing Salesforce CLI plugins",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"types": "lib/exported.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"/messages"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@oclif/core": "^2.
|
|
35
|
+
"@oclif/core": "^2.1.1",
|
|
36
36
|
"@salesforce/core": "^3.33.1",
|
|
37
37
|
"@salesforce/kit": "^1.8.3",
|
|
38
38
|
"@salesforce/ts-types": "^1.7.1",
|