dot-store-iframe
Advanced tools
Comparing version 2.6.25 to 3.0.0
@@ -133,3 +133,3 @@ "use strict"; | ||
_regenerator.default.mark(function _callee2(options) { | ||
var iframe, store, dfp, divId, _iframe$dfp, oop, path, targets, unitId, unit, slot, sizeMap, _key; | ||
var subscriber, store, dfp, divId, _subscriber$value$dfp, oop, path, targets, unitId, unit, slot, sizeMap, _key; | ||
@@ -140,6 +140,6 @@ return _regenerator.default.wrap(function _callee2$(_context2) { | ||
case 0: | ||
iframe = options.listenValue, store = options.store; | ||
subscriber = options.subscriber, store = options.store; | ||
dfp = store.get("".concat(key, ".dfp")); | ||
if (iframe.dfp) { | ||
if (subscriber.value.dfp) { | ||
_context2.next = 4; | ||
@@ -156,4 +156,4 @@ break; | ||
case 6: | ||
divId = iframe.divId; | ||
_iframe$dfp = iframe.dfp, oop = _iframe$dfp.oop, path = _iframe$dfp.path, targets = _iframe$dfp.targets, unitId = _iframe$dfp.unitId; | ||
divId = subscriber.value.divId; | ||
_subscriber$value$dfp = subscriber.value.dfp, oop = _subscriber$value$dfp.oop, path = _subscriber$value$dfp.path, targets = _subscriber$value$dfp.targets, unitId = _subscriber$value$dfp.unitId; | ||
unit = dfp.units[unitId]; | ||
@@ -166,3 +166,2 @@ | ||
dfp: dfp, | ||
iframe: iframe, | ||
unit: unit | ||
@@ -183,3 +182,3 @@ }); | ||
if (!(slot && iframe.dfp.a9)) { | ||
if (!(slot && subscriber.value.dfp.a9)) { | ||
_context2.next = 14; | ||
@@ -186,0 +185,0 @@ break; |
@@ -16,13 +16,14 @@ "use strict"; | ||
var iframeId = options.iframeId, | ||
listenValue = options.listenValue, | ||
subscriber = options.subscriber, | ||
store = options.store; | ||
if (listenValue.dfp) { | ||
if (subscriber.value.dfp) { | ||
return; | ||
} | ||
var divId = listenValue.divId, | ||
height = listenValue.height, | ||
url = listenValue.url, | ||
width = listenValue.width; | ||
var _subscriber$value = subscriber.value, | ||
divId = _subscriber$value.divId, | ||
height = _subscriber$value.height, | ||
url = _subscriber$value.url, | ||
width = _subscriber$value.width; | ||
var loaded = "".concat(key, ".iframes.").concat(iframeId, ".loaded"); | ||
@@ -29,0 +30,0 @@ |
{ | ||
"name": "dot-store-iframe", | ||
"version": "2.6.25", | ||
"version": "3.0.0", | ||
"description": "Iframe controller integration for dot-store", | ||
@@ -34,2 +34,3 @@ "keywords": [ | ||
"@babel/core": "7.0.0-beta.42", | ||
"@babel/plugin-proposal-class-properties": "7.0.0-beta.42", | ||
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.42", | ||
@@ -40,4 +41,4 @@ "@babel/plugin-transform-runtime": "7.0.0-beta.42", | ||
"fxtr": "1", | ||
"jest": "22", | ||
"rimraf": "2" | ||
"jest": "23.4.2", | ||
"rimraf": "^2.6.2" | ||
}, | ||
@@ -44,0 +45,0 @@ "babel": { |
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
37774
10