Skip to content

Commit

Permalink
Release 0.1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
seeden committed Dec 1, 2016
1 parent 2796455 commit 714ec1a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
16 changes: 8 additions & 8 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ var Format = exports.Format = (0, _keymirror2.default)({
var Dimensions = exports.Dimensions = (_Dimensions = {}, _defineProperty(_Dimensions, Format.HORIZONTAL, [[970, 90], [728, 90], [468, 60], [234, 60]]), _defineProperty(_Dimensions, Format.RECTANGLE, [[336, 280], [300, 250], [250, 250], [200, 200], [180, 150], [125, 125]]), _defineProperty(_Dimensions, Format.VERTICAL, [[300, 600], [160, 600], [120, 600], [120, 240]]), _defineProperty(_Dimensions, Format.MOBILE, [[320, 50]]), _defineProperty(_Dimensions, '300x600', [[300, 600], [160, 600]]), _defineProperty(_Dimensions, '336x280', [[336, 280], [300, 250]]), _defineProperty(_Dimensions, '728x90', [[728, 90], [468, 60]]), _defineProperty(_Dimensions, '970x90', [[970, 90], [728, 90], [468, 60]]), _Dimensions);

function prepareDimensions(dimensions) {
var format = arguments.length <= 1 || arguments[1] === undefined ? Format.HORIZONTAL : arguments[1];
var canBeLower = arguments.length <= 2 || arguments[2] === undefined ? true : arguments[2];
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Format.HORIZONTAL;
var canBeLower = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

if (!dimensions || !dimensions.length) {
return Dimensions[format] || [];
Expand Down Expand Up @@ -86,9 +86,9 @@ function initGooglePublisherTag(props) {
googletag.cmd = googletag.cmd || [];
}

var onImpressionViewable = props.onImpressionViewable;
var onSlotRenderEnded = props.onSlotRenderEnded;
var path = props.path;
var onImpressionViewable = props.onImpressionViewable,
onSlotRenderEnded = props.onSlotRenderEnded,
path = props.path;

// Execute callback when the slot is visible in DOM (thrown before 'impressionViewable' )

Expand Down Expand Up @@ -207,9 +207,9 @@ var GooglePublisherTag = function (_Component) {

// filter by min and max width
var windowWidth = window.innerWidth;
var minWindowWidth = props.minWindowWidth;
var maxWindowWidth = props.maxWindowWidth;
var targeting = props.targeting;
var minWindowWidth = props.minWindowWidth,
maxWindowWidth = props.maxWindowWidth,
targeting = props.targeting;


if (minWindowWidth !== -1 && minWindowWidth < windowWidth) {
Expand Down
41 changes: 21 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-google-publisher-tag",
"version": "0.1.16",
"version": "0.1.17",
"description": "Adsense via Google publisher tag for the isomorphic applications",
"author": {
"name": "Zlatko Fedor",
Expand Down Expand Up @@ -37,29 +37,30 @@
"keymirror": "^0.1.1"
},
"devDependencies": {
"babel-cli": "^6.7.5",
"babel-core": "^6.7.6",
"babel-plugin-transform-class-properties": "^6.6.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-stage-0": "^6.5.0",
"babel-preset-stage-1": "^6.5.0",
"babel-preset-react": "^6.5.0",
"babel-eslint": "^6.0.2",
"eslint": "^2.7.0",
"eslint-config-airbnb": "^7.0.0",
"eslint-plugin-jsx-a11y": "^0.6.2",
"eslint-loader": "^1.3.0",
"eslint-plugin-react": "^4.3.0",
"babel-cli": "^6.18.0",
"babel-core": "^6.18.2",
"babel-plugin-transform-class-properties": "^6.19.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-stage-0": "^6.16.0",
"babel-preset-stage-1": "^6.16.0",
"babel-preset-react": "^6.16.0",
"babel-eslint": "^7.1.1",
"eslint": "^3.11.1",
"eslint-config-airbnb": "^13.0.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-loader": "^1.6.1",
"eslint-plugin-react": "^6.7.1",
"eslint-plugin-import": "^2.2.0",
"gulp": "^3.9.1",
"gulp-mocha": "^2.2.0",
"gulp-mocha": "^3.0.1",
"gulp-babel": "^6.1.2",
"gulp-util": "^3.0.7",
"should": "^8.3.0",
"react": "^15.0.1",
"react-dom": "^15.0.1"
"should": "^11.1.1",
"react": "^15.4.1",
"react-dom": "^15.4.1"
},
"peerDependencies": {
"react": "^0.14 || ^15.0.0-rc || ^15.0.0",
"react-dom": "^0.14 || ^15.0.0-rc || ^15.0.0"
"react": "^0.14 || ^15.0.0",
"react-dom": "^0.14 || ^15.0.0"
}
}

0 comments on commit 714ec1a

Please sign in to comment.