@salesforce/sf-plugins-core 1.7.2 → 1.7.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
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
+ ### [1.7.3](https://github.com/salesforcecli/sf-plugins-core/compare/v1.7.2...v1.7.3) (2022-03-17)
6
+
7
+ ### Bug Fixes
8
+
9
+ - use OptionFlag interface so that exactlyOne can be used ([0e65453](https://github.com/salesforcecli/sf-plugins-core/commit/0e65453dacb68a90f4af2387e571edbd4077ba1b))
10
+
5
11
  ### [1.7.2](https://github.com/salesforcecli/sf-plugins-core/compare/v1.7.1...v1.7.2) (2022-03-15)
6
12
 
7
13
  ### Bug Fixes
@@ -1,7 +1,7 @@
1
1
  import { Interfaces } from '@oclif/core';
2
2
  import { Duration } from '@salesforce/kit';
3
3
  declare type DurationUnit = Lowercase<keyof typeof Duration.Unit>;
4
- export interface DurationFlagConfig extends Partial<Interfaces.OptionFlagProps> {
4
+ export interface DurationFlagConfig extends Partial<Interfaces.OptionFlag<Duration>> {
5
5
  unit: Required<DurationUnit>;
6
6
  defaultValue?: number;
7
7
  min?: number;
@@ -58,7 +58,7 @@ exports.optionalOrgFlag = core_1.Flags.build({
58
58
  char: 'e',
59
59
  parse: async (input) => await maybeGetOrg(input),
60
60
  default: async () => await maybeGetOrg(),
61
- defaultHelp: async () => { var _a; return (_a = (await maybeGetOrg(undefined))) === null || _a === void 0 ? void 0 : _a.getUsername(); },
61
+ defaultHelp: async () => { var _a; return (_a = (await maybeGetOrg())) === null || _a === void 0 ? void 0 : _a.getUsername(); },
62
62
  });
63
63
  /**
64
64
  * An required org, specified by username or alias
@@ -82,8 +82,8 @@ exports.optionalOrgFlag = core_1.Flags.build({
82
82
  exports.requiredOrgFlag = core_1.Flags.build({
83
83
  char: 'e',
84
84
  parse: async (input) => await getOrgOrThrow(input),
85
- default: async () => await getOrgOrThrow(undefined),
86
- defaultHelp: async () => { var _a; return (_a = (await getOrgOrThrow(undefined))) === null || _a === void 0 ? void 0 : _a.getUsername(); },
85
+ default: async () => await getOrgOrThrow(),
86
+ defaultHelp: async () => { var _a; return (_a = (await getOrgOrThrow())) === null || _a === void 0 ? void 0 : _a.getUsername(); },
87
87
  });
88
88
  /**
89
89
  * An required org that is a devHub
@@ -107,7 +107,7 @@ exports.requiredOrgFlag = core_1.Flags.build({
107
107
  exports.requiredHubFlag = core_1.Flags.build({
108
108
  char: 'v',
109
109
  parse: async (input) => await getHubOrThrow(input),
110
- default: async () => await getHubOrThrow(undefined),
111
- defaultHelp: async () => { var _a; return (_a = (await getHubOrThrow(undefined))) === null || _a === void 0 ? void 0 : _a.getUsername(); },
110
+ default: async () => await getHubOrThrow(),
111
+ defaultHelp: async () => { var _a; return (_a = (await getHubOrThrow())) === null || _a === void 0 ? void 0 : _a.getUsername(); },
112
112
  });
113
113
  //# sourceMappingURL=orgFlags.js.map
@@ -1,5 +1,5 @@
1
1
  import { Interfaces } from '@oclif/core';
2
- export interface IdFlagConfig extends Partial<Interfaces.OptionFlagProps> {
2
+ export interface IdFlagConfig extends Partial<Interfaces.OptionFlag<string>> {
3
3
  /**
4
4
  * Can specify if the version must be 15 or 18 characters long. Leave blank to allow either 15 or 18.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sf-plugins-core",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Utils for writing deploy and retrieve plugins",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",