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

@snowplow/browser-plugin-performance-timing

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-performance-timing - npm Package Compare versions

Comparing version 3.0.0-beta.1 to 3.0.0-beta.2

61

dist/index.module.js
/*!
* Attaches Performance Timing data to Snowplow events v3.0.0-beta.1 (http://bit.ly/sp-js)
* Attaches Performance Timing data to Snowplow events v3.0.0-beta.2 (http://bit.ly/sp-js)
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -45,3 +45,2 @@ * Licensed under BSD-3-Clause

function PerformanceTimingPlugin() {
var windowAlias = window;
/**

@@ -53,34 +52,34 @@ * Creates a context from the window.performance.timing object

function getPerformanceTimingContext() {
var performance = windowAlias.performance ||
var windowAlias = window, performanceAlias = windowAlias.performance ||
windowAlias.mozPerformance ||
windowAlias.msPerformance ||
windowAlias.webkitPerformance;
if (performance) {
windowAlias.webkitPerformance, performanceTimingAlias = performanceAlias.timing;
if (performanceAlias) {
var performanceTiming = {
navigationStart: performance.timing.navigationStart,
redirectStart: performance.timing.redirectStart,
redirectEnd: performance.timing.redirectEnd,
fetchStart: performance.timing.fetchStart,
domainLookupStart: performance.timing.domainLookupStart,
domainLookupEnd: performance.timing.domainLookupEnd,
connectStart: performance.timing.connectStart,
secureConnectionStart: performance.timing.secureConnectionStart,
connectEnd: performance.timing.connectEnd,
requestStart: performance.timing.requestStart,
responseStart: performance.timing.responseStart,
responseEnd: performance.timing.responseEnd,
unloadEventStart: performance.timing.unloadEventStart,
unloadEventEnd: performance.timing.unloadEventEnd,
domLoading: performance.timing.domLoading,
domInteractive: performance.timing.domInteractive,
domContentLoadedEventStart: performance.timing.domContentLoadedEventStart,
domContentLoadedEventEnd: performance.timing.domContentLoadedEventEnd,
domComplete: performance.timing.domComplete,
loadEventStart: performance.timing.loadEventStart,
loadEventEnd: performance.timing.loadEventEnd,
msFirstPaint: performance.timing.msFirstPaint,
chromeFirstPaint: performance.timing.chromeFirstPaint,
requestEnd: performance.timing.requestEnd,
proxyStart: performance.timing.proxyStart,
proxyEnd: performance.timing.proxyEnd
navigationStart: performanceTimingAlias.navigationStart,
redirectStart: performanceTimingAlias.redirectStart,
redirectEnd: performanceTimingAlias.redirectEnd,
fetchStart: performanceTimingAlias.fetchStart,
domainLookupStart: performanceTimingAlias.domainLookupStart,
domainLookupEnd: performanceTimingAlias.domainLookupEnd,
connectStart: performanceTimingAlias.connectStart,
secureConnectionStart: performanceTimingAlias.secureConnectionStart,
connectEnd: performanceTimingAlias.connectEnd,
requestStart: performanceTimingAlias.requestStart,
responseStart: performanceTimingAlias.responseStart,
responseEnd: performanceTimingAlias.responseEnd,
unloadEventStart: performanceTimingAlias.unloadEventStart,
unloadEventEnd: performanceTimingAlias.unloadEventEnd,
domLoading: performanceTimingAlias.domLoading,
domInteractive: performanceTimingAlias.domInteractive,
domContentLoadedEventStart: performanceTimingAlias.domContentLoadedEventStart,
domContentLoadedEventEnd: performanceTimingAlias.domContentLoadedEventEnd,
domComplete: performanceTimingAlias.domComplete,
loadEventStart: performanceTimingAlias.loadEventStart,
loadEventEnd: performanceTimingAlias.loadEventEnd,
msFirstPaint: performanceTimingAlias.msFirstPaint,
chromeFirstPaint: performanceTimingAlias.chromeFirstPaint,
requestEnd: performanceTimingAlias.requestEnd,
proxyStart: performanceTimingAlias.proxyStart,
proxyEnd: performanceTimingAlias.proxyEnd
};

@@ -87,0 +86,0 @@ return [

/*!
* Attaches Performance Timing data to Snowplow events v3.0.0-beta.1 (http://bit.ly/sp-js)
* Attaches Performance Timing data to Snowplow events v3.0.0-beta.2 (http://bit.ly/sp-js)
* Copyright 2021 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -51,3 +51,2 @@ * Licensed under BSD-3-Clause

function PerformanceTimingPlugin() {
var windowAlias = window;
/**

@@ -59,34 +58,34 @@ * Creates a context from the window.performance.timing object

function getPerformanceTimingContext() {
var performance = windowAlias.performance ||
var windowAlias = window, performanceAlias = windowAlias.performance ||
windowAlias.mozPerformance ||
windowAlias.msPerformance ||
windowAlias.webkitPerformance;
if (performance) {
windowAlias.webkitPerformance, performanceTimingAlias = performanceAlias.timing;
if (performanceAlias) {
var performanceTiming = {
navigationStart: performance.timing.navigationStart,
redirectStart: performance.timing.redirectStart,
redirectEnd: performance.timing.redirectEnd,
fetchStart: performance.timing.fetchStart,
domainLookupStart: performance.timing.domainLookupStart,
domainLookupEnd: performance.timing.domainLookupEnd,
connectStart: performance.timing.connectStart,
secureConnectionStart: performance.timing.secureConnectionStart,
connectEnd: performance.timing.connectEnd,
requestStart: performance.timing.requestStart,
responseStart: performance.timing.responseStart,
responseEnd: performance.timing.responseEnd,
unloadEventStart: performance.timing.unloadEventStart,
unloadEventEnd: performance.timing.unloadEventEnd,
domLoading: performance.timing.domLoading,
domInteractive: performance.timing.domInteractive,
domContentLoadedEventStart: performance.timing.domContentLoadedEventStart,
domContentLoadedEventEnd: performance.timing.domContentLoadedEventEnd,
domComplete: performance.timing.domComplete,
loadEventStart: performance.timing.loadEventStart,
loadEventEnd: performance.timing.loadEventEnd,
msFirstPaint: performance.timing.msFirstPaint,
chromeFirstPaint: performance.timing.chromeFirstPaint,
requestEnd: performance.timing.requestEnd,
proxyStart: performance.timing.proxyStart,
proxyEnd: performance.timing.proxyEnd
navigationStart: performanceTimingAlias.navigationStart,
redirectStart: performanceTimingAlias.redirectStart,
redirectEnd: performanceTimingAlias.redirectEnd,
fetchStart: performanceTimingAlias.fetchStart,
domainLookupStart: performanceTimingAlias.domainLookupStart,
domainLookupEnd: performanceTimingAlias.domainLookupEnd,
connectStart: performanceTimingAlias.connectStart,
secureConnectionStart: performanceTimingAlias.secureConnectionStart,
connectEnd: performanceTimingAlias.connectEnd,
requestStart: performanceTimingAlias.requestStart,
responseStart: performanceTimingAlias.responseStart,
responseEnd: performanceTimingAlias.responseEnd,
unloadEventStart: performanceTimingAlias.unloadEventStart,
unloadEventEnd: performanceTimingAlias.unloadEventEnd,
domLoading: performanceTimingAlias.domLoading,
domInteractive: performanceTimingAlias.domInteractive,
domContentLoadedEventStart: performanceTimingAlias.domContentLoadedEventStart,
domContentLoadedEventEnd: performanceTimingAlias.domContentLoadedEventEnd,
domComplete: performanceTimingAlias.domComplete,
loadEventStart: performanceTimingAlias.loadEventStart,
loadEventEnd: performanceTimingAlias.loadEventEnd,
msFirstPaint: performanceTimingAlias.msFirstPaint,
chromeFirstPaint: performanceTimingAlias.chromeFirstPaint,
requestEnd: performanceTimingAlias.requestEnd,
proxyStart: performanceTimingAlias.proxyStart,
proxyEnd: performanceTimingAlias.proxyEnd
};

@@ -93,0 +92,0 @@ return [

/*!
* Attaches Performance Timing data to Snowplow events v3.0.0-beta.1 (http://bit.ly/sp-js)
* Attaches Performance Timing data to Snowplow events v3.0.0-beta.2 (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(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).snowplowPerformanceTiming={})}(this,(function(t){t.PerformanceTimingPlugin=function(){var t=window;return{contexts:function(){var n=(n=t.performance||t.mozPerformance||t.msPerformance||t.webkitPerformance)?[{schema:"iglu:org.w3/PerformanceTiming/jsonschema/1-0-0",data:{navigationStart:n.timing.navigationStart,redirectStart:n.timing.redirectStart,redirectEnd:n.timing.redirectEnd,fetchStart:n.timing.fetchStart,domainLookupStart:n.timing.domainLookupStart,domainLookupEnd:n.timing.domainLookupEnd,connectStart:n.timing.connectStart,secureConnectionStart:n.timing.secureConnectionStart,connectEnd:n.timing.connectEnd,requestStart:n.timing.requestStart,responseStart:n.timing.responseStart,responseEnd:n.timing.responseEnd,unloadEventStart:n.timing.unloadEventStart,unloadEventEnd:n.timing.unloadEventEnd,domLoading:n.timing.domLoading,domInteractive:n.timing.domInteractive,domContentLoadedEventStart:n.timing.domContentLoadedEventStart,domContentLoadedEventEnd:n.timing.domContentLoadedEventEnd,domComplete:n.timing.domComplete,loadEventStart:n.timing.loadEventStart,loadEventEnd:n.timing.loadEventEnd,msFirstPaint:n.timing.msFirstPaint,chromeFirstPaint:n.timing.chromeFirstPaint,requestEnd:n.timing.requestEnd,proxyStart:n.timing.proxyStart,proxyEnd:n.timing.proxyEnd}}]:[];return n}}},Object.defineProperty(t,"__esModule",{value:!0})}));
"use strict";!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).snowplowPerformanceTiming={})}(this,(function(t){t.PerformanceTimingPlugin=function(){return{contexts:function(){var t=window,e=(t=t.performance||t.mozPerformance||t.msPerformance||t.webkitPerformance).timing;return t=t?[{schema:"iglu:org.w3/PerformanceTiming/jsonschema/1-0-0",data:{navigationStart:e.navigationStart,redirectStart:e.redirectStart,redirectEnd:e.redirectEnd,fetchStart:e.fetchStart,domainLookupStart:e.domainLookupStart,domainLookupEnd:e.domainLookupEnd,connectStart:e.connectStart,secureConnectionStart:e.secureConnectionStart,connectEnd:e.connectEnd,requestStart:e.requestStart,responseStart:e.responseStart,responseEnd:e.responseEnd,unloadEventStart:e.unloadEventStart,unloadEventEnd:e.unloadEventEnd,domLoading:e.domLoading,domInteractive:e.domInteractive,domContentLoadedEventStart:e.domContentLoadedEventStart,domContentLoadedEventEnd:e.domContentLoadedEventEnd,domComplete:e.domComplete,loadEventStart:e.loadEventStart,loadEventEnd:e.loadEventEnd,msFirstPaint:e.msFirstPaint,chromeFirstPaint:e.chromeFirstPaint,requestEnd:e.requestEnd,proxyStart:e.proxyStart,proxyEnd:e.proxyEnd}}]:[]}}},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=index.umd.min.js.map
{
"name": "@snowplow/browser-plugin-performance-timing",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"description": "Attaches Performance Timing data to Snowplow events",

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

"dependencies": {
"@snowplow/browser-tracker-core": "3.0.0-beta.1",
"@snowplow/tracker-core": "3.0.0-beta.1",
"@snowplow/browser-tracker-core": "3.0.0-beta.2",
"@snowplow/tracker-core": "3.0.0-beta.2",
"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