You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@salesforce/core

Package Overview
Dependencies
Maintainers
48
Versions
542
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforce/core - npm Package Compare versions

Comparing version

to
8.18.4

16

lib/org/scratchOrgErrorCodes.js

@@ -51,2 +51,5 @@ "use strict";

const logger = await logger_1.Logger.child('scratchOrgResume');
if (timeout.minutes === 0) {
throw namedMessages.createError('StillInProgressError', [scratchOrgInfo.Status], ['action.StillInProgress']);
}
logger.debug(`PollingTimeout in minutes: ${timeout.minutes}`);

@@ -83,4 +86,13 @@ const options = {

const client = await pollingClient_1.PollingClient.create(options);
const result = await client.subscribe();
return (0, exports.checkScratchOrgInfoForErrors)(result, hubUsername);
try {
const result = await client.subscribe();
return await (0, exports.checkScratchOrgInfoForErrors)(result, hubUsername);
}
catch (error) {
const e = error;
if (e.name === 'ScratchOrgResumeTimeOutError') {
e.message = e.message + ` (Last known Status: ${scratchOrgInfo.Status})`;
}
throw error;
}
}

@@ -87,0 +99,0 @@ return (0, exports.checkScratchOrgInfoForErrors)(scratchOrgInfo, hubUsername);

2

package.json
{
"name": "@salesforce/core",
"version": "8.18.3",
"version": "8.18.4",
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",

@@ -5,0 +5,0 @@ "main": "lib/index",