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

lambda-api

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-api - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

14

index.js

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

* @author Jeremy Daly <jeremy@jeremydaly.com>
* @version 0.8.0
* @version 0.8.1
* @license MIT

@@ -188,6 +188,8 @@ */

// Promisify middleware
await new Promise(r => {
let rtn = mw[1](request,response,() => { r() })
await new Promise(async r => {
let rtn = await mw[1](request,response,() => { r() })
if (rtn) response.send(rtn)
if (response._state === 'done') r() // if state is done, resolve promise
})
} // end for

@@ -244,3 +246,3 @@

// Flag error state (this will avoid infinite error loops)
response._state === 'error'
response._state = 'error'

@@ -378,4 +380,6 @@ // Execute error middleware

// Register routes with options
register(fn,options) {
register(fn,opts) {
let options = typeof opts === 'object' ? opts : {}
// Extract Prefix

@@ -382,0 +386,0 @@ let prefix = options.prefix && options.prefix.toString().trim() !== '' ?

{
"name": "lambda-api",
"version": "0.8.0",
"version": "0.8.1",
"description": "Lightweight web framework for your serverless applications",

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

Sorry, the diff of this file is too big to display

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