New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

brok

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brok - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

14

lib/index.js

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

const Hoek = require('@hapi/hoek');
const Joi = require('joi');
const Validate = require('@hapi/validate');

@@ -32,7 +32,7 @@

const schema = Joi.object({
decompress: Joi.boolean(),
compress: Joi.object({
mode: Joi.string().valid(...internals.compressionModes.keys()),
quality: Joi.number().integer().min(Zlib.constants.BROTLI_MIN_QUALITY).max(Zlib.constants.BROTLI_MAX_QUALITY)
const schema = Validate.object({
decompress: Validate.boolean(),
compress: Validate.object({
mode: Validate.string().valid(...internals.compressionModes.keys()),
quality: Validate.number().integer().min(Zlib.constants.BROTLI_MIN_QUALITY).max(Zlib.constants.BROTLI_MAX_QUALITY)
}).allow(false)

@@ -42,3 +42,3 @@ });

const { defaults, compressionModes } = internals;
const { compress, decompress } = Joi.attempt(Hoek.applyToDefaults(defaults, registerOptions), schema, 'Invalid options');
const { compress, decompress } = Validate.attempt(Hoek.applyToDefaults(defaults, registerOptions), schema, 'Invalid options');

@@ -45,0 +45,0 @@ if (compress) {

{
"name": "brok",
"description": "Brotli encoder and decoder for hapi.js",
"version": "5.0.1",
"version": "5.0.2",
"repository": "https://github.com/kanongil/brok.git",

@@ -23,3 +23,3 @@ "main": "lib/index.js",

"@hapi/hoek": "^9.0.4",
"joi": "^17.1.1"
"@hapi/validate": "^1.1.3"
},

@@ -26,0 +26,0 @@ "devDependencies": {

@@ -5,3 +5,3 @@ # brok

[![Build Status](https://travis-ci.org/kanongil/brok.svg?branch=master)](https://travis-ci.org/kanongil/brok)
![Node.js CI](https://github.com/kanongil/brok/workflows/Node.js%20CI/badge.svg?event=push)

@@ -8,0 +8,0 @@ Lead Maintainer - [Gil Pedersen](https://github.com/kanongil)

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