@salesforce/core 6.5.0 → 6.5.2

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.
@@ -41,6 +41,7 @@ class BaseConfigStore extends kit_1.AsyncOptionalCreatable {
41
41
  entries() {
42
42
  return (0, ts_types_2.definiteEntriesOf)(this.contents.value ?? {});
43
43
  }
44
+ // NEXT_RELEASE: update types to specify return can be | undefined
44
45
  get(key, decrypt = false) {
45
46
  const rawValue = this.contents.get(key);
46
47
  if (this.hasEncryption() && decrypt) {
@@ -51,6 +52,7 @@ class BaseConfigStore extends kit_1.AsyncOptionalCreatable {
51
52
  return this.decrypt(rawValue);
52
53
  }
53
54
  }
55
+ // NEXT_RELEASE: update types to specify return can be | undefined
54
56
  return rawValue;
55
57
  }
56
58
  /**
@@ -52,10 +52,11 @@ const scratchOrgResume = async (jobId) => {
52
52
  (0, scratchOrgLifecycleEvents_1.emit)({ stage: 'send request' }),
53
53
  ]);
54
54
  logger.debug(`resuming scratch org creation for jobId: ${jobId}`);
55
- if (!cache.has(jobId)) {
55
+ const cached = cache.get(jobId);
56
+ if (!cached) {
56
57
  throw messages.createError('CacheMissError', [jobId]);
57
58
  }
58
- const { hubUsername, apiVersion, clientSecret, signupTargetLoginUrlConfig, definitionjson, alias, setDefault, tracksSource, } = cache.get(jobId);
59
+ const { hubUsername, apiVersion, clientSecret, signupTargetLoginUrlConfig, definitionjson, alias, setDefault, tracksSource, } = cached;
59
60
  const hubOrg = await org_1.Org.create({ aliasOrUsername: hubUsername });
60
61
  const soi = await (0, scratchOrgInfoApi_1.queryScratchOrgInfo)(hubOrg, jobId);
61
62
  await (0, scratchOrgErrorCodes_1.validateScratchOrgInfoForResume)({ jobId, scratchOrgInfo: soi, cache, hubUsername });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "6.5.0",
3
+ "version": "6.5.2",
4
4
  "description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",
@@ -50,7 +50,7 @@
50
50
  "jsforce": "^2.0.0-beta.29",
51
51
  "jsonwebtoken": "9.0.2",
52
52
  "jszip": "3.10.1",
53
- "pino": "^8.17.2",
53
+ "pino": "^8.18.0",
54
54
  "pino-abstract-transport": "^1.1.0",
55
55
  "pino-pretty": "^10.3.1",
56
56
  "proper-lockfile": "^4.1.2",