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

aws-lambda-create-request-response

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-lambda-create-request-response - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

package.json
{
"name": "aws-lambda-create-request-response",
"version": "0.0.6",
"version": "0.0.7",
"main": "src/index.js",

@@ -5,0 +5,0 @@ "repository": {

@@ -8,3 +8,4 @@ 'use strict'

const response = {
body: '',
body: Buffer.from(''),
isBase64Encoded: true,
statusCode: 200,

@@ -48,3 +49,6 @@ headers: {}

res.write = chunk => {
response.body += chunk
response.body = Buffer.concat([
response.body,
Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk)
])
}

@@ -61,3 +65,4 @@ res.setHeader = (name, value) => {

res.end = text => {
if (text) response.body += text
if (text) res.write(text)
response.body = Buffer.from(response.body).toString('base64')
response.headers = res.headers || {}

@@ -67,3 +72,3 @@ callback(null, response)

if (event.body) {
req.push(event.body)
req.push(event.body, event.isBase64Encoded ? 'base64' : 'binary')
req.push(null)

@@ -70,0 +75,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