Socket
Socket
Sign inDemoInstall

@netlify/functions

Package Overview
Dependencies
Maintainers
15
Versions
63
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 0.4.1 to 0.5.0

7

CHANGELOG.md
# 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 @@

4

package.json

@@ -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)) {

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