@salesforce/plugin-auth 3.3.27 → 3.5.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/README.md CHANGED
@@ -70,8 +70,463 @@ sfdx plugins
70
70
 
71
71
  <!-- commands -->
72
72
 
73
- # Command Topics
73
+ - [`sf org list auth`](#sf-org-list-auth)
74
+ - [`sf org login access-token`](#sf-org-login-access-token)
75
+ - [`sf org login device`](#sf-org-login-device)
76
+ - [`sf org login jwt`](#sf-org-login-jwt)
77
+ - [`sf org login sfdx-url`](#sf-org-login-sfdx-url)
78
+ - [`sf org login web`](#sf-org-login-web)
79
+ - [`sf org logout`](#sf-org-logout)
74
80
 
75
- - [`sf org`](docs/org.md)
81
+ ## `sf org list auth`
82
+
83
+ List authorization information about the orgs you created or logged into.
84
+
85
+ ```
86
+ USAGE
87
+ $ sf org list auth [--json] [--flags-dir <value>]
88
+
89
+ GLOBAL FLAGS
90
+ --flags-dir=<value> Import flag values from a directory.
91
+ --json Format output as json.
92
+
93
+ DESCRIPTION
94
+ List authorization information about the orgs you created or logged into.
95
+
96
+ This command uses local authorization information that Salesforce CLI caches when you create a scratch org or log into
97
+ an org. The command doesn't actually connect to the orgs to verify that they're still active. As a result, this
98
+ command executes very quickly. If you want to view live information about your authorized orgs, such as their
99
+ connection status, use the "org list" command.
100
+
101
+ ALIASES
102
+ $ sf force auth list
103
+ $ sf auth list
104
+
105
+ EXAMPLES
106
+ List local authorization information about your orgs:
107
+
108
+ $ sf org list auth
109
+ ```
110
+
111
+ _See code: [src/commands/org/list/auth.ts](https://github.com/salesforcecli/plugin-auth/blob/3.5.0/src/commands/org/list/auth.ts)_
112
+
113
+ ## `sf org login access-token`
114
+
115
+ Authorize an org using an existing Salesforce access token.
116
+
117
+ ```
118
+ USAGE
119
+ $ sf org login access-token -r <value> [--json] [--flags-dir <value>] [-d] [-s] [-a <value>] [-p]
120
+
121
+ FLAGS
122
+ -a, --alias=<value> Alias for the org.
123
+ -d, --set-default-dev-hub Set the authenticated org as the default Dev Hub.
124
+ -p, --no-prompt Don't prompt for confirmation.
125
+ -r, --instance-url=<value> (required) URL of the instance that the org lives on.
126
+ -s, --set-default Set the authenticated org as the default that all org-related commands run against.
127
+
128
+ GLOBAL FLAGS
129
+ --flags-dir=<value> Import flag values from a directory.
130
+ --json Format output as json.
131
+
132
+ DESCRIPTION
133
+ Authorize an org using an existing Salesforce access token.
134
+
135
+ By default, the command runs interactively and asks you for the access token. If you previously authorized the org,
136
+ the command prompts whether you want to overwrite the local file. Specify --no-prompt to not be prompted.
137
+
138
+ To use the command in a CI/CD script, set the SFDX_ACCESS_TOKEN environment variable to the access token. Then run the
139
+ command with the --no-prompt parameter.
140
+
141
+ ALIASES
142
+ $ sf force auth accesstoken store
143
+ $ sf auth accesstoken store
144
+
145
+ EXAMPLES
146
+ Authorize an org on https://mycompany.my.salesforce.com; the command prompts you for the access token:
147
+
148
+ $ sf org login access-token --instance-url https://mycompany.my.salesforce.com
149
+
150
+ Authorize the org without being prompted; you must have previously set the SF_ACCESS_TOKEN environment variable to
151
+ the access token:
152
+
153
+ $ sf org login access-token --instance-url https://dev-hub.my.salesforce.com --no-prompt
154
+
155
+ FLAG DESCRIPTIONS
156
+ -r, --instance-url=<value> URL of the instance that the org lives on.
157
+
158
+ If you specify an --instance-url value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file.
159
+
160
+ To specify a My Domain URL, use the format "https://<MyDomainName>.my.salesforce.com".
161
+
162
+ To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
163
+ ```
164
+
165
+ _See code: [src/commands/org/login/access-token.ts](https://github.com/salesforcecli/plugin-auth/blob/3.5.0/src/commands/org/login/access-token.ts)_
166
+
167
+ ## `sf org login device`
168
+
169
+ Authorize an org using a device code.
170
+
171
+ ```
172
+ USAGE
173
+ $ sf org login device [--json] [--flags-dir <value>] [-i <value>] [-r <value>] [-d] [-s] [-a <value>]
174
+
175
+ FLAGS
176
+ -a, --alias=<value> Alias for the org.
177
+ -d, --set-default-dev-hub Set the authenticated org as the default Dev Hub.
178
+ -i, --client-id=<value> OAuth client ID (also called consumer key) of your custom connected app.
179
+ -r, --instance-url=<value> URL of the instance that the org lives on.
180
+ -s, --set-default Set the authenticated org as the default that all org-related commands run against.
181
+
182
+ GLOBAL FLAGS
183
+ --flags-dir=<value> Import flag values from a directory.
184
+ --json Format output as json.
185
+
186
+ DESCRIPTION
187
+ Authorize an org using a device code.
188
+
189
+ Use this command to allow a device to connect to an org.
190
+
191
+ When you run this command, it first displays an 8-digit device code and the URL for verifying the code on your org.
192
+ The default instance URL is https://login.salesforce.com, so if the org you're authorizing is on a different instance,
193
+ use the --instance-url. The command waits while you complete the verification. Open a browser and navigate to the
194
+ displayed verification URL, enter the code, then click Connect. If you aren't already logged into your org, log in,
195
+ and then you're prompted to allow the device to connect to the org. After you successfully authorize the org, you can
196
+ close the browser window.
197
+
198
+ ALIASES
199
+ $ sf force auth device login
200
+ $ sf auth device login
201
+
202
+ EXAMPLES
203
+ Authorize an org using a device code, give the org the alias TestOrg1, and set it as your default Dev Hub org:
204
+
205
+ $ sf org login device --set-default-dev-hub --alias TestOrg1
206
+
207
+ Authorize an org in which you've created a custom connected app with the specified client ID (consumer key):
208
+
209
+ $ sf org login device --client-id <OAuth client id>
210
+
211
+ Authorize a sandbox org with the specified instance URL:
212
+
213
+ $ sf org login device --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com
214
+
215
+ FLAG DESCRIPTIONS
216
+ -r, --instance-url=<value> URL of the instance that the org lives on.
217
+
218
+ If you specify an --instance-url value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file.
219
+
220
+ To specify a My Domain URL, use the format "https://<MyDomainName>.my.salesforce.com".
221
+
222
+ To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
223
+ ```
224
+
225
+ _See code: [src/commands/org/login/device.ts](https://github.com/salesforcecli/plugin-auth/blob/3.5.0/src/commands/org/login/device.ts)_
226
+
227
+ ## `sf org login jwt`
228
+
229
+ Log in to a Salesforce org using a JSON web token (JWT).
230
+
231
+ ```
232
+ USAGE
233
+ $ sf org login jwt -o <value> -f <value> -i <value> [--json] [--flags-dir <value>] [-r <value>] [-d] [-s] [-a
234
+ <value>]
235
+
236
+ FLAGS
237
+ -a, --alias=<value> Alias for the org.
238
+ -d, --set-default-dev-hub Set the authenticated org as the default Dev Hub.
239
+ -f, --jwt-key-file=<value> (required) Path to a file containing the private key.
240
+ -i, --client-id=<value> (required) OAuth client ID (also called consumer key) of your custom connected app.
241
+ -o, --username=<value> (required) Username of the user logging in.
242
+ -r, --instance-url=<value> URL of the instance that the org lives on.
243
+ -s, --set-default Set the authenticated org as the default that all org-related commands run against.
244
+
245
+ GLOBAL FLAGS
246
+ --flags-dir=<value> Import flag values from a directory.
247
+ --json Format output as json.
248
+
249
+ DESCRIPTION
250
+ Log in to a Salesforce org using a JSON web token (JWT).
251
+
252
+ Use this command in automated environments where you can’t interactively log in with a browser, such as in CI/CD
253
+ scripts.
254
+
255
+ Logging into an org authorizes the CLI to run other commands that connect to that org, such as deploying or retrieving
256
+ a project. You can log into many types of orgs, such as sandboxes, Dev Hubs, Env Hubs, production orgs, and scratch
257
+ orgs.
258
+
259
+ Complete these steps before you run this command:
260
+
261
+ 1. Create a digital certificate (also called digital signature) and the private key to sign the certificate. You can
262
+ use your own key and certificate issued by a certification authority. Or use OpenSSL to create a key and a self-signed
263
+ digital certificate.
264
+ 2. Store the private key in a file on your computer. When you run this command, you set the --jwt-key-file flag to
265
+ this file.
266
+ 3. Create a custom connected app in your org using the digital certificate. Make note of the consumer key (also called
267
+ client id) that’s generated for you. Be sure the username of the user logging in is approved to use the connected app.
268
+ When you run this command, you set the --client-id flag to the consumer key.
269
+
270
+ See https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_jwt_flow.htm for more
271
+ information.
272
+
273
+ We recommend that you set an alias when you log into an org. Aliases make it easy to later reference this org when
274
+ running commands that require it. If you don’t set an alias, you use the username that you specified when you logged
275
+ in to the org. If you run multiple commands that reference the same org, consider setting the org as your default. Use
276
+ --set-default for your default scratch org or sandbox, or --set-default-dev-hub for your default Dev Hub.
277
+
278
+ ALIASES
279
+ $ sf force auth jwt grant
280
+ $ sf auth jwt grant
281
+
282
+ EXAMPLES
283
+ Log into an org with username jdoe@example.org and on the default instance URL (https://login.salesforce.com). The
284
+ private key is stored in the file /Users/jdoe/JWT/server.key and the command uses the connected app with consumer
285
+ key (client id) 04580y4051234051.
286
+
287
+ $ sf org login jwt --username jdoe@example.org --jwt-key-file /Users/jdoe/JWT/server.key --client-id \
288
+ 04580y4051234051
289
+
290
+ Set the org as the default and give it an alias:
291
+
292
+ $ sf org login jwt --username jdoe@example.org --jwt-key-file /Users/jdoe/JWT/server.key --client-id \
293
+ 04580y4051234051 --alias ci-org --set-default
294
+
295
+ Set the org as the default Dev Hub and give it an alias:
296
+
297
+ $ sf org login jwt --username jdoe@example.org --jwt-key-file /Users/jdoe/JWT/server.key --client-id \
298
+ 04580y4051234051 --alias ci-dev-hub --set-default-dev-hub
299
+
300
+ Log in to a sandbox using URL https://MyDomainName--SandboxName.sandbox.my.salesforce.com:
301
+
302
+ $ sf org login jwt --username jdoe@example.org --jwt-key-file /Users/jdoe/JWT/server.key --client-id \
303
+ 04580y4051234051 --alias ci-org --set-default --instance-url \
304
+ https://MyDomainName--SandboxName.sandbox.my.salesforce.com
305
+
306
+ FLAG DESCRIPTIONS
307
+ -r, --instance-url=<value> URL of the instance that the org lives on.
308
+
309
+ If you specify an --instance-url value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file.
310
+
311
+ To specify a My Domain URL, use the format "https://<MyDomainName>.my.salesforce.com".
312
+
313
+ To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
314
+ ```
315
+
316
+ _See code: [src/commands/org/login/jwt.ts](https://github.com/salesforcecli/plugin-auth/blob/3.5.0/src/commands/org/login/jwt.ts)_
317
+
318
+ ## `sf org login sfdx-url`
319
+
320
+ Authorize an org using a Salesforce DX authorization URL stored in a file or through standard input (stdin).
321
+
322
+ ```
323
+ USAGE
324
+ $ sf org login sfdx-url [--json] [--flags-dir <value>] [-f <value>] [-u <value>] [-d] [-s] [-a <value>]
325
+
326
+ FLAGS
327
+ -a, --alias=<value> Alias for the org.
328
+ -d, --set-default-dev-hub Set the authenticated org as the default Dev Hub.
329
+ -f, --sfdx-url-file=<value> Path to a file that contains the Salesforce DX authorization URL.
330
+ -s, --set-default Set the authenticated org as the default that all org-related commands run against.
331
+ -u, --sfdx-url-stdin=<value> Pipe the Salesforce DX authorization URL through standard input (stdin).
332
+
333
+ GLOBAL FLAGS
334
+ --flags-dir=<value> Import flag values from a directory.
335
+ --json Format output as json.
336
+
337
+ DESCRIPTION
338
+ Authorize an org using a Salesforce DX authorization URL stored in a file or through standard input (stdin).
339
+
340
+ The Salesforce DX (SFDX) authorization URL must have the format
341
+ "force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>". NOTE: The SFDX authorization URL uses the "force"
342
+ protocol, and not "http" or "https". Also, the "instanceUrl" inside the SFDX authorization URL doesn't include the
343
+ protocol ("https://").
344
+
345
+ You have three options when creating the authorization file. The easiest option is to redirect the output of the "sf
346
+ org display --verbose --json" command into a file. For example, using an org with alias my-org that you've already
347
+ authorized:
348
+
349
+ $ sf org display --target-org my-org --verbose --json > authFile.json
350
+
351
+ The resulting JSON file contains the URL in the "sfdxAuthUrl" property of the "result" object. You can then reference
352
+ the file when running this command:
353
+
354
+ $ sf org login sfdx-url --sfdx-url-file authFile.json
355
+
356
+ NOTE: The "sf org display --verbose" command displays the refresh token only for orgs authorized with the web server
357
+ flow, and not the JWT bearer flow.
358
+
359
+ You can also create a JSON file that has a top-level property named sfdxAuthUrl whose value is the authorization URL.
360
+ Finally, you can create a normal text file that includes just the URL and nothing else.
361
+
362
+ Alternatively, you can pipe the SFDX authorization URL through standard input by specifying the --sfdx-url-stdin flag.
363
+
364
+ ALIASES
365
+ $ sf force auth sfdxurl store
366
+ $ sf auth sfdxurl store
367
+
368
+ EXAMPLES
369
+ Authorize an org using the SFDX authorization URL in the files/authFile.json file:
370
+
371
+ $ sf org login sfdx-url --sfdx-url-file files/authFile.json
372
+
373
+ Similar to previous example, but set the org as your default and give it an alias MyDefaultOrg:
374
+
375
+ $ sf org login sfdx-url --sfdx-url-file files/authFile.json --set-default --alias MyDefaultOrg
376
+
377
+ Pipe the SFDX authorization URL from stdin:
378
+
379
+ $ echo url | sf org login sfdx-url --sfdx-url-stdin
380
+ ```
381
+
382
+ _See code: [src/commands/org/login/sfdx-url.ts](https://github.com/salesforcecli/plugin-auth/blob/3.5.0/src/commands/org/login/sfdx-url.ts)_
383
+
384
+ ## `sf org login web`
385
+
386
+ Log in to a Salesforce org using the web server flow.
387
+
388
+ ```
389
+ USAGE
390
+ $ sf org login web [--json] [--flags-dir <value>] [-b chrome|edge|firefox] [-i <value>] [-r <value>] [-d] [-s]
391
+ [-a <value>]
392
+
393
+ FLAGS
394
+ -a, --alias=<value> Alias for the org.
395
+ -b, --browser=<option> Browser in which to open the org.
396
+ <options: chrome|edge|firefox>
397
+ -d, --set-default-dev-hub Set the authenticated org as the default Dev Hub.
398
+ -i, --client-id=<value> OAuth client ID (also called consumer key) of your custom connected app.
399
+ -r, --instance-url=<value> URL of the instance that the org lives on.
400
+ -s, --set-default Set the authenticated org as the default that all org-related commands run against.
401
+
402
+ GLOBAL FLAGS
403
+ --flags-dir=<value> Import flag values from a directory.
404
+ --json Format output as json.
405
+
406
+ DESCRIPTION
407
+ Log in to a Salesforce org using the web server flow.
408
+
409
+ Opens a Salesforce instance URL in a web browser so you can enter your credentials and log in to your org. After you
410
+ log in, you can close the browser window.
411
+
412
+ Logging into an org authorizes the CLI to run other commands that connect to that org, such as deploying or retrieving
413
+ metadata. You can log into many types of orgs, such as sandboxes, Dev Hubs, Env Hubs, production orgs, and scratch
414
+ orgs.
415
+
416
+ We recommend that you set an alias when you log into an org. Aliases make it easy to later reference this org when
417
+ running commands that require it. If you don’t set an alias, you use the username that you specified when you logged
418
+ in to the org. If you run multiple commands that reference the same org, consider setting the org as your default. Use
419
+ --set-default for your default scratch org or sandbox, or --set-default-dev-hub for your default Dev Hub.
420
+
421
+ By default, this command uses the global out-of-the-box connected app in your org. If you need more security or
422
+ control, such as setting the refresh token timeout or specifying IP ranges, create your own connected app using a
423
+ digital certificate. Make note of the consumer key (also called cliend id) that’s generated for you. Then specify the
424
+ consumer key with the --client-id flag.
425
+
426
+ ALIASES
427
+ $ sf force auth web login
428
+ $ sf auth web login
429
+
430
+ EXAMPLES
431
+ Run the command with no flags to open the default Salesforce login page (https://login.salesforce.com):
432
+
433
+ $ sf org login web
434
+
435
+ Log in to your Dev Hub, set it as your default Dev Hub, and set an alias that you reference later when you create a
436
+ scratch org:
437
+
438
+ $ sf org login web --set-default-dev-hub --alias dev-hub
439
+
440
+ Log in to a sandbox and set it as your default org:
441
+
442
+ $ sf org login web --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default
443
+
444
+ Use --browser to specify a specific browser, such as Google Chrome:
445
+
446
+ $ sf org login web --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default \
447
+ --browser chrome
448
+
449
+ Use your own connected app by specifying its consumer key (also called client ID):
450
+
451
+ $ sf org login web --instance-url https://MyDomainName--SandboxName.sandbox.my.salesforce.com --set-default \
452
+ --browser chrome --client-id 04580y4051234051
453
+
454
+ FLAG DESCRIPTIONS
455
+ -b, --browser=chrome|edge|firefox Browser in which to open the org.
456
+
457
+ If you don’t specify --browser, the command uses your default browser. The exact names of the browser applications
458
+ differ depending on the operating system you're on; check your documentation for details.
459
+
460
+ -r, --instance-url=<value> URL of the instance that the org lives on.
461
+
462
+ If you specify an --instance-url value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file.
463
+
464
+ To specify a My Domain URL, use the format "https://<MyDomainName>.my.salesforce.com".
465
+
466
+ To specify a sandbox, set --instance-url to "https://<MyDomainName>--<SandboxName>.sandbox.my.salesforce.com".
467
+ ```
468
+
469
+ _See code: [src/commands/org/login/web.ts](https://github.com/salesforcecli/plugin-auth/blob/3.5.0/src/commands/org/login/web.ts)_
470
+
471
+ ## `sf org logout`
472
+
473
+ Log out of a Salesforce org.
474
+
475
+ ```
476
+ USAGE
477
+ $ sf org logout [--json] [--flags-dir <value>] [-a | -o <value>] [-p]
478
+
479
+ FLAGS
480
+ -a, --all Include all authenticated orgs.
481
+ -o, --target-org=<value> Username or alias of the target org.
482
+ -p, --no-prompt Don't prompt for confirmation.
483
+
484
+ GLOBAL FLAGS
485
+ --flags-dir=<value> Import flag values from a directory.
486
+ --json Format output as json.
487
+
488
+ DESCRIPTION
489
+ Log out of a Salesforce org.
490
+
491
+ If you run this command with no flags and no default org set in your config or environment, it first displays a list
492
+ of orgs you've created or logged into, with none of the orgs selected. Use the arrow keys to scroll through the list
493
+ and the space bar to select the orgs you want to log out of. Press Enter when you're done; the command asks for a
494
+ final confirmation before logging out of the selected orgs.
495
+
496
+ The process is similar if you specify --all, except that in the initial list of orgs, they're all selected. Use
497
+ --target-org to logout of a specific org. In both these cases by default, you must still confirm that you want to log
498
+ out. Use --no-prompt to never be asked for confirmation when also using --all or --target-org.
499
+
500
+ Be careful! If you log out of a scratch org without having access to its password, you can't access the scratch org
501
+ again, either through the CLI or the Salesforce UI.
502
+
503
+ ALIASES
504
+ $ sf force auth logout
505
+ $ sf auth logout
506
+
507
+ EXAMPLES
508
+ Interactively select the orgs to log out of:
509
+
510
+ $ sf org logout
511
+
512
+ Log out of the org with username me@my.org:
513
+
514
+ $ sf org logout --target-org me@my.org
515
+
516
+ Log out of all orgs after confirmation:
517
+
518
+ $ sf org logout --all
519
+
520
+ Logout of the org with alias my-scratch and don't prompt for confirmation:
521
+
522
+ $ sf org logout --target-org my-scratch --no-prompt
523
+
524
+ FLAG DESCRIPTIONS
525
+ -a, --all Include all authenticated orgs.
526
+
527
+ All orgs includes Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.
528
+ ```
529
+
530
+ _See code: [src/commands/org/logout.ts](https://github.com/salesforcecli/plugin-auth/blob/3.5.0/src/commands/org/logout.ts)_
76
531
 
77
532
  <!-- commandsstop -->
package/lib/common.js CHANGED
@@ -12,27 +12,27 @@ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
12
12
  const messages = Messages.loadMessages('@salesforce/plugin-auth', 'messages');
13
13
  const resolveLoginUrl = async (instanceUrl) => {
14
14
  const logger = await Logger.child('Common', { tag: 'resolveLoginUrl' });
15
- if (instanceUrl) {
16
- throwIfLightning(instanceUrl);
17
- return instanceUrl;
18
- }
19
- let loginUrl;
15
+ const loginUrl = instanceUrl ?? (await getLoginUrl(logger));
16
+ throwIfLightning(loginUrl);
17
+ logger.debug(`loginUrl: ${loginUrl}`);
18
+ return loginUrl;
19
+ };
20
+ /** try to get url from project if there is one, otherwise use the default production URL */
21
+ const getLoginUrl = async (logger) => {
20
22
  try {
21
23
  const project = await SfProject.resolve();
22
24
  const projectJson = await project.resolveProjectConfig();
23
- loginUrl = getString(projectJson, 'sfdcLoginUrl', SfdcUrl.PRODUCTION);
25
+ return getString(projectJson, 'sfdcLoginUrl', SfdcUrl.PRODUCTION);
24
26
  }
25
27
  catch (err) {
26
28
  const message = (isObject(err) ? Reflect.get(err, 'message') ?? err : err);
27
29
  logger.debug(`error occurred while trying to determine loginUrl: ${message}`);
28
- loginUrl = SfdcUrl.PRODUCTION;
30
+ return SfdcUrl.PRODUCTION;
29
31
  }
30
- throwIfLightning(loginUrl);
31
- logger.debug(`loginUrl: ${loginUrl}`);
32
- return loginUrl;
33
32
  };
34
33
  const throwIfLightning = (urlString) => {
35
- if (urlString?.match(/\.lightning\..*force\.com/)) {
34
+ const url = new SfdcUrl(urlString);
35
+ if (url.isLightningDomain() || (url.isInternalUrl() && url.origin.includes('.lightning.'))) {
36
36
  throw new SfError(messages.getMessage('lightningInstanceUrl'), 'LightningDomain', [
37
37
  messages.getMessage('flags.instance-url.description'),
38
38
  ]);
package/lib/common.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC/F,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAAC;AAE9E,MAAM,eAAe,GAAG,KAAK,EAAE,WAAoB,EAAmB,EAAE;IACtE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,GAAG,EAAE,iBAAiB,EAAE,CAAC,CAAC;IACxE,IAAI,WAAW,EAAE,CAAC;QAChB,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAC9B,OAAO,WAAW,CAAC;IACrB,CAAC;IACD,IAAI,QAAgB,CAAC;IACrB,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,SAAS,CAAC,OAAO,EAAE,CAAC;QAC1C,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,oBAAoB,EAAE,CAAC;QACzD,QAAQ,GAAG,SAAS,CAAC,WAAW,EAAE,cAAc,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACxE,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,OAAO,GAAW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