Socket
Socket
Sign inDemoInstall

@tinkoff/browser-timings

Package Overview
Dependencies
Maintainers
16
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinkoff/browser-timings - npm Package Compare versions

Comparing version 0.9.5 to 0.9.6

6

lib/browser-timings.es.js

@@ -56,6 +56,12 @@ const toSecond = (timeStamp) => Math.round(timeStamp) / 1000;

if (entries && entries.length > 0) {
const countByType = {};
entries.forEach((entry) => {
const name = getType(entry.name.split('?', 1)[0]);
if (resourceType[name]) {
if (!countByType[name]) {
countByType[name] = 0;
}
countByType[name]++;
result[name] = calculateMetric(result[name], entry);
result[name].count = countByType[name];
}

@@ -62,0 +68,0 @@ });

@@ -60,6 +60,12 @@ 'use strict';

if (entries && entries.length > 0) {
const countByType = {};
entries.forEach((entry) => {
const name = getType(entry.name.split('?', 1)[0]);
if (resourceType[name]) {
if (!countByType[name]) {
countByType[name] = 0;
}
countByType[name]++;
result[name] = calculateMetric(result[name], entry);
result[name].count = countByType[name];
}

@@ -66,0 +72,0 @@ });

2

package.json
{
"name": "@tinkoff/browser-timings",
"version": "0.9.5",
"version": "0.9.6",
"initialVersion": "0.8.18",

@@ -5,0 +5,0 @@ "description": "Lightweighted browser timings metrics exporter",

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