@salesforce/core-bundle 8.18.3 → 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.
Files changed (2) hide show
  1. package/lib/index.js +14 -3
  2. 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.3",
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
- const result = await client.subscribe();
95934
- return (0, exports2.checkScratchOrgInfoForErrors)(result, hubUsername);
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core-bundle",
3
- "version": "8.18.3",
3
+ "version": "8.18.4",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/index",
6
6
  "types": "lib/index.d.ts",