sprotty-vscode-protocol
Advanced tools
Comparing version
@@ -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 |
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
35610
8.14%24
33.33%1
-50%4
Infinity%3
50%8
100%7
16.67%2
100%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed