@invrs/ads
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -22,6 +22,8 @@ "use strict"; | ||
store = _ref2.store, | ||
unit = _ref2.unit; | ||
unit = _ref2.unit, | ||
unitIndex = _ref2.unitIndex; | ||
var targets = store.get("article.dfp.rawTargets") || {}; | ||
var stag = targets.production ? "" : "z_"; | ||
var page = targetPage(targets.page); | ||
var index = typeof unitIndex === "number" ? "_".concat(unitIndex) : ""; | ||
var sect = ""; | ||
@@ -41,4 +43,4 @@ | ||
return "/21054826/".concat(stag).concat(unit, "/").concat(page).concat(sect).concat(slide); | ||
return "/21054826/".concat(stag).concat(unit).concat(index, "/").concat(page).concat(sect).concat(slide); | ||
} | ||
//# sourceMappingURL=ids.js.map |
@@ -121,3 +121,3 @@ "use strict"; | ||
_regenerator.default.mark(function _callee3(_ref) { | ||
var index, slide, targets, unit, id, path, dfpUnit, iframe; | ||
var index, slide, targets, unit, unitIndex, id, path, dfpUnit, iframe; | ||
return _regenerator.default.wrap(function _callee3$(_context3) { | ||
@@ -127,3 +127,3 @@ while (1) { | ||
case 0: | ||
index = _ref.index, slide = _ref.slide, targets = _ref.targets, unit = _ref.unit; | ||
index = _ref.index, slide = _ref.slide, targets = _ref.targets, unit = _ref.unit, unitIndex = _ref.unitIndex; | ||
@@ -145,3 +145,4 @@ if (!(_config.units.indexOf(unit) < 0 && unit != "card")) { | ||
store: store, | ||
unit: unit | ||
unit: unit, | ||
unitIndex: unitIndex | ||
}); | ||
@@ -148,0 +149,0 @@ dfpUnit = store.get("article.dfp.units.".concat(unit)); |
{ | ||
"name": "@invrs/ads", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Inverse ad code", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77181
873