@salesforce/core-bundle 8.18.2 → 8.18.4
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/lib/index.js +14 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -12336,7 +12336,7 @@ var require_package2 = __commonJS({
|
|
|
12336
12336
|
"package.json"(exports2, module2) {
|
|
12337
12337
|
module2.exports = {
|
|
12338
12338
|
name: "@salesforce/core-bundle",
|
|
12339
|
-
version: "8.18.
|
|
12339
|
+
version: "8.18.4",
|
|
12340
12340
|
description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
|
12341
12341
|
main: "lib/index",
|
|
12342
12342
|
types: "lib/index.d.ts",
|
|
@@ -95900,6 +95900,9 @@ var require_scratchOrgErrorCodes = __commonJS({
|
|
|
95900
95900
|
}
|
|
95901
95901
|
if (["New", "Creating"].includes(scratchOrgInfo.Status)) {
|
|
95902
95902
|
const logger = await logger_12.Logger.child("scratchOrgResume");
|
|
95903
|
+
if (timeout.minutes === 0) {
|
|
95904
|
+
throw namedMessages.createError("StillInProgressError", [scratchOrgInfo.Status], ["action.StillInProgress"]);
|
|
95905
|
+
}
|
|
95903
95906
|
logger.debug(`PollingTimeout in minutes: ${timeout.minutes}`);
|
|
95904
95907
|
const options = {
|
|
95905
95908
|
async poll() {
|
|
@@ -95930,8 +95933,16 @@ var require_scratchOrgErrorCodes = __commonJS({
|
|
|
95930
95933
|
timeout
|
|
95931
95934
|
};
|
|
95932
95935
|
const client = await pollingClient_12.PollingClient.create(options);
|
|
95933
|
-
|
|
95934
|
-
|
|
95936
|
+
try {
|
|
95937
|
+
const result = await client.subscribe();
|
|
95938
|
+
return await (0, exports2.checkScratchOrgInfoForErrors)(result, hubUsername);
|
|
95939
|
+
} catch (error) {
|
|
95940
|
+
const e = error;
|
|
95941
|
+
if (e.name === "ScratchOrgResumeTimeOutError") {
|
|
95942
|
+
e.message = e.message + ` (Last known Status: ${scratchOrgInfo.Status})`;
|
|
95943
|
+
}
|
|
95944
|
+
throw error;
|
|
95945
|
+
}
|
|
95935
95946
|
}
|
|
95936
95947
|
return (0, exports2.checkScratchOrgInfoForErrors)(scratchOrgInfo, hubUsername);
|
|
95937
95948
|
};
|