@salesforce/sf-plugins-core 1.21.7 → 1.21.8

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/deployer.d.ts CHANGED
@@ -75,7 +75,7 @@ export declare namespace Deployer {
75
75
  * ```
76
76
  */
77
77
  type Options<T = AnyJson> = JsonMap & {
78
- [key: string]: T;
78
+ [key: string]: T | undefined;
79
79
  };
80
80
  }
81
81
  //# sourceMappingURL=deployer.d.ts.map
package/lib/util.d.ts CHANGED
@@ -1,11 +1,5 @@
1
1
  import { EnvironmentVariable, OrgConfigProperties, SfdxPropertyKeys } from '@salesforce/core';
2
- export type HelpSection = {
3
- header: string;
4
- body: Array<{
5
- name: string;
6
- description: string;
7
- } | undefined>;
8
- };
2
+ import { HelpSection } from '@oclif/core';
9
3
  /**
10
4
  * Function to build a help section for command help.
11
5
  * Takes a string to be used as section header text and an array of enums
package/lib/util.js CHANGED
@@ -42,10 +42,11 @@ function toHelpSection(header, ...vars) {
42
42
  return Object.entries(v).map(([name, description]) => ({ name, description }));
43
43
  }
44
44
  })
45
- .filter((b) => b);
45
+ .filter(isHelpSectionBodyEntry);
46
46
  return { header, body };
47
47
  }
48
48
  exports.toHelpSection = toHelpSection;
49
+ const isHelpSectionBodyEntry = (entry) => typeof entry === 'object' && entry !== null && 'name' in entry && 'description' in entry;
49
50
  function parseVarArgs(args, argv) {
50
51
  const final = {};
51
52
  const argVals = Object.values(args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sf-plugins-core",
3
- "version": "1.21.7",
3
+ "version": "1.21.8",
4
4
  "description": "Utils for writing deploy and retrieve plugins",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",