@salesforce/core 3.26.2 → 3.26.4
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 +8 -0
- package/lib/logger.js +2 -2
- package/lib/org/authInfo.js +6 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.4](https://github.com/forcedotcom/sfdx-core/compare/v3.26.3...v3.26.4) (2022-09-14)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **logger:** idempotent mkdir when creating sf dir ([#635](https://github.com/forcedotcom/sfdx-core/issues/635)) ([4594940](https://github.com/forcedotcom/sfdx-core/commit/4594940a16f5473aeea0af37a2705e9f00e2590a))
|
|
10
|
+
|
|
11
|
+
### [3.26.3](https://github.com/forcedotcom/sfdx-core/compare/v3.26.2...v3.26.3) (2022-09-06)
|
|
12
|
+
|
|
5
13
|
### [3.26.2](https://github.com/forcedotcom/sfdx-core/compare/v3.26.1...v3.26.2) (2022-08-16)
|
|
6
14
|
|
|
7
15
|
### [3.26.1](https://github.com/forcedotcom/sfdx-core/compare/v3.26.0...v3.26.1) (2022-08-08)
|
package/lib/logger.js
CHANGED
|
@@ -288,10 +288,10 @@ class Logger {
|
|
|
288
288
|
catch (err1) {
|
|
289
289
|
try {
|
|
290
290
|
if (process.platform === 'win32') {
|
|
291
|
-
fs.mkdirSync(path.dirname(logFile));
|
|
291
|
+
fs.mkdirSync(path.dirname(logFile), { recursive: true });
|
|
292
292
|
}
|
|
293
293
|
else {
|
|
294
|
-
fs.mkdirSync(path.dirname(logFile), { mode: 0o700 });
|
|
294
|
+
fs.mkdirSync(path.dirname(logFile), { mode: 0o700, recursive: true });
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
catch (err2) {
|
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),
|