@netlify/functions
Advanced tools
Comparing version 0.4.1 to 0.5.0
# Changelog | ||
## [0.5.0](https://www.github.com/netlify/functions-js/compare/v0.4.1...v0.5.0) (2021-04-08) | ||
### Features | ||
* omit query string parameters from builder functions ([#40](https://www.github.com/netlify/functions-js/issues/40)) ([1219049](https://www.github.com/netlify/functions-js/commit/1219049a003acb693c5e93591a5d78ad678974a1)) | ||
### [0.4.1](https://www.github.com/netlify/functions-js/compare/v0.4.0...v0.4.1) (2021-03-26) | ||
@@ -4,0 +11,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"types": "./src/main.d.ts", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "JavaScript utilities for Netlify Functions", | ||
@@ -61,3 +61,3 @@ "files": [ | ||
"@commitlint/config-conventional": "^12.0.0", | ||
"@netlify/eslint-config-node": "^2.5.3", | ||
"@netlify/eslint-config-node": "^2.6.1", | ||
"ava": "^2.4.0", | ||
@@ -64,0 +64,0 @@ "husky": "^4.3.8", |
@@ -25,5 +25,12 @@ const isPromise = require('is-promise') | ||
// Removing query string parameters from the builder function. | ||
const modifiedEvent = { | ||
...event, | ||
multiValueQueryStringParameters: {}, | ||
queryStringParameters: {}, | ||
} | ||
// eslint-disable-next-line promise/prefer-await-to-callbacks | ||
const wrappedCallback = (error, response) => callback(error, augmentResponse(response)) | ||
const execution = handler(event, context, wrappedCallback) | ||
const execution = handler(modifiedEvent, context, wrappedCallback) | ||
@@ -30,0 +37,0 @@ if (isPromise(execution)) { |
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
10833
122