@salesforce/core 3.22.1 → 3.23.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 +6 -0
- package/lib/util/sfdcUrl.js +7 -2
- package/package.json +1 -1
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.23.0](https://github.com/forcedotcom/sfdx-core/compare/v3.22.1...v3.23.0) (2022-06-30)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- support more enhanced domains, wider test cases ([f1bac94](https://github.com/forcedotcom/sfdx-core/commit/f1bac945d9b135a9a8165260b95f7de5568ccca6))
|
|
10
|
+
|
|
5
11
|
### [3.22.1](https://github.com/forcedotcom/sfdx-core/compare/v3.22.0...v3.22.1) (2022-06-28)
|
|
6
12
|
|
|
7
13
|
### Bug Fixes
|
package/lib/util/sfdcUrl.js
CHANGED
|
@@ -128,8 +128,13 @@ class SfdcUrl extends url_1.URL {
|
|
|
128
128
|
return this.origin.replace('.my.salesforce.mil', '.lightning.crmforce.mil');
|
|
129
129
|
}
|
|
130
130
|
// enhanced domains
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
// ex: sandbox.my.salesforce.com, scratch.my.salesforce.com, etc
|
|
132
|
+
if (this.origin.endsWith('.my.salesforce.com')) {
|
|
133
|
+
return this.origin.replace('.my.salesforce.com', '.lightning.force.com');
|
|
134
|
+
}
|
|
135
|
+
// alternative domains
|
|
136
|
+
if (this.origin.endsWith('.my-salesforce.com')) {
|
|
137
|
+
return this.origin.replace('.my-salesforce.com', '.my-lightning.com');
|
|
133
138
|
}
|
|
134
139
|
// all non-mil domains
|
|
135
140
|
return `https://${(0, ts_types_1.ensureArray)(/https?:\/\/([^.]*)/.exec(this.origin))
|