Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eclipse-emfcloud/modelserver-plugin-ext

Package Overview
Dependencies
Maintainers
8
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eclipse-emfcloud/modelserver-plugin-ext - npm Package Compare versions

Comparing version 0.2.0-next.46e550b.20 to 0.2.0-next.4b57c0e.50

lib/model-service.d.ts

4

lib/command-provider.d.ts

@@ -12,2 +12,3 @@ /********************************************************************************

import { ModelServerCommand } from '@eclipse-emfcloud/modelserver-client';
import * as URI from 'urijs';
import { Transaction } from './executor';

@@ -34,2 +35,3 @@ import { MaybePromise } from './util';

*
* @param modelUri the URI of the model being edited.
* @param customCommand the custom command to translate to _Upstream Model Server_ primitives

@@ -39,4 +41,4 @@ * @returns either a command to substitute for the custom command (perhaps a compound command) or a

*/
getCommands(customCommand: ModelServerCommand): MaybePromise<ModelServerCommand | Transaction>;
getCommands(modelUri: URI, customCommand: ModelServerCommand): MaybePromise<ModelServerCommand | Transaction>;
}
//# sourceMappingURL=command-provider.d.ts.map

@@ -13,2 +13,3 @@ /********************************************************************************

import { Operation } from 'fast-json-patch';
import * as URI from 'urijs';
/**

@@ -25,6 +26,7 @@ * Protocol of a context in which commands may be executed and JSON patches applied.

*
* @param modelUri the URI of the model being edited.
* @param command a command to be executed on the model
* @return the result of the command's execution
*/
execute(command: ModelServerCommand): Promise<ModelUpdateResult>;
execute(modelUri: URI, command: ModelServerCommand): Promise<ModelUpdateResult>;
/**

@@ -44,3 +46,3 @@ * Apply a JSON patch to the model.

*/
export declare type Transaction = (executor: Executor) => Promise<boolean>;
export type Transaction = (executor: Executor) => Promise<boolean>;
//# sourceMappingURL=executor.d.ts.map

@@ -15,2 +15,3 @@ /********************************************************************************

export * from './model-server-client';
export * from './model-service';
export * from './plugin';

@@ -17,0 +18,0 @@ export * from './route-provider';

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

__exportStar(require("./model-server-client"), exports);
__exportStar(require("./model-service"), exports);
__exportStar(require("./plugin"), exports);

@@ -33,0 +34,0 @@ __exportStar(require("./route-provider"), exports);

@@ -13,3 +13,3 @@ /********************************************************************************

export declare const Logger: unique symbol;
export declare type Logger = WLogger;
export type Logger = WLogger;
//# sourceMappingURL=logger.d.ts.map

@@ -13,3 +13,3 @@ /********************************************************************************

export declare const ModelServerClientApi: unique symbol;
export declare type ModelServerClientApi = ModelServerClientApiV2;
export type ModelServerClientApi = ModelServerClientApiV2;
//# sourceMappingURL=model-server-client.d.ts.map

@@ -14,4 +14,18 @@ /********************************************************************************

export declare const RouteProvider: unique symbol;
export interface RoutingOptions {
/**
* An optional identifier for the router that middleware providers can
* filter on to determine whether and/or what middlewares to add to it.
*/
routerId?: string;
/**
* An optional indication of whether the route is also implemented in the
* upstream Java server and so needs the `next()` delegation eventually
* to forward to it. If omitted it is assumed that the upstream server
* does not implement the route and so this forwarding is not provided.
*/
forwardToUpstream?: boolean;
}
/** Protocol for a factory of Express routers. */
export declare type RouterFactory = (route: string) => Router;
export type RouterFactory = (route: string, options?: RoutingOptions) => Router;
/**

@@ -35,3 +49,5 @@ * A provider of custom routing in the _Express_ `app`.

/**
* Obtain middleware handlers to install in the given _Express_ `router`.
* Obtain middleware handlers to install in the given _Express_ `router` _before_ its core route handlers.
* These middlewares will be invoked before the main handling of each request, with the opportunity
* to decorate or modify that request.
*

@@ -41,7 +57,20 @@ * @param router the router in which the provided middlewares are to be installed

* to be installed in all routes of the `router`
* @param routerId for a router that was created with an identifier, provides that for application-specific filtering
*
* @returns the middlewares to install in the `route`
*/
getMiddlewares(router: IRouter, route?: string): RequestHandler[];
getMiddlewares?(router: IRouter, route?: string, routerId?: string): RequestHandler[];
/**
* Obtain middleware handlers to install in the given _Express_ `router` _after_ its core route handlers.
* These middlewares will be invoked after the main handling of each request.
*
* @param router the router in which the provided middlewares are to be installed
* @param route the route in which to install the provided middlewares. If not provided, the middlewares are
* to be installed in all routes of the `router`
* @param routerId for a router that was created with an identifier, provides that for application-specific filtering
*
* @returns the middlewares to install in the `route`
*/
getAfterMiddlewares?(router: IRouter, route?: string, routerId?: string): RequestHandler[];
}
//# sourceMappingURL=route-provider.d.ts.map

@@ -12,2 +12,3 @@ /********************************************************************************

import { Operation } from 'fast-json-patch';
import * as URI from 'urijs';
import { Transaction } from './executor';

@@ -36,3 +37,3 @@ import { MaybePromise } from './util';

*/
canTrigger(modelURI: string, patch: Operation[]): boolean;
canTrigger(modelURI: URI, patch: Operation[]): boolean;
/**

@@ -49,4 +50,4 @@ * Obtain follow-up edits triggered by the given `patch`. These may either be

*/
getTriggers(modelURI: string, modelDelta: Operation[]): MaybePromise<Operation[] | Transaction>;
getTriggers(modelURI: URI, modelDelta: Operation[]): MaybePromise<Operation[] | Transaction>;
}
//# sourceMappingURL=trigger-provider.d.ts.map

@@ -11,3 +11,3 @@ /********************************************************************************

*******************************************************************************/
export declare type MaybePromise<T> = T | Promise<T>;
export type MaybePromise<T> = T | Promise<T>;
//# sourceMappingURL=promise-util.d.ts.map

@@ -12,2 +12,3 @@ /********************************************************************************

import { Diagnostic, ModelServerObjectV2 } from '@eclipse-emfcloud/modelserver-client';
import * as URI from 'urijs';
import { MaybePromise } from './util';

@@ -27,3 +28,3 @@ /**

*/
canValidate(model: ModelServerObjectV2, modelURI: string): boolean;
canValidate(model: ModelServerObjectV2, modelURI: URI): boolean;
/**

@@ -36,4 +37,4 @@ * Validate the given `model`.

*/
validate(model: ModelServerObjectV2, modelURI: string): MaybePromise<Diagnostic>;
validate(model: ModelServerObjectV2, modelURI: URI): MaybePromise<Diagnostic>;
}
//# sourceMappingURL=validation-provider.d.ts.map
{
"name": "@eclipse-emfcloud/modelserver-plugin-ext",
"version": "0.2.0-next.46e550b.20+46e550b",
"version": "0.2.0-next.4b57c0e.50+4b57c0e",
"description": "Plug-in extension framework for the Model Server.",

@@ -25,3 +25,4 @@ "license": "(EPL-2.0 OR MIT)",

"files": [
"lib"
"lib",
"src"
],

@@ -33,2 +34,3 @@ "dependencies": {

"inversify": "^5.1.1",
"urijs": "^1.19.11",
"winston": "^3.3.3"

@@ -38,2 +40,3 @@ },

"@types/reflect-metadata": "^0.1.0",
"@types/urijs": "^1.19.19",
"@types/winston": "^2.4.4",

@@ -53,6 +56,6 @@ "eslint-config-prettier": "^8.3.0",

"lint:fix": "eslint --fix --ext .ts,.tsx ./src",
"build": "tsc",
"build": "tsc && yarn lint",
"watch": "tsc -w"
},
"gitHead": "46e550b857dd3546d19725118e16f119fcd7ef7c"
"gitHead": "4b57c0efcffcb87cb03b408115fd37f257a3d337"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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