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

supervizor

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supervizor - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

7

CHANGELOG.md
# Changelog
## [v1.0.5](https://github.com/ruiquelhas/supervizor/tree/v1.0.5) (2017-02-13)
[Full Changelog](https://github.com/ruiquelhas/supervizor/compare/v1.0.4...v1.0.5)
**Merged pull requests:**
- Shrink package [\#7](https://github.com/ruiquelhas/supervizor/pull/7) ([ruiquelhas](https://github.com/ruiquelhas))
## [v1.0.4](https://github.com/ruiquelhas/supervizor/tree/v1.0.4) (2017-02-10)

@@ -4,0 +11,0 @@ [Full Changelog](https://github.com/ruiquelhas/supervizor/compare/v1.0.3...v1.0.4)

12

lib/index.js

@@ -5,7 +5,2 @@ 'use strict';

const _ = {
omit: require('lodash.omit'),
pluck: require('lodash.pluck')
};
const internals = {};

@@ -21,4 +16,7 @@

options.validator(request.payload, _.omit(options, 'validator'), (err, valid) => {
const opts = Object.assign({}, options);
delete opts.validator;
options.validator(request.payload, opts, (err, valid) => {
if (err) {

@@ -29,3 +27,3 @@ const error = Boom.badRequest(err.message);

source: 'payload',
keys: _.pluck(err.details, 'path')
keys: (err.details || []).map((entry) => entry.path)
};

@@ -32,0 +30,0 @@

{
"name": "supervizor",
"version": "1.0.4",
"version": "1.0.5",
"description": "Server-level request payload validation for hapi",
"main": "lib/index.js",
"files": [
"lib"
],
"scripts": {

@@ -37,5 +40,3 @@ "changelog": "github_changelog_generator --header-label='# Changelog'",

"dependencies": {
"boom": "4.x.x",
"lodash.omit": "4.x.x",
"lodash.pluck": "3.x.x"
"boom": "4.x.x"
},

@@ -42,0 +43,0 @@ "engines": {

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