@salesforce/plugin-settings 1.2.1 → 1.3.0

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/alias.d.ts CHANGED
@@ -1,11 +1,13 @@
1
- import { SfError } from '@salesforce/core';
2
1
  import { SfCommand } from '@salesforce/sf-plugins-core';
3
2
  export type AliasResult = {
4
3
  alias: string;
5
4
  value?: string;
6
5
  success?: boolean;
7
6
  message?: string;
8
- error?: SfError;
7
+ error?: {
8
+ name: string;
9
+ message: string;
10
+ };
9
11
  };
10
12
  export type AliasResults = AliasResult[];
11
13
  export declare abstract class AliasCommand<T> extends SfCommand<T> {
package/lib/alias.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"alias.js","sourceRoot":"","sources":["../src/alias.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAIH,iEAAwD;AAYxD,MAAsB,YAAgB,SAAQ,2BAAY;IAC9C,MAAM,CAAC,KAAa,EAAE,OAAqB;QACnD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;YACxB,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;YACvB,OAAO;SACR;QAED,MAAM,OAAO,GAAwC;YACnD,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;YAC1B,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;SAC3B,CAAC;QAEF,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YACpD,OAAO,CAAC,OAAO,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;SACzC;QAED,oFAAoF;QACpF,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;YAC1C,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;YAErB,OAAO,CAAC,OAAO,GAAG,EAAE,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AK,EAAE,OAAO,CAAC,CAAC,CAAC;SACnE;QAED,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/D,CAAC;CACF;AA3BD,oCA2BC"}
@@ -35,8 +35,8 @@ class AliasSet extends alias_1.AliasCommand {
35
35
  }
36
36
  }
37
37
  catch (err) {
38
- const error = err;
39
- return { alias, success: false, error, value };
38
+ const { name, message } = err;
39
+ return { alias, success: false, error: { name, message }, value };
40
40
  }
41
41
  });
42
42
  await stateAggregator.aliases.write();
@@ -1 +1 @@
1
- {"version":3,"file":"set.js","sourceRoot":"","sources":["../../../src/commands/alias/set.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,iEAA2D;AAC3D,2CAAsE;AACtE,uCAAyD;AAEzD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,IAAI,CAAC,6BAA6B,EAAE,WAAW,EAAE;IACzE,SAAS;IACT,aAAa;IACb,UAAU;IACV,yBAAyB;IACzB,qBAAqB;CACtB,CAAC,CAAC;AAEH,MAAqB,QAAS,SAAQ,oBAA0B;IAQvD,KAAK,CAAC,GAAG;QACd,MAAM,eAAe,GAAG,MAAM,sBAAe,CAAC,WAAW,EAAE,CAAC;QAE5D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAElD,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,MAAM,QAAQ,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;QAExE,MAAM,MAAM,GAAG,IAAA,8BAAY,EAAC,IAAI,EAAE,IAAgB,CAAC,CAAC;QAEpD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,C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E,CAAC;QAEtC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;;AApCH,2BAqCC;AApCe,gBAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACzC,oBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,iBAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAEnC,eAAM,GAAG,KAAK,CAAC,CAAC,sBAAsB;AACtC,cAAK,GAAG,MAAM,CAAC"}
@@ -46,8 +46,8 @@ class AliasUnset extends alias_1.AliasCommand {
46
46
  return { alias, value, success: true };
47
47
  }
48
48
  catch (err) {
49
- const error = err;
50
- return { alias, value, success: false, error };
49
+ const { name, message } = err;
50
+ return { alias, value, success: false, error: { name, message } };
51
51
  }
52
52
  });
53
53
  await stateAggregator.aliases.write();
@@ -1 +1 @@
1
- {"version":3,"file":"unset.js","sourceRoot":"","sources":["../../../src/commands/alias/unset.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,iEAAoD;AACpD,2CAAsE;AACtE,uCAAyD;AAEzD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,IAAI,CAAC,6BAA6B,EAAE,aAAa,EAAE;IAC3E,SAAS;IACT,aAAa;IACb,UAAU;IACV,mBAAmB;IACnB,yBAAyB;IACzB,oBAAoB;IACpB,sBAAsB;IACtB,yBAAyB;CAC1B,CAAC,CAAC;AAEH,MAAqB,UAAW,SAAQ,oBAA0B;IAmBzD,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAErD,MAAM,eAAe,GAAG,MAAM,sBAAe,CAAC,WAAW,EAAE,CAAC;QAC5D,MAAM,O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AAM,eAAe,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QAEtC,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QAEpC,OAAO,OAAO,CAAC;IACjB,CAAC;;AA1DH,6BA2DC;AA1De,kBAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AACzC,sBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,mBAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAEnC,iBAAM,GAAG,KAAK,CAAC,CAAC,sBAAsB;AACtC,gBAAK,GAAG,MAAM,CAAC;AAExB,gBAAK,GAAG;IACpB,GAAG,EAAE,uBAAK,CAAC,OAAO,CAAC;QACjB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC;QACjD,IAAI,EAAE,GAAG;KACV,CAAC;IACF,WAAW,EAAE,uBAAK,CAAC,OAAO,CAAC;QACzB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;QACvD,IAAI,EAAE,GAAG;KACV,CAAC;CACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.1",
2
+ "version": "1.3.0",
3
3
  "commands": {
4
4
  "alias:list": {
5
5
  "id": "alias:list",
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-settings",
3
3
  "description": "configure the Salesforce CLI",
4
- "version": "1.2.1",
4
+ "version": "1.3.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
- "@oclif/core": "^2.0.7",
8
+ "@oclif/core": "^2.1.2",
9
9
  "@salesforce/core": "^3.32.12",
10
- "@salesforce/sf-plugins-core": "^2.0.1",
10
+ "@salesforce/sf-plugins-core": "^2.1.1",
11
11
  "tslib": "^2"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@oclif/plugin-command-snapshot": "^3.3.2",
15
- "@oclif/test": "^2.3.3",
15
+ "@oclif/test": "^2.3.4",
16
16
  "@salesforce/cli-plugins-testkit": "^3.2.12",
17
17
  "@salesforce/dev-config": "^3.1.0",
18
- "@salesforce/dev-scripts": "^3.1.0",
18
+ "@salesforce/dev-scripts": "^4.0.0-beta.9",
19
19
  "@salesforce/kit": "^1.7.1",
20
20
  "@salesforce/plugin-command-reference": "^2.2.8",
21
21
  "@salesforce/prettier-config": "^0.0.2",
@@ -34,8 +34,8 @@
34
34
  "eslint-config-salesforce-typescript": "^1.1.1",
35
35
  "eslint-plugin-header": "^3.1.1",
36
36
  "eslint-plugin-import": "^2.26.0",
37
- "eslint-plugin-jsdoc": "^39.6.4",
38
- "eslint-plugin-sf-plugin": "^0.3.0",
37
+ "eslint-plugin-jsdoc": "^39.8.0",
38
+ "eslint-plugin-sf-plugin": "^1.8.1",
39
39
  "fs-extra": "^10.1.0",
40
40
  "husky": "^7.0.4",
41
41
  "mocha": "^9.2.2",
@@ -47,7 +47,8 @@
47
47
  "shx": "0.3.4",
48
48
  "sinon": "10.0.0",
49
49
  "ts-node": "^10.9.1",
50
- "typescript": "^4.9.4"
50
+ "typescript": "^4.9.4",
51
+ "wireit": "^0.9.3"
51
52
  },
52
53
  "config": {},
53
54
  "engines": {
@@ -96,32 +97,124 @@
96
97
  },
97
98
  "repository": "salesforcecli/plugin-settings",
98
99
  "scripts": {
99
- "build": "sf-build",
100
+ "build": "wireit",
100
101
  "clean": "sf-clean",
101
102
  "clean-all": "sf-clean all",
102
103
  "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
103
- "compile": "sf-compile",
104
+ "compile": "wireit",
104
105
  "docs": "sf-docs",
105
- "format": "sf-format",
106
- "lint": "sf-lint",
106
+ "format": "wireit",
107
+ "lint": "wireit",
107
108
  "postpack": "shx rm -f oclif.manifest.json",
108
- "posttest": "yarn lint && yarn test:deprecation-policy && yarn test:json-schema",
109
109
  "prepack": "sf-prepack",
110
110
  "prepare": "sf-install",
111
- "pretest": "sf-compile-test",
112
111
  "reformat": "prettier --config .prettierrc --write './*.{js,json,md}' './**/*.{ts,json,md}'",
113
- "test": "sf-test",
114
- "test:command-reference": "./bin/dev commandreference:generate --erroronwarnings",
115
- "test:deprecation-policy": "./bin/dev snapshot:compare",
116
- "test:json-schema": "./bin/dev schema:compare",
117
- "test:nuts": "nyc mocha \"test/**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
112
+ "test": "wireit",
113
+ "test:command-reference": "wireit",
114
+ "test:compile": "wireit",
115
+ "test:deprecation-policy": "wireit",
116
+ "test:json-schema": "wireit",
117
+ "test:nuts": "nyc mocha \"test/**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
118
+ "test:only": "wireit",
118
119
  "version": "oclif readme"
119
120
  },
120
121
  "publishConfig": {
121
122
  "access": "public"
122
123
  },
124
+ "wireit": {
125
+ "build": {
126
+ "dependencies": [
127
+ "compile",
128
+ "lint"
129
+ ]
130
+ },
131
+ "compile": {
132
+ "command": "tsc -p . --pretty --incremental",
133
+ "files": [
134
+ "src/**/*.ts",
135
+ "tsconfig.json",
136
+ "messages/**"
137
+ ],
138
+ "output": [
139
+ "lib/**",
140
+ "*.tsbuildinfo"
141
+ ],
142
+ "clean": "if-file-deleted"
143
+ },
144
+ "format": {
145
+ "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\""
146
+ },
147
+ "lint": {
148
+ "command": "eslint src test --color --cache --cache-location .eslintcache",
149
+ "files": [
150
+ "src/**/*.ts",
151
+ "test/**/*.ts",
152
+ "messages/**",
153
+ ".eslintignore",
154
+ ".eslintrc.js"
155
+ ],
156
+ "output": []
157
+ },
158
+ "test:compile": {
159
+ "command": "tsc -p \"./test\" --pretty",
160
+ "files": [
161
+ "test/**/*.ts",
162
+ "tsconfig.json",
163
+ "test/tsconfig.json"
164
+ ],
165
+ "output": []
166
+ },
167
+ "test": {
168
+ "dependencies": [
169
+ "test:compile",
170
+ "test:only",
171
+ "test:command-reference",
172
+ "test:deprecation-policy",
173
+ "lint",
174
+ "test:json-schema"
175
+ ]
176
+ },
177
+ "test:only": {
178
+ "command": "nyc mocha \"test/**/*.test.ts\"",
179
+ "files": [
180
+ "test/**/*.ts",
181
+ "src/**/*.ts",
182
+ "tsconfig.json",
183
+ "test/tsconfig.json"
184
+ ],
185
+ "output": []
186
+ },
187
+ "test:command-reference": {
188
+ "command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
189
+ "files": [
190
+ "src/**/*.ts",
191
+ "messages/**"
192
+ ],
193
+ "output": [
194
+ "tmp/root"
195
+ ]
196
+ },
197
+ "test:deprecation-policy": {
198
+ "command": "\"./bin/dev\" snapshot:compare",
199
+ "files": [
200
+ "src/**/*.ts"
201
+ ],
202
+ "output": [],
203
+ "dependencies": [
204
+ "compile"
205
+ ]
206
+ },
207
+ "test:json-schema": {
208
+ "command": "\"./bin/dev\" schema:compare",
209
+ "files": [
210
+ "src/**/*.ts",
211
+ "schemas"
212
+ ],
213
+ "output": []
214
+ }
215
+ },
123
216
  "sfdx": {
124
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/1.2.1.crt",
125
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/1.2.1.sig"
217
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/1.3.0.crt",
218
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/1.3.0.sig"
126
219
  }
127
220
  }
@@ -24,90 +24,21 @@
24
24
  "type": "string"
25
25
  },
26
26
  "error": {
27
- "$ref": "#/definitions/SfError"
28
- }
29
- },
30
- "required": ["alias"],
31
- "additionalProperties": false
32
- },
33
- "SfError": {
34
- "type": "object",
35
- "properties": {
36
- "name": {
37
- "type": "string"
38
- },
39
- "message": {
40
- "type": "string"
41
- },
42
- "stack": {
43
- "type": "string"
44
- },
45
- "cause": {
46
27
  "type": "object",
47
- "additionalProperties": false,
48
28
  "properties": {
49
29
  "name": {
50
30
  "type": "string"
51
31
  },
52
- "cause": {
53
- "$ref": "#/definitions/alias-1501530572-0-211-1501530572-0-1533943985149"
54
- },
55
- "fullStack": {
56
- "type": "string"
57
- },
58
32
  "message": {
59
33
  "type": "string"
60
- },
61
- "stack": {
62
- "type": "string"
63
34
  }
64
35
  },
65
- "required": ["message", "name"],
66
- "description": "Any `Error` compatible with the `NamedError` type signature."
67
- },
68
- "actions": {
69
- "type": "array",
70
- "items": {
71
- "type": "string"
72
- },
73
- "description": "Action messages. Hints to the users regarding what can be done to fix related issues."
74
- },
75
- "exitCode": {
76
- "type": "number",
77
- "description": "SfdxCommand can return this process exit code."
78
- },
79
- "context": {
80
- "type": "string",
81
- "description": "The related context for this error."
82
- },
83
- "data": {}
84
- },
85
- "required": ["exitCode", "message", "name"],
86
- "additionalProperties": false,
87
- "description": "A generalized sfdx error which also contains an action. The action is used in the CLI to help guide users past the error.\n\nTo throw an error in a synchronous function you must either pass the error message and actions directly to the constructor, e.g.\n\n``` // To load a message bundle (Note that __dirname should contain a messages folder) Messages.importMessagesDirectory(__dirname); const messages = Messages.load('myPackageName', 'myBundleName');\n\n// To throw a non-bundle based error: throw new SfError(message.getMessage('myError'), 'MyErrorName'); ```"
88
- },
89
- "alias-1501530572-0-211-1501530572-0-1533943985149": {
90
- "type": "object",
91
- "additionalProperties": false,
92
- "properties": {
93
- "name": {
94
- "type": "string"
95
- },
96
- "cause": {
97
- "$ref": "#/definitions/alias-1501530572-0-211-1501530572-0-1533943985149"
98
- },
99
- "fullStack": {
100
- "type": "string"
101
- },
102
- "message": {
103
- "type": "string"
104
- },
105
- "stack": {
106
- "type": "string"
36
+ "required": ["name", "message"],
37
+ "additionalProperties": false
107
38
  }
108
39
  },
109
- "required": ["message", "name"],
110
- "description": "Any `Error` compatible with the `NamedError` type signature."
40
+ "required": ["alias"],
41
+ "additionalProperties": false
111
42
  }
112
43
  }
113
44
  }
@@ -24,90 +24,21 @@
24
24
  "type": "string"
25
25
  },
26
26
  "error": {
27
- "$ref": "#/definitions/SfError"
28
- }
29
- },
30
- "required": ["alias"],
31
- "additionalProperties": false
32
- },
33
- "SfError": {
34
- "type": "object",
35
- "properties": {
36
- "name": {
37
- "type": "string"
38
- },
39
- "message": {
40
- "type": "string"
41
- },
42
- "stack": {
43
- "type": "string"
44
- },
45
- "cause": {
46
27
  "type": "object",
47
- "additionalProperties": false,
48
28
  "properties": {
49
29
  "name": {
50
30
  "type": "string"
51
31
  },
52
- "cause": {
53
- "$ref": "#/definitions/alias-1283098157-0-211-1283098157-0-1533943985149"
54
- },
55
- "fullStack": {
56
- "type": "string"
57
- },
58
32
  "message": {
59
33
  "type": "string"
60
- },
61
- "stack": {
62
- "type": "string"
63
34
  }
64
35
  },
65
- "required": ["message", "name"],
66
- "description": "Any `Error` compatible with the `NamedError` type signature."
67
- },
68
- "actions": {
69
- "type": "array",
70
- "items": {
71
- "type": "string"
72
- },
73
- "description": "Action messages. Hints to the users regarding what can be done to fix related issues."
74
- },
75
- "exitCode": {
76
- "type": "number",
77
- "description": "SfdxCommand can return this process exit code."
78
- },
79
- "context": {
80
- "type": "string",
81
- "description": "The related context for this error."
82
- },
83
- "data": {}
84
- },
85
- "required": ["exitCode", "message", "name"],
86
- "additionalProperties": false,
87
- "description": "A generalized sfdx error which also contains an action. The action is used in the CLI to help guide users past the error.\n\nTo throw an error in a synchronous function you must either pass the error message and actions directly to the constructor, e.g.\n\n``` // To load a message bundle (Note that __dirname should contain a messages folder) Messages.importMessagesDirectory(__dirname); const messages = Messages.load('myPackageName', 'myBundleName');\n\n// To throw a non-bundle based error: throw new SfError(message.getMessage('myError'), 'MyErrorName'); ```"
88
- },
89
- "alias-1283098157-0-211-1283098157-0-1533943985149": {
90
- "type": "object",
91
- "additionalProperties": false,
92
- "properties": {
93
- "name": {
94
- "type": "string"
95
- },
96
- "cause": {
97
- "$ref": "#/definitions/alias-1283098157-0-211-1283098157-0-1533943985149"
98
- },
99
- "fullStack": {
100
- "type": "string"
101
- },
102
- "message": {
103
- "type": "string"
104
- },
105
- "stack": {
106
- "type": "string"
36
+ "required": ["name", "message"],
37
+ "additionalProperties": false
107
38
  }
108
39
  },
109
- "required": ["message", "name"],
110
- "description": "Any `Error` compatible with the `NamedError` type signature."
40
+ "required": ["alias"],
41
+ "additionalProperties": false
111
42
  }
112
43
  }
113
44
  }
@@ -24,90 +24,21 @@
24
24
  "type": "string"
25
25
  },
26
26
  "error": {
27
- "$ref": "#/definitions/SfError"
28
- }
29
- },
30
- "required": ["alias"],
31
- "additionalProperties": false
32
- },
33
- "SfError": {
34
- "type": "object",
35
- "properties": {
36
- "name": {
37
- "type": "string"
38
- },
39
- "message": {
40
- "type": "string"
41
- },
42
- "stack": {
43
- "type": "string"
44
- },
45
- "cause": {
46
27
  "type": "object",
47
- "additionalProperties": false,
48
28
  "properties": {
49
29
  "name": {
50
30
  "type": "string"
51
31
  },
52
- "cause": {
53
- "$ref": "#/definitions/alias-1283098157-0-211-1283098157-0-1533943985149"
54
- },
55
- "fullStack": {
56
- "type": "string"
57
- },
58
32
  "message": {
59
33
  "type": "string"
60
- },
61
- "stack": {
62
- "type": "string"
63
34
  }
64
35
  },
65
- "required": ["message", "name"],
66
- "description": "Any `Error` compatible with the `NamedError` type signature."
67
- },
68
- "actions": {
69
- "type": "array",
70
- "items": {
71
- "type": "string"
72
- },
73
- "description": "Action messages. Hints to the users regarding what can be done to fix related issues."
74
- },
75
- "exitCode": {
76
- "type": "number",
77
- "description": "SfdxCommand can return this process exit code."
78
- },
79
- "context": {
80
- "type": "string",
81
- "description": "The related context for this error."
82
- },
83
- "data": {}
84
- },
85
- "required": ["exitCode", "message", "name"],
86
- "additionalProperties": false,
87
- "description": "A generalized sfdx error which also contains an action. The action is used in the CLI to help guide users past the error.\n\nTo throw an error in a synchronous function you must either pass the error message and actions directly to the constructor, e.g.\n\n``` // To load a message bundle (Note that __dirname should contain a messages folder) Messages.importMessagesDirectory(__dirname); const messages = Messages.load('myPackageName', 'myBundleName');\n\n// To throw a non-bundle based error: throw new SfError(message.getMessage('myError'), 'MyErrorName'); ```"
88
- },
89
- "alias-1283098157-0-211-1283098157-0-1533943985149": {
90
- "type": "object",
91
- "additionalProperties": false,
92
- "properties": {
93
- "name": {
94
- "type": "string"
95
- },
96
- "cause": {
97
- "$ref": "#/definitions/alias-1283098157-0-211-1283098157-0-1533943985149"
98
- },
99
- "fullStack": {
100
- "type": "string"
101
- },
102
- "message": {
103
- "type": "string"
104
- },
105
- "stack": {
106
- "type": "string"
36
+ "required": ["name", "message"],
37
+ "additionalProperties": false
107
38
  }
108
39
  },
109
- "required": ["message", "name"],
110
- "description": "Any `Error` compatible with the `NamedError` type signature."
40
+ "required": ["alias"],
41
+ "additionalProperties": false
111
42
  }
112
43
  }
113
44
  }