@salesforce/sf-plugins-core 1.21.2 → 1.21.3

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.
@@ -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 | undefined>;
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 | undefined>;
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: (options: Partial<Omit<OptionFlagProps, 'multiple' | 'parse'>>) => import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined>;
46
+ export declare const arrayWithDeprecation: import("@oclif/core/lib/interfaces").Definition<string[], ArrayWithDeprecationOptions>;
44
47
  //# sourceMappingURL=compatibility.d.ts.map
@@ -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
- const arrayWithDeprecation = (options) => core_1.Flags.string({
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
@@ -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.2",
3
+ "version": "1.21.3",
4
4
  "description": "Utils for writing deploy and retrieve plugins",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",
@@ -47,9 +47,9 @@
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.45.0",
50
+ "@typescript-eslint/parser": "^5.46.1",
51
51
  "chai": "^4.3.7",
52
- "eslint": "^8.28.0",
52
+ "eslint": "^8.30.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",