@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.
- package/dist/CustomSections/AchCustomSection.d.ts +1 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +4 -2
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/CustomSections/AchCustomSection.ts +1 -2
- package/src/SmarticoAPI.ts +5 -0
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["
|
|
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) {
|