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 0.8.1 to 0.8.2

38

dist/index.js

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

_regenerator.default.mark(function _callee3(_ref) {
var index, slide, unit, id, path, targets, dfpUnit, iframe;
var index, slide, targets, unit, id, path, dfpUnit, iframe;
return _regenerator.default.wrap(function _callee3$(_context3) {

@@ -134,3 +134,3 @@ while (1) {

case 0:
index = _ref.index, slide = _ref.slide, unit = _ref.unit;
index = _ref.index, slide = _ref.slide, targets = _ref.targets, unit = _ref.unit;

@@ -164,3 +164,3 @@ if (!(_config.units.indexOf(unit) < 0 && unit != "card")) {

case 7:
_context3.next = 23;
_context3.next = 22;
break;

@@ -174,6 +174,2 @@

});
targets = (0, _targets.slotTargets)({
index: index,
unit: unit
});
dfpUnit = store.getSync("dfp.units.".concat(unit));

@@ -183,7 +179,7 @@ iframe = store.getSync("iframes.".concat(id));

if (dfpUnit) {
_context3.next = 16;
_context3.next = 15;
break;
}
_context3.next = 16;
_context3.next = 15;
return store.set("dfp.units.".concat(unit), {

@@ -198,17 +194,17 @@ id: unit,

case 16:
case 15:
if (!iframe) {
_context3.next = 21;
_context3.next = 20;
break;
}
_context3.next = 19;
_context3.next = 18;
return store.set("iframes.".concat(id, ".refresh"), new Date().toString());
case 19:
_context3.next = 23;
case 18:
_context3.next = 22;
break;
case 21:
_context3.next = 23;
case 20:
_context3.next = 22;
return store.set("iframes.".concat(id), {

@@ -218,3 +214,7 @@ dfp: {

path: path,
targets: targets,
targets: (0, _targets.slotTargets)({
index: index,
targets: targets,
unit: unit
}),
unitId: unit

@@ -225,6 +225,6 @@ },

case 23:
case 22:
return _context3.abrupt("return", store);
case 24:
case 23:
case "end":

@@ -231,0 +231,0 @@ return _context3.stop();

@@ -15,2 +15,4 @@ "use strict";

var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread"));
var _getIterator2 = _interopRequireDefault(require("@babel/runtime/core-js/get-iterator"));

@@ -73,9 +75,11 @@

var index = _ref.index,
_ref$targets = _ref.targets,
targets = _ref$targets === void 0 ? {} : _ref$targets,
unit = _ref.unit;
var indexPad = pad(index, 2);
var unitPad = pad(_config.units.indexOf(unit) + 1, 2);
return {
return (0, _objectSpread2.default)({}, targets, {
in: indexPad,
tl: unitPad
};
});
}

@@ -82,0 +86,0 @@

{
"name": "@invrs/ads",
"version": "0.8.1",
"version": "0.8.2",
"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

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