@netlify/functions
Advanced tools
Comparing version 2.0.0-beta to 2.0.1-beta
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
82368
1988
1