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

@snowplow/browser-plugin-debugger

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowplow/browser-plugin-debugger - npm Package Compare versions

Comparing version 3.0.0-beta.3 to 3.0.0-beta.4

8

dist/index.module.js
/*!
* Debugger for Snowplow v3.0.0-beta.3 (http://bit.ly/sp-js)
* Debugger for Snowplow v3.0.0-beta.4 (http://bit.ly/sp-js)
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang

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

var json = jsonForProcessing_1[_i];
LOG.debug(tracker.id + ": " + getJsonType(json) + " JSON", json[2]);
LOG.debug(tracker.id + ": " + getJsonType(json) + " JSON", json.json);
}

@@ -77,3 +77,3 @@ }

function getJsonType(json) {
switch (json[0]) {
switch (json.keyIfEncoded) {
case 'cx':

@@ -84,3 +84,3 @@ return 'Context';

default:
return json[0] + ", " + json[1];
return json.keyIfEncoded + ", " + json.keyIfNotEncoded;
}

@@ -87,0 +87,0 @@ }

/*!
* Debugger for Snowplow v3.0.0-beta.3 (http://bit.ly/sp-js)
* Debugger for Snowplow v3.0.0-beta.4 (http://bit.ly/sp-js)
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang

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

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

@@ -132,8 +132,8 @@ * Licensed under BSD-3-Clause

var json = jsonForProcessing_1[_i];
var str = JSON.stringify(json[2]);
var str = JSON.stringify(json.json);
if (encodeBase64) {
payloadBuilder.add(json[0], base64urlencode(str));
payloadBuilder.add(json.keyIfEncoded, base64urlencode(str));
}
else {
payloadBuilder.add(json[1], str);
payloadBuilder.add(json.keyIfNotEncoded, str);
}

@@ -304,3 +304,3 @@ }

var json = jsonForProcessing_1[_i];
LOG.debug(tracker.id + ": " + getJsonType(json) + " JSON", json[2]);
LOG.debug(tracker.id + ": " + getJsonType(json) + " JSON", json.json);
}

@@ -331,3 +331,3 @@ }

function getJsonType(json) {
switch (json[0]) {
switch (json.keyIfEncoded) {
case 'cx':

@@ -338,3 +338,3 @@ return 'Context';

default:
return json[0] + ", " + json[1];
return json.keyIfEncoded + ", " + json.keyIfNotEncoded;
}

@@ -341,0 +341,0 @@ }

/*!
* Debugger for Snowplow v3.0.0-beta.3 (http://bit.ly/sp-js)
* Debugger for Snowplow v3.0.0-beta.4 (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(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).snowplowAdTracking={})}(this,(function(e){function n(e){if(!e)return e;var n=0,r=0,t=[];if(e){e=unescape(encodeURIComponent(e));do{var o=e.charCodeAt(n++),c=e.charCodeAt(n++),u=e.charCodeAt(n++),a=o<<16|c<<8|u;o=a>>18&63,c=a>>12&63,u=a>>6&63,a&=63,t[r++]=i.charAt(o)+i.charAt(c)+i.charAt(u)+i.charAt(a)}while(n<e.length);n=t.join(""),e=((e=e.length%3)?n.slice(0,e-3):n)+"===".slice(e||3)}return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function r(e){switch(e[0]){case"cx":return"Context";case"ue_px":return"Unstructured event";default:return e[0]+", "+e[1]}}var t,o,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";(o=t||(t={}))[o.none=0]="none",o[o.error=1]="error",o[o.warn=2]="warn",o[o.debug=3]="debug",o[o.info=4]="info",function(e){void 0===e&&(e=t.warn)}(),e.DebuggerPlugin=function(e){function o(e){return function(t,o){if(o.length)for(var u=0;u<o.length;u++){var a=o[u];i.debug(c.id+": "+r(a)+" JSON",a[2])}return function(e){return function(r,t){for(var o=0;o<t.length;o++){var i=t[o],c=JSON.stringify(i[2]);e?r.add(i[0],n(c)):r.add(i[1],c)}t.length=0}}(e)(t,o)}}var i,c;return void 0===e&&(e=t.debug),{logger:function(n){(i=n).setLogLevel(e)},activateBrowserPlugin:function(e){c=e,i.debug(c.id+": Tracker Activated")},beforeTrack:function(e){e.withJsonProcessor(o(c.core.getBase64Encoding())),e=e.build(),i.debug(c.id+": Tracking event",e.e)},afterTrack:function(e){i.debug(c.id+": Tracked event",e)}}},Object.defineProperty(e,"__esModule",{value:!0})}));
"use strict";!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).snowplowAdTracking={})}(this,(function(e){function n(e){if(!e)return e;var n=0,r=0,t=[];if(e){e=unescape(encodeURIComponent(e));do{var o=e.charCodeAt(n++),i=e.charCodeAt(n++),d=e.charCodeAt(n++),u=o<<16|i<<8|d;o=u>>18&63,i=u>>12&63,d=u>>6&63,u&=63,t[r++]=c.charAt(o)+c.charAt(i)+c.charAt(d)+c.charAt(u)}while(n<e.length);n=t.join(""),e=((e=e.length%3)?n.slice(0,e-3):n)+"===".slice(e||3)}return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function r(e){switch(e.keyIfEncoded){case"cx":return"Context";case"ue_px":return"Unstructured event";default:return e.keyIfEncoded+", "+e.keyIfNotEncoded}}var t,o,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";(o=t||(t={}))[o.none=0]="none",o[o.error=1]="error",o[o.warn=2]="warn",o[o.debug=3]="debug",o[o.info=4]="info",function(e){void 0===e&&(e=t.warn)}(),e.DebuggerPlugin=function(e){function o(e){return function(t,o){if(o.length)for(var d=0;d<o.length;d++){var u=o[d];c.debug(i.id+": "+r(u)+" JSON",u.json)}return function(e){return function(r,t){for(var o=0;o<t.length;o++){var c=t[o],i=JSON.stringify(c.json);e?r.add(c.keyIfEncoded,n(i)):r.add(c.keyIfNotEncoded,i)}t.length=0}}(e)(t,o)}}var c,i;return void 0===e&&(e=t.debug),{logger:function(n){(c=n).setLogLevel(e)},activateBrowserPlugin:function(e){i=e,c.debug(i.id+": Tracker Activated")},beforeTrack:function(e){e.withJsonProcessor(o(i.core.getBase64Encoding())),e=e.build(),c.debug(i.id+": Tracking event",e.e)},afterTrack:function(e){c.debug(i.id+": Tracked event",e)}}},Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=index.umd.min.js.map
{
"name": "@snowplow/browser-plugin-debugger",
"version": "3.0.0-beta.3",
"version": "3.0.0-beta.4",
"description": "Debugger for Snowplow",

@@ -24,4 +24,4 @@ "homepage": "http://bit.ly/sp-js",

"dependencies": {
"@snowplow/browser-tracker-core": "3.0.0-beta.3",
"@snowplow/tracker-core": "3.0.0-beta.3",
"@snowplow/browser-tracker-core": "3.0.0-beta.4",
"@snowplow/tracker-core": "3.0.0-beta.4",
"tslib": "^2.1.0"

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

Sorry, the diff of this file is not supported yet

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