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

async-express

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-express - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"name": "async-express",
"version": "0.1.3",
"version": "0.1.4",
"description": "Allow async/await syntax in Express routes and middleware",

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

@@ -13,3 +13,3 @@ # async-express

const express = require('express');
const _async = require('async-express');
const asyncExpress = require('async-express');

@@ -19,3 +19,3 @@ const app = express();

// As a route
app.get('/', _async(async (req, res, next) => {
app.get('/', asyncExpress(async (req, res, next) => {
// Wait 5 seconds

@@ -32,7 +32,7 @@ await new Promise(r => setTimeout(r, 5000));

const express = require('express');
const _async = require('async-express');
const asyncExpress = require('async-express');
const app = express();
const waitForABit = _async(async (req, res, next) => {
const waitForABit = asyncExpress(async (req, res, next) => {
// Wait 5 seconds

@@ -39,0 +39,0 @@ await new Promise(r => setTimeout(r, 5000));

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