@salesforce/core 3.26.1 → 3.30.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/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
+ ## [3.30.0](https://github.com/forcedotcom/sfdx-core/compare/v3.26.3...v3.30.0) (2022-09-12)
6
+
7
+ ### [3.26.3](https://github.com/forcedotcom/sfdx-core/compare/v3.26.2...v3.26.3) (2022-09-06)
8
+
9
+ ### [3.26.2](https://github.com/forcedotcom/sfdx-core/compare/v3.26.1...v3.26.2) (2022-08-16)
10
+
5
11
  ### [3.26.1](https://github.com/forcedotcom/sfdx-core/compare/v3.26.0...v3.26.1) (2022-08-08)
6
12
 
7
13
  ### Bug Fixes
@@ -35,7 +35,7 @@ const messages = messages_1.Messages.load('@salesforce/core', 'core', [
35
35
  'orgDataNotAvailableError',
36
36
  'orgDataNotAvailableError.actions',
37
37
  'refreshTokenAuthError',
38
- 'jwtAuthError',
38
+ 'jwtAuthErrors',
39
39
  'authCodeUsernameRetrievalError',
40
40
  'authCodeExchangeError',
41
41
  'missingClientId',
@@ -673,12 +673,15 @@ class AuthInfo extends kit_1.AsyncOptionalCreatable {
673
673
  }
674
674
  catch (err) {
675
675
  const error = err;
676
- const message = error.message.includes('audience') ? `${error.message}-${login}:${audience}` : error.message;
676
+ const message = error.message.includes('audience')
677
+ ? `${error.message} [audience=${audience} login=${login}]`
678
+ : error.message;
677
679
  authErrors.push(message);
678
680
  }
679
681
  }
680
682
  if (!authFieldsBuilder) {
681
- throw messages.createError('jwtAuthError', [authErrors.join('\n')]);
683
+ // messages.createError expects names to end in `error` and this one says Errors so do it manually.
684
+ throw new sfError_1.SfError(messages.getMessage('jwtAuthErrors', [authErrors.join('\n')]), 'JwtAuthError');
682
685
  }
683
686
  const authFields = {
684
687
  accessToken: (0, ts_types_1.asString)(authFieldsBuilder.access_token),
@@ -234,6 +234,9 @@ const requestScratchOrgCreation = async (hubOrg, scratchOrgRequest, settings) =>
234
234
  throw new sfError_1.SfError(messages.getMessage('DeprecatedPrefFormat'));
235
235
  }
236
236
  const scratchOrgInfo = (0, mapKeys_1.default)(scratchOrgRequest, kit_1.upperFirst, true);
237
+ if (typeof scratchOrgInfo.Username === 'string') {
238
+ scratchOrgInfo.Username = scratchOrgInfo.Username.toLowerCase();
239
+ }
237
240
  await checkOrgDoesntExist(scratchOrgInfo); // throw if it does exist.
238
241
  try {
239
242
  await (0, scratchOrgLifecycleEvents_1.emit)({ stage: 'send request' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "3.26.1",
3
+ "version": "3.30.0",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",