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

@mcma/aws-lambda-worker-invoker

Package Overview
Dependencies
Maintainers
3
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcma/aws-lambda-worker-invoker - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

8

index.d.ts

@@ -1,3 +0,7 @@

import { InvokeWorker } from "@mcma/api";
import { InvokeWorker, WorkerInvoker } from "@mcma/api";
export const invokeLambdaWorker: InvokeWorker;
export const invokeLambdaWorker: InvokeWorker;
export class LambdaWorkerInvoker extends WorkerInvoker {
constructor();
}
const util = require("util");
const AWS = require("aws-sdk");
const { WorkerInvoker } = require("@mcma/api");
const Lambda = new AWS.Lambda({ apiVersion: "2015-03-31" });
const LambdaInvoke = util.promisify(Lambda.invoke.bind(Lambda));
async function invokeLambdaWorker(workerFunctionName, payload) {
async function invokeLambdaWorker(workerFunctionId, workerRequest) {
await LambdaInvoke({
FunctionName: workerFunctionName,
FunctionName: workerFunctionId,
InvocationType: "Event",
LogType: "None",
Payload: JSON.stringify(payload)
Payload: JSON.stringify(workerRequest)
});
}
class LambdaWorkerInvoker extends WorkerInvoker {
constructor() {
super(invokeLambdaWorker);
}
}
module.exports = {
invokeLambdaWorker
invokeLambdaWorker,
LambdaWorkerInvoker
};
{
"name": "@mcma/aws-lambda-worker-invoker",
"version": "0.4.1",
"version": "0.4.2",
"description": "Node module with code for invoking MCMA workers running as Lambda functions, via the AWS SDK",

@@ -29,3 +29,3 @@ "engines": {

"dependencies": {
"@mcma/api": "0.4.1",
"@mcma/api": "0.4.2",
"aws-sdk": "^2.291.0"

@@ -32,0 +32,0 @@ },

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