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.0 to 2.0.1

6

index.js
'use strict'
const percentiles = module.exports.percentiles = [
0.001,
0.01,
0.1,
1,
2.5,
10,
25,
50,

@@ -6,0 +12,0 @@ 75,

2

package.json
{
"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')

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