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

@vscode/test-web

Package Overview
Dependencies
Maintainers
7
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vscode/test-web - npm Package Compare versions

Comparing version 0.0.55 to 0.0.56

15

out/server/workbench.js

@@ -18,6 +18,7 @@ "use strict";

class Workbench {
constructor(baseUrl, dev, esm, builtInExtensions = [], productOverrides) {
constructor(baseUrl, dev, esm, devCSSModules, builtInExtensions = [], productOverrides) {
this.baseUrl = baseUrl;
this.dev = dev;
this.esm = esm;
this.devCSSModules = devCSSModules;
this.builtInExtensions = builtInExtensions;

@@ -36,2 +37,3 @@ this.productOverrides = productOverrides;

WORKBENCH_MAIN: this.getMain(),
WORKBENCH_DEV_CSS_MODULES: JSON.stringify(this.devCSSModules)
};

@@ -117,3 +119,4 @@ try {

const productOverrides = await getProductOverrides(config.build.location);
ctx.state.workbench = new Workbench(`${ctx.protocol}://${ctx.host}/static/sources`, true, config.esm, builtInExtensions, {
const devCSSModules = config.esm ? await getDevCssModules(config.build.location) : [];
ctx.state.workbench = new Workbench(`${ctx.protocol}://${ctx.host}/static/sources`, true, config.esm, devCSSModules, builtInExtensions, {
...productOverrides,

@@ -126,3 +129,3 @@ webEndpointUrlTemplate: `${ctx.protocol}://{{uuid}}.${ctx.host}/static/sources`,

const baseUrl = `${ctx.protocol}://${ctx.host}/static/build`;
ctx.state.workbench = new Workbench(baseUrl, false, config.esm, [], {
ctx.state.workbench = new Workbench(baseUrl, false, config.esm, [], [], {
webEndpointUrlTemplate: `${ctx.protocol}://{{uuid}}.${ctx.host}/static/build`,

@@ -133,3 +136,3 @@ webviewContentExternalBaseUrlTemplate: `${ctx.protocol}://{{uuid}}.${ctx.host}/static/build/out/vs/workbench/contrib/webview/browser/pre/`

else if (config.build.type === 'cdn') {
ctx.state.workbench = new Workbench(config.build.uri, false, config.esm);
ctx.state.workbench = new Workbench(config.build.uri, false, config.esm, []);
}

@@ -160,1 +163,5 @@ await next();

}
async function getDevCssModules(vsCodeDevLocation) {
const glob = await Promise.resolve().then(() => require('glob'));
return glob.glob('**/*.css', { cwd: path.join(vsCodeDevLocation, 'out') });
}
{
"name": "@vscode/test-web",
"version": "0.0.55",
"version": "0.0.56",
"scripts": {

@@ -26,4 +26,9 @@ "install-extensions": "npm i --prefix=fs-provider && npm i --prefix=sample",

"dependencies": {
"@koa/cors": "^5.0.0",
"@koa/router": "^12.0.1",
"@koa/cors": "^5.0.0",
"@playwright/browser-chromium": "^1.45.0",
"glob": "^10.4.2",
"gunzip-maybe": "^1.4.2",
"http-proxy-agent": "^7.0.2",
"https-proxy-agent": "^7.0.4",
"koa": "^2.15.3",

@@ -35,18 +40,14 @@ "koa-morgan": "^1.0.1",

"playwright": "^1.45.0",
"@playwright/browser-chromium": "^1.45.0",
"vscode-uri": "^3.0.8",
"http-proxy-agent": "^7.0.2",
"https-proxy-agent": "^7.0.4",
"tar-fs": "^3.0.6",
"gunzip-maybe": "^1.4.2"
"vscode-uri": "^3.0.8"
},
"devDependencies": {
"@types/gunzip-maybe": "^1.4.2",
"@types/koa": "^2.15.0",
"@types/koa__router": "^12.0.4",
"@types/koa-morgan": "^1.0.8",
"@types/koa-mount": "^4.0.5",
"@types/koa-static": "^4.0.4",
"@types/koa__router": "^12.0.4",
"@types/minimist": "^1.2.5",
"@types/node": "^20.14.9",
"@types/gunzip-maybe": "^1.4.2",
"@types/tar-fs": "^2.0.4",

@@ -68,2 +69,2 @@ "@typescript-eslint/eslint-plugin": "^7.14.1",

}
}
}

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