@salesforce/core 8.24.3 → 8.25.1

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.
@@ -169,6 +169,11 @@ class ConfigFile extends configStore_1.BaseConfigStore {
169
169
  return this.getContents();
170
170
  }
171
171
  }
172
+ else if (err.name === 'JsonParseError') {
173
+ this.logger.debug(`Contents of ${this.getPath()} could not be parsed as JSON. Using empty object instead.`);
174
+ this.setContentsFromObject({});
175
+ return this.getContents();
176
+ }
172
177
  // Necessarily set this even when an error happens to avoid infinite re-reading.
173
178
  // To attempt another read, pass `force=true`.
174
179
  throw err;
@@ -365,6 +370,9 @@ class ConfigFile extends configStore_1.BaseConfigStore {
365
370
  if (err instanceof Error && err.message.includes('ENOENT')) {
366
371
  this.logger.debug(`No file found at ${this.getPath()}. Write will create it.`);
367
372
  }
373
+ else if (err instanceof Error && err.name === 'JsonParseError') {
374
+ this.logger.debug(`Could not parse ${this.getPath()} as JSON. Existing contents will be replaced.`);
375
+ }
368
376
  else {
369
377
  throw err;
370
378
  }
@@ -21,6 +21,7 @@ exports.simpleFeaturesList = [
21
21
  'AnalyticsAdminPerms',
22
22
  'AnalyticsAppEmbedded',
23
23
  'ApexGuruCodeAnalyzer',
24
+ 'ApexUserModeWithPermSet',
24
25
  'ArcGraphCommunity',
25
26
  'Assessments',
26
27
  'AssociationEngine',
@@ -108,6 +109,7 @@ exports.simpleFeaturesList = [
108
109
  'EinsteinArticleRecommendations',
109
110
  'EinsteinBuilderFree',
110
111
  'EinsteinDocReader',
112
+ 'EinsteinGPTForDevelopers',
111
113
  'EinsteinRecommendationBuilder',
112
114
  'EinsteinRecommendationBuilderMetadata',
113
115
  'EinsteinSearch',
@@ -262,6 +264,8 @@ exports.simpleFeaturesList = [
262
264
  'TimelineRecordTypeLimit',
263
265
  'TransactionFinalizers',
264
266
  'UsageManagement',
267
+ 'VolunteerManagement',
268
+ 'Walkthroughs',
265
269
  'WaveMaxCurrency',
266
270
  'WavePlatform',
267
271
  'WorkThanksPref',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "8.24.3",
3
+ "version": "8.25.1",
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",
@@ -361,6 +361,7 @@
361
361
  "AnalyticsAdminPerms",
362
362
  "AnalyticsAppEmbedded",
363
363
  "ApexGuruCodeAnalyzer",
364
+ "ApexUserModeWithPermSet",
364
365
  "ArcGraphCommunity",
365
366
  "Assessments",
366
367
  "AssociationEngine",
@@ -448,6 +449,7 @@
448
449
  "EinsteinArticleRecommendations",
449
450
  "EinsteinBuilderFree",
450
451
  "EinsteinDocReader",
452
+ "EinsteinGPTForDevelopers",
451
453
  "EinsteinRecommendationBuilder",
452
454
  "EinsteinRecommendationBuilderMetadata",
453
455
  "EinsteinSearch",
@@ -602,6 +604,8 @@
602
604
  "TimelineRecordTypeLimit",
603
605
  "TransactionFinalizers",
604
606
  "UsageManagement",
607
+ "VolunteerManagement",
608
+ "Walkthroughs",
605
609
  "WaveMaxCurrency",
606
610
  "WavePlatform",
607
611
  "WorkThanksPref",