Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@webiny/handler-args

Package Overview
Dependencies
Maintainers
1
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webiny/handler-args - npm Package Compare versions

Comparing version 5.23.1 to 5.24.0-beta.0

7

index.d.ts

@@ -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;

@@ -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;
};
}
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