hdr-histogram-percentiles-obj
Advanced tools
Comparing version 2.0.1 to 3.0.0
@@ -79,3 +79,6 @@ 'use strict' | ||
} | ||
return hist.getStdDeviation() | ||
if (typeof hist.getStdDeviation === 'function') { | ||
return hist.getStdDeviation() | ||
} | ||
return hist.stdDeviation | ||
} |
{ | ||
"name": "hdr-histogram-percentiles-obj", | ||
"version": "2.0.1", | ||
"description": "A little lib for turning native-hdr-histograms to objects", | ||
"version": "3.0.0", | ||
"description": "A little lib for turning hdr-histogram-js to objects", | ||
"main": "index.js", | ||
@@ -11,3 +11,3 @@ "scripts": { | ||
"type": "git", | ||
"url": "git+https://github.com/thekemkid/hdr-histogram-percentiles-obj.git" | ||
"url": "git+https://github.com/GlenTiki/hdr-histogram-percentiles-obj.git" | ||
}, | ||
@@ -22,3 +22,3 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/thekemkid/hdr-histogram-percentiles-obj/issues" | ||
"url": "https://github.com/GlenTiki/hdr-histogram-percentiles-obj/issues" | ||
}, | ||
@@ -28,11 +28,9 @@ "pre-commit": [ | ||
], | ||
"homepage": "https://github.com/thekemkid/hdr-histogram-percentiles-obj#readme", | ||
"homepage": "https://github.com/GlenTiki/hdr-histogram-percentiles-obj#readme", | ||
"devDependencies": { | ||
"pre-commit": "^1.1.3", | ||
"standard": "^11.0.1", | ||
"tap": "^12.0.1" | ||
}, | ||
"dependencies": { | ||
"hdr-histogram-js": "^1.0.0" | ||
"standard": "^14.0.0", | ||
"tap": "^14.0.0", | ||
"hdr-histogram-js": "^2.0.0" | ||
} | ||
} |
@@ -15,3 +15,3 @@ 'use strict' | ||
for (let i = 0; i < 10000; i++) { | ||
let num = Math.floor(Math.random() * 100) | ||
const num = Math.floor(Math.random() * 100) | ||
histogram.recordValue(num) | ||
@@ -85,1 +85,10 @@ total += num | ||
}) | ||
test('should return a valid hist as object from a WASM histogram', (t) => { | ||
t.plan(1) | ||
hdr.initWebAssemblySync() | ||
const histogram = hdr.build({ | ||
useWebAssembly: true | ||
}) | ||
t.ok(histPercentileObj.histAsObj(histogram)) | ||
}) |
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
8048
0
156
4
- Removedhdr-histogram-js@^1.0.0
- Removedbase64-js@1.5.1(transitive)
- Removedhdr-histogram-js@1.2.0(transitive)
- Removedpako@1.0.11(transitive)