@salesforce/core 2.28.2 → 2.28.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 +9 -0
- package/lib/authInfo.d.ts +1 -0
- package/lib/authInfo.js +4 -1
- package/lib/org.js +1 -0
- package/messages/core.json +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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
|
+
### [2.28.3](https://github.com/forcedotcom/sfdx-core/compare/v2.28.2...v2.28.3) (2021-11-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* fix unit test ([d903c04](https://github.com/forcedotcom/sfdx-core/commit/d903c04e5f3e4f01fccb3f00b91560c443013ddf))
|
|
11
|
+
* force new release ([124bb74](https://github.com/forcedotcom/sfdx-core/commit/124bb744c5ecc28cb8babf285c6d8c3032eb7ef6))
|
|
12
|
+
* improve error message when providing an invalid username ([2ab4bbd](https://github.com/forcedotcom/sfdx-core/commit/2ab4bbdefd962283d88ccb735de88c88fe189d39))
|
|
13
|
+
|
|
5
14
|
### [2.28.2](https://github.com/forcedotcom/sfdx-core/compare/v2.28.1...v2.28.2) (2021-10-13)
|
|
6
15
|
|
|
7
16
|
|
package/lib/authInfo.d.ts
CHANGED
package/lib/authInfo.js
CHANGED
|
@@ -664,7 +664,10 @@ class AuthInfo extends kit_1.AsyncCreatable {
|
|
|
664
664
|
}
|
|
665
665
|
catch (e) {
|
|
666
666
|
if (e.code === 'ENOENT') {
|
|
667
|
-
throw sfdxError_1.SfdxError.create('@salesforce/core', 'core', 'NamedOrgNotFound', [
|
|
667
|
+
throw sfdxError_1.SfdxError.create('@salesforce/core', 'core', 'NamedOrgNotFound', [
|
|
668
|
+
this.options.isDevHub ? 'devhub username' : 'username',
|
|
669
|
+
username,
|
|
670
|
+
]);
|
|
668
671
|
}
|
|
669
672
|
else {
|
|
670
673
|
throw e;
|
package/lib/org.js
CHANGED
|
@@ -402,6 +402,7 @@ class Org extends kit_1.AsyncCreatable {
|
|
|
402
402
|
// If no username is provided or resolvable from an alias, AuthInfo will throw an SfdxError.
|
|
403
403
|
authInfo: await authInfo_1.AuthInfo.create({
|
|
404
404
|
username: (username != null && (await aliases_1.Aliases.fetch(username))) || username,
|
|
405
|
+
isDevHub: this.options.isDevHub,
|
|
405
406
|
}),
|
|
406
407
|
});
|
|
407
408
|
}
|
package/messages/core.json
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"OrgDataNotAvailableErrorAction2": "Use `sfdx force:config:set` to update the defaultusername.",
|
|
13
13
|
"OrgDataNotAvailableErrorAction3": "Use `sfdx force:org:create` to create a new org.",
|
|
14
14
|
"OrgDataNotAvailableErrorAction4": "Use `sfdx force:auth` to authenticate an existing org.",
|
|
15
|
-
"NamedOrgNotFound": "No
|
|
16
|
-
"NoAliasesFound": "Nothing to set",
|
|
17
|
-
"InvalidFormat": "Setting aliases must be in the format <key>=<value> but found: [%s]",
|
|
15
|
+
"NamedOrgNotFound": "No authorization information found for %s %s.",
|
|
16
|
+
"NoAliasesFound": "Nothing to set.",
|
|
17
|
+
"InvalidFormat": "Setting aliases must be in the format <key>=<value> but found: [%s].",
|
|
18
18
|
"NoAuthInfoFound": "No authorization information can be found.",
|
|
19
19
|
"InvalidJsonCasing": "All JSON input must have heads down camelcase keys. E.g., { sfdcLoginUrl: \"https://login.salesforce.com\" }\nFound \"%s\" at %s"
|
|
20
20
|
}
|