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

@hapi/heavy

Package Overview
Dependencies
Maintainers
7
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapi/heavy - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

14

lib/index.js

@@ -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/)
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