Socket
Socket
Sign inDemoInstall

express-router-api

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-router-api - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

index.js

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

}
else if(typeof obj === 'object') {
else if(obj && typeof obj === 'object' ) {
let promisesToResolve = [];

@@ -15,0 +15,0 @@ Object.keys(obj).map(key => {

{
"name": "express-router-api",
"version": "1.0.1",
"description": "",
"version": "1.0.2",
"description": "Express router that lets you construct your API entirely on promises",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

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

it('should support embedded promise array', () => {
it('should support embedded promise array with a possible null', () => {
routeTest((req, res) => {

@@ -144,3 +144,7 @@ return Promise.resolve({

bar: [Promise.resolve('foo'),Promise.resolve({
xx: Promise.delay(10).then(()=>'ala')
xx: Promise.delay(10).then(()=>'ala'),
dd: null,
zz: true,
yy: false,
mm: undefined
})]

@@ -152,3 +156,3 @@ })

return requestTest({
foo: {bar: ['foo', {xx: 'ala'}]}
foo: {bar: ['foo', {xx: 'ala', dd: null, zz: true, yy: false}]}
});

@@ -155,0 +159,0 @@ });

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