@salesforce/sf-plugins-core 1.21.2 → 1.21.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/LICENSE.txt +1 -1
- package/README.md +2 -0
- package/lib/compatibility.d.ts +7 -4
- package/lib/compatibility.js +3 -5
- package/lib/flags/orgFlags.js +2 -0
- package/package.json +5 -5
package/LICENSE.txt
CHANGED
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
The @salesforce/sf-plugins-core provides utilities for writing [sf](https://github.com/salesforcecli/cli) plugins.
|
|
6
6
|
|
|
7
|
+
Docs: [https://salesforcecli.github.io/sf-plugins-core](https://salesforcecli.github.io/sf-plugins-core)
|
|
8
|
+
|
|
7
9
|
## SfCommand Abstract Class
|
|
8
10
|
|
|
9
11
|
The SfCommand abstract class extends [@oclif/core's Command class](https://github.com/oclif/core/blob/main/src/command.ts) for examples of how to build a definition.
|
package/lib/compatibility.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OptionFlagProps } from '@oclif/core/lib/interfaces';
|
|
2
1
|
/**
|
|
3
2
|
* Adds an alias for the deprecated sfdx-style "apiversion" and provides a warning if it is used
|
|
4
3
|
* See orgApiVersionFlag for full details
|
|
@@ -32,13 +31,17 @@ export declare const optionalOrgFlagWithDeprecations: import("@oclif/core/lib/in
|
|
|
32
31
|
/**
|
|
33
32
|
* @deprecated
|
|
34
33
|
*/
|
|
35
|
-
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>;
|
|
36
35
|
/**
|
|
37
36
|
* @deprecated
|
|
38
37
|
*/
|
|
39
|
-
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>;
|
|
39
|
+
export type ArrayWithDeprecationOptions = {
|
|
40
|
+
multiple?: true;
|
|
41
|
+
parse?: undefined;
|
|
42
|
+
};
|
|
40
43
|
/**
|
|
41
44
|
* @deprecated
|
|
42
45
|
*/
|
|
43
|
-
export declare const arrayWithDeprecation:
|
|
46
|
+
export declare const arrayWithDeprecation: import("@oclif/core/lib/interfaces").Definition<string[], ArrayWithDeprecationOptions>;
|
|
44
47
|
//# sourceMappingURL=compatibility.d.ts.map
|
package/lib/compatibility.js
CHANGED
|
@@ -62,6 +62,7 @@ exports.optionalOrgFlagWithDeprecations = (0, orgFlags_1.optionalOrgFlag)({
|
|
|
62
62
|
*/
|
|
63
63
|
exports.requiredOrgFlagWithDeprecations = (0, orgFlags_1.requiredOrgFlag)({
|
|
64
64
|
...deprecatedOrgAliases,
|
|
65
|
+
required: true,
|
|
65
66
|
});
|
|
66
67
|
/**
|
|
67
68
|
* @deprecated
|
|
@@ -69,14 +70,12 @@ exports.requiredOrgFlagWithDeprecations = (0, orgFlags_1.requiredOrgFlag)({
|
|
|
69
70
|
exports.requiredHubFlagWithDeprecations = (0, orgFlags_1.requiredHubFlag)({
|
|
70
71
|
aliases: ['targetdevhubusername'],
|
|
71
72
|
deprecateAliases: true,
|
|
73
|
+
required: true,
|
|
72
74
|
});
|
|
73
75
|
/**
|
|
74
76
|
* @deprecated
|
|
75
77
|
*/
|
|
76
|
-
|
|
77
|
-
// populate passed options
|
|
78
|
-
...options,
|
|
79
|
-
// overlay those options we own
|
|
78
|
+
exports.arrayWithDeprecation = core_1.Flags.custom({
|
|
80
79
|
multiple: true,
|
|
81
80
|
parse: async (input) => {
|
|
82
81
|
const inputParts = input.split(',').map((i) => i.trim());
|
|
@@ -86,5 +85,4 @@ const arrayWithDeprecation = (options) => core_1.Flags.string({
|
|
|
86
85
|
return inputParts;
|
|
87
86
|
},
|
|
88
87
|
});
|
|
89
|
-
exports.arrayWithDeprecation = arrayWithDeprecation;
|
|
90
88
|
//# sourceMappingURL=compatibility.js.map
|
package/lib/flags/orgFlags.js
CHANGED
|
@@ -100,6 +100,7 @@ exports.requiredOrgFlag = core_1.Flags.custom({
|
|
|
100
100
|
parse: async (input) => getOrgOrThrow(input),
|
|
101
101
|
default: async () => getOrgOrThrow(),
|
|
102
102
|
defaultHelp: async () => (await getOrgOrThrow())?.getUsername(),
|
|
103
|
+
required: true,
|
|
103
104
|
});
|
|
104
105
|
/**
|
|
105
106
|
* A required org that is a devHub
|
|
@@ -129,5 +130,6 @@ exports.requiredHubFlag = core_1.Flags.custom({
|
|
|
129
130
|
parse: async (input) => getHubOrThrow(input),
|
|
130
131
|
default: async () => getHubOrThrow(),
|
|
131
132
|
defaultHelp: async () => (await getHubOrThrow())?.getUsername(),
|
|
133
|
+
required: true,
|
|
132
134
|
});
|
|
133
135
|
//# sourceMappingURL=orgFlags.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/sf-plugins-core",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.4",
|
|
4
4
|
"description": "Utils for writing deploy and retrieve 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": "^1.
|
|
35
|
+
"@oclif/core": "^1.23.1",
|
|
36
36
|
"@salesforce/core": "^3.32.9",
|
|
37
37
|
"@salesforce/kit": "^1.7.1",
|
|
38
38
|
"@salesforce/ts-types": "^1.7.1",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"inquirer": "^8.2.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@oclif/test": "^2.2.
|
|
43
|
+
"@oclif/test": "^2.2.16",
|
|
44
44
|
"@salesforce/dev-config": "^3.0.0",
|
|
45
45
|
"@salesforce/dev-scripts": "^3.1.0",
|
|
46
46
|
"@salesforce/prettier-config": "^0.0.2",
|
|
47
47
|
"@salesforce/ts-sinon": "^1.4.2",
|
|
48
48
|
"@types/inquirer": "^8.2.3",
|
|
49
49
|
"@typescript-eslint/eslint-plugin": "^5.44.0",
|
|
50
|
-
"@typescript-eslint/parser": "^5.
|
|
50
|
+
"@typescript-eslint/parser": "^5.47.0",
|
|
51
51
|
"chai": "^4.3.7",
|
|
52
|
-
"eslint": "^8.
|
|
52
|
+
"eslint": "^8.31.0",
|
|
53
53
|
"eslint-config-prettier": "^8.5.0",
|
|
54
54
|
"eslint-config-salesforce": "^1.1.0",
|
|
55
55
|
"eslint-config-salesforce-license": "^0.1.6",
|