Comparing version 0.2.1 to 0.2.2
@@ -7,3 +7,3 @@ Object.defineProperty(exports, "__esModule", { | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -71,3 +71,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
function Bling() { | ||
var _Object$getPrototypeO; | ||
var _ref; | ||
@@ -82,3 +82,3 @@ var _temp, _this, _ret; | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_Object$getPrototypeO = Object.getPrototypeOf(Bling)).call.apply(_Object$getPrototypeO, [this].concat(args))), _this), _this.state = { | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Bling.__proto__ || Object.getPrototypeOf(Bling)).call.apply(_ref, [this].concat(args))), _this), _this.state = { | ||
scriptLoaded: false, | ||
@@ -230,3 +230,3 @@ inViewport: false | ||
value: function getRenderWhenViewable() { | ||
var props = arguments.length <= 0 || arguments[0] === undefined ? this.props : arguments[0]; | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props; | ||
@@ -330,4 +330,4 @@ return props.renderWhenViewable !== undefined ? props.renderWhenViewable : Bling._config.renderWhenViewable; | ||
value: function notInViewport() { | ||
var props = arguments.length <= 0 || arguments[0] === undefined ? this.props : arguments[0]; | ||
var state = arguments.length <= 1 || arguments[1] === undefined ? this.state : arguments[1]; | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props; | ||
var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.state; | ||
var inViewport = state.inViewport; | ||
@@ -360,3 +360,3 @@ | ||
value: function configureSlot(adSlot) { | ||
var props = arguments.length <= 1 || arguments[1] === undefined ? this.props : arguments[1]; | ||
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.props; | ||
var sizeMapping = props.sizeMapping; | ||
@@ -563,3 +563,3 @@ var attributes = props.attributes; | ||
value: function configure() { | ||
var config = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -566,0 +566,0 @@ Bling._config = _extends({}, Bling._config, config); |
@@ -49,7 +49,7 @@ Object.defineProperty(exports, "__esModule", { | ||
function AdManager() { | ||
var config = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
_classCallCheck(this, AdManager); | ||
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(AdManager).call(this, config)); | ||
var _this = _possibleConstructorReturn(this, (AdManager.__proto__ || Object.getPrototypeOf(AdManager)).call(this, config)); | ||
@@ -264,3 +264,3 @@ _this._adCnt = 0; | ||
value: function syncCorrelator() { | ||
var value = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0]; | ||
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; | ||
@@ -267,0 +267,0 @@ this._syncCorrelator = value; |
@@ -8,6 +8,6 @@ Object.defineProperty(exports, "__esModule", { | ||
var gptVersion = exports.gptVersion = 83; | ||
var gptAPI = exports.gptAPI = [["getVersion", "function"], ["cmd", "object"], ["getEventLog", "function"], ["enableServices", "function"], ["setAdIframeTitle", "function"], ["impl", "object"], ["pubads", "function"], ["defineOutOfPageSlot", "function"], ["defineSlot", "function"], ["defineUnit", "function"], ["destroySlots", "function"], ["display", "function"], ["companionAds", "function"], ["content", "function"], ["debug_log", "object"], ["service_manager_instance", "object"], ["disablePublisherConsole", "function"], ["onPubConsoleJsLoad", "function"], ["sizeMapping", "function"], ["evalScripts", "function"], ["apiReady", "boolean"], ["slot_manager_instance", "object"], ["pubadsReady", "boolean"]]; | ||
var pubadsVersion = exports.pubadsVersion = 84; | ||
var pubadsAPI = exports.pubadsAPI = [["set", "function"], ["get", "function"], ["getAttributeKeys", "function"], ["display", "function"], ["getName", "function"], ["setCookieOptions", "function"], ["setTagForChildDirectedTreatment", "function"], ["clearTagForChildDirectedTreatment", "function"], ["setKidsFriendlyAds", "function"], ["setTargeting", "function"], ["clearTargeting", "function"], ["setCategoryExclusion", "function"], ["clearCategoryExclusions", "function"], ["disableInitialLoad", "function"], ["enableSingleRequest", "function"], ["enableAsyncRendering", "function"], ["enableSyncRendering", "function"], ["setCentering", "function"], ["setPublisherProvidedId", "function"], ["definePassback", "function"], ["defineOutOfPagePassback", "function"], ["refresh", "function"], ["enableVideoAds", "function"], ["setVideoContent", "function"], ["getVideoContent", "function"], ["getCorrelator", "function"], ["setCorrelator", "function"], ["updateCorrelator", "function"], ["isAdRequestFinished", "function"], ["collapseEmptyDivs", "function"], ["clear", "function"], ["setLocation", "function"], ["getVersion", "function"], ["forceExperiment", "function"], ["markAsAmp", "function"], ["setSafeFrameConfig", "function"], ["setForceSafeFrame", "function"], ["markAsGladeControl", "function"], ["getName", "function"], ["getVersion", "function"], ["getSlots", "function"], ["getSlotIdMap", "function"], ["enable", "function"], ["addEventListener", "function"]]; | ||
var slotAPI = exports.slotAPI = [["getPassbackPageUrl", "function"], ["set", "function"], ["get", "function"], ["getAttributeKeys", "function"], ["addService", "function"], ["getName", "function"], ["getAdUnitPath", "function"], ["getSlotElementId", "function"], ["getSlotId", "function"], ["getServices", "function"], ["getSizes", "function"], ["defineSizeMapping", "function"], ["hasWrapperDiv", "function"], ["setClickUrl", "function"], ["getClickUrl", "function"], ["setForceSafeFrame", "function"], ["setCategoryExclusion", "function"], ["clearCategoryExclusions", "function"], ["getCategoryExclusions", "function"], ["setTargeting", "function"], ["clearTargeting", "function"], ["getTargetingMap", "function"], ["getTargeting", "function"], ["getTargetingKeys", "function"], ["getOutOfPage", "function"], ["getAudExtId", "function"], ["gtfcd", "function"], ["setCollapseEmptyDiv", "function"], ["getCollapseEmptyDiv", "function"], ["getDivStartsCollapsed", "function"], ["fetchStarted", "function"], ["getContentUrl", "function"], ["fetchEnded", "function"], ["renderStarted", "function"], ["getResponseInformation", "function"], ["renderEnded", "function"], ["impressionViewable", "function"], ["visibilityChanged", "function"], ["setFirstLook", "function"], ["getFirstLook", "function"], ["getDefinedId", "function"], ["setSafeFrameConfig", "function"]]; | ||
var gptVersion = exports.gptVersion = 95; | ||
var gptAPI = exports.gptAPI = [["getVersion", "function"], ["cmd", "object"], ["getEventLog", "function"], ["enableServices", "function"], ["setAdIframeTitle", "function"], ["impl", "object"], ["pubads", "function"], ["defineOutOfPageSlot", "function"], ["defineSlot", "function"], ["defineUnit", "function"], ["destroySlots", "function"], ["getSlots", "function"], ["display", "function"], ["companionAds", "function"], ["content", "function"], ["debug_log", "object"], ["service_manager_instance", "object"], ["disablePublisherConsole", "function"], ["onPubConsoleJsLoad", "function"], ["openConsole", "function"], ["sizeMapping", "function"], ["evalScripts", "function"], ["apiReady", "boolean"], ["slot_manager_instance", "object"], ["pubadsReady", "boolean"]]; | ||
var pubadsVersion = exports.pubadsVersion = 95; | ||
var pubadsAPI = exports.pubadsAPI = [["set", "function"], ["get", "function"], ["getAttributeKeys", "function"], ["display", "function"], ["getName", "function"], ["setCookieOptions", "function"], ["setTagForChildDirectedTreatment", "function"], ["clearTagForChildDirectedTreatment", "function"], ["setKidsFriendlyAds", "function"], ["setTargeting", "function"], ["clearTargeting", "function"], ["getTargeting", "function"], ["getTargetingKeys", "function"], ["setCategoryExclusion", "function"], ["clearCategoryExclusions", "function"], ["disableInitialLoad", "function"], ["enableSingleRequest", "function"], ["enableAsyncRendering", "function"], ["enableSyncRendering", "function"], ["setCentering", "function"], ["setPublisherProvidedId", "function"], ["definePassback", "function"], ["defineOutOfPagePassback", "function"], ["refresh", "function"], ["enableVideoAds", "function"], ["setVideoContent", "function"], ["getVideoContent", "function"], ["getCorrelator", "function"], ["setCorrelator", "function"], ["updateCorrelator", "function"], ["isAdRequestFinished", "function"], ["collapseEmptyDivs", "function"], ["clear", "function"], ["setLocation", "function"], ["getVersion", "function"], ["forceExperiment", "function"], ["markAsAmp", "function"], ["setSafeFrameConfig", "function"], ["setForceSafeFrame", "function"], ["enableChromeInterventionSignals", "function"], ["markAsGladeControl", "function"], ["markAsGladeOptOut", "function"], ["getName", "function"], ["getVersion", "function"], ["getSlots", "function"], ["getSlotIdMap", "function"], ["enable", "function"], ["addEventListener", "function"]]; | ||
var slotAPI = exports.slotAPI = [["getPassbackPageUrl", "function"], ["set", "function"], ["get", "function"], ["getAttributeKeys", "function"], ["addService", "function"], ["getName", "function"], ["getAdUnitPath", "function"], ["getInstance", "function"], ["getSlotElementId", "function"], ["getSlotId", "function"], ["getServices", "function"], ["getSizes", "function"], ["defineSizeMapping", "function"], ["hasWrapperDiv", "function"], ["setClickUrl", "function"], ["getClickUrl", "function"], ["setForceSafeFrame", "function"], ["setCategoryExclusion", "function"], ["clearCategoryExclusions", "function"], ["getCategoryExclusions", "function"], ["setTargeting", "function"], ["clearTargeting", "function"], ["getTargetingMap", "function"], ["getTargeting", "function"], ["getTargetingKeys", "function"], ["getOutOfPage", "function"], ["getAudExtId", "function"], ["gtfcd", "function"], ["setCollapseEmptyDiv", "function"], ["getCollapseEmptyDiv", "function"], ["getDivStartsCollapsed", "function"], ["fetchStarted", "function"], ["getContentUrl", "function"], ["fetchEnded", "function"], ["renderStarted", "function"], ["getResponseInformation", "function"], ["renderEnded", "function"], ["loaded", "function"], ["impressionViewable", "function"], ["visibilityChanged", "function"], ["setFirstLook", "function"], ["getFirstLook", "function"], ["getDefinedId", "function"], ["getEscapedQemQueryId", "function"], ["setSafeFrameConfig", "function"]]; |
@@ -9,3 +9,3 @@ Object.defineProperty(exports, "__esModule", { | ||
function isInViewport(el) { | ||
var _ref = arguments.length <= 1 || arguments[1] === undefined ? [0, 0] : arguments[1]; | ||
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [0, 0]; | ||
@@ -16,3 +16,3 @@ var _ref2 = _slicedToArray(_ref, 2); | ||
var height = _ref2[1]; | ||
var offset = arguments.length <= 2 || arguments[2] === undefined ? 0 : arguments[2]; | ||
var offset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; | ||
@@ -19,0 +19,0 @@ if (!el || el.nodeType !== 1) { |
@@ -133,3 +133,3 @@ Object.defineProperty(exports, "__esModule", { | ||
var SizeMappingBuilderMock = function SizeMappingBuilderMock() { | ||
var config = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -164,3 +164,3 @@ this.config = config; | ||
var PubAdsServiceMock = function PubAdsServiceMock() { | ||
var config = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -214,3 +214,3 @@ this.config = config; | ||
var CompanionAdsServiceMock = function CompanionAdsServiceMock() { | ||
var config = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -232,3 +232,3 @@ this.config = config; | ||
var ContentServiceMock = function ContentServiceMock() { | ||
var config = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -245,3 +245,3 @@ this.config = config; | ||
var GPTMock = function GPTMock() { | ||
var config = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -248,0 +248,0 @@ this.config = config; |
{ | ||
"name": "react-gpt", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A react display ad component using Google Publisher Tag", | ||
@@ -31,2 +31,3 @@ "main": "lib/index.js", | ||
"src", | ||
"dist", | ||
"lib" | ||
@@ -53,3 +54,6 @@ ], | ||
"chai": "^3.4.1", | ||
"commitizen": "^2.8.1", | ||
"conventional-changelog-cli": "^1.2.0", | ||
"core-js": "^2.2.2", | ||
"cz-conventional-changelog": "^1.1.6", | ||
"eslint": "2.8.0", | ||
@@ -76,3 +80,3 @@ "eslint-config-nfl": "8.0.1", | ||
"querystring": "^0.2.0", | ||
"radium": "^0.17.1", | ||
"radium": "^0.18.1", | ||
"react": "^15.0.1", | ||
@@ -90,2 +94,4 @@ "react-addons-test-utils": "^15.0.1", | ||
"scripts": { | ||
"commit": "git-cz", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", | ||
"build": "npm run clean && npm run compile", | ||
@@ -100,6 +106,11 @@ "build:umd": "NODE_ENV=development webpack src/index.js dist/react-gpt.js", | ||
"pretest": "npm run build", | ||
"prepublish": "npm run build", | ||
"prepublish": "npm run build && npm run build:umd && npm run build:umd:min", | ||
"test": "npm run lint && karma start", | ||
"update-apilist": "node ./scripts/updateAPIList.js" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
} | ||
} |
@@ -5,3 +5,3 @@ // DO NOT MODIFY THIS FILE MANUALLY. | ||
export const gptVersion = 83; | ||
export const gptVersion = 95; | ||
export const gptAPI = [ | ||
@@ -19,2 +19,3 @@ ["getVersion", "function"], | ||
["destroySlots", "function"], | ||
["getSlots", "function"], | ||
["display", "function"], | ||
@@ -27,2 +28,3 @@ ["companionAds", "function"], | ||
["onPubConsoleJsLoad", "function"], | ||
["openConsole", "function"], | ||
["sizeMapping", "function"], | ||
@@ -34,3 +36,3 @@ ["evalScripts", "function"], | ||
]; | ||
export const pubadsVersion = 84; | ||
export const pubadsVersion = 95; | ||
export const pubadsAPI = [ | ||
@@ -48,2 +50,4 @@ ["set", "function"], | ||
["clearTargeting", "function"], | ||
["getTargeting", "function"], | ||
["getTargetingKeys", "function"], | ||
["setCategoryExclusion", "function"], | ||
@@ -75,3 +79,5 @@ ["clearCategoryExclusions", "function"], | ||
["setForceSafeFrame", "function"], | ||
["enableChromeInterventionSignals", "function"], | ||
["markAsGladeControl", "function"], | ||
["markAsGladeOptOut", "function"], | ||
["getName", "function"], | ||
@@ -92,2 +98,3 @@ ["getVersion", "function"], | ||
["getAdUnitPath", "function"], | ||
["getInstance", "function"], | ||
["getSlotElementId", "function"], | ||
@@ -122,2 +129,3 @@ ["getSlotId", "function"], | ||
["renderEnded", "function"], | ||
["loaded", "function"], | ||
["impressionViewable", "function"], | ||
@@ -128,3 +136,4 @@ ["visibilityChanged", "function"], | ||
["getDefinedId", "function"], | ||
["getEscapedQemQueryId", "function"], | ||
["setSafeFrameConfig", "function"] | ||
]; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
2
277353
47
27
5576
3
1