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
5
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 0.9.0-next.c5944e10 to 0.9.0-next.c9ea4e00

8

lib/glsp-client.d.ts

@@ -45,4 +45,4 @@ /********************************************************************************

/**
* GLSP protocol version that the server is implementing.
*/
* GLSP protocol version that the server is implementing.
*/
protocolVersion: string;

@@ -77,4 +77,4 @@ /**

/**
* Additional custom arguments.
*/
* Additional custom arguments.
*/
args?: Args;

@@ -81,0 +81,0 @@ }

"use strict";
/********************************************************************************
* Copyright (c) 2020-2021 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/
/* eslint-disable @typescript-eslint/naming-convention */
Object.defineProperty(exports, "__esModule", { value: true });

@@ -14,2 +30,3 @@ exports.GLSPClient = exports.ClientState = exports.ApplicationIdProvider = void 0;

exports.ApplicationIdProvider = ApplicationIdProvider;
// eslint-disable-next-line no-shadow
var ClientState;

@@ -48,4 +65,5 @@ (function (ClientState) {

(function (GLSPClient) {
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
function isOptions(object) {
return object !== undefined && 'id' in object && typeof object['id'] === 'string';
return typeof object === 'object' && 'id' in object && typeof object['id'] === 'string';
}

@@ -52,0 +70,0 @@ GLSPClient.isOptions = isOptions;

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

this.state = glsp_client_1.ClientState.Stopping;
return this.onStop = this.resolveConnection().then(connection => {
return (this.onStop = this.resolveConnection().then(connection => {
connection.dispose();

@@ -79,3 +79,3 @@ this.state = glsp_client_1.ClientState.Stopped;

this.resolvedConnection = undefined;
});
}));
}

@@ -82,0 +82,0 @@ resolveConnection() {

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

(function (JsonrpcGLSPClient) {
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
function isOptions(object) {

@@ -11,0 +12,0 @@ return glsp_client_1.GLSPClient.isOptions(object) && 'connectionProvider' in object;

/********************************************************************************
* Copyright (c) 2020 EclipseSource and others.
* Copyright (c) 2020-2021 EclipseSource and others.
*

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

"use strict";
/********************************************************************************
* Copyright (c) 2020 EclipseSource and others.
* Copyright (c) 2020-2021 EclipseSource and others.
*

@@ -5,0 +5,0 @@ * This program and the accompanying materials are made available under the

{
"name": "@eclipse-glsp/protocol",
"version": "0.9.0-next.c5944e10",
"version": "0.9.0-next.c9ea4e00",
"description": "The protocol definition for client-server communication in GLSP",

@@ -5,0 +5,0 @@ "license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",

@@ -5,6 +5,4 @@ # Eclipse GLSP - Client [![build-status](https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fci.eclipse.org%2Fglsp%2Fjob%2Feclipse-glsp%2Fjob%2Fglsp-client%2Fjob%2Fmaster%2F)](https://ci.eclipse.org/glsp/job/eclipse-glsp/job/glsp-client/job/master) [![build-status-server](https://img.shields.io/jenkins/build?jobUrl=https://ci.eclipse.org/glsp/job/deploy-npm-glsp-client/&label=publish)](https://ci.eclipse.org/glsp/job/deploy-npm-glsp-client/)

This project is built with `yarn` and is available from npm via [@eclipse-glsp/protocol](https://www.npmjs.com/package/@eclipse-glsp/protocol).
## More information

@@ -11,0 +9,0 @@

@@ -16,2 +16,4 @@ /********************************************************************************

********************************************************************************/
/* eslint-disable @typescript-eslint/naming-convention */
import { ActionMessage } from 'sprotty';

@@ -23,3 +25,5 @@ import * as uuid from 'uuid';

*/
export interface Args { [key: string]: string | number | boolean }
export interface Args {
[key: string]: string | number | boolean;
}

@@ -29,3 +33,5 @@ /**

*/
export interface ServerActions { [key: string]: string[] }
export interface ServerActions {
[key: string]: string[];
}

@@ -50,6 +56,5 @@ export interface InitializeParameters {

export interface InitializeResult {
/**
* GLSP protocol version that the server is implementing.
*/
* GLSP protocol version that the server is implementing.
*/
protocolVersion: string;

@@ -90,4 +95,4 @@

/**
* Additional custom arguments.
*/
* Additional custom arguments.
*/
args?: Args;

@@ -108,2 +113,3 @@ }

// eslint-disable-next-line no-shadow
export enum ClientState {

@@ -219,4 +225,5 @@ /**

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function isOptions(object: any): object is Options {
return object !== undefined && 'id' in object && typeof object['id'] === 'string';
return typeof object === 'object' && 'id' in object && typeof object['id'] === 'string';
}

@@ -223,0 +230,0 @@

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

export class BaseJsonrpcGLSPClient implements GLSPClient {
readonly id: string;

@@ -113,3 +112,3 @@ protected readonly connectionProvider: ConnectionProvider;

this.state = ClientState.Stopping;
return this.onStop = this.resolveConnection().then(connection => {
return (this.onStop = this.resolveConnection().then(connection => {
connection.dispose();

@@ -120,3 +119,3 @@ this.state = ClientState.Stopped;

this.resolvedConnection = undefined;
});
}));
}

@@ -123,0 +122,0 @@

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

} from 'vscode-ws-jsonrpc';
import {

@@ -44,2 +43,3 @@ DisposeClientSessionParameters,

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export function isOptions(object: any): object is Options {

@@ -51,3 +51,5 @@ return GLSPClient.isOptions(object) && 'connectionProvider' in object;

export const InitializeRequest = new RequestType<InitializeParameters, InitializeResult, void, void>('initialize');
export const InitializeClientSessionRequest = new RequestType<InitializeClientSessionParameters, void, void, void>('initializeClientSession');
export const InitializeClientSessionRequest = new RequestType<InitializeClientSessionParameters, void, void, void>(
'initializeClientSession'
);
export const DisposeClientSessionRequest = new RequestType<DisposeClientSessionParameters, void, void, void>('disposeClientSession');

@@ -54,0 +56,0 @@

/********************************************************************************
* Copyright (c) 2020 EclipseSource and others.
* Copyright (c) 2020-2021 EclipseSource and others.
*

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

}

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