@vscode/test-web
Advanced tools
Comparing version 0.0.55 to 0.0.56
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
238953
5579
15
+ Addedglob@^10.4.2
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.5(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)