@salesforce/packaging 2.2.5 → 2.2.7
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,
|