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

@shopify/performance

Package Overview
Dependencies
Maintainers
13
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/performance - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

24

CHANGELOG.md

@@ -10,9 +10,15 @@ # Changelog

## [1.2.1] - 2019-10-11
## 1.2.2 - 2019-10-16
### Fixed
- `Performance` object constructor will now check if `PerformanceTiming` is supported. [[#1119](https://github.com/Shopify/quilt/pull/1119)]
## 1.2.1 - 2019-10-11
### Fixed
- `cacheEffectiveness` now assumes duration=0 is a cache hit [[#1107](https://github.com/Shopify/quilt/pull/1107)]
## [1.2.0] - 2019-10-03
## 1.2.0 - 2019-10-03

@@ -27,3 +33,3 @@ ### Changed

## [1.1.2] - 2019-03-27
## 1.1.2 - 2019-03-27

@@ -34,3 +40,3 @@ ### Fixed

## [1.1.1] - 2019-03-04
## 1.1.1 - 2019-03-04

@@ -47,3 +53,3 @@ ### Fixed

## [1.0.4] - 2019-02-21
## 1.0.4 - 2019-02-21

@@ -54,3 +60,3 @@ ### Fixed

## [1.0.3] - 2019-01-11
## 1.0.3 - 2019-01-11

@@ -61,3 +67,3 @@ ### Fixed

## [1.0.2] - 2019-01-11
## 1.0.2 - 2019-01-11

@@ -68,3 +74,3 @@ ### Fixed

## [1.0.1] - 2019-01-11
## 1.0.1 - 2019-01-11

@@ -75,4 +81,4 @@ ### Fixed

## [1.0.0] - 2019-01-30
## 1.0.0 - 2019-01-30
First version.

@@ -12,2 +12,3 @@ import { Navigation } from './navigation';

readonly supportsNavigationEntries: boolean;
readonly supportsTimingEntries: boolean;
readonly supportsLongtaskEntries: boolean;

@@ -14,0 +15,0 @@ readonly supportsResourceEntries: boolean;

@@ -15,2 +15,3 @@ "use strict";

this.supportsNavigationEntries = utilities_1.hasGlobal('PerformanceNavigationTiming');
this.supportsTimingEntries = utilities_1.hasGlobal('PerformanceTiming');
this.supportsLongtaskEntries = utilities_1.hasGlobal('PerformanceLongTaskTiming');

@@ -34,3 +35,4 @@ this.supportsResourceEntries = utilities_1.hasGlobal('PerformanceResourceTiming');

utilities_1.withNavigation(this.start.bind(this));
if (!this.supportsDetailedTime || !this.supportsNavigationEntries) {
if (this.supportsTimingEntries &&
(!this.supportsDetailedTime || !this.supportsNavigationEntries)) {
utilities_1.withTiming(function (_a) {

@@ -37,0 +39,0 @@ var responseStart = _a.responseStart, domContentLoadedEventStart = _a.domContentLoadedEventStart, loadEventStart = _a.loadEventStart;

{
"name": "@shopify/performance",
"version": "1.2.1",
"version": "1.2.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Primitives for collecting browser performance metrics.",

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