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

lambda-wrap

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-wrap - npm Package Compare versions

Comparing version 3.0.0-alpha.2 to 3.0.0

12

lib/response.js

@@ -38,2 +38,4 @@ 'use strict';

};
} else if (typeof res === 'undefined') {
res = null;
} else {

@@ -43,5 +45,7 @@ throw error.badRequest('Auto negotiation of response');

Object.assign(res, { headers });
if (res) {
Object.assign(res, { headers });
}
const logMeta = options.createLogMeta(event, res);
const logMeta = options.createLogMeta(event, res || { statusCode: 0 });
const logData = options.filterLogData(logMeta, options);

@@ -51,3 +55,5 @@

if (res.body === null) {
if (!res) {
// leave it, it's ok, that's empty
} else if (res.body === null) {
delete res.body;

@@ -54,0 +60,0 @@ } else if (typeof res.body === 'string') {

{
"name": "lambda-wrap",
"version": "3.0.0-alpha.2",
"version": "3.0.0",
"description": "AWS Serverless wrapper for async generators",

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

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