New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eclipse-glsp/protocol

Package Overview
Dependencies
Maintainers
6
Versions
310
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eclipse-glsp/protocol - npm Package Compare versions

Comparing version 1.1.0-next.1021fd1.232 to 1.1.0-next.1860e3b.240

lib/client-server-protocol/glsp-client.d.ts

19

lib/action-protocol/element-validation.d.ts

@@ -32,2 +32,11 @@ import { Action, RequestAction, ResponseAction } from './base-protocol';

/**
* The default reasons for markers.
*/
export declare namespace MarkersReason {
/** Markers resulting from a batch validation */
const BATCH = "batch";
/** Markers resulting from a live validation */
const LIVE = "live";
}
/**
* Action to retrieve markers for the specified model elements. Sent from the client to the server.

@@ -43,2 +52,6 @@ * The corresponding namespace declares the action kind as constant and offers helper functions for type guard checks

elementsIDs: string[];
/**
* The reason for this request, such as `batch` or `live` validation. `batch` by default.
*/
reason?: string;
}

@@ -50,2 +63,3 @@ export declare namespace RequestMarkersAction {

requestId?: string;
reason?: string;
}): RequestMarkersAction;

@@ -66,2 +80,6 @@ }

readonly markers: Marker[];
/**
* The reason for message, such as `batch` or `live` validation.
*/
reason?: string;
}

@@ -73,2 +91,3 @@ export declare namespace SetMarkersAction {

responseId?: string;
reason?: string;
}): SetMarkersAction;

@@ -75,0 +94,0 @@ }

18

lib/action-protocol/element-validation.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeleteMarkersAction = exports.SetMarkersAction = exports.RequestMarkersAction = exports.MarkerKind = void 0;
exports.DeleteMarkersAction = exports.SetMarkersAction = exports.RequestMarkersAction = exports.MarkersReason = exports.MarkerKind = void 0;
/********************************************************************************
* Copyright (c) 2021-2022 STMicroelectronics and others.
* Copyright (c) 2021-2023 STMicroelectronics and others.
*

@@ -30,2 +30,12 @@ * This program and the accompanying materials are made available under the

})(MarkerKind = exports.MarkerKind || (exports.MarkerKind = {}));
/**
* The default reasons for markers.
*/
var MarkersReason;
(function (MarkersReason) {
/** Markers resulting from a batch validation */
MarkersReason.BATCH = 'batch';
/** Markers resulting from a live validation */
MarkersReason.LIVE = 'live';
})(MarkersReason = exports.MarkersReason || (exports.MarkersReason = {}));
var RequestMarkersAction;

@@ -39,3 +49,3 @@ (function (RequestMarkersAction) {

function create(elementsIDs, options = {}) {
return Object.assign({ kind: RequestMarkersAction.KIND, requestId: '', elementsIDs }, options);
return Object.assign({ kind: RequestMarkersAction.KIND, requestId: '', elementsIDs, reason: MarkersReason.BATCH }, options);
}

@@ -52,3 +62,3 @@ RequestMarkersAction.create = create;

function create(markers, options = {}) {
return Object.assign({ kind: SetMarkersAction.KIND, responseId: '', markers }, options);
return Object.assign({ kind: SetMarkersAction.KIND, responseId: '', markers, reason: MarkersReason.BATCH }, options);
}

@@ -55,0 +65,0 @@ SetMarkersAction.create = create;

@@ -31,7 +31,11 @@ /********************************************************************************

export * from './action-protocol';
export * from './client-server-protocol/glsp-client';
export * from './client-server-protocol/jsonrpc/base-jsonrpc-glsp-client';
export * from './client-server-protocol/jsonrpc/glsp-jsonrpc-client';
export * from './client-server-protocol/jsonrpc/glsp-jsonrpc-server';
export * from './client-server-protocol/jsonrpc/websocket-connection';
export * from './client-server-protocol/node/glsp-server';
export * from './client-server-protocol/node/node-glsp-client';
export * from './client-server-protocol/types';
export * from './disposable/disposable';
export * from './glsp-client';
export * from './jsonrpc/base-jsonrpc-glsp-client';
export * from './jsonrpc/glsp-jsonrpc-client';
export * from './jsonrpc/websocket-connection';
export * from './model/default-types';

@@ -38,0 +42,0 @@ export * from './model/model-schema';

@@ -49,7 +49,11 @@ "use strict";

__exportStar(require("./action-protocol"), exports);
__exportStar(require("./client-server-protocol/glsp-client"), exports);
__exportStar(require("./client-server-protocol/jsonrpc/base-jsonrpc-glsp-client"), exports);
__exportStar(require("./client-server-protocol/jsonrpc/glsp-jsonrpc-client"), exports);
__exportStar(require("./client-server-protocol/jsonrpc/glsp-jsonrpc-server"), exports);
__exportStar(require("./client-server-protocol/jsonrpc/websocket-connection"), exports);
__exportStar(require("./client-server-protocol/node/glsp-server"), exports);
__exportStar(require("./client-server-protocol/node/node-glsp-client"), exports);
__exportStar(require("./client-server-protocol/types"), exports);
__exportStar(require("./disposable/disposable"), exports);
__exportStar(require("./glsp-client"), exports);
__exportStar(require("./jsonrpc/base-jsonrpc-glsp-client"), exports);
__exportStar(require("./jsonrpc/glsp-jsonrpc-client"), exports);
__exportStar(require("./jsonrpc/websocket-connection"), exports);
__exportStar(require("./model/default-types"), exports);

@@ -56,0 +60,0 @@ __exportStar(require("./model/model-schema"), exports);

@@ -30,3 +30,3 @@ /********************************************************************************

* Initializes a container with the given {@link ContainerConfiguration}. The container configuration
* consists of the set of {@link ContainerModule}s that should be loaded in the container and/or
* consists of the set of {@link ContainerModule}s that should be loaded in the container.
* In addition, for more fine-grained control {@link ModuleConfiguration}s can be passed as part fo the container configuration

@@ -33,0 +33,0 @@ * Module loading is distinct,this means each module will only get loaded once even if it is configured multiple times.

@@ -8,3 +8,3 @@ "use strict";

* Initializes a container with the given {@link ContainerConfiguration}. The container configuration
* consists of the set of {@link ContainerModule}s that should be loaded in the container and/or
* consists of the set of {@link ContainerModule}s that should be loaded in the container.
* In addition, for more fine-grained control {@link ModuleConfiguration}s can be passed as part fo the container configuration

@@ -11,0 +11,0 @@ * Module loading is distinct,this means each module will only get loaded once even if it is configured multiple times.

{
"name": "@eclipse-glsp/protocol",
"version": "1.1.0-next.1021fd1.232+1021fd1",
"version": "1.1.0-next.1860e3b.240+1860e3b",
"description": "The protocol definition for client-server communication in GLSP",

@@ -62,3 +62,3 @@ "keywords": [

},
"gitHead": "1021fd1bd209d97d4f547c22b3f37d6873c63435"
"gitHead": "1860e3b802622a250154b56ca1ea720ee128fe8e"
}
/********************************************************************************
* Copyright (c) 2022 STMicroelectronics and others.
* Copyright (c) 2022-2023 STMicroelectronics and others.
*

@@ -48,3 +48,4 @@ * This program and the accompanying materials are made available under the

requestId: '',
elementsIDs: ['myIds']
elementsIDs: ['myIds'],
reason: 'batch'
};

@@ -58,3 +59,4 @@ const { elementsIDs } = expected;

requestId: 'myRequest',
elementsIDs: ['myIds']
elementsIDs: ['myIds'],
reason: 'batch'
};

@@ -90,2 +92,3 @@ const { elementsIDs, requestId } = expected;

responseId: '',
reason: 'batch',
markers: [{ description: 'desc', elementId: 'myId', kind: 'info', label: 'string' }]

@@ -100,2 +103,3 @@ };

responseId: 'myResponse',
reason: 'batch',
markers: [{ description: 'desc', elementId: 'myId', kind: 'info', label: 'string' }]

@@ -102,0 +106,0 @@ };

/********************************************************************************
* Copyright (c) 2021-2022 STMicroelectronics and others.
* Copyright (c) 2021-2023 STMicroelectronics and others.
*

@@ -51,2 +51,12 @@ * This program and the accompanying materials are made available under the

/**
* The default reasons for markers.
*/
export namespace MarkersReason {
/** Markers resulting from a batch validation */
export const BATCH = 'batch';
/** Markers resulting from a live validation */
export const LIVE = 'live';
}
/**
* Action to retrieve markers for the specified model elements. Sent from the client to the server.

@@ -63,2 +73,7 @@ * The corresponding namespace declares the action kind as constant and offers helper functions for type guard checks

elementsIDs: string[];
/**
* The reason for this request, such as `batch` or `live` validation. `batch` by default.
*/
reason?: string;
}

@@ -73,3 +88,3 @@

export function create(elementsIDs: string[], options: { requestId?: string } = {}): RequestMarkersAction {
export function create(elementsIDs: string[], options: { requestId?: string; reason?: string } = {}): RequestMarkersAction {
return {

@@ -79,2 +94,3 @@ kind: KIND,

elementsIDs,
reason: MarkersReason.BATCH,
...options

@@ -99,2 +115,7 @@ };

readonly markers: Marker[];
/**
* The reason for message, such as `batch` or `live` validation.
*/
reason?: string;
}

@@ -109,3 +130,3 @@

export function create(markers: Marker[], options: { responseId?: string } = {}): SetMarkersAction {
export function create(markers: Marker[], options: { responseId?: string; reason?: string } = {}): SetMarkersAction {
return {

@@ -115,2 +136,3 @@ kind: KIND,

markers,
reason: MarkersReason.BATCH,
...options

@@ -117,0 +139,0 @@ };

@@ -50,7 +50,11 @@ /********************************************************************************

export * from './action-protocol';
export * from './client-server-protocol/glsp-client';
export * from './client-server-protocol/jsonrpc/base-jsonrpc-glsp-client';
export * from './client-server-protocol/jsonrpc/glsp-jsonrpc-client';
export * from './client-server-protocol/jsonrpc/glsp-jsonrpc-server';
export * from './client-server-protocol/jsonrpc/websocket-connection';
export * from './client-server-protocol/node/glsp-server';
export * from './client-server-protocol/node/node-glsp-client';
export * from './client-server-protocol/types';
export * from './disposable/disposable';
export * from './glsp-client';
export * from './jsonrpc/base-jsonrpc-glsp-client';
export * from './jsonrpc/glsp-jsonrpc-client';
export * from './jsonrpc/websocket-connection';
export * from './model/default-types';

@@ -57,0 +61,0 @@ export * from './model/model-schema';

@@ -17,3 +17,3 @@ /********************************************************************************

import { Container, ContainerModule, interfaces } from 'inversify';
import { asArray, distinctAdd, MaybeArray, remove } from './array-util';
import { MaybeArray, asArray, distinctAdd, remove } from './array-util';
import { hasFunctionProp, hasNumberProp } from './type-util';

@@ -34,3 +34,3 @@

* Initializes a container with the given {@link ContainerConfiguration}. The container configuration
* consists of the set of {@link ContainerModule}s that should be loaded in the container and/or
* consists of the set of {@link ContainerModule}s that should be loaded in the container.
* In addition, for more fine-grained control {@link ModuleConfiguration}s can be passed as part fo the container configuration

@@ -37,0 +37,0 @@ * Module loading is distinct,this means each module will only get loaded once even if it is configured multiple times.

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