@salesforce/core 3.26.0 → 3.26.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 +10 -0
- package/lib/org/authInfo.js +6 -3
- package/lib/org/scratchOrgInfoApi.js +3 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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.26.3](https://github.com/forcedotcom/sfdx-core/compare/v3.26.2...v3.26.3) (2022-09-06)
|
|
6
|
+
|
|
7
|
+
### [3.26.2](https://github.com/forcedotcom/sfdx-core/compare/v3.26.1...v3.26.2) (2022-08-16)
|
|
8
|
+
|
|
9
|
+
### [3.26.1](https://github.com/forcedotcom/sfdx-core/compare/v3.26.0...v3.26.1) (2022-08-08)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- update jsforce ([0353330](https://github.com/forcedotcom/sfdx-core/commit/03533307f0ea1f8877027a5619c970e1ae2443ec))
|
|
14
|
+
|
|
5
15
|
## [3.26.0](https://github.com/forcedotcom/sfdx-core/compare/v3.25.1...v3.26.0) (2022-08-04)
|
|
6
16
|
|
|
7
17
|
### Features
|
package/lib/org/authInfo.js
CHANGED
|
@@ -35,7 +35,7 @@ const messages = messages_1.Messages.load('@salesforce/core', 'core', [
|
|
|
35
35
|
'orgDataNotAvailableError',
|
|
36
36
|
'orgDataNotAvailableError.actions',
|
|
37
37
|
'refreshTokenAuthError',
|
|
38
|
-
'
|
|
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')
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "3.26.3",
|
|
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",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"form-data": "^4.0.0",
|
|
49
49
|
"graceful-fs": "^4.2.9",
|
|
50
50
|
"js2xmlparser": "^4.0.1",
|
|
51
|
-
"jsforce": "
|
|
51
|
+
"jsforce": "beta",
|
|
52
52
|
"jsonwebtoken": "8.5.1",
|
|
53
53
|
"ts-retry-promise": "^0.6.0"
|
|
54
54
|
},
|