@brndts/brndts-ads 1.10.1 → 1.10.2
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/index.js +30 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -67697,7 +67697,33 @@ var Config = /*#__PURE__*/ function() {
|
|
67697
67697
|
}).then(function(response) {
|
67698
67698
|
return response.json();
|
67699
67699
|
}).then(function(data) {
|
67700
|
-
_this.strategies = data
|
67700
|
+
_this.strategies = data.map(function(strategy) {
|
67701
|
+
var settings = {};
|
67702
|
+
var settingsKeys = Object.keys(strategy.settings);
|
67703
|
+
for(var i = 0; i < settingsKeys.length; i++){
|
67704
|
+
var key = settingsKeys[i];
|
67705
|
+
var setting = strategy.settings[key];
|
67706
|
+
if (typeof setting === "number") {
|
67707
|
+
settings[key] = {
|
67708
|
+
value: setting,
|
67709
|
+
setting: {
|
67710
|
+
code: key,
|
67711
|
+
name: key,
|
67712
|
+
description: "",
|
67713
|
+
type: "number",
|
67714
|
+
constraints: {
|
67715
|
+
min: 0
|
67716
|
+
}
|
67717
|
+
}
|
67718
|
+
};
|
67719
|
+
} else {
|
67720
|
+
settings[key] = setting;
|
67721
|
+
}
|
67722
|
+
}
|
67723
|
+
return _object_spread_props(_object_spread({}, strategy), {
|
67724
|
+
settings: settings
|
67725
|
+
});
|
67726
|
+
});
|
67701
67727
|
})
|
67702
67728
|
];
|
67703
67729
|
case 1:
|
@@ -67722,9 +67748,9 @@ var Config = /*#__PURE__*/ function() {
|
|
67722
67748
|
return _object_spread_props(_object_spread({}, this.configs), {
|
67723
67749
|
ads: _object_spread_props(_object_spread({}, this.configs.ads), {
|
67724
67750
|
presentation: _object_spread_props(_object_spread({}, this.configs.ads.presentation), {
|
67725
|
-
duration: strategyConfig.settings.visibility_duration,
|
67726
|
-
minDuration: strategyConfig.settings.minimum_display_time,
|
67727
|
-
cooldown: strategyConfig.settings.cooldown_time
|
67751
|
+
duration: strategyConfig.settings.visibility_duration.value,
|
67752
|
+
minDuration: strategyConfig.settings.minimum_display_time.value,
|
67753
|
+
cooldown: strategyConfig.settings.cooldown_time.value
|
67728
67754
|
})
|
67729
67755
|
})
|
67730
67756
|
});
|