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

@mcma/api

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/api - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

2

index.d.ts

@@ -68,3 +68,3 @@ import { ContextVariableProvider, Resource, ResourceType } from "@mcma/core";

declare module "mcma-core" {
declare module "@mcma/core" {
interface ContextVariableProvider {

@@ -71,0 +71,0 @@ publicUrl(): string;

const { DefaultRouteCollectionBuilder } = require("./default-routes");
const { WorkerInvoker } = require("../worker-invoker");
DefaultRouteCollectionBuilder.prototype.forJobAssignments = function forJobAssignments(invokeWorker) {
if (typeof invokeWorker !== "function") {
throw new Error("invokeWorker must be a function.");
}
const workerInvoker = new WorkerInvoker(invokeWorker);

@@ -11,9 +10,10 @@ return this.addAll()

rb.onCompleted(async (requestContext, jobAssignment) =>
await invokeWorker(requestContext.workerFunctionId(), {
operationName: "ProcessJobAssignment",
contextVariables: requestContext.getAllContextVariables(),
input: {
await workerInvoker.invoke(
requestContext.workerFunctionId(),
"ProcessJobAssignment",
requestContext.getAllContextVariables(),
{
jobAssignmentId: jobAssignment.id
}
})
)
)

@@ -20,0 +20,0 @@ )

{
"name": "@mcma/api",
"version": "0.4.2",
"version": "0.4.3",
"description": "Node module for building APIs based on the EBU MCMA framework",

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

"dependencies": {
"@mcma/client": "0.4.2",
"@mcma/data": "0.4.2",
"@mcma/client": "0.4.3",
"@mcma/data": "0.4.3",
"pluralize": "^7.0.0",

@@ -33,0 +33,0 @@ "uri-templates": "^0.2.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