@salesforce/core 8.6.4 → 8.7.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.
|
@@ -73,25 +73,25 @@ class MyDomainResolver extends kit_1.AsyncOptionalCreatable {
|
|
|
73
73
|
const self = this;
|
|
74
74
|
const pollingOptions = {
|
|
75
75
|
async poll() {
|
|
76
|
-
const {
|
|
76
|
+
const { hostname } = self.options.url;
|
|
77
77
|
let dnsResult;
|
|
78
78
|
try {
|
|
79
|
-
self.logger.debug(`Attempting to resolve url: ${
|
|
79
|
+
self.logger.debug(`Attempting to resolve url: ${hostname}`);
|
|
80
80
|
if (new sfdcUrl_1.SfdcUrl(self.options.url).isLocalUrl()) {
|
|
81
81
|
return {
|
|
82
82
|
completed: true,
|
|
83
83
|
payload: '127.0.0.1',
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
dnsResult = await (0, node_util_1.promisify)(node_dns_1.lookup)(
|
|
87
|
-
self.logger.debug(`Successfully resolved host: ${
|
|
86
|
+
dnsResult = await (0, node_util_1.promisify)(node_dns_1.lookup)(hostname);
|
|
87
|
+
self.logger.debug(`Successfully resolved host: ${hostname} result: ${JSON.stringify(dnsResult)}`);
|
|
88
88
|
return {
|
|
89
89
|
completed: true,
|
|
90
90
|
payload: dnsResult.address,
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
catch (e) {
|
|
94
|
-
self.logger.debug(`An error occurred trying to resolve: ${
|
|
94
|
+
self.logger.debug(`An error occurred trying to resolve: ${hostname}`);
|
|
95
95
|
self.logger.debug(`Error: ${e.message}`);
|
|
96
96
|
self.logger.debug('Re-trying dns lookup again....');
|
|
97
97
|
return {
|
package/lib/util/sfdcUrl.js
CHANGED
|
@@ -119,7 +119,7 @@ class SfdcUrl extends node_url_1.URL {
|
|
|
119
119
|
'.stm.salesforce.ms',
|
|
120
120
|
'.pc-rnd.force.com',
|
|
121
121
|
'.pc-rnd.salesforce.com',
|
|
122
|
-
'.
|
|
122
|
+
'.crm.dev', // workspaces container
|
|
123
123
|
];
|
|
124
124
|
return (this.origin.startsWith('https://gs1.') ||
|
|
125
125
|
this.isLocalUrl() ||
|