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

sprotty-vscode-protocol

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sprotty-vscode-protocol - npm Package Compare versions

Comparing version 0.1.1-alpha.17 to 0.2.0

CHANGELOG.md

5

lib/handshake.d.ts

@@ -19,3 +19,3 @@ /********************************************************************************

}
export declare function isWebviewReadyMessage(object: any): object is WebviewReadyMessage;
export declare function isWebviewReadyMessage(object: unknown): object is WebviewReadyMessage;
export declare const SprottyDiagramIdentifier: unique symbol;

@@ -27,2 +27,3 @@ export interface SprottyDiagramIdentifier {

}
export declare function isDiagramIdentifier(object: any): object is SprottyDiagramIdentifier;
export declare function isDiagramIdentifier(object: unknown): object is SprottyDiagramIdentifier;
//# sourceMappingURL=handshake.d.ts.map

@@ -18,4 +18,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var sprotty_protocol_1 = require("sprotty-protocol");
function isWebviewReadyMessage(object) {
return object !== undefined && object.hasOwnProperty('readyMessage');
return sprotty_protocol_1.hasOwnProperty(object, 'readyMessage');
}

@@ -25,5 +26,5 @@ exports.isWebviewReadyMessage = isWebviewReadyMessage;

function isDiagramIdentifier(object) {
return object !== undefined && object.hasOwnProperty('clientId') && object.hasOwnProperty('diagramType') && object.hasOwnProperty('uri');
return sprotty_protocol_1.hasOwnProperty(object, ['clientId', 'diagramType', 'uri']);
}
exports.isDiagramIdentifier = isDiagramIdentifier;
//# sourceMappingURL=handshake.js.map

3

lib/index.d.ts

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

********************************************************************************/
export * from './editing';
export * from './handshake';
export * from './sprotty';
//# sourceMappingURL=index.d.ts.map

@@ -21,5 +21,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./editing"));
__export(require("./handshake"));
__export(require("./sprotty"));
//# sourceMappingURL=index.js.map
{
"name": "sprotty-vscode-protocol",
"version": "0.1.1-alpha.17+ee3ad7c",
"version": "0.2.0",
"displayName": "Sprotty VSCode Integration - Protocol between webview and extension",

@@ -43,18 +43,22 @@ "description": "Glue code to integrate Sprotty diagrams in VSCode extensions (protocol part)",

"path": "^0.12.7",
"vscode-languageclient": "^5.1.0-next.9"
"sprotty-protocol": "~0.11.0",
"vscode-languageserver-protocol": "^3.16.0"
},
"devDependencies": {
"@types/node": "^8.0.0",
"rimraf": "^2.6.3",
"tslint": "^5.11.0",
"typescript": "^3.1.3"
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"eslint": "^8.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-no-null": "^1.0.2",
"rimraf": "latest",
"typescript": "~3.8.3"
},
"scripts": {
"prepare": "yarn run clean && yarn run build",
"clean": "rimraf lib sprotty-vscode*.tgz",
"build": "tsc",
"clean": "rimraf lib",
"build": "tsc && yarn run lint",
"watch": "tsc -w",
"lint": "tslint -c ./tslint.json --project ./tsconfig.json"
},
"gitHead": "ee3ad7c27e42eef156ea1684893cd3fd1fbabf5f"
"lint": "eslint -c ../configs/.eslintrc.js \"src/**/!(*.spec.ts*)\""
}
}

@@ -17,5 +17,7 @@ /********************************************************************************

/////////////////////////////////////
// initial handshake
import { hasOwnProperty } from 'sprotty-protocol';
// ----------------------------------
// Initial Handshake
export interface WebviewReadyMessage {

@@ -25,4 +27,4 @@ readyMessage: string

export function isWebviewReadyMessage(object: any): object is WebviewReadyMessage {
return object !== undefined && object.hasOwnProperty('readyMessage');
export function isWebviewReadyMessage(object: unknown): object is WebviewReadyMessage {
return hasOwnProperty(object, 'readyMessage');
}

@@ -38,4 +40,4 @@

export function isDiagramIdentifier(object: any): object is SprottyDiagramIdentifier {
return object !== undefined && object.hasOwnProperty('clientId') && object.hasOwnProperty('diagramType') && object.hasOwnProperty('uri');
}
export function isDiagramIdentifier(object: unknown): object is SprottyDiagramIdentifier {
return hasOwnProperty(object, ['clientId', 'diagramType', 'uri']);
}

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

export * from './editing';
export * from './handshake';
export * from './sprotty';

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