@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.js
CHANGED
@@ -67673,7 +67673,33 @@ var Config = /*#__PURE__*/ function() {
|
|
67673
67673
|
}).then(function(response) {
|
67674
67674
|
return response.json();
|
67675
67675
|
}).then(function(data) {
|
67676
|
-
_this.strategies = data
|
67676
|
+
_this.strategies = data.map(function(strategy) {
|
67677
|
+
var settings = {};
|
67678
|
+
var settingsKeys = Object.keys(strategy.settings);
|
67679
|
+
for(var i = 0; i < settingsKeys.length; i++){
|
67680
|
+
var key = settingsKeys[i];
|
67681
|
+
var setting = strategy.settings[key];
|
67682
|
+
if (typeof setting === "number") {
|
67683
|
+
settings[key] = {
|
67684
|
+
value: setting,
|
67685
|
+
setting: {
|
67686
|
+
code: key,
|
67687
|
+
name: key,
|
67688
|
+
description: "",
|
67689
|
+
type: "number",
|
67690
|
+
constraints: {
|
67691
|
+
min: 0
|
67692
|
+
}
|
67693
|
+
}
|
67694
|
+
};
|
67695
|
+
} else {
|
67696
|
+
settings[key] = setting;
|
67697
|
+
}
|
67698
|
+
}
|
67699
|
+
return _object_spread_props(_object_spread({}, strategy), {
|
67700
|
+
settings: settings
|
67701
|
+
});
|
67702
|
+
});
|
67677
67703
|
})
|
67678
67704
|
];
|
67679
67705
|
case 1:
|
@@ -67698,9 +67724,9 @@ var Config = /*#__PURE__*/ function() {
|
|
67698
67724
|
return _object_spread_props(_object_spread({}, this.configs), {
|
67699
67725
|
ads: _object_spread_props(_object_spread({}, this.configs.ads), {
|
67700
67726
|
presentation: _object_spread_props(_object_spread({}, this.configs.ads.presentation), {
|
67701
|
-
duration: strategyConfig.settings.visibility_duration,
|
67702
|
-
minDuration: strategyConfig.settings.minimum_display_time,
|
67703
|
-
cooldown: strategyConfig.settings.cooldown_time
|
67727
|
+
duration: strategyConfig.settings.visibility_duration.value,
|
67728
|
+
minDuration: strategyConfig.settings.minimum_display_time.value,
|
67729
|
+
cooldown: strategyConfig.settings.cooldown_time.value
|
67704
67730
|
})
|
67705
67731
|
})
|
67706
67732
|
});
|