@mcma/api
Advanced tools
Comparing version 0.13.12 to 0.13.13
@@ -21,2 +21,3 @@ "use strict"; | ||
async handleRequest(requestContext) { | ||
var _a; | ||
const request = requestContext.request; | ||
@@ -29,3 +30,3 @@ const response = requestContext.response; | ||
let requestBodyOK = true; | ||
if (request.body && typeof request.body === "string") { | ||
if (request.body && typeof request.body === "string" && ((_a = request.headers[Object.keys(request.headers).find(h => h.toLowerCase() === "content-type")]) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === "application/json") { | ||
try { | ||
@@ -32,0 +33,0 @@ request.body = JSON.parse(request.body, core_1.Utils.reviver); |
{ | ||
"name": "@mcma/api", | ||
"version": "0.13.12", | ||
"version": "0.13.13", | ||
"description": "Node module for building APIs based on the EBU MCMA framework", | ||
@@ -40,12 +40,12 @@ "engines": { | ||
"peerDependencies": { | ||
"@mcma/client": "0.13.12", | ||
"@mcma/core": "0.13.12", | ||
"@mcma/data": "0.13.12", | ||
"@mcma/worker-invoker": "0.13.12" | ||
"@mcma/client": "0.13.13", | ||
"@mcma/core": "0.13.13", | ||
"@mcma/data": "0.13.13", | ||
"@mcma/worker-invoker": "0.13.13" | ||
}, | ||
"devDependencies": { | ||
"@mcma/client": "0.13.12", | ||
"@mcma/core": "0.13.12", | ||
"@mcma/data": "0.13.12", | ||
"@mcma/worker-invoker": "0.13.12", | ||
"@mcma/client": "0.13.13", | ||
"@mcma/core": "0.13.13", | ||
"@mcma/data": "0.13.13", | ||
"@mcma/worker-invoker": "0.13.13", | ||
"@types/node": "^13.7.4", | ||
@@ -52,0 +52,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
58292
1208