@dnlup/doc
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -5,2 +5,4 @@ # Changelog | ||
### [3.0.2](https://github.com/dnlup/doc/compare/v4.0.0...v3.0.2) (2020-10-28) | ||
### [3.0.1](https://github.com/dnlup/doc/compare/v3.0.0...v3.0.1) (2020-10-23) | ||
@@ -7,0 +9,0 @@ |
@@ -26,2 +26,6 @@ 'use strict' | ||
function validate (conf) { | ||
if (conf.sampleInterval === undefined || conf.sampleInterval === null) { | ||
conf.sampleInterval = DEFAULTS.sampleInterval | ||
} | ||
if (typeof conf.sampleInterval !== 'number') { | ||
@@ -43,2 +47,6 @@ throw new TypeError(`sampleInterval must be a number, received ${typeof conf.sampleInterval} ${conf.sampleInterval}`) | ||
if (conf.eventLoopOptions.resolution === undefined || conf.eventLoopOptions.resolution === null) { | ||
conf.eventLoopOptions.resolution = DEFAULTS.eventLoopOptions.resolution | ||
} | ||
if (typeof conf.eventLoopOptions.resolution !== 'number') { | ||
@@ -45,0 +53,0 @@ throw new TypeError(`eventLoopOptions.resolution must be a number, received ${typeof conf.eventLoopOptions.resolution} ${conf.eventLoopOptions.resolution}`) |
{ | ||
"name": "@dnlup/doc", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Get usage and health data about your Node.js process", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,3 +6,3 @@ # doc | ||
![Benchmarks](https://github.com/dnlup/doc/workflows/Benchmarks/badge.svg) | ||
[![Coverage Status](https://coveralls.io/repos/github/dnlup/doc/badge.svg)](https://coveralls.io/github/dnlup/doc) | ||
[![Coverage Status](https://coveralls.io/repos/github/dnlup/doc/badge.svg?branch=next)](https://coveralls.io/github/dnlup/doc?branch=next) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/dnlup/doc/badge.svg?targetFile=package.json)](https://snyk.io/test/github/dnlup/doc?targetFile=package.json) | ||
@@ -9,0 +9,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
44779
654