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

@financial-times/o-ads

Package Overview
Dependencies
Maintainers
16
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/o-ads - npm Package Compare versions

Comparing version 12.10.2 to 12.11.0

4

browser.js

@@ -26,4 +26,6 @@ "use strict";

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
/* eslint valid-jsdoc: 0 */

@@ -30,0 +32,0 @@ function Ads() {

@@ -354,2 +354,14 @@ "use strict";

/**
* add the additional class to the slot
*/
Slot.prototype.addClass = function (className) {
this.container.classList.add("o-ads-".concat(className));
_utils.default.broadcast('slotClassAdded', this);
return this;
};
/**
* sets a classname of the format

@@ -356,0 +368,0 @@ */

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

slot.fire('slotRenderEnded');
} else if (type === 'slotClass' && data.slotClass) {
slot.addClass(data.slotClass);
} // Received message to Collapse ad slot.

@@ -306,0 +308,0 @@ else if (type === 'collapse') {

@@ -22,4 +22,6 @@ "use strict";

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -26,0 +28,0 @@

"use strict";
// generated by genversion
module.exports = '12.10.2';
module.exports = '12.11.0';

@@ -26,3 +26,3 @@ {

"name": "@financial-times/o-ads",
"version": "12.10.2",
"version": "12.11.0",
"dependencies": {

@@ -64,2 +64,3 @@ "ftdomdelegate": ">=2.2.0 <4.0.0",

"@financial-times/secret-squirrel": "^2.12.4",
"@testing-library/jest-dom": "^4.1.0",
"babel-jest": "^24.8.0",

@@ -74,2 +75,3 @@ "babel-plugin-rewire": "^1.2.0",

"eslint-plugin-jest": "^22.7.1",
"eslint-plugin-qunit": "^4.0.0",
"fetch-mock": "^5.1.1",

@@ -76,0 +78,0 @@ "geckodriver": "^1.16.1",

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