@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.
@@ -5,8 +5,7 @@ export declare enum AchCustomSectionType {
5
5
  LEVELS = 4,
6
6
  MINI_GAMES = 5,
7
7
  MISSION_CUSTOM_LAYOUT = 6,
8
- MATCH_X = 7,
9
- QUIZ = 8,
8
+ MATCH_X_AND_QUIZ = 7,
10
9
  REDIRECT_LINK = 9,
11
10
  LOOTBOX_WEEKLY = 10,
12
11
  LOOTBOX_CALENDAR_DAYS = 11,
package/dist/index.js CHANGED
@@ -3236,8 +3236,7 @@ var AchCustomSectionType;
3236
3236
  AchCustomSectionType[AchCustomSectionType["LEVELS"] = 4] = "LEVELS";
3237
3237
  AchCustomSectionType[AchCustomSectionType["MINI_GAMES"] = 5] = "MINI_GAMES";
3238
3238
  AchCustomSectionType[AchCustomSectionType["MISSION_CUSTOM_LAYOUT"] = 6] = "MISSION_CUSTOM_LAYOUT";
3239
- AchCustomSectionType[AchCustomSectionType["MATCH_X"] = 7] = "MATCH_X";
3240
- AchCustomSectionType[AchCustomSectionType["QUIZ"] = 8] = "QUIZ";
3239
+ AchCustomSectionType[AchCustomSectionType["MATCH_X_AND_QUIZ"] = 7] = "MATCH_X_AND_QUIZ";
3241
3240
  AchCustomSectionType[AchCustomSectionType["REDIRECT_LINK"] = 9] = "REDIRECT_LINK";
3242
3241
  AchCustomSectionType[AchCustomSectionType["LOOTBOX_WEEKLY"] = 10] = "LOOTBOX_WEEKLY";
3243
3242
  AchCustomSectionType[AchCustomSectionType["LOOTBOX_CALENDAR_DAYS"] = 11] = "LOOTBOX_CALENDAR_DAYS";
@@ -3518,6 +3517,9 @@ var SmarticoAPI = /*#__PURE__*/function () {
3518
3517
  var timeStart = new Date().getTime();
3519
3518
  return Promise.resolve(_this.messageSender(message, _this.publicUrl, expectCID)).then(function (_this$messageSender) {
3520
3519
  result = _this$messageSender;
3520
+ if (result.errCode && result.errSetup) {
3521
+ throw new Error(result.errMessage);
3522
+ }
3521
3523
  result = SmarticoAPI.replaceSmrDomainsWithCloudfront(result);
3522
3524
  var timeEnd = new Date().getTime();
3523
3525
  if (_this.logHTTPTiming) {