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

iab-vast-parser

Package Overview
Dependencies
Maintainers
5
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iab-vast-parser - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

lib/util/has-value.js

10

lib/factory/companion.js

@@ -21,2 +21,6 @@ 'use strict';

var _hasValue = require('../util/has-value');
var _hasValue2 = _interopRequireDefault(_hasValue);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -44,3 +48,3 @@

}
if ($companion.companionClickThrough) {
if ($companion.companionClickThrough && (0, _hasValue2.default)($companion.companionClickThrough)) {
companion.clickThrough = (0, _click2.default)($companion.companionClickThrough);

@@ -51,3 +55,3 @@ }

(_companion$clickTrack = companion.clickTrackings).push.apply(_companion$clickTrack, _toConsumableArray($companion.companionClickTracking.map(_click2.default)));
(_companion$clickTrack = companion.clickTrackings).push.apply(_companion$clickTrack, _toConsumableArray($companion.companionClickTracking.filter(_hasValue2.default).map(_click2.default)));
}

@@ -57,2 +61,2 @@ (0, _mapTrackingEvents2.default)($companion.trackingEvents, companion.trackingEvents);

};
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZhY3RvcnkvY29tcGFuaW9uLmpzIl0sIm5hbWVzIjpbIiRjb21wYW5pb24iLCJjb21wYW5pb24iLCJpZCIsIndpZHRoIiwiaGVpZ2h0IiwiYXNzZXRXaWR0aCIsImFzc2V0SGVpZ2h0IiwiZXhwYW5kZWRXaWR0aCIsImV4cGFuZGVkSGVpZ2h0IiwiYXBpRnJhbWV3b3JrIiwiYWRTbG90SUQiLCJyZXNvdXJjZSIsImFkUGFyYW1ldGVycyIsIl92YWx1ZSIsImFsdFRleHQiLCJjb21wYW5pb25DbGlja1Rocm91Z2giLCJjbGlja1Rocm91Z2giLCJjb21wYW5pb25DbG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vbkNsaWNrVHJhY2tpbmcpIHtcbiAgICBjb21wYW5pb24uY2xpY2tUcmFja2luZ3MucHVzaChcclxuICAgICAgLi4uJGNvbXBhbmlvbi5jb21wYW5pb25DbGlja1RyYWNraW5nXHJcbiAgICAgIC5maWx0ZXIoaGFzVmFsdWUpXHJcbiAgICAgIC5tYXAoY3JlYXRlQ2xpY2spKVxuICB9XG4gIG1hcFRyYWNraW5nRXZlbnRzKCRjb21wYW5pb24udHJhY2tpbmdFdmVudHMsIGNvbXBhbmlvbi50cmFja2luZ0V2ZW50cylcbiAgcmV0dXJuIGNvbXBhbmlvblxufVxuIl19

@@ -17,2 +17,6 @@ 'use strict';

var _hasValue = require('../util/has-value');
var _hasValue2 = _interopRequireDefault(_hasValue);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -34,3 +38,3 @@

if ($icon.iconClicks) {
if ($icon.iconClicks.iconClickThrough) {
if ($icon.iconClicks.iconClickThrough && (0, _hasValue2.default)($icon.iconClicks.iconClickThrough)) {
icon.clicks.clickThrough = (0, _click2.default)($icon.iconClicks.iconClickThrough);

@@ -41,3 +45,3 @@ }

(_icon$clicks$clickTra = icon.clicks.clickTrackings).push.apply(_icon$clicks$clickTra, _toConsumableArray($icon.iconClicks.iconClickTracking.map(_click2.default)));
(_icon$clicks$clickTra = icon.clicks.clickTrackings).push.apply(_icon$clicks$clickTra, _toConsumableArray($icon.iconClicks.iconClickTracking.filter(_hasValue2.default).map(_click2.default)));
}

@@ -48,6 +52,6 @@ }

(_icon$viewTrackings = icon.viewTrackings).push.apply(_icon$viewTrackings, _toConsumableArray($icon.iconViewTracking.map(_click2.default)));
(_icon$viewTrackings = icon.viewTrackings).push.apply(_icon$viewTrackings, _toConsumableArray($icon.iconViewTracking.filter(_hasValue2.default).map(_click2.default)));
}
return icon;
};
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZhY3RvcnkvaWNvbi5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vcmsgPSAkaWNvbi5hcGlGcmFtZXdvcmtcbiAgaWNvbi5yZXNvdXJjZSA9IGNyZWF0ZVJlc291cmNlKCRpY29uKVxuICBpZiAoJGljb24uaWNvbkNsaWNrcykge1xuICAgIGlmICgkaWNvbi5pY29uQ2xpY2tzLmljb25DbGlja1Rocm91Z2gpIHtcbiAgICAgIGljb24uY2xpY2tzLmNsaWNrVGhyb3VnaCA9IGNyZWF0ZUNsaWNrKCRpY29uLmljb25DbGlja3MuaWNvbkNsaWNrVGhyb3VnaClcbiAgICB9XG4gICAgaWYgKCRpY29uLmljb25DbGlja3MuaWNvbkNsaWNrVHJhY2tpbmcpIHtcbiAgICAgIGljb24uY2xpY2tzLmNsaWNrVHJhY2tpbmdzLnB1c2goLi4uJGljb24uaWNvbkNsaWNrcy5pY29uQ2xpY2tUcmFja2luZy5tYXAoY3JlYXRlQ2xpY2spKVxuICAgIH1cbiAgfVxuICBpZiAoJGljb24uaWNvblZpZXdUcmFja2luZykge1xuICAgIGljb24udmlld1RyYWNraW5ncy5wdXNoKC4uLiRpY29uLmljb25WaWV3VHJhY2tpbmcubWFwKGNyZWF0ZUNsaWNrKSlcbiAgfVxuICByZXR1cm4gaWNvblxufVxuIl19
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZhY3RvcnkvaWNvbi5qcyJdLCJuYW1lcyI6WyIkaWNvbiIsImljb24iLCJwcm9ncmFtIiwid2lkdGgiLCJoZWlnaHQiLCJ4UG9zaXRpb24iLCJ5UG9zaXRpb24iLCJkdXJhdGlvbiIsIm9mZnNldCIsImFwaUZyYW1ld29yayIsInJlc291cmNlIiwiaWNvbkNsaWNrcyIsImljb25DbGlja1Rocm91Z2giLCJjbGlja3MiLCJjbGlja1Rocm91Z2giLCJpY29uQ2xpY2tUcmFja2luZyIsImNsaWNrVHJhY2tpbmdzIiwicHVzaCIsImZpbHRlciIsIm1hcCIsImljb25WaWV3VHJhY2tpbmci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hhc1ZhbHVlKCRpY29uLmljb25DbGlja3MuaWNvbkNsaWNrVGhyb3VnaCkpIHtcbiAgICAgIGljb24uY2xpY2tzLmNsaWNrVGhyb3VnaCA9IGNyZWF0ZUNsaWNrKCRpY29uLmljb25DbGlja3MuaWNvbkNsaWNrVGhyb3VnaClcbiAgICB9XG4gICAgaWYgKCRpY29uLmljb25DbGlja3MuaWNvbkNsaWNrVHJhY2tpbmcpIHtcbiAgICAgIGljb24uY2xpY2tzLmNsaWNrVHJhY2tpbmdzLnB1c2goXHJcbiAgICAgICAgLi4uJGljb24uaWNvbkNsaWNrcy5pY29uQ2xpY2tUcmFja2luZ1xyXG4gICAgICAgIC5maWx0ZXIoaGFzVmFsdWUpXHJcbiAgICAgICAgLm1hcChjcmVhdGVDbGljaykpXG4gICAgfVxuICB9XG4gIGlmICgkaWNvbi5pY29uVmlld1RyYWNraW5nKSB7XG4gICAgaWNvbi52aWV3VHJhY2tpbmdzLnB1c2goXHJcbiAgICAgIC4uLiRpY29uLmljb25WaWV3VHJhY2tpbmdcclxuICAgICAgLmZpbHRlcihoYXNWYWx1ZSlcclxuICAgICAgLm1hcChjcmVhdGVDbGljaykpXG4gIH1cbiAgcmV0dXJuIGljb25cbn1cbiJdfQ==

@@ -37,2 +37,6 @@ 'use strict';

var _hasValue = require('../util/has-value');
var _hasValue2 = _interopRequireDefault(_hasValue);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -43,3 +47,3 @@

var mapVideoClicks = function mapVideoClicks($videoClicks, videoClicks) {
if ($videoClicks.clickThrough) {
if ($videoClicks.clickThrough && (0, _hasValue2.default)($videoClicks.clickThrough)) {
videoClicks.clickThrough = (0, _click2.default)($videoClicks.clickThrough);

@@ -50,3 +54,3 @@ }

(_videoClicks$clickTra = videoClicks.clickTrackings).push.apply(_videoClicks$clickTra, _toConsumableArray($videoClicks.clickTracking.map(_click2.default)));
(_videoClicks$clickTra = videoClicks.clickTrackings).push.apply(_videoClicks$clickTra, _toConsumableArray($videoClicks.clickTracking.filter(_hasValue2.default).map(_click2.default)));
}

@@ -56,3 +60,3 @@ if ($videoClicks.customClick) {

(_videoClicks$customCl = videoClicks.customClicks).push.apply(_videoClicks$customCl, _toConsumableArray($videoClicks.customClick.map(_click2.default)));
(_videoClicks$customCl = videoClicks.customClicks).push.apply(_videoClicks$customCl, _toConsumableArray($videoClicks.customClick.filter(_hasValue2.default).map(_click2.default)));
}

@@ -90,2 +94,2 @@ };

};
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZhY3RvcnkvbGluZWFyLmpzIl0sIm5hbWVzIjpbIm1hcFZpZGVvQ2xpY2tzIiwiJHZpZGVvQ2xpY2tzIiwidmlkZW9DbGlja3MiLCJjbGlja1Rocm91Z2giLCJjbGlja1RyYWNraW5nIiwiY2xpY2tUcmFja2luZ3MiLCJwdXNoIiwibWFwIiwiY3VzdG9tQ2xpY2siLCJjdXN0b21DbGlja3MiLCIkY3JlYXRpdmUiLCJvcHRpb25zIiwiJGxpbmVhciIsImxpbmVhciIsInNraXBvZmZzZXQiLCJhZFBhcmFtZXRlcnMiLCJfdmFsdWUiLCJkdXJhdGlvbiIsIm1lZGlhRmlsZXMiLCJtZWRpYUZpbGUiLCJ0cmFja2luZ0V2ZW50cyIsImljb25zIiwiaWNvbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7Ozs7O0FBRUEsSUFBTUEsaUJBQWlCLFNBQWpCQSxjQUFpQixDQUFDQyxZQUFELEVBQWVDLFdBQWYsRUFBK0I7QUFDcEQsTUFBSUQsYUFBYUUsWUFBakIsRUFBK0I7QUFDN0JELGdCQUFZQyxZQUFaLEdBQTJCLHFCQUFZRixhQUFhRSxZQUF6QixDQUEzQjtBQUNEO0FBQ0QsTU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29uKSB7XG4gICAgbGluZWFyLmljb25zLnB1c2goLi4uJGxpbmVhci5pY29ucy5pY29uLm1hcChjcmVhdGVJY29uKSlcbiAgfVxuICByZXR1cm4gbGluZWFyXG59XG4iXX0=

@@ -17,2 +17,6 @@ 'use strict';

var _hasValue = require('../util/has-value');
var _hasValue2 = _interopRequireDefault(_hasValue);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -34,3 +38,3 @@

nonLinear.resource = (0, _resource2.default)($nonLinear);
if ($nonLinear.nonLinearClickThrough) {
if ($nonLinear.nonLinearClickThrough && (0, _hasValue2.default)($nonLinear.nonLinearClickThrough)) {
nonLinear.clickThrough = (0, _click2.default)($nonLinear.nonLinearClickThrough);

@@ -41,3 +45,3 @@ }

(_nonLinear$clickTrack = nonLinear.clickTrackings).push.apply(_nonLinear$clickTrack, _toConsumableArray($nonLinear.nonLinearClickTracking.map(_click2.default)));
(_nonLinear$clickTrack = nonLinear.clickTrackings).push.apply(_nonLinear$clickTrack, _toConsumableArray($nonLinear.nonLinearClickTracking.filter(_hasValue2.default).map(_click2.default)));
}

@@ -49,2 +53,2 @@ if ($nonLinear.adParameters) {

};
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZhY3Rvcnkvbm9uLWxpbmVhci5qcyJdLCJuYW1lcyI6WyIkbm9uTGluZWFyIiwibm9uTGluZWFyIiwiaWQiLCJ3aWR0aCIsImhlaWdodCIsImV4cGFuZGVkV2lkdGgiLCJleHBhbmRlZEhlaWdodCIsInNjYWxhYmxlIiwibWFpbnRhaW5Bc3BlY3RSYXRpbyIsIm1pblN1Z2dlc3RlZER1cmF0aW9uIiwiYXBpRnJhbWV3b3JrIiwicmVzb3VyY2UiLCJub25MaW5lYXJDbGlja1Rocm91Z2giLCJjbGlja1Rocm91Z2giLCJub25MaW5lYXJDbGlja1RyYWNraW5nIiwiY2xpY2tUcmFja2luZ3MiLCJwdXNoI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rVGhyb3VnaCA9IGNyZWF0ZUNsaWNrKCRub25MaW5lYXIubm9uTGluZWFyQ2xpY2tUaHJvdWdoKVxuICB9XG4gIGlmICgkbm9uTGluZWFyLm5vbkxpbmVhckNsaWNrVHJhY2tpbmcpIHtcbiAgICBub25MaW5lYXIuY2xpY2tUcmFja2luZ3MucHVzaChcclxuICAgICAgLi4uJG5vbkxpbmVhci5ub25MaW5lYXJDbGlja1RyYWNraW5nXHJcbiAgICAgIC5maWx0ZXIoaGFzVmFsdWUpXHJcbiAgICAgIC5tYXAoY3JlYXRlQ2xpY2spKVxuICB9XG4gIGlmICgkbm9uTGluZWFyLmFkUGFyYW1ldGVycykge1xuICAgIG5vbkxpbmVhci5hZFBhcmFtZXRlcnMgPSAkbm9uTGluZWFyLmFkUGFyYW1ldGVycy5fdmFsdWVcbiAgfVxuICByZXR1cm4gbm9uTGluZWFyXG59XG4iXX0=
{
"name": "iab-vast-parser",
"version": "0.5.0",
"version": "0.5.1",
"description": "Parses IAB VAST tags into iab-vast-model objects.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,2 +5,3 @@ import {Companion} from 'iab-vast-model'

import mapTrackingEvents from '../util/map-tracking-events'
import hasValue from '../util/has-value'

@@ -25,7 +26,10 @@ export default ($companion) => {

}
if ($companion.companionClickThrough) {
if ($companion.companionClickThrough && hasValue($companion.companionClickThrough)) {
companion.clickThrough = createClick($companion.companionClickThrough)
}
if ($companion.companionClickTracking) {
companion.clickTrackings.push(...$companion.companionClickTracking.map(createClick))
companion.clickTrackings.push(
...$companion.companionClickTracking
.filter(hasValue)
.map(createClick))
}

@@ -32,0 +36,0 @@ mapTrackingEvents($companion.trackingEvents, companion.trackingEvents)

import {Icon} from 'iab-vast-model'
import createResource from './resource'
import createClick from './click'
import hasValue from '../util/has-value'

@@ -17,13 +18,19 @@ export default ($icon) => {

if ($icon.iconClicks) {
if ($icon.iconClicks.iconClickThrough) {
if ($icon.iconClicks.iconClickThrough && hasValue($icon.iconClicks.iconClickThrough)) {
icon.clicks.clickThrough = createClick($icon.iconClicks.iconClickThrough)
}
if ($icon.iconClicks.iconClickTracking) {
icon.clicks.clickTrackings.push(...$icon.iconClicks.iconClickTracking.map(createClick))
icon.clicks.clickTrackings.push(
...$icon.iconClicks.iconClickTracking
.filter(hasValue)
.map(createClick))
}
}
if ($icon.iconViewTracking) {
icon.viewTrackings.push(...$icon.iconViewTracking.map(createClick))
icon.viewTrackings.push(
...$icon.iconViewTracking
.filter(hasValue)
.map(createClick))
}
return icon
}

@@ -9,12 +9,19 @@ import {Linear} from 'iab-vast-model'

import isNonEmptyString from '../util/is-non-empty-string'
import hasValue from '../util/has-value'
const mapVideoClicks = ($videoClicks, videoClicks) => {
if ($videoClicks.clickThrough) {
if ($videoClicks.clickThrough && hasValue($videoClicks.clickThrough)) {
videoClicks.clickThrough = createClick($videoClicks.clickThrough)
}
if ($videoClicks.clickTracking) {
videoClicks.clickTrackings.push(...$videoClicks.clickTracking.map(createClick))
videoClicks.clickTrackings.push(
...$videoClicks.clickTracking
.filter(hasValue)
.map(createClick))
}
if ($videoClicks.customClick) {
videoClicks.customClicks.push(...$videoClicks.customClick.map(createClick))
videoClicks.customClicks.push(
...$videoClicks.customClick
.filter(hasValue)
.map(createClick))
}

@@ -21,0 +28,0 @@ }

import {NonLinear} from 'iab-vast-model'
import createResource from './resource'
import createClick from './click'
import hasValue from '../util/has-value'

@@ -17,7 +18,10 @@ export default ($nonLinear) => {

nonLinear.resource = createResource($nonLinear)
if ($nonLinear.nonLinearClickThrough) {
if ($nonLinear.nonLinearClickThrough && hasValue($nonLinear.nonLinearClickThrough)) {
nonLinear.clickThrough = createClick($nonLinear.nonLinearClickThrough)
}
if ($nonLinear.nonLinearClickTracking) {
nonLinear.clickTrackings.push(...$nonLinear.nonLinearClickTracking.map(createClick))
nonLinear.clickTrackings.push(
...$nonLinear.nonLinearClickTracking
.filter(hasValue)
.map(createClick))
}

@@ -24,0 +28,0 @@ if ($nonLinear.adParameters) {

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