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.9.7 to 0.10.0

2

dist/index.d.ts

@@ -1,1 +0,1 @@

export * from "./lib/index";
export * from "./lib";

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

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./lib/index"));
__export(require("./lib"));

@@ -1,2 +0,3 @@

export declare class McmaApiError {
import { McmaObject } from "@mcma/core";
export declare class McmaApiError extends McmaObject {
status: number;

@@ -3,0 +4,0 @@ message: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const http_statuses_1 = require("./http-statuses");
class McmaApiError {
const core_1 = require("@mcma/core");
class McmaApiError extends core_1.McmaObject {
constructor(status, message, path) {
super("ApiError", {});
this.status = status;
this.message = message;
this.path = path;
this["@type"] = "ApiError";
this.timestamp = new Date();

@@ -11,0 +12,0 @@ this.error = http_statuses_1.getStatusError(this.status);

@@ -1,3 +0,3 @@

export * from "./routing/index";
export * from "./http/index";
export * from "./routing";
export * from "./http";
export * from "./context-variable-provider-ext";

@@ -4,0 +4,0 @@ export * from "./filters";

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

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./routing/index"));
__export(require("./http/index"));
__export(require("./routing"));
__export(require("./http"));
__export(require("./context-variable-provider-ext"));

@@ -10,0 +10,0 @@ __export(require("./filters"));

@@ -1,4 +0,4 @@

export * from "./defaults/index";
export * from "./defaults";
export * from "./route-collection";
export * from "./route-handler";
export * from "./route";

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

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./defaults/index"));
__export(require("./defaults"));
__export(require("./route-collection"));
__export(require("./route"));

@@ -7,4 +7,4 @@ import { McmaApiRoute } from "./route";

addRoute(methodOrRoute: string | McmaApiRoute, path?: string, handler?: McmaApiRouteHandler): McmaApiRouteCollection;
addRoutes(routes: any): McmaApiRouteCollection;
addRoutes(routes: McmaApiRouteCollection | McmaApiRoute[]): McmaApiRouteCollection;
[Symbol.iterator](): IterableIterator<McmaApiRoute>;
}
{
"name": "@mcma/api",
"version": "0.9.7",
"version": "0.10.0",
"description": "Node module for building APIs based on the EBU MCMA framework",

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

"peerDependencies": {
"@mcma/client": "0.9.7",
"@mcma/core": "0.9.7",
"@mcma/data": "0.9.7"
"@mcma/client": "0.10.0",
"@mcma/core": "0.10.0",
"@mcma/data": "0.10.0"
},
"devDependencies": {
"@mcma/client": "0.9.7",
"@mcma/core": "0.9.7",
"@mcma/data": "0.9.7",
"@mcma/client": "0.10.0",
"@mcma/core": "0.10.0",
"@mcma/data": "0.10.0",
"@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