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.13.12 to 0.13.13

3

dist/lib/http/mcma-api-controller.js

@@ -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",

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