@salesforce/sf-plugins-core 1.22.2 → 2.0.0-beta.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/compatibility.d.ts +7 -7
- package/lib/deployer.js +1 -1
- package/lib/exported.d.ts +12 -13
- package/lib/exported.js +0 -1
- package/lib/flags/duration.d.ts +1 -1
- package/lib/flags/orgApiVersion.d.ts +1 -1
- package/lib/flags/orgFlags.d.ts +4 -4
- package/lib/flags/salesforceId.d.ts +1 -1
- package/lib/hooks.js +2 -2
- package/lib/sfCommand.d.ts +3 -3
- package/lib/sfCommand.js +2 -2
- package/lib/ux/progress.d.ts +2 -3
- package/lib/ux/progress.js +2 -2
- package/lib/ux/prompter.js +1 -1
- package/lib/ux/spinner.d.ts +1 -1
- package/lib/ux/spinner.js +6 -6
- package/lib/ux/ux.d.ts +3 -3
- package/lib/ux/ux.js +7 -7
- package/package.json +6 -6
package/lib/compatibility.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* }
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
export declare const orgApiVersionFlagWithDeprecations: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined
|
|
17
|
+
export declare const orgApiVersionFlagWithDeprecations: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, Record<string, unknown>>;
|
|
18
18
|
/**
|
|
19
19
|
* Use only for commands that maintain sfdx compatibility.
|
|
20
20
|
* Flag will be hidden and will show a warning if used.
|
|
@@ -23,23 +23,23 @@ export declare const orgApiVersionFlagWithDeprecations: import("@oclif/core/lib/
|
|
|
23
23
|
* @deprecated
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
|
-
export declare const loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined
|
|
26
|
+
export declare const loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, Record<string, unknown>>;
|
|
27
27
|
/**
|
|
28
28
|
* @deprecated
|
|
29
29
|
*/
|
|
30
|
-
export declare const optionalOrgFlagWithDeprecations: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org | undefined
|
|
30
|
+
export declare const optionalOrgFlagWithDeprecations: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org | undefined, Record<string, unknown>>;
|
|
31
31
|
/**
|
|
32
32
|
* @deprecated
|
|
33
33
|
*/
|
|
34
|
-
export declare const requiredOrgFlagWithDeprecations: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org
|
|
34
|
+
export declare const requiredOrgFlagWithDeprecations: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, Record<string, unknown>>;
|
|
35
35
|
/**
|
|
36
36
|
* @deprecated
|
|
37
37
|
*/
|
|
38
|
-
export declare const requiredHubFlagWithDeprecations: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org
|
|
38
|
+
export declare const requiredHubFlagWithDeprecations: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, Record<string, unknown>>;
|
|
39
39
|
/**
|
|
40
40
|
* @deprecated
|
|
41
41
|
*/
|
|
42
|
-
export declare const optionalHubFlagWithDeprecations: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org | undefined
|
|
42
|
+
export declare const optionalHubFlagWithDeprecations: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org | undefined, Record<string, unknown>>;
|
|
43
43
|
export type ArrayWithDeprecationOptions = {
|
|
44
44
|
multiple?: true;
|
|
45
45
|
parse?: undefined;
|
|
@@ -47,5 +47,5 @@ export type ArrayWithDeprecationOptions = {
|
|
|
47
47
|
/**
|
|
48
48
|
* @deprecated
|
|
49
49
|
*/
|
|
50
|
-
export declare const arrayWithDeprecation: import("@oclif/core/lib/interfaces").
|
|
50
|
+
export declare const arrayWithDeprecation: import("@oclif/core/lib/interfaces/parser").FlagDefinition<string[], ArrayWithDeprecationOptions>;
|
|
51
51
|
//# sourceMappingURL=compatibility.d.ts.map
|
package/lib/deployer.js
CHANGED
package/lib/exported.d.ts
CHANGED
|
@@ -10,25 +10,24 @@ export { SfCommand, SfCommandInterface, StandardColors } from './sfCommand';
|
|
|
10
10
|
export * from './compatibility';
|
|
11
11
|
export declare const Flags: {
|
|
12
12
|
boolean: typeof OclifFlags.boolean;
|
|
13
|
-
directory: import("@oclif/core/lib/interfaces").
|
|
13
|
+
directory: import("@oclif/core/lib/interfaces/parser").FlagDefinition<string, {
|
|
14
14
|
exists?: boolean | undefined;
|
|
15
15
|
}>;
|
|
16
|
-
|
|
17
|
-
file: import("@oclif/core/lib/interfaces").Definition<string, {
|
|
16
|
+
file: import("@oclif/core/lib/interfaces/parser").FlagDefinition<string, {
|
|
18
17
|
exists?: boolean | undefined;
|
|
19
18
|
}>;
|
|
20
|
-
integer: import("@oclif/core/lib/interfaces").
|
|
19
|
+
integer: import("@oclif/core/lib/interfaces/parser").FlagDefinition<number, {
|
|
21
20
|
min?: number | undefined;
|
|
22
21
|
max?: number | undefined;
|
|
23
22
|
}>;
|
|
24
|
-
string: import("@oclif/core/lib/interfaces").
|
|
25
|
-
url: import("@oclif/core/lib/interfaces").
|
|
26
|
-
duration: import("@oclif/core/lib/interfaces").
|
|
27
|
-
salesforceId: import("@oclif/core/lib/interfaces").
|
|
28
|
-
orgApiVersion: import("@oclif/core/lib/interfaces").
|
|
29
|
-
requiredOrg: import("@oclif/core/lib/interfaces").
|
|
30
|
-
requiredHub: import("@oclif/core/lib/interfaces").
|
|
31
|
-
optionalOrg: import("@oclif/core/lib/interfaces").
|
|
32
|
-
optionalHub: import("@oclif/core/lib/interfaces").
|
|
23
|
+
string: import("@oclif/core/lib/interfaces/parser").FlagDefinition<string, Record<string, unknown>>;
|
|
24
|
+
url: import("@oclif/core/lib/interfaces/parser").FlagDefinition<import("url").URL, Record<string, unknown>>;
|
|
25
|
+
duration: import("@oclif/core/lib/interfaces/parser").FlagDefinition<import("@salesforce/kit").Duration, import("./flags/duration").DurationFlagConfig>;
|
|
26
|
+
salesforceId: import("@oclif/core/lib/interfaces/parser").FlagDefinition<string, import("./flags/salesforceId").IdFlagConfig>;
|
|
27
|
+
orgApiVersion: import("@oclif/core/lib/interfaces/parser").FlagDefinition<string, Record<string, unknown>>;
|
|
28
|
+
requiredOrg: import("@oclif/core/lib/interfaces/parser").FlagDefinition<import("@salesforce/core").Org, Record<string, unknown>>;
|
|
29
|
+
requiredHub: import("@oclif/core/lib/interfaces/parser").FlagDefinition<import("@salesforce/core").Org, Record<string, unknown>>;
|
|
30
|
+
optionalOrg: import("@oclif/core/lib/interfaces/parser").FlagDefinition<import("@salesforce/core").Org | undefined, Record<string, unknown>>;
|
|
31
|
+
optionalHub: import("@oclif/core/lib/interfaces/parser").FlagDefinition<import("@salesforce/core").Org | undefined, Record<string, unknown>>;
|
|
33
32
|
};
|
|
34
33
|
//# sourceMappingURL=exported.d.ts.map
|
package/lib/exported.js
CHANGED
|
@@ -50,7 +50,6 @@ const duration_1 = require("./flags/duration");
|
|
|
50
50
|
exports.Flags = {
|
|
51
51
|
boolean: core_1.Flags.boolean,
|
|
52
52
|
directory: core_1.Flags.directory,
|
|
53
|
-
enum: core_1.Flags.enum,
|
|
54
53
|
file: core_1.Flags.file,
|
|
55
54
|
integer: core_1.Flags.integer,
|
|
56
55
|
string: core_1.Flags.string,
|
package/lib/flags/duration.d.ts
CHANGED
|
@@ -26,6 +26,6 @@ export type DurationFlagConfig = {
|
|
|
26
26
|
* }
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
export declare const durationFlag: import("@oclif/core/lib/interfaces").
|
|
29
|
+
export declare const durationFlag: import("@oclif/core/lib/interfaces/parser").FlagDefinition<Duration, DurationFlagConfig>;
|
|
30
30
|
export {};
|
|
31
31
|
//# sourceMappingURL=duration.d.ts.map
|
|
@@ -21,5 +21,5 @@ export declare const maxDeprecatedUrl = "https://help.salesforce.com/s/articleVi
|
|
|
21
21
|
* }
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export declare const orgApiVersionFlag: import("@oclif/core/lib/interfaces").
|
|
24
|
+
export declare const orgApiVersionFlag: import("@oclif/core/lib/interfaces/parser").FlagDefinition<string, Record<string, unknown>>;
|
|
25
25
|
//# sourceMappingURL=orgApiVersion.d.ts.map
|
package/lib/flags/orgFlags.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare const getHubOrThrow: (aliasOrUsername?: string) => Promise<Org>;
|
|
|
25
25
|
* }
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
export declare const optionalOrgFlag: import("@oclif/core/lib/interfaces").
|
|
28
|
+
export declare const optionalOrgFlag: import("@oclif/core/lib/interfaces/parser").FlagDefinition<Org | undefined, Record<string, unknown>>;
|
|
29
29
|
/**
|
|
30
30
|
* A required org, specified by username or alias
|
|
31
31
|
* Will throw if the specified org default do not exist
|
|
@@ -48,7 +48,7 @@ export declare const optionalOrgFlag: import("@oclif/core/lib/interfaces").Defin
|
|
|
48
48
|
* }
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
|
-
export declare const requiredOrgFlag: import("@oclif/core/lib/interfaces").
|
|
51
|
+
export declare const requiredOrgFlag: import("@oclif/core/lib/interfaces/parser").FlagDefinition<Org, Record<string, unknown>>;
|
|
52
52
|
/**
|
|
53
53
|
* A required org that is a devHub
|
|
54
54
|
* Will throw if the specified org does not exist
|
|
@@ -71,7 +71,7 @@ export declare const requiredOrgFlag: import("@oclif/core/lib/interfaces").Defin
|
|
|
71
71
|
* }
|
|
72
72
|
* ```
|
|
73
73
|
*/
|
|
74
|
-
export declare const requiredHubFlag: import("@oclif/core/lib/interfaces").
|
|
74
|
+
export declare const requiredHubFlag: import("@oclif/core/lib/interfaces/parser").FlagDefinition<Org, Record<string, unknown>>;
|
|
75
75
|
/**
|
|
76
76
|
* An optional org that, if present, must be a devHub
|
|
77
77
|
* Will throw if the specified org does not exist
|
|
@@ -93,5 +93,5 @@ export declare const requiredHubFlag: import("@oclif/core/lib/interfaces").Defin
|
|
|
93
93
|
* }
|
|
94
94
|
* ```
|
|
95
95
|
*/
|
|
96
|
-
export declare const optionalHubFlag: import("@oclif/core/lib/interfaces").
|
|
96
|
+
export declare const optionalHubFlag: import("@oclif/core/lib/interfaces/parser").FlagDefinition<Org | undefined, Record<string, unknown>>;
|
|
97
97
|
//# sourceMappingURL=orgFlags.d.ts.map
|
|
@@ -30,5 +30,5 @@ export type IdFlagConfig = {
|
|
|
30
30
|
* }
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
export declare const salesforceIdFlag: import("@oclif/core/lib/interfaces").
|
|
33
|
+
export declare const salesforceIdFlag: import("@oclif/core/lib/interfaces/parser").FlagDefinition<string, IdFlagConfig>;
|
|
34
34
|
//# sourceMappingURL=salesforceId.d.ts.map
|
package/lib/hooks.js
CHANGED
|
@@ -20,8 +20,8 @@ class SfHook {
|
|
|
20
20
|
const timeout = kit_1.Duration.milliseconds(kit_1.env.getNumber('SF_HOOK_TIMEOUT_MS') ?? 5000);
|
|
21
21
|
const results = await config.runHook(hookName, options, timeout.milliseconds);
|
|
22
22
|
results.failures.forEach((failure) => {
|
|
23
|
-
core_1.
|
|
24
|
-
core_1.
|
|
23
|
+
core_1.ux.debug(`Failed to run ${hookName} hook for ${failure.plugin.name}`);
|
|
24
|
+
core_1.ux.debug(failure.error.toString());
|
|
25
25
|
});
|
|
26
26
|
return results;
|
|
27
27
|
}
|
package/lib/sfCommand.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ux, Command, Config, HelpSection } from '@oclif/core';
|
|
2
2
|
import { SfProject, StructuredMessage, SfError, ConfigAggregator } from '@salesforce/core';
|
|
3
3
|
import { AnyJson } from '@salesforce/ts-types';
|
|
4
4
|
import * as chalk from 'chalk';
|
|
5
5
|
import { Progress, Prompter, Spinner, Ux } from './ux';
|
|
6
|
-
export interface SfCommandInterface extends
|
|
6
|
+
export interface SfCommandInterface extends Command.Class {
|
|
7
7
|
configurationVariablesSection?: HelpSection;
|
|
8
8
|
envVariablesSection?: HelpSection;
|
|
9
9
|
errorCodes?: HelpSection;
|
|
@@ -111,7 +111,7 @@ export declare abstract class SfCommand<T> extends Command {
|
|
|
111
111
|
* }
|
|
112
112
|
* ```
|
|
113
113
|
*/
|
|
114
|
-
static tableFlags: typeof
|
|
114
|
+
static tableFlags: typeof ux.Table.table.flags;
|
|
115
115
|
/**
|
|
116
116
|
* Set to true if the command must be executed inside a Salesforce project directory.
|
|
117
117
|
*
|
package/lib/sfCommand.js
CHANGED
|
@@ -263,7 +263,7 @@ class SfCommand extends core_1.Command {
|
|
|
263
263
|
},
|
|
264
264
|
};
|
|
265
265
|
if (this.jsonEnabled()) {
|
|
266
|
-
core_1.
|
|
266
|
+
core_1.ux.styledJSON(this.toErrorJson(sfCommandError));
|
|
267
267
|
}
|
|
268
268
|
else {
|
|
269
269
|
// eslint-disable-next-line no-console
|
|
@@ -327,5 +327,5 @@ SfCommand.enableJsonFlag = true;
|
|
|
327
327
|
* }
|
|
328
328
|
* ```
|
|
329
329
|
*/
|
|
330
|
-
SfCommand.tableFlags = core_1.
|
|
330
|
+
SfCommand.tableFlags = core_1.ux.table.flags;
|
|
331
331
|
//# sourceMappingURL=sfCommand.js.map
|
package/lib/ux/progress.d.ts
CHANGED
|
@@ -31,9 +31,8 @@ export declare class Progress extends UxBase {
|
|
|
31
31
|
}
|
|
32
32
|
export declare namespace Progress {
|
|
33
33
|
type Bar = {
|
|
34
|
-
start: (
|
|
35
|
-
update: (num: number, payload?:
|
|
36
|
-
updateTotal: (num: number) => void;
|
|
34
|
+
start: (total: number, startValue: number, payload?: object) => void;
|
|
35
|
+
update: (num: number, payload?: object) => void;
|
|
37
36
|
setTotal: (num: number) => void;
|
|
38
37
|
stop: () => void;
|
|
39
38
|
};
|
package/lib/ux/progress.js
CHANGED
|
@@ -36,14 +36,14 @@ class Progress extends _1.UxBase {
|
|
|
36
36
|
this.maybeNoop(() => {
|
|
37
37
|
const opts = Object.assign(Progress.DEFAULT_OPTIONS, options);
|
|
38
38
|
opts.format = util.format(opts.format, opts.title);
|
|
39
|
-
this.bar = core_1.
|
|
39
|
+
this.bar = core_1.ux.progress({
|
|
40
40
|
format: opts.format,
|
|
41
41
|
barCompleteChar: opts.barCompleteChar,
|
|
42
42
|
barIncompleteChar: opts.barIncompleteChar,
|
|
43
43
|
linewrap: opts.linewrap,
|
|
44
44
|
});
|
|
45
45
|
this.bar.setTotal(total);
|
|
46
|
-
this.bar.start(total);
|
|
46
|
+
this.bar.start(total, 0);
|
|
47
47
|
if (Object.keys(payload).length) {
|
|
48
48
|
this.bar.update(0, payload);
|
|
49
49
|
}
|
package/lib/ux/prompter.js
CHANGED
|
@@ -32,7 +32,7 @@ class Prompter {
|
|
|
32
32
|
// @ts-expect-error
|
|
33
33
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
34
34
|
thePrompt.ui['activePrompt'].done();
|
|
35
|
-
core_1.
|
|
35
|
+
core_1.ux.log();
|
|
36
36
|
reject(new Error(`Timed out after ${ms} ms.`));
|
|
37
37
|
}, ms).unref();
|
|
38
38
|
});
|
package/lib/ux/spinner.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UxBase } from '.';
|
|
2
2
|
/**
|
|
3
|
-
* This class is a light wrapper around
|
|
3
|
+
* This class is a light wrapper around ux.action that allows us to
|
|
4
4
|
* automatically suppress any actions if `--json` flag is present.
|
|
5
5
|
*/
|
|
6
6
|
export declare class Spinner extends UxBase {
|
package/lib/ux/spinner.js
CHANGED
|
@@ -10,7 +10,7 @@ exports.Spinner = void 0;
|
|
|
10
10
|
const core_1 = require("@oclif/core");
|
|
11
11
|
const _1 = require(".");
|
|
12
12
|
/**
|
|
13
|
-
* This class is a light wrapper around
|
|
13
|
+
* This class is a light wrapper around ux.action that allows us to
|
|
14
14
|
* automatically suppress any actions if `--json` flag is present.
|
|
15
15
|
*/
|
|
16
16
|
class Spinner extends _1.UxBase {
|
|
@@ -22,32 +22,32 @@ class Spinner extends _1.UxBase {
|
|
|
22
22
|
*/
|
|
23
23
|
// eslint-disable-next-line class-methods-use-this
|
|
24
24
|
get status() {
|
|
25
|
-
return core_1.
|
|
25
|
+
return core_1.ux.action.status;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Set the status of the current spinner.
|
|
29
29
|
*/
|
|
30
30
|
// eslint-disable-next-line class-methods-use-this
|
|
31
31
|
set status(status) {
|
|
32
|
-
core_1.
|
|
32
|
+
core_1.ux.action.status = status;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Start a spinner on the console.
|
|
36
36
|
*/
|
|
37
37
|
start(action, status, opts) {
|
|
38
|
-
this.maybeNoop(() => core_1.
|
|
38
|
+
this.maybeNoop(() => core_1.ux.action.start(action, status, opts));
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* Stop the spinner on the console.
|
|
42
42
|
*/
|
|
43
43
|
stop(msg) {
|
|
44
|
-
this.maybeNoop(() => core_1.
|
|
44
|
+
this.maybeNoop(() => core_1.ux.action.stop(msg));
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Pause the spinner on the console.
|
|
48
48
|
*/
|
|
49
49
|
pause(fn, icon) {
|
|
50
|
-
this.maybeNoop(() => core_1.
|
|
50
|
+
this.maybeNoop(() => core_1.ux.action.pause(fn, icon));
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
exports.Spinner = Spinner;
|
package/lib/ux/ux.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ux } from '@oclif/core';
|
|
2
2
|
import { AnyJson } from '@salesforce/ts-types';
|
|
3
3
|
import { UxBase } from './base';
|
|
4
4
|
import { Prompter } from './prompter';
|
|
@@ -78,8 +78,8 @@ export declare class Ux extends UxBase {
|
|
|
78
78
|
export declare namespace Ux {
|
|
79
79
|
namespace Table {
|
|
80
80
|
type Data = Record<string, unknown>;
|
|
81
|
-
type Columns<T extends Data> =
|
|
82
|
-
type Options =
|
|
81
|
+
type Columns<T extends Data> = ux.Table.table.Columns<T>;
|
|
82
|
+
type Options = ux.Table.table.Options;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
//# sourceMappingURL=ux.d.ts.map
|
package/lib/ux/ux.js
CHANGED
|
@@ -41,7 +41,7 @@ class Ux extends base_1.UxBase {
|
|
|
41
41
|
* @param args Args to be used for formatting.
|
|
42
42
|
*/
|
|
43
43
|
log(message, ...args) {
|
|
44
|
-
this.maybeNoop(() => core_1.
|
|
44
|
+
this.maybeNoop(() => core_1.ux.log(message, ...args));
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Log a warning message to the console. This will be automatically suppressed if output is disabled.
|
|
@@ -49,7 +49,7 @@ class Ux extends base_1.UxBase {
|
|
|
49
49
|
* @param message Warning message to log.
|
|
50
50
|
*/
|
|
51
51
|
warn(message) {
|
|
52
|
-
this.maybeNoop(() => core_1.
|
|
52
|
+
this.maybeNoop(() => core_1.ux.warn(message));
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* Display a table to the console. This will be automatically suppressed if output is disabled.
|
|
@@ -59,7 +59,7 @@ class Ux extends base_1.UxBase {
|
|
|
59
59
|
* @param options Options for how the table should be displayed
|
|
60
60
|
*/
|
|
61
61
|
table(data, columns, options) {
|
|
62
|
-
this.maybeNoop(() => core_1.
|
|
62
|
+
this.maybeNoop(() => core_1.ux.table(data, columns, options));
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* Display a url to the console. This will be automatically suppressed if output is disabled.
|
|
@@ -69,7 +69,7 @@ class Ux extends base_1.UxBase {
|
|
|
69
69
|
* @param params
|
|
70
70
|
*/
|
|
71
71
|
url(text, uri, params = {}) {
|
|
72
|
-
this.maybeNoop(() => core_1.
|
|
72
|
+
this.maybeNoop(() => core_1.ux.url(text, uri, params));
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Display stylized JSON to the console. This will be automatically suppressed if output is disabled.
|
|
@@ -77,7 +77,7 @@ class Ux extends base_1.UxBase {
|
|
|
77
77
|
* @param obj JSON to display
|
|
78
78
|
*/
|
|
79
79
|
styledJSON(obj) {
|
|
80
|
-
this.maybeNoop(() => core_1.
|
|
80
|
+
this.maybeNoop(() => core_1.ux.styledJSON(obj));
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Display stylized object to the console. This will be automatically suppressed if output is disabled.
|
|
@@ -86,7 +86,7 @@ class Ux extends base_1.UxBase {
|
|
|
86
86
|
* @param keys Keys of object to display
|
|
87
87
|
*/
|
|
88
88
|
styledObject(obj, keys) {
|
|
89
|
-
this.maybeNoop(() => core_1.
|
|
89
|
+
this.maybeNoop(() => core_1.ux.styledObject(obj, keys));
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Display stylized header to the console. This will be automatically suppressed if output is disabled.
|
|
@@ -94,7 +94,7 @@ class Ux extends base_1.UxBase {
|
|
|
94
94
|
* @param text header to display
|
|
95
95
|
*/
|
|
96
96
|
styledHeader(text) {
|
|
97
|
-
this.maybeNoop(() => core_1.
|
|
97
|
+
this.maybeNoop(() => core_1.ux.styledHeader(text));
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
exports.Ux = Ux;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/sf-plugins-core",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Utils for writing
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
|
+
"description": "Utils for writing Salesforce CLI plugins",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"types": "lib/exported.d.ts",
|
|
7
7
|
"license": "BSD-3-Clause",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"/messages"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@oclif/core": "^
|
|
35
|
+
"@oclif/core": "^2.0.4",
|
|
36
36
|
"@salesforce/core": "^3.32.12",
|
|
37
37
|
"@salesforce/kit": "^1.8.3",
|
|
38
38
|
"@salesforce/ts-types": "^1.7.1",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"@typescript-eslint/eslint-plugin": "^5.44.0",
|
|
50
50
|
"@typescript-eslint/parser": "^5.47.0",
|
|
51
51
|
"chai": "^4.3.7",
|
|
52
|
-
"eslint": "^8.
|
|
53
|
-
"eslint-config-prettier": "^8.
|
|
52
|
+
"eslint": "^8.32.0",
|
|
53
|
+
"eslint-config-prettier": "^8.6.0",
|
|
54
54
|
"eslint-config-salesforce": "^1.1.0",
|
|
55
55
|
"eslint-config-salesforce-license": "^0.1.6",
|
|
56
56
|
"eslint-config-salesforce-typescript": "^1.1.1",
|
|
57
57
|
"eslint-plugin-header": "^3.1.1",
|
|
58
|
-
"eslint-plugin-import": "^2.
|
|
58
|
+
"eslint-plugin-import": "^2.27.5",
|
|
59
59
|
"eslint-plugin-jsdoc": "^39.6.4",
|
|
60
60
|
"husky": "^7.0.4",
|
|
61
61
|
"mocha": "^9.1.3",
|