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

@snowplow/browser-tracker

Package Overview
Dependencies
Maintainers
0
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowplow/browser-tracker - npm Package Compare versions

Comparing version 3.24.5 to 3.24.6

2

dist/index.module.js
/*!
* Browser tracker for Snowplow v3.24.5 (http://bit.ly/sp-js)
* Browser tracker for Snowplow v3.24.6 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang

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

/*!
* Browser tracker for Snowplow v3.24.5 (http://bit.ly/sp-js)
* Browser tracker for Snowplow v3.24.6 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang

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

Math.round((new Date).getTime()/1E3)}function zc(a,b,c){var e=a[9];return{userId:c?"00000000-0000-0000-0000-000000000000":a[1],sessionId:a[6],eventIndex:a[10],sessionIndex:a[3],previousSessionId:c?null:a[7]||null,storageMechanism:"localStorage"==b?"LOCAL_STORAGE":"COOKIE_1",firstEventId:a[8]||null,firstEventTimestamp:e?(new Date(e)).toISOString():null}}function qd(){if(!Ac&&document&&document.body&&document.documentElement){Ac=!0;var a=new ResizeObserver(function(b){for(var c=0;c<b.length;c++){var e=
b[c];if(e.target===document.body||e.target===document.documentElement)ib=Cb()}});a.observe(document.body);a.observe(document.documentElement)}}function Db(){if(!("ResizeObserver"in window))return Cb();ib||(ib=Cb());qd();return ib}function Cb(){var a=Eb;if("innerWidth"in window){var b=window.innerWidth;var c=window.innerHeight}else c=document.documentElement||document.body,b=c.clientWidth,c=c.clientHeight;b=0<=b&&0<=c?b+Va+c:null;a=a(b);b=Eb;var e=document.documentElement,f=document.body;c=Math.max(e.clientWidth,
b[c];if(e.target===document.body||e.target===document.documentElement)ib=Cb()}});a.observe(document.body);a.observe(document.documentElement)}}function Db(){if(!("ResizeObserver"in window))return Cb();ib||(ib=Cb());qd();return ib}function Cb(){var a=Eb;if("innerWidth"in window){var b=window.innerWidth;var c=window.innerHeight}else c=document.documentElement||document.body,b=c.clientWidth,c=c.clientHeight;a=a(Math.max(0,b)+Va+Math.max(0,c));b=Eb;var e=document.documentElement,f=document.body;c=Math.max(e.clientWidth,
e.offsetWidth,e.scrollWidth);e=Math.max(e.clientHeight,e.offsetHeight,e.scrollHeight,f?Math.max(f.offsetHeight,f.scrollHeight):0);c=isNaN(c)||isNaN(e)?"":c+Va+e;return{viewport:a,documentSize:b(c),resolution:Eb(screen.width+Va+screen.height),colorDepth:screen.colorDepth,devicePixelRatio:window.devicePixelRatio,cookiesEnabled:window.navigator.cookieEnabled,online:window.navigator.onLine,browserLanguage:window.navigator.language||window.navigator.userLanguage,documentLanguage:document.documentElement.lang,

@@ -90,7 +90,7 @@ webdriver:window.navigator.webdriver,deviceMemory:window.navigator.deviceMemory,hardwareConcurrency:window.navigator.hardwareConcurrency}}function Eb(a){return a&&a.split(Va).map(function(b){return Math.floor(Number(b))}).join(Va)}function rd(a,b,c,e,f,g){void 0===g&&(g={});var h=[];a=function(t,q,z,w,r,k){function A(){Ba=yc(window.location.hostname,window.location.href,zb());Ba[1]!==ba&&(Wa=zb(ba));Bc=xc(Ba[0]);ba=Ba[1]}function L(d){return function(l){var p=l.currentTarget;l=kd(d,sd,{domainUserId:jb,

function(b){b.disableActivityTracking()})};x.disableActivityTrackingCallback=function(a){D(a,function(b){b.disableActivityTrackingCallback()})};x.disableAnonymousTracking=function(a,b){D(b,function(c){c.disableAnonymousTracking(a)})};x.discardBrace=function(a,b){D(b,function(c){c.discardBrace(a)})};x.discardHashTag=function(a,b){D(b,function(c){c.discardHashTag(a)})};x.enableActivityTracking=function(a,b){D(b,function(c){c.enableActivityTracking(a)})};x.enableActivityTrackingCallback=function(a,b){D(b,
function(c){c.enableActivityTrackingCallback(a)})};x.enableAnonymousTracking=function(a,b){D(b,function(c){c.enableAnonymousTracking(a)})};x.flushBuffer=function(a,b){D(b,function(c){c.flushBuffer(a)})};x.newSession=function(a){D(a,function(b){b.newSession()})};x.newTracker=function(a,b,c){void 0===c&&(c={});if(Xc){var e="js-".concat("3.24.5");Ya.hasOwnProperty(a)?a=null:(Ya[a]=rd(a,a,e,b,Xc,c),a=Ya[a]);return a}};x.preservePageViewId=function(a){D(a,function(b){b.preservePageViewId()})};x.removeGlobalContexts=
function(c){c.enableActivityTrackingCallback(a)})};x.enableAnonymousTracking=function(a,b){D(b,function(c){c.enableAnonymousTracking(a)})};x.flushBuffer=function(a,b){D(b,function(c){c.flushBuffer(a)})};x.newSession=function(a){D(a,function(b){b.newSession()})};x.newTracker=function(a,b,c){void 0===c&&(c={});if(Xc){var e="js-".concat("3.24.6");Ya.hasOwnProperty(a)?a=null:(Ya[a]=rd(a,a,e,b,Xc,c),a=Ya[a]);return a}};x.preservePageViewId=function(a){D(a,function(b){b.preservePageViewId()})};x.removeGlobalContexts=
function(a,b){D(b,function(c){c.core.removeGlobalContexts(a)})};x.setBufferSize=function(a,b){D(b,function(c){c.setBufferSize(a)})};x.setCollectorUrl=function(a,b){D(b,function(c){c.setCollectorUrl(a)})};x.setCookiePath=function(a,b){D(b,function(c){c.setCookiePath(a)})};x.setCustomUrl=function(a,b){D(b,function(c){c.setCustomUrl(a)})};x.setDocumentTitle=function(a,b){D(b,function(c){c.setDocumentTitle(a)})};x.setOptOutCookie=function(a,b){D(b,function(c){c.setOptOutCookie(a)})};x.setReferrerUrl=
function(a,b){D(b,function(c){c.setReferrerUrl(a)})};x.setUserId=function(a,b){D(b,function(c){c.setUserId(a)})};x.setUserIdFromCookie=function(a,b){D(b,function(c){c.setUserIdFromCookie(a)})};x.setUserIdFromLocation=function(a,b){D(b,function(c){c.setUserIdFromLocation(a)})};x.setUserIdFromReferrer=function(a,b){D(b,function(c){c.setUserIdFromReferrer(a)})};x.setVisitorCookieTimeout=function(a,b){D(b,function(c){c.setVisitorCookieTimeout(a)})};x.trackPageView=function(a,b){D(b,function(c){c.trackPageView(a)})};
x.trackSelfDescribingEvent=function(a,b){D(b,function(c){c=c.core;var e=c.track,f=a.event,g=f.schema,h=f.data;f=Za();g={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:g,data:h}};f.add("e","ue");f.addJson("ue_px","ue_pr",g);e.call(c,f,a.context,a.timestamp)})};x.trackStructEvent=function(a,b){D(b,function(c){c=c.core;var e=c.track,f=a.category,g=a.action,h=a.label,m=a.property,t=a.value,q=Za();q.add("e","se");q.add("se_ca",f);q.add("se_ac",g);q.add("se_la",
h);q.add("se_pr",m);q.add("se_va",null==t?void 0:t.toString());e.call(c,q,a.context,a.timestamp)})};x.updatePageActivity=function(a){D(a,function(b){b.updatePageActivity()})};x.version="3.24.5";Object.defineProperty(x,"__esModule",{value:!0})})
h);q.add("se_pr",m);q.add("se_va",null==t?void 0:t.toString());e.call(c,q,a.context,a.timestamp)})};x.updatePageActivity=function(a){D(a,function(b){b.updatePageActivity()})};x.version="3.24.6";Object.defineProperty(x,"__esModule",{value:!0})})
//# sourceMappingURL=index.umd.min.js.map
{
"name": "@snowplow/browser-tracker",
"version": "3.24.5",
"version": "3.24.6",
"description": "Browser tracker for Snowplow",

@@ -36,4 +36,4 @@ "keywords": [

"tslib": "^2.3.1",
"@snowplow/browser-tracker-core": "3.24.5",
"@snowplow/tracker-core": "3.24.5"
"@snowplow/browser-tracker-core": "3.24.6",
"@snowplow/tracker-core": "3.24.6"
},

@@ -40,0 +40,0 @@ "devDependencies": {

Sorry, the diff of this file is too big to display

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