@salesforce/packaging 2.2.6 → 2.2.8
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.
|
@@ -143,8 +143,8 @@ exports.waitForPublish = waitForPublish;
|
|
|
143
143
|
async function pollStatus(connection, installRequestId, options = { pollingFrequency: 5000, pollingTimeout: 300000 }) {
|
|
144
144
|
let packageInstallRequest = await getStatus(connection, installRequestId);
|
|
145
145
|
const { pollingFrequency, pollingTimeout } = options;
|
|
146
|
-
const frequency = (0, packageUtils_1.numberToDuration)(pollingFrequency);
|
|
147
|
-
const timeout = (0, packageUtils_1.numberToDuration)(pollingTimeout);
|
|
146
|
+
const frequency = (0, packageUtils_1.numberToDuration)(pollingFrequency ?? 5000);
|
|
147
|
+
const timeout = (0, packageUtils_1.numberToDuration)(pollingTimeout ?? 300000);
|
|
148
148
|
const pollingOptions = {
|
|
149
149
|
frequency,
|
|
150
150
|
timeout,
|
|
@@ -124,7 +124,7 @@ class PackageProfileApi extends kit_1.AsyncCreatable {
|
|
|
124
124
|
const idx = this.nodeEntities.name.indexOf(name[0]);
|
|
125
125
|
if (idx > -1) {
|
|
126
126
|
hasNodes =
|
|
127
|
-
this.copyNodes(profileDom, this.nodeEntities.parentElement[idx], this.nodeEntities.childElement[idx], members, profileNode, profileName)
|
|
127
|
+
this.copyNodes(profileDom, this.nodeEntities.parentElement[idx], this.nodeEntities.childElement[idx], members, profileNode, profileName) || hasNodes;
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
// Go through each of the other profile settings we might want to include. We pass in "all" the members since these
|
|
@@ -134,7 +134,7 @@ class PackageProfileApi extends kit_1.AsyncCreatable {
|
|
|
134
134
|
const idx = this.otherProfileSettings.name.indexOf(element);
|
|
135
135
|
if (idx > -1) {
|
|
136
136
|
hasNodes =
|
|
137
|
-
this.copyNodes(profileDom, this.otherProfileSettings.parentElement[idx], this.otherProfileSettings.childElement[idx], allMembers, profileNode, profileName)
|
|
137
|
+
this.copyNodes(profileDom, this.otherProfileSettings.parentElement[idx], this.otherProfileSettings.childElement[idx], allMembers, profileNode, profileName) || hasNodes;
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
// add userLicenses to the profile
|