@webiny/handler-args
Advanced tools
Comparing version 5.30.0 to 5.31.0-beta.0
/** | ||
* This is the default handling of function invocation arguments. | ||
* You can access the "event" object via "context.invocationArgs" anywhere in your code. | ||
* Dummy file | ||
*/ | ||
import { ContextPlugin } from "@webiny/handler"; | ||
import { ArgsContext } from "./types"; | ||
declare const _default: () => ContextPlugin<ArgsContext>; | ||
declare const _default: (_: any) => never[]; | ||
export default _default; |
13
index.js
@@ -8,15 +8,10 @@ "use strict"; | ||
var _handler = require("@webiny/handler"); | ||
/** | ||
* This is the default handling of function invocation arguments. | ||
* You can access the "event" object via "context.invocationArgs" anywhere in your code. | ||
* Dummy file | ||
*/ | ||
var _default = () => { | ||
return new _handler.ContextPlugin(async context => { | ||
const [event] = context.args; | ||
context.invocationArgs = event; | ||
}); | ||
// eslint-disable-next-line | ||
var _default = _ => { | ||
return []; | ||
}; | ||
exports.default = _default; |
{ | ||
"name": "@webiny/handler-args", | ||
"version": "5.30.0", | ||
"version": "5.31.0-beta.0", | ||
"main": "index.js", | ||
@@ -17,4 +17,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/runtime": "7.18.6", | ||
"@webiny/handler": "5.30.0" | ||
"@babel/runtime": "7.18.9" | ||
}, | ||
@@ -26,4 +25,4 @@ "devDependencies": { | ||
"@babel/preset-typescript": "^7.16.0", | ||
"@webiny/cli": "^5.30.0", | ||
"@webiny/project-utils": "^5.30.0", | ||
"@webiny/cli": "^5.31.0-beta.0", | ||
"@webiny/project-utils": "^5.31.0-beta.0", | ||
"rimraf": "^3.0.2", | ||
@@ -40,3 +39,3 @@ "typescript": "4.7.4" | ||
}, | ||
"gitHead": "3cadc5d26e565586b28772afbc18ae554ce7b782" | ||
"gitHead": "dea7c56325ff140ef0e2d761f3e65708d46d401e" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1
3418
6
17
2
+ Added@babel/runtime@7.18.9(transitive)
- Removed@webiny/handler@5.30.0
- Removed@babel/runtime@7.18.6(transitive)
- Removed@webiny/handler@5.30.0(transitive)
- Removed@webiny/plugins@5.30.0(transitive)
- Removeduniqid@5.4.0(transitive)
Updated@babel/runtime@7.18.9