@hapi/heavy
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -5,3 +5,3 @@ 'use strict'; | ||
const Hoek = require('@hapi/hoek'); | ||
const Joi = require('@hapi/joi'); | ||
const Validate = require('@hapi/validate'); | ||
@@ -12,7 +12,7 @@ | ||
internals.schema = Joi.object({ | ||
sampleInterval: Joi.number().min(0), | ||
maxHeapUsedBytes: Joi.number().min(0), | ||
maxEventLoopDelay: Joi.number().min(0), | ||
maxRssBytes: Joi.number().min(0) | ||
internals.schema = Validate.object({ | ||
sampleInterval: Validate.number().min(0), | ||
maxHeapUsedBytes: Validate.number().min(0), | ||
maxEventLoopDelay: Validate.number().min(0), | ||
maxRssBytes: Validate.number().min(0) | ||
}) | ||
@@ -34,3 +34,3 @@ .unknown(); | ||
Joi.assert(options, internals.schema, 'Invalid load monitoring options'); | ||
Validate.assert(options, internals.schema, 'Invalid load monitoring options'); | ||
this.settings = Hoek.applyToDefaults(internals.defaults, options); | ||
@@ -37,0 +37,0 @@ Hoek.assert(this.settings.sampleInterval || (!this.settings.maxEventLoopDelay && !this.settings.maxHeapUsedBytes && !this.settings.maxRssBytes), 'Load sample interval must be set to enable load limits'); |
{ | ||
"name": "@hapi/heavy", | ||
"description": "Measure process load", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"repository": "git://github.com/hapijs/heavy", | ||
@@ -20,7 +20,7 @@ "main": "lib/index.js", | ||
"@hapi/hoek": "9.x.x", | ||
"@hapi/joi": "17.x.x" | ||
"@hapi/validate": "1.x.x" | ||
}, | ||
"devDependencies": { | ||
"@hapi/code": "8.x.x", | ||
"@hapi/lab": "22.x.x" | ||
"@hapi/lab": "23.x.x" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
@@ -5,4 +5,14 @@ <a href="http://hapijs.com"><img src="https://raw.githubusercontent.com/hapijs/assets/master/images/family.png" width="180px" align="right" /></a> | ||
Measure process load. | ||
#### Measure process load. | ||
[![Build Status](https://secure.travis-ci.org/hapijs/heavy.png)](http://travis-ci.org/hapijs/heavy) | ||
**heavy** is part of the **hapi** ecosystem and was designed to work seamlessly with the [hapi web framework](https://hapi.dev) and its other components (but works great on its own or with other frameworks). If you are using a different web framework and find this module useful, check out [hapi](https://hapi.dev) – they work even better together. | ||
### Visit the [hapi.dev](https://hapi.dev) Developer Portal for tutorials, documentation, and support | ||
## Useful resources | ||
- [Documentation and API](https://hapi.dev/family/heavy/) | ||
- [Version status](https://hapi.dev/resources/status/#heavy) (builds, dependencies, node versions, licenses, eol) | ||
- [Changelog](https://hapi.dev/family/heavy/changelog/) | ||
- [Project policies](https://hapi.dev/policies/) | ||
- [Free and commercial support options](https://hapi.dev/support/) |
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
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
6490
18
1
+ Added@hapi/validate@1.x.x
+ Added@hapi/validate@1.1.3(transitive)
- Removed@hapi/joi@17.x.x
- Removed@hapi/address@4.1.0(transitive)
- Removed@hapi/formula@2.0.0(transitive)
- Removed@hapi/joi@17.1.1(transitive)
- Removed@hapi/pinpoint@2.0.1(transitive)