@webiny/handler-args
Advanced tools
Comparing version 5.0.0-beta.1 to 5.0.0-beta.2
@@ -5,2 +5,6 @@ declare const _default: () => { | ||
}; | ||
/** | ||
* This is the default handling of function invocation arguments. | ||
* You can access the "event" object via "context.invocationArgs" anywhere in your code. | ||
*/ | ||
export default _default; |
@@ -8,2 +8,6 @@ "use strict"; | ||
/** | ||
* This is the default handling of function invocation arguments. | ||
* You can access the "event" object via "context.invocationArgs" anywhere in your code. | ||
*/ | ||
var _default = () => ({ | ||
@@ -13,3 +17,4 @@ type: "context", | ||
apply(context) { | ||
context.invocationArgs = {}; | ||
const [event] = context.args; | ||
context.invocationArgs = event; | ||
} | ||
@@ -16,0 +21,0 @@ |
{ | ||
"name": "@webiny/handler-args", | ||
"version": "5.0.0-beta.1", | ||
"version": "5.0.0-beta.2", | ||
"main": "index.js", | ||
@@ -34,3 +34,3 @@ "repository": { | ||
}, | ||
"gitHead": "1258532e122a172df782b55cf080a2922687b95f" | ||
"gitHead": "d3bb8397c2cd0be78e9fe8cd441b4e13b72fffe6" | ||
} |
Sorry, the diff of this file is not supported yet
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
4608
30