@smartico/public-api 0.0.270 → 0.0.271

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.
@@ -2810,8 +2810,7 @@ var AchCustomSectionType;
2810
2810
  AchCustomSectionType[AchCustomSectionType["LEVELS"] = 4] = "LEVELS";
2811
2811
  AchCustomSectionType[AchCustomSectionType["MINI_GAMES"] = 5] = "MINI_GAMES";
2812
2812
  AchCustomSectionType[AchCustomSectionType["MISSION_CUSTOM_LAYOUT"] = 6] = "MISSION_CUSTOM_LAYOUT";
2813
- AchCustomSectionType[AchCustomSectionType["MATCH_X"] = 7] = "MATCH_X";
2814
- AchCustomSectionType[AchCustomSectionType["QUIZ"] = 8] = "QUIZ";
2813
+ AchCustomSectionType[AchCustomSectionType["MATCH_X_AND_QUIZ"] = 7] = "MATCH_X_AND_QUIZ";
2815
2814
  AchCustomSectionType[AchCustomSectionType["REDIRECT_LINK"] = 9] = "REDIRECT_LINK";
2816
2815
  AchCustomSectionType[AchCustomSectionType["LOOTBOX_WEEKLY"] = 10] = "LOOTBOX_WEEKLY";
2817
2816
  AchCustomSectionType[AchCustomSectionType["LOOTBOX_CALENDAR_DAYS"] = 11] = "LOOTBOX_CALENDAR_DAYS";
@@ -3023,6 +3022,9 @@ class SmarticoAPI {
3023
3022
  try {
3024
3023
  const timeStart = new Date().getTime();
3025
3024
  result = await this.messageSender(message, this.publicUrl, expectCID);
3025
+ if (result.errCode && result.errSetup) {
3026
+ throw new Error(result.errMessage);
3027
+ }
3026
3028
  result = SmarticoAPI.replaceSmrDomainsWithCloudfront(result);
3027
3029
  const timeEnd = new Date().getTime();
3028
3030
  if (this.logHTTPTiming) {