@mcma/api
Advanced tools
Comparing version 0.9.2 to 0.9.3
@@ -6,3 +6,3 @@ "use strict"; | ||
const mcma_api_error_1 = require("./mcma-api-error"); | ||
const getDefaultResponseHeaders = () => { | ||
function getDefaultResponseHeaders() { | ||
return { | ||
@@ -13,3 +13,3 @@ "Date": new Date().toUTCString(), | ||
}; | ||
}; | ||
} | ||
class McmaApiController { | ||
@@ -16,0 +16,0 @@ constructor(routes) { |
@@ -19,10 +19,5 @@ "use strict"; | ||
}).onCompleted(async (requestContext, jobAssignment) => { | ||
await workerInvoker.invoke(context_variable_provider_ext_1.getWorkerFunctionId(requestContext), { | ||
operationName: "ProcessJobAssignment", | ||
contextVariables: requestContext.getAllContextVariables(), | ||
input: { | ||
jobAssignmentId: jobAssignment.id | ||
}, | ||
tracker: jobAssignment.tracker | ||
}); | ||
await workerInvoker.invoke(context_variable_provider_ext_1.getWorkerFunctionId(requestContext), "ProcessJobAssignment", requestContext.getAllContextVariables(), { | ||
jobAssignmentId: jobAssignment.id | ||
}, jobAssignment.tracker); | ||
return jobAssignment; | ||
@@ -32,2 +27,1 @@ })); | ||
exports.defaultRoutesForJobs = defaultRoutesForJobs; | ||
; |
{ | ||
"name": "@mcma/api", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "Node module for building APIs based on the EBU MCMA framework", | ||
@@ -40,10 +40,10 @@ "engines": { | ||
"peerDependencies": { | ||
"@mcma/client": "0.9.2", | ||
"@mcma/core": "0.9.2", | ||
"@mcma/data": "0.9.2" | ||
"@mcma/client": "0.9.3", | ||
"@mcma/core": "0.9.3", | ||
"@mcma/data": "0.9.3" | ||
}, | ||
"devDependencies": { | ||
"@mcma/client": "0.9.2", | ||
"@mcma/core": "0.9.2", | ||
"@mcma/data": "0.9.2", | ||
"@mcma/client": "0.9.3", | ||
"@mcma/core": "0.9.3", | ||
"@mcma/data": "0.9.3", | ||
"@types/node": "^13.7.4", | ||
@@ -50,0 +50,0 @@ "@types/pluralize": "0.0.29", |
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
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
61175
1261