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.12.1 to 0.12.2

3

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

@@ -20,3 +20,2 @@ "use strict";

async handleRequest(requestContext) {
var _a;
const request = requestContext.request;

@@ -112,3 +111,3 @@ const response = requestContext.response;

const logger = requestContext.getLogger();
(_a = logger) === null || _a === void 0 ? void 0 : _a.error(error);
logger === null || logger === void 0 ? void 0 : logger.error(error);
response.statusCode = http_statuses_1.HttpStatusCode.InternalServerError;

@@ -115,0 +114,0 @@ response.headers = getDefaultResponseHeaders();

@@ -6,13 +6,13 @@ "use strict";

constructor(config) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
var _a, _b, _c, _d, _e, _f, _g;
super();
this.id = (_b = (_a = config) === null || _a === void 0 ? void 0 : _a.id, (_b !== null && _b !== void 0 ? _b : null));
this.path = (_d = (_c = config) === null || _c === void 0 ? void 0 : _c.path, (_d !== null && _d !== void 0 ? _d : null));
this.httpMethod = (_f = (_e = config) === null || _e === void 0 ? void 0 : _e.httpMethod, (_f !== null && _f !== void 0 ? _f : null));
this.headers = (_h = (_g = config) === null || _g === void 0 ? void 0 : _g.headers, (_h !== null && _h !== void 0 ? _h : {}));
this.pathVariables = (_k = (_j = config) === null || _j === void 0 ? void 0 : _j.pathVariables, (_k !== null && _k !== void 0 ? _k : {}));
this.queryStringParameters = (_m = (_l = config) === null || _l === void 0 ? void 0 : _l.queryStringParameters, (_m !== null && _m !== void 0 ? _m : {}));
this.body = (_p = (_o = config) === null || _o === void 0 ? void 0 : _o.body, (_p !== null && _p !== void 0 ? _p : null));
this.id = (_a = config === null || config === void 0 ? void 0 : config.id) !== null && _a !== void 0 ? _a : null;
this.path = (_b = config === null || config === void 0 ? void 0 : config.path) !== null && _b !== void 0 ? _b : null;
this.httpMethod = (_c = config === null || config === void 0 ? void 0 : config.httpMethod) !== null && _c !== void 0 ? _c : null;
this.headers = (_d = config === null || config === void 0 ? void 0 : config.headers) !== null && _d !== void 0 ? _d : {};
this.pathVariables = (_e = config === null || config === void 0 ? void 0 : config.pathVariables) !== null && _e !== void 0 ? _e : {};
this.queryStringParameters = (_f = config === null || config === void 0 ? void 0 : config.queryStringParameters) !== null && _f !== void 0 ? _f : {};
this.body = (_g = config === null || config === void 0 ? void 0 : config.body) !== null && _g !== void 0 ? _g : null;
}
}
exports.McmaApiRequest = McmaApiRequest;

@@ -25,5 +25,5 @@ "use strict";

var _a;
return new route_1.McmaApiRoute(this.httpMethod, this.path, (_a = this.handler, (_a !== null && _a !== void 0 ? _a : this.defaultRouteHandlerConfigurator.create())));
return new route_1.McmaApiRoute(this.httpMethod, this.path, (_a = this.handler) !== null && _a !== void 0 ? _a : this.defaultRouteHandlerConfigurator.create());
}
}
exports.DefaultRouteBuilder = DefaultRouteBuilder;

@@ -5,9 +5,8 @@ "use strict";

constructor(initialRoutes) {
var _a, _b, _c, _d, _e;
this.included = [];
this.query = (_a = initialRoutes) === null || _a === void 0 ? void 0 : _a.query;
this.create = (_b = initialRoutes) === null || _b === void 0 ? void 0 : _b.create;
this.get = (_c = initialRoutes) === null || _c === void 0 ? void 0 : _c.get;
this.update = (_d = initialRoutes) === null || _d === void 0 ? void 0 : _d.update;
this.delete = (_e = initialRoutes) === null || _e === void 0 ? void 0 : _e.delete;
this.query = initialRoutes === null || initialRoutes === void 0 ? void 0 : initialRoutes.query;
this.create = initialRoutes === null || initialRoutes === void 0 ? void 0 : initialRoutes.create;
this.get = initialRoutes === null || initialRoutes === void 0 ? void 0 : initialRoutes.get;
this.update = initialRoutes === null || initialRoutes === void 0 ? void 0 : initialRoutes.update;
this.delete = initialRoutes === null || initialRoutes === void 0 ? void 0 : initialRoutes.delete;
}

@@ -14,0 +13,0 @@ addAll() {

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

@@ -40,10 +40,10 @@ "engines": {

"peerDependencies": {
"@mcma/client": "0.12.1",
"@mcma/core": "0.12.1",
"@mcma/data": "0.12.1"
"@mcma/client": "0.12.2",
"@mcma/core": "0.12.2",
"@mcma/data": "0.12.2"
},
"devDependencies": {
"@mcma/client": "0.12.1",
"@mcma/core": "0.12.1",
"@mcma/data": "0.12.1",
"@mcma/client": "0.12.2",
"@mcma/core": "0.12.2",
"@mcma/data": "0.12.2",
"@types/node": "^13.7.4",

@@ -50,0 +50,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