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

@h4ad/serverless-adapter

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@h4ad/serverless-adapter - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

8

lib/adapters/aws/api-gateway-v2.adapter.js

@@ -72,2 +72,3 @@ "use strict";

const headers = (0, core_1.getFlattenedHeadersMap)(responseHeaders);
const multiValueHeaders = (0, core_1.getMultiValueHeadersMap)(responseHeaders);
const transferEncodingHeader = headers['transfer-encoding'];

@@ -81,7 +82,5 @@ const hasTransferEncodingChunked = transferEncodingHeader && transferEncodingHeader.includes('chunked');

}
const cookies = headers['set-cookie'];
if (cookies) {
headers.cookies = cookies;
const cookies = multiValueHeaders['set-cookie'];
if (headers)
delete headers['set-cookie'];
}
return {

@@ -92,2 +91,3 @@ statusCode,

isBase64Encoded,
cookies,
};

@@ -94,0 +94,0 @@ }

{
"name": "@h4ad/serverless-adapter",
"version": "2.0.1",
"version": "2.0.2",
"description": "This library enables you to utilize any Cloud or Event Source to respond to web and API requests using your existing Node.js application framework.",

@@ -5,0 +5,0 @@ "main": "./lib/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