Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@invrs/ads

Package Overview
Dependencies
Maintainers
4
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@invrs/ads - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

29

dist/dfp/dfp.js

@@ -103,3 +103,3 @@ "use strict";

_regenerator.default.mark(function _callee2(options) {
var event, iframeId, store, iframe, dfp, divId, _iframe$dfp, oop, path, targets, unitId, unit, slot, sizeMap, _key;
var iframeId, store, iframe, dfp, divId, _iframe$dfp, oop, path, targets, unitId, unit, slot, sizeMap, _key;

@@ -110,19 +110,6 @@ return _regenerator.default.wrap(function _callee2$(_context2) {

case 0:
event = options.event, iframeId = options.iframeId, store = options.store;
iframeId = options.iframeId, store = options.store;
iframe = store.get("".concat(key, ".iframes.").concat(iframeId));
dfp = store.get("".concat(key, ".dfp"));
if (!(event.props.indexOf("refresh") > -1)) {
_context2.next = 7;
break;
}
_context2.next = 6;
return refreshDfpSlot(key)(options);
case 6:
return _context2.abrupt("return", _context2.sent);
case 7:
_context2.next = 9;
_context2.next = 5;
return waitForDfpLoad({

@@ -133,3 +120,3 @@ key: key,

case 9:
case 5:
divId = iframe.divId;

@@ -160,7 +147,7 @@ _iframe$dfp = iframe.dfp, oop = _iframe$dfp.oop, path = _iframe$dfp.path, targets = _iframe$dfp.targets, unitId = _iframe$dfp.unitId;

if (!(slot && iframe.dfp.a9)) {
_context2.next = 17;
_context2.next = 13;
break;
}
_context2.next = 17;
_context2.next = 13;
return (0, _a.fetchA9)({

@@ -172,3 +159,3 @@ divId: divId,

case 17:
case 13:
if (slot) {

@@ -180,3 +167,3 @@ slot.addService(window.googletag.pubads());

case 18:
case 14:
case "end":

@@ -183,0 +170,0 @@ return _context2.stop();

@@ -17,2 +17,3 @@ "use strict";

store.before().withOp("delete").on("".concat(key, ".iframes.{iframeId}"), (0, _dfp.deleteDfpSlot)(key));
store.on("refreshIframe.{iframeId}", (0, _dfp.refreshDfpSlot)(key));
(0, _dfp.attachDfp)({

@@ -19,0 +20,0 @@ key: key,

@@ -170,3 +170,3 @@ "use strict";

_context3.next = 13;
return store.time("article.iframes.".concat(id, ".refresh"));
return store.emit("refreshIframe.".concat(id));

@@ -173,0 +173,0 @@ case 13:

{
"name": "@invrs/ads",
"version": "1.1.0",
"version": "1.2.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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc