@salesforce/core 6.2.2-qa.0 → 6.2.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.
package/lib/org/org.d.ts CHANGED
@@ -546,7 +546,7 @@ export declare namespace Org {
546
546
  */
547
547
  IS_SCRATCH = "isScratch",
548
548
  /**
549
- * Is the current org a sandbox (not a scratch org on a non-prod instance), but an actual Sandbox org). e.g. Organization has IsSandbox == true and TrialExpirationDate == null.
549
+ * Is the current org a dev hub org. e.g. Organization has IsSandbox == true and TrialExpirationDate == null.
550
550
  */
551
551
  IS_SANDBOX = "isSandbox",
552
552
  /**
package/lib/org/org.js CHANGED
@@ -485,7 +485,7 @@ class Org extends kit_1.AsyncOptionalCreatable {
485
485
  */
486
486
  async determineIfScratch() {
487
487
  let cache = this.getField(Org.Fields.IS_SCRATCH);
488
- if (cache === undefined) {
488
+ if (!cache) {
489
489
  await this.updateLocalInformation();
490
490
  cache = this.getField(Org.Fields.IS_SCRATCH);
491
491
  }
@@ -500,7 +500,7 @@ class Org extends kit_1.AsyncOptionalCreatable {
500
500
  */
501
501
  async determineIfSandbox() {
502
502
  let cache = this.getField(Org.Fields.IS_SANDBOX);
503
- if (cache === undefined) {
503
+ if (!cache) {
504
504
  await this.updateLocalInformation();
505
505
  cache = this.getField(Org.Fields.IS_SANDBOX);
506
506
  }
@@ -698,7 +698,11 @@ class Org extends kit_1.AsyncOptionalCreatable {
698
698
  * Returns a map of requested fields.
699
699
  */
700
700
  getFields(keys) {
701
- return Object.fromEntries(keys.map((key) => [key, this.getField(key)]));
701
+ const json = {};
702
+ return keys.reduce((map, key) => {
703
+ map[key] = this.getField(key);
704
+ return map;
705
+ }, json);
702
706
  }
703
707
  /**
704
708
  * Returns the JSForce connection for the org.
@@ -1290,7 +1294,7 @@ exports.Org = Org;
1290
1294
  */
1291
1295
  Fields["IS_SCRATCH"] = "isScratch";
1292
1296
  /**
1293
- * Is the current org a sandbox (not a scratch org on a non-prod instance), but an actual Sandbox org). e.g. Organization has IsSandbox == true and TrialExpirationDate == null.
1297
+ * Is the current org a dev hub org. e.g. Organization has IsSandbox == true and TrialExpirationDate == null.
1294
1298
  */
1295
1299
  Fields["IS_SANDBOX"] = "isSandbox";
1296
1300
  /**
@@ -181,11 +181,7 @@ const authorizeScratchOrg = async (options) => {
181
181
  clientId: scratchOrgInfoComplete.ConnectedAppConsumerKey,
182
182
  createdOrgInstance: scratchOrgInfoComplete.SignupInstance,
183
183
  isDevHub: false,
184
- isScratch: true,
185
- isSandbox: false,
186
- // omit optional fields unless they are present
187
- ...(scratchOrgInfoComplete.Namespace ? { namespacePrefix: scratchOrgInfoComplete.Namespace } : {}),
188
- ...(scratchOrgInfoComplete.Snapshot ? { snapshot: scratchOrgInfoComplete.Snapshot } : {}),
184
+ snapshot: scratchOrgInfoComplete.Snapshot,
189
185
  });
190
186
  return authInfo;
191
187
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "6.2.2-qa.0",
3
+ "version": "6.2.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",
@@ -47,7 +47,7 @@
47
47
  "faye": "^1.4.0",
48
48
  "form-data": "^4.0.0",
49
49
  "js2xmlparser": "^4.0.1",
50
- "jsforce": "^2.0.0-beta.28",
50
+ "jsforce": "^2.0.0-beta.29",
51
51
  "jsonwebtoken": "9.0.2",
52
52
  "jszip": "3.10.1",
53
53
  "pino": "^8.16.2",