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

sprotty-vscode

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sprotty-vscode - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

1

lib/sprotty-webview.d.ts

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

protected createWebviewPanel(): vscode.WebviewPanel;
protected readonly localResourceRoots: vscode.Uri[];
protected getWebViewContent(): string;

@@ -39,0 +40,0 @@ protected connect(): Promise<void>;

13

lib/sprotty-webview.js

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

var diagramPanel = vscode.window.createWebviewPanel(this.diagramIdentifier.diagramType || 'diagram', this.title, vscode.ViewColumn.Beside, {
localResourceRoots: [
vscode.Uri.file(path.join(this.extension.context.extensionPath, 'diagram'))
],
localResourceRoots: this.localResourceRoots,
enableScripts: true,

@@ -108,2 +106,11 @@ retainContextWhenHidden: true

};
Object.defineProperty(SprottyWebview.prototype, "localResourceRoots", {
get: function () {
return [
vscode.Uri.file(path.join(this.extension.context.extensionPath, this.scriptPath))
];
},
enumerable: true,
configurable: true
});
SprottyWebview.prototype.getWebViewContent = function () {

@@ -110,0 +117,0 @@ return "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, height=device-height\">\n <title>" + this.title + "</title>\n <link\n rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.6.3/css/all.css\"\n integrity=\"sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/\"\n crossorigin=\"anonymous\">\n </head>\n <body>\n <div id=\"" + this.diagramIdentifier.clientId + "\" style=\"height: 100%;\"></div>\n <script src=\"" + this.resourceUri(this.scriptPath) + "\"></script>\n </body>\n </html>";

@@ -10,3 +10,3 @@ {

},
"version": "0.0.6",
"version": "0.0.7",
"engines": {

@@ -13,0 +13,0 @@ "vscode": "^1.30.0"

@@ -65,5 +65,3 @@ /********************************************************************************

{
localResourceRoots: [
vscode.Uri.file(path.join(this.extension.context.extensionPath, 'diagram'))
],
localResourceRoots: this.localResourceRoots,
enableScripts: true,

@@ -76,2 +74,8 @@ retainContextWhenHidden: true

protected get localResourceRoots(): vscode.Uri[] {
return [
vscode.Uri.file(path.join(this.extension.context.extensionPath, this.scriptPath))
];
}
protected getWebViewContent() {

@@ -78,0 +82,0 @@ return `

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