perfume.js
Advanced tools
Comparing version 0.6.0 to 0.6.1
# Changelog | ||
## 0.6.1 (2018-3-3) | ||
### Bug Fixes | ||
* **start/end:** Fixed Performance.getDurationByMetric method | ||
## 0.6.0 (2018-3-3) | ||
@@ -4,0 +11,0 @@ |
@@ -79,3 +79,3 @@ import ttiPolyfill from "tti-polyfill"; | ||
var entry = this.getMeasurementForGivenName(metricName); | ||
if (entry && entry.entryType !== "measure") { | ||
if (entry && entry.entryType === "measure") { | ||
return entry.duration; | ||
@@ -82,0 +82,0 @@ } |
@@ -81,3 +81,3 @@ "use strict"; | ||
var entry = this.getMeasurementForGivenName(metricName); | ||
if (entry && entry.entryType !== "measure") { | ||
if (entry && entry.entryType === "measure") { | ||
return entry.duration; | ||
@@ -84,0 +84,0 @@ } |
@@ -177,3 +177,3 @@ var EmulatedPerformance = /** @class */ (function () { | ||
var entry = this.getMeasurementForGivenName(metricName); | ||
if (entry && entry.entryType !== "measure") { | ||
if (entry && entry.entryType === "measure") { | ||
return entry.duration; | ||
@@ -180,0 +180,0 @@ } |
@@ -183,3 +183,3 @@ (function (global, factory) { | ||
var entry = this.getMeasurementForGivenName(metricName); | ||
if (entry && entry.entryType !== "measure") { | ||
if (entry && entry.entryType === "measure") { | ||
return entry.duration; | ||
@@ -186,0 +186,0 @@ } |
import PerformImpl from "./performance-impl"; | ||
declare global { | ||
} | ||
export default class EmulatedPerformance implements PerformImpl { | ||
@@ -3,0 +5,0 @@ config: any; |
{ | ||
"name": "perfume.js", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "JavaScript library for measuring Short and Long Script, First Contentful Paint (FCP), Time to Interactive (TTI), Component First Paint (CFM), annotating them to the DevTools timeline and reporting the results to Google Analytics.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
<a href="http://zizzamia.github.io/perfume/"><img src="https://github.com/Zizzamia/perfume.js/blob/master/docs/src/assets/perfume-logo-v0-5-0.png" align="left" width="262" /></a> | ||
# [Perfume.js v0.6.0](http://zizzamia.github.io/perfume/) | ||
# [Perfume.js v0.6.1](http://zizzamia.github.io/perfume/) | ||
[![NPM version](https://badge.fury.io/js/perfume.js.svg)](https://www.npmjs.org/package/perfume.js) [![Build Status](https://travis-ci.org/Zizzamia/perfume.js.svg?branch=master)](https://travis-ci.org/Zizzamia/perfume.js) [![NPM Downloads](http://img.shields.io/npm/dm/perfume.js.svg)](https://www.npmjs.org/package/perfume.js) [![Test Coverage](https://api.codeclimate.com/v1/badges/f813d2f45b274d93b8c5/test_coverage)](https://codeclimate.com/github/Zizzamia/perfume.js/test_coverage) | ||
@@ -5,0 +5,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
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
211814
1722
2