@applitools/monitoring-commons
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@applitools/monitoring-commons", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -40,3 +40,3 @@ "main": "src/monitoring-commons.js", | ||
"chai": "^4.1.2", | ||
"eslint": "^4.2.0", | ||
"eslint": "^4.19.1", | ||
"eslint-plugin-mocha-no-only": "0.0.5", | ||
@@ -46,4 +46,4 @@ "eslint-plugin-node": "^5.2.1", | ||
"mocha": "^4.0.1", | ||
"prettier": "^1.5.2" | ||
"prettier": "^1.11.1" | ||
} | ||
} |
@@ -10,4 +10,4 @@ 'use strict' | ||
return f().then( | ||
v => ((performance[name] = Date.now() - start), v), | ||
v => ((performance[name] = Date.now() - start), Promise.reject(v)), | ||
v => ((performance[name] = (performance[name] || 0) + Date.now() - start), v), | ||
v => ((performance[name] = (performance[name] || 0) + Date.now() - start), Promise.reject(v)), | ||
) | ||
@@ -21,7 +21,7 @@ } | ||
performance[name] = Date.now() - start | ||
performance[name] = (performance[name] || 0) + Date.now() - start | ||
return ret | ||
} catch (err) { | ||
performance[name] = Date.now() - start | ||
performance[name] = (performance[name] || 0) + Date.now() - start | ||
throw err | ||
@@ -28,0 +28,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
2198
91960