Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hdr-histogram-percentiles-obj

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hdr-histogram-percentiles-obj - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

5

index.js

@@ -79,3 +79,6 @@ 'use strict'

}
return hist.getStdDeviation()
if (typeof hist.getStdDeviation === 'function') {
return hist.getStdDeviation()
}
return hist.stdDeviation
}

18

package.json
{
"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))
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc