@salesforce/core 3.20.2 → 3.20.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 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.20.3](https://github.com/forcedotcom/sfdx-core/compare/v3.20.2...v3.20.3) (2022-06-15)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **url:** support sandboxes with enhanced domains enabled ([7c958d1](https://github.com/forcedotcom/sfdx-core/commit/7c958d1f59efc6ef55a7b4c60126603616b21794))
10
+
5
11
  ### [3.20.2](https://github.com/forcedotcom/sfdx-core/compare/v3.20.1...v3.20.2) (2022-06-13)
6
12
 
7
13
  ### Bug Fixes
@@ -127,6 +127,10 @@ class SfdcUrl extends url_1.URL {
127
127
  if (this.origin.endsWith('.my.salesforce.mil')) {
128
128
  return this.origin.replace('.my.salesforce.mil', '.lightning.crmforce.mil');
129
129
  }
130
+ // enhanced domains
131
+ if (this.origin.endsWith('sandbox.my.salesforce.com')) {
132
+ return this.origin.replace('sandbox.my.salesforce.com', 'sandbox.lightning.force.com');
133
+ }
130
134
  // all non-mil domains
131
135
  return `https://${(0, ts_types_1.ensureArray)(/https?:\/\/([^.]*)/.exec(this.origin))
132
136
  .slice(1, 2)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "3.20.2",
3
+ "version": "3.20.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",