@webiny/handler-args
Advanced tools
Comparing version 5.23.1 to 5.24.0-beta.0
@@ -1,5 +0,1 @@ | ||
declare const _default: () => { | ||
type: string; | ||
apply(context: any): void; | ||
}; | ||
/** | ||
@@ -9,2 +5,5 @@ * This is the default handling of function invocation arguments. | ||
*/ | ||
import { ContextPlugin } from "@webiny/handler"; | ||
import { ArgsContext } from "./types"; | ||
declare const _default: () => ContextPlugin<ArgsContext>; | ||
export default _default; |
13
index.js
@@ -8,2 +8,4 @@ "use strict"; | ||
var _handler = require("@webiny/handler"); | ||
/** | ||
@@ -13,12 +15,9 @@ * This is the default handling of function invocation arguments. | ||
*/ | ||
var _default = () => ({ | ||
type: "context", | ||
apply(context) { | ||
var _default = () => { | ||
return new _handler.ContextPlugin(async context => { | ||
const [event] = context.args; | ||
context.invocationArgs = event; | ||
} | ||
}); | ||
}; | ||
}); | ||
exports.default = _default; |
{ | ||
"name": "@webiny/handler-args", | ||
"version": "5.23.1", | ||
"version": "5.24.0-beta.0", | ||
"main": "index.js", | ||
@@ -17,3 +17,4 @@ "repository": { | ||
"dependencies": { | ||
"@babel/runtime": "7.16.7" | ||
"@babel/runtime": "7.16.7", | ||
"@webiny/handler": "5.24.0-beta.0" | ||
}, | ||
@@ -25,4 +26,4 @@ "devDependencies": { | ||
"@babel/preset-typescript": "^7.16.0", | ||
"@webiny/cli": "^5.23.1", | ||
"@webiny/project-utils": "^5.23.1", | ||
"@webiny/cli": "^5.24.0-beta.0", | ||
"@webiny/project-utils": "^5.24.0-beta.0", | ||
"rimraf": "^3.0.2", | ||
@@ -39,3 +40,3 @@ "typescript": "^4.1.3" | ||
}, | ||
"gitHead": "a726d09d2647d13e5a4f376cef23463564ef7ca0" | ||
"gitHead": "05b90b92bbaf2ef3adf275d008c4641580cf5f42" | ||
} |
@@ -1,3 +0,4 @@ | ||
export declare type ArgsContext<TArgs = Record<string, any>> = { | ||
import { Context } from "@webiny/handler/types"; | ||
export interface ArgsContext<TArgs = Record<string, any>> extends Context { | ||
invocationArgs: TArgs; | ||
}; | ||
} |
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
3952
2
2
+ Added@webiny/handler@5.24.0-beta.0(transitive)
+ Added@webiny/plugins@5.24.0-beta.0(transitive)
+ Addeduniqid@5.4.0(transitive)