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

@snowplow/browser-plugin-ad-tracking

Package Overview
Dependencies
Maintainers
3
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowplow/browser-plugin-ad-tracking - npm Package Compare versions

Comparing version 3.1.5 to 3.1.6

2

dist/index.module.js
/*!
* Ad tracking for Snowplow v3.1.5 (http://bit.ly/sp-js)
* Ad tracking for Snowplow v3.1.6 (http://bit.ly/sp-js)
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -4,0 +4,0 @@ * Licensed under BSD-3-Clause

/*!
* Ad tracking for Snowplow v3.1.5 (http://bit.ly/sp-js)
* Ad tracking for Snowplow v3.1.6 (http://bit.ly/sp-js)
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -39,3 +39,3 @@ * Licensed under BSD-3-Clause

/*!
* Core functionality for Snowplow JavaScript trackers v3.1.5 (http://bit.ly/sp-js)
* Core functionality for Snowplow JavaScript trackers v3.1.6 (http://bit.ly/sp-js)
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -368,3 +368,3 @@ * Licensed under BSD-3-Clause

/*!
* Core functionality for Snowplow Browser trackers v3.1.5 (http://bit.ly/sp-js)
* Core functionality for Snowplow Browser trackers v3.1.6 (http://bit.ly/sp-js)
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -371,0 +371,0 @@ * Licensed under BSD-3-Clause

/*!
* Ad tracking for Snowplow v3.1.5 (http://bit.ly/sp-js)
* Ad tracking for Snowplow v3.1.6 (http://bit.ly/sp-js)
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -7,3 +7,3 @@ * Licensed under BSD-3-Clause

"use strict";!function(n,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((n="undefined"!=typeof globalThis?globalThis:n||self).snowplowAdTracking={})}(this,(function(n){function o(n,o,e){if(e||2===arguments.length)for(var t,r=0,c=o.length;r<c;r++)!t&&r in o||(t||(t=Array.prototype.slice.call(o,0,r)),t[r]=o[r]);return n.concat(t||o)}function e(n){var o=n.event;n=o.schema;var e=o.data;return o=function(){var n,o={},e=[],t=[],r=function(n,e){null!=e&&""!==e&&(o[n]=e)};return{add:r,addDict:function(n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&r(o,n[o])},addJson:function(n,o,r){var c;if(c=r)n:{if(null!=r&&(r.constructor==={}.constructor||r.constructor===[].constructor))for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){c=!0;break n}c=!1}c&&(n={keyIfEncoded:n,keyIfNotEncoded:o,json:r},t.push(n),e.push(n))},getPayload:function(){return o},getJson:function(){return e},withJsonProcessor:function(o){n=o},build:function(){return null==n||n(this,t),o}}}(),n={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:n,data:e}},o.add("e","ue"),o.addJson("ue_px","ue_pr",n),o}function t(n,o){void 0===o&&(o={});var e,t={};for(e in n)(o[e]||null!==n[e]&&void 0!==n[e])&&(t[e]=n[e]);return t}function r(n,o,e){try{var t=null!=n?n:Object.keys(o);n=[];for(var r=0;r<t.length;r++){var c=t[r];o.hasOwnProperty(c)?n.push(o[c]):i.warn(c+" not configured")}n.forEach(e)}catch(n){i.error("Function failed",n)}}var c,a;(a=c||(c={}))[a.none=0]="none",a[a.error=1]="error",a[a.warn=2]="warn",a[a.debug=3]="debug",a[a.info=4]="info";var i=function(n){return void 0===n&&(n=c.warn),{setLogLevel:function(o){n=c[o]?o:c.warn},warn:function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];n>=c.warn&&"undefined"!=typeof console&&(a="Snowplow: "+e,t?console.warn.apply(console,o([a+"\n",t],r)):console.warn.apply(console,o([a],r)))},error:function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];n>=c.error&&"undefined"!=typeof console&&(a="Snowplow: "+e+"\n",t?console.error.apply(console,o([a+"\n",t],r)):console.error.apply(console,o([a],r)))},debug:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];n>=c.debug&&"undefined"!=typeof console&&console.debug.apply(console,o(["Snowplow: "+e],t))},info:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];n>=c.info&&"undefined"!=typeof console&&console.info.apply(console,o(["Snowplow: "+e],t))}}}(),s={};n.AdTrackingPlugin=function(){return{activateBrowserPlugin:function(n){s[n.id]=n}}},n.trackAdClick=function(n,o){void 0===o&&(o=Object.keys(s)),r(o,s,(function(o){o.core.track(function(n){return e({event:n={schema:"iglu:com.snowplowanalytics.snowplow/ad_click/jsonschema/1-0-0",data:t({targetUrl:n.targetUrl,clickId:n.clickId,costModel:n.costModel,cost:n.cost,bannerId:n.bannerId,zoneId:n.zoneId,impressionId:n.impressionId,advertiserId:n.advertiserId,campaignId:n.campaignId})}})}(n),n.context,n.timestamp)}))},n.trackAdConversion=function(n,o){void 0===o&&(o=Object.keys(s)),r(o,s,(function(o){o.core.track(function(n){return e({event:n={schema:"iglu:com.snowplowanalytics.snowplow/ad_conversion/jsonschema/1-0-0",data:t({conversionId:n.conversionId,costModel:n.costModel,cost:n.cost,category:n.category,action:n.action,property:n.property,initialValue:n.initialValue,advertiserId:n.advertiserId,campaignId:n.campaignId})}})}(n),n.context,n.timestamp)}))},n.trackAdImpression=function(n,o){void 0===o&&(o=Object.keys(s)),r(o,s,(function(o){o.core.track(function(n){return e({event:n={schema:"iglu:com.snowplowanalytics.snowplow/ad_impression/jsonschema/1-0-0",data:t({impressionId:n.impressionId,costModel:n.costModel,cost:n.cost,targetUrl:n.targetUrl,bannerId:n.bannerId,zoneId:n.zoneId,advertiserId:n.advertiserId,campaignId:n.campaignId})}})}(n),n.context,n.timestamp)}))},Object.defineProperty(n,"__esModule",{value:!0})}));
"use strict";!function(n,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((n="undefined"!=typeof globalThis?globalThis:n||self).snowplowAdTracking={})}(this,(function(n){function o(n,o,e){if(e||2===arguments.length)for(var t,r=0,c=o.length;r<c;r++)!t&&r in o||(t||(t=Array.prototype.slice.call(o,0,r)),t[r]=o[r]);return n.concat(t||o)}function e(n){var o=n.event;n=o.schema;var e=o.data;return o=function(){var n,o={},e=[],t=[],r=function(n,e){null!=e&&""!==e&&(o[n]=e)};return{add:r,addDict:function(n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&r(o,n[o])},addJson:function(n,o,r){var c;if(c=r)n:{if(null!=r&&(r.constructor==={}.constructor||r.constructor===[].constructor))for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){c=!0;break n}c=!1}c&&(n={keyIfEncoded:n,keyIfNotEncoded:o,json:r},t.push(n),e.push(n))},getPayload:function(){return o},getJson:function(){return e},withJsonProcessor:function(o){n=o},build:function(){return null==n||n(this,t),o}}}(),n={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:n,data:e}},o.add("e","ue"),o.addJson("ue_px","ue_pr",n),o}function t(n,o){void 0===o&&(o={});var e,t={};for(e in n)(o[e]||null!==n[e]&&void 0!==n[e])&&(t[e]=n[e]);return t}function r(n,o,e){try{var t=null!=n?n:Object.keys(o);n=[];for(var r=0;r<t.length;r++){var c=t[r];o.hasOwnProperty(c)?n.push(o[c]):i.warn(c+" not configured")}n.forEach(e)}catch(n){i.error("Function failed",n)}}var c,a;(a=c||(c={}))[a.none=0]="none",a[a.error=1]="error",a[a.warn=2]="warn",a[a.debug=3]="debug",a[a.info=4]="info";var i=function(n){return void 0===n&&(n=c.warn),{setLogLevel:function(o){n=c[o]?o:c.warn},warn:function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];n>=c.warn&&"undefined"!=typeof console&&(a="Snowplow: "+e,t?console.warn.apply(console,o([a+"\n",t],r)):console.warn.apply(console,o([a],r)))},error:function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];n>=c.error&&"undefined"!=typeof console&&(a="Snowplow: "+e+"\n",t?console.error.apply(console,o([a+"\n",t],r)):console.error.apply(console,o([a],r)))},debug:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];n>=c.debug&&"undefined"!=typeof console&&console.debug.apply(console,o(["Snowplow: "+e],t))},info:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];n>=c.info&&"undefined"!=typeof console&&console.info.apply(console,o(["Snowplow: "+e],t))}}}(),s={};n.AdTrackingPlugin=function(){return{activateBrowserPlugin:function(n){s[n.id]=n}}},n.trackAdClick=function(n,o){void 0===o&&(o=Object.keys(s)),r(o,s,(function(o){var r=(o=o.core).track,c={schema:"iglu:com.snowplowanalytics.snowplow/ad_click/jsonschema/1-0-0",data:t({targetUrl:n.targetUrl,clickId:n.clickId,costModel:n.costModel,cost:n.cost,bannerId:n.bannerId,zoneId:n.zoneId,impressionId:n.impressionId,advertiserId:n.advertiserId,campaignId:n.campaignId})};c=e({event:c}),r.call(o,c,n.context,n.timestamp)}))},n.trackAdConversion=function(n,o){void 0===o&&(o=Object.keys(s)),r(o,s,(function(o){var r=(o=o.core).track,c={schema:"iglu:com.snowplowanalytics.snowplow/ad_conversion/jsonschema/1-0-0",data:t({conversionId:n.conversionId,costModel:n.costModel,cost:n.cost,category:n.category,action:n.action,property:n.property,initialValue:n.initialValue,advertiserId:n.advertiserId,campaignId:n.campaignId})};c=e({event:c}),r.call(o,c,n.context,n.timestamp)}))},n.trackAdImpression=function(n,o){void 0===o&&(o=Object.keys(s)),r(o,s,(function(o){var r=(o=o.core).track,c={schema:"iglu:com.snowplowanalytics.snowplow/ad_impression/jsonschema/1-0-0",data:t({impressionId:n.impressionId,costModel:n.costModel,cost:n.cost,targetUrl:n.targetUrl,bannerId:n.bannerId,zoneId:n.zoneId,advertiserId:n.advertiserId,campaignId:n.campaignId})};c=e({event:c}),r.call(o,c,n.context,n.timestamp)}))},Object.defineProperty(n,"__esModule",{value:!0})}));
//# sourceMappingURL=index.umd.min.js.map
{
"name": "@snowplow/browser-plugin-ad-tracking",
"version": "3.1.5",
"version": "3.1.6",
"description": "Ad tracking for Snowplow",

@@ -21,7 +21,8 @@ "homepage": "http://bit.ly/sp-js",

"dependencies": {
"@snowplow/browser-tracker-core": "3.1.5",
"@snowplow/tracker-core": "3.1.5",
"@snowplow/browser-tracker-core": "3.1.6",
"@snowplow/tracker-core": "3.1.6",
"tslib": "^2.3.0"
},
"devDependencies": {
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
"@rollup/plugin-commonjs": "^17.1.0",

@@ -46,3 +47,3 @@ "@rollup/plugin-node-resolve": "^11.2.0",

"peerDependencies": {
"@snowplow/browser-tracker": "~3.1.5"
"@snowplow/browser-tracker": "~3.1.6"
},

@@ -49,0 +50,0 @@ "scripts": {

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