@salesforce/core 5.3.12 → 5.3.13

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.
@@ -242,7 +242,8 @@ const getNameOf = (entity) => {
242
242
  };
243
243
  const fileContentsRawToAliasStore = (contents) => {
244
244
  const fileContents = JSON.parse(contents);
245
- return new Map(Object.entries(fileContents[exports.DEFAULT_GROUP]));
245
+ // handle when alias file exists but is missing the org property
246
+ return new Map(Object.entries(fileContents[exports.DEFAULT_GROUP] ?? {}));
246
247
  };
247
248
  const aliasStoreToRawFileContents = (aliasStore) => JSON.stringify({ [exports.DEFAULT_GROUP]: Object.fromEntries(Array.from(aliasStore.entries())) });
248
249
  // exported for testSetup mocking
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "5.3.12",
3
+ "version": "5.3.13",
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",