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.4.3 to 0.4.4

18

index.d.ts

@@ -111,4 +111,4 @@ import { ContextVariableProvider, Resource, ResourceType } from "@mcma/core";

overrideHandler(handler: McmaApiRouteHandler): void;
onStarted(handleOnStarted: ((requestContext: McmaApiRequestContext) => Promise<void>));
onCompleted(handleOnCompleted: ((requestContext: McmaApiRequestContext) => Promise<T>));
onStarted(handleOnStarted: ((requestContext: McmaApiRequestContext) => Promise<void>)): void;
onCompleted(handleOnCompleted: ((requestContext: McmaApiRequestContext) => Promise<T>)): void;
build(): McmaApiRoute;

@@ -125,6 +125,6 @@ }

export interface DefaultRouteConfigurator<T> {
configure(configureRoute: (defaultRouteBuilder: DefaultRouteBuilder<T>) => void): DefaultRouteCollectionBuilder;
add(): DefaultRouteCollectionBuilder;
remove(): DefaultRouteCollectionBuilder;
export interface DefaultRouteConfigurator<T extends Resource> {
configure<TConfigure = T | T[]>(configureRoute: (defaultRouteBuilder: DefaultRouteBuilder<TConfigure>) => void): DefaultRouteCollectionBuilder<T>;
add(): DefaultRouteCollectionBuilder<T>;
remove(): DefaultRouteCollectionBuilder<T>;
}

@@ -134,3 +134,3 @@

constructor(dbTableProvider: DbTableProvider<T>, resourceType: ResourceType<T>, root?: string);
addAll(): DefaultRouteCollectionBuilder;
addAll(): DefaultRouteCollectionBuilder<T>;
route(selectRoute: (defaultRoutes: DefaultRoutes<T>) => DefaultRouteBuilder<T>): DefaultRouteConfigurator<T>;

@@ -142,6 +142,2 @@ build(): McmaApiRouteCollection;

export interface DefaultRoutesBuilderFactory {
builder<T extends Resource>(getDbTableProvider: DbTableProviderFactory<T>, root?: string): DefaultRouteCollectionBuilder;
}
export class McmaApiController {

@@ -148,0 +144,0 @@ constructor(routes: McmaApiRouteCollection);

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

@@ -29,4 +29,4 @@ "engines": {

"dependencies": {
"@mcma/client": "0.4.3",
"@mcma/data": "0.4.3",
"@mcma/client": "0.4.4",
"@mcma/data": "0.4.4",
"pluralize": "^7.0.0",

@@ -33,0 +33,0 @@ "uri-templates": "^0.2.0",

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