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

jigawatt

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jigawatt - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

2

lib/validate.js

@@ -65,3 +65,3 @@

typeCheck(middleware);
propsCheck(_.unnest(middleware))
propsCheck(_.flatten(middleware))
}

@@ -68,0 +68,0 @@

{
"name": "jigawatt",
"version": "0.1.4",
"version": "0.1.5",
"description": "Influential's Functional, Promise-based Express Middleware",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -251,3 +251,2 @@ /*eslint-env node, mocha */

it('should return a function with an arity of 3 when given one argument ' +

@@ -262,3 +261,2 @@ 'that is a function', () => {

it('should return a PropsCheckError when a middleware has invalid keys'

@@ -284,9 +282,12 @@ , () => {

const test1 = () => JW(m3);
expect(test1).to.throw(Error);
expect(test1).to.throw(/awesomizer <-> awesomize/);
const test2 = () => JW(m1, [m2, m3]);
expect(test2).to.throw(Error);
expect(test2).to.throw(/awesomizer <-> awesomize/);
const test3 = () => JW({}, [m2, [m1, m3]]);
expect(test3).to.throw(/awesomizer <-> awesomize/);
});
});
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