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

@netlify/functions

Package Overview
Dependencies
Maintainers
15
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/functions - npm Package Compare versions

Comparing version 2.0.0-beta to 2.0.1-beta

7

dist/v2/api.js

@@ -19,4 +19,5 @@ "use strict";

const headers = (0, headers_1.fromEventHeaders)(event.headers);
const body = event.body === '' ? undefined : event.body;
const req = new undici_1.Request(event.rawUrl, {
body: event.body,
body,
headers,

@@ -30,5 +31,5 @@ method: event.httpMethod,

const responseHeaders = (0, headers_1.toObject)(res.headers);
const body = yield res.text();
const responseBody = yield res.text();
return {
body,
body: responseBody,
headers: responseHeaders,

@@ -35,0 +36,0 @@ statusCode: res.status,

@@ -5,3 +5,3 @@ {

"types": "./dist/main.d.ts",
"version": "2.0.0-beta",
"version": "2.0.1-beta",
"description": "JavaScript utilities for Netlify Functions",

@@ -8,0 +8,0 @@ "files": [

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