hdr-histogram-percentiles-obj
Advanced tools
Comparing version 2.0.0 to 2.0.1
'use strict' | ||
const percentiles = module.exports.percentiles = [ | ||
0.001, | ||
0.01, | ||
0.1, | ||
1, | ||
2.5, | ||
10, | ||
25, | ||
50, | ||
@@ -6,0 +12,0 @@ 75, |
{ | ||
"name": "hdr-histogram-percentiles-obj", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A little lib for turning native-hdr-histograms to objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,3 +8,3 @@ 'use strict' | ||
test('should return a valid hist as object', (t) => { | ||
t.plan(18) | ||
t.plan(24) | ||
const histogram = hdr.build({ | ||
@@ -34,3 +34,9 @@ lowestDiscernibleValue: 1, | ||
t.type(withPercentiles.average, 'number') | ||
t.type(withPercentiles.p0_001, 'number') | ||
t.type(withPercentiles.p0_01, 'number') | ||
t.type(withPercentiles.p0_1, 'number') | ||
t.type(withPercentiles.p1, 'number') | ||
t.type(withPercentiles.p2_5, 'number') | ||
t.type(withPercentiles.p10, 'number') | ||
t.type(withPercentiles.p25, 'number') | ||
t.type(withPercentiles.p50, 'number') | ||
@@ -37,0 +43,0 @@ t.type(withPercentiles.p75, 'number') |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7764
145
0