Comparing version 0.14.1 to 0.14.2
# CHANGELOG - PageXray | ||
version 0.14.2 2017-05-16 | ||
------------------------ | ||
### Fixed | ||
* Calculating timing for an assets included both SSL and Connect time, that is wrong since connect time includes SSL time. | ||
version 0.14.1 2016-12-05 | ||
@@ -4,0 +9,0 @@ ------------------------ |
@@ -5,2 +5,3 @@ 'use strict'; | ||
const headers = require('./headers'); | ||
const isEmpty = require('lodash.isempty'); | ||
@@ -24,3 +25,3 @@ function getTiming(entry, field) { | ||
const timing = getTiming(entry, 'blocked') + getTiming(entry, 'dns') + | ||
getTiming(entry, 'connect') + getTiming(entry, 'ssl') + | ||
getTiming(entry, 'connect') + | ||
getTiming(entry, 'send') + getTiming(entry, 'wait') + | ||
@@ -107,4 +108,3 @@ getTiming(entry, 'receive'); | ||
contentType: (asset, myPage) => { | ||
if (Object.keys(myPage.contentTypes).length === 0 && | ||
myPage.contentTypes.constructor === Object) { | ||
if (isEmpty(myPage.contentTypes)) { | ||
// we have a couple of default content types that we always reports | ||
@@ -111,0 +111,0 @@ // if we find others, just add them |
{ | ||
"name": "pagexray", | ||
"version": "0.14.1", | ||
"version": "0.14.2", | ||
"description": "Xray your HAR file and know all about the page", | ||
@@ -59,4 +59,5 @@ "keywords": [ | ||
"fast-stats": "0.0.3", | ||
"lodash.isempty": "^4.4.0", | ||
"minimist": "1.2.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24954
3
+ Addedlodash.isempty@^4.4.0
+ Addedlodash.isempty@4.4.0(transitive)