@salesforce/core 2.28.1 → 2.28.2
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 +7 -0
- package/lib/util/sfdcUrl.js +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.2](https://github.com/forcedotcom/sfdx-core/compare/v2.28.1...v2.28.2) (2021-10-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* support for .mil sandboxes ([9ef35c7](https://github.com/forcedotcom/sfdx-core/commit/9ef35c7b1ef0fe974c3bd3b89b862a436e00f7d9))
|
|
11
|
+
|
|
5
12
|
### [2.28.1](https://github.com/forcedotcom/sfdx-core/compare/v2.28.0...v2.28.1) (2021-10-06)
|
|
6
13
|
|
|
7
14
|
|
package/lib/util/sfdcUrl.js
CHANGED
|
@@ -97,9 +97,13 @@ class SfdcUrl extends url_1.URL {
|
|
|
97
97
|
return LOCAL_PARTS.some((part) => this.origin.includes(part));
|
|
98
98
|
}
|
|
99
99
|
toLightningDomain() {
|
|
100
|
+
if (this.origin.endsWith('.my.salesforce.mil')) {
|
|
101
|
+
return this.origin.replace('.my.salesforce.mil', '.lightning.crmforce.mil');
|
|
102
|
+
}
|
|
103
|
+
// all non-mil domains
|
|
100
104
|
return `https://${ts_types_1.ensureArray(/https?:\/\/([^.]*)/.exec(this.origin))
|
|
101
105
|
.slice(1, 2)
|
|
102
|
-
.pop()}.lightning
|
|
106
|
+
.pop()}.lightning.force.com`;
|
|
103
107
|
}
|
|
104
108
|
/**
|
|
105
109
|
* Tests whether this url has the lightning domain extension
|
|
@@ -148,6 +152,7 @@ class SfdcUrl extends url_1.URL {
|
|
|
148
152
|
*/
|
|
149
153
|
isSandboxUrl(createdOrgInstance) {
|
|
150
154
|
return ((createdOrgInstance && /^cs|s$/gi.test(createdOrgInstance)) ||
|
|
155
|
+
this.origin.endsWith('sandbox.my.salesforce.mil') ||
|
|
151
156
|
/sandbox\.my\.salesforce\.com/gi.test(this.origin) || // enhanced domains >= 230
|
|
152
157
|
/(cs[0-9]+(\.my|)\.salesforce\.com)/gi.test(this.origin) || // my domains on CS instance OR CS instance without my domain
|
|
153
158
|
/([a-z]{3}[0-9]+s\.sfdc-.+\.salesforce\.com)/gi.test(this.origin) || // falcon sandbox ex: usa2s.sfdc-whatever.salesforce.com
|