@vscode/test-web 0.0.63 → 0.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/out/server/download.js +3 -3
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ CLI options:
|
|
|
81
81
|
| --extensionTestsPath | A path to a test module to run. |
|
|
82
82
|
| --quality | `insiders` (default), or `stable`. Ignored when sourcesPath is provided. |
|
|
83
83
|
| --commit | commitHash The servion of the server to use. Defaults to latest build version of the given quality. Ignored when sourcesPath is provided. |
|
|
84
|
-
| --sourcesPath | If set, runs the server from VS Code sources located at the given path. Make sure the sources and extensions are compiled (`
|
|
84
|
+
| --sourcesPath | If set, runs the server from VS Code sources located at the given path. Make sure the sources and extensions are compiled (`npm run compile` and `npm run compile-web`). |
|
|
85
85
|
| --headless | If set, hides the browser. Defaults to true when an extensionTestsPath is provided, otherwise false. |
|
|
86
86
|
| --permission | Permission granted to the opened browser: e.g. `clipboard-read`, `clipboard-write`. See [full list of options](https://playwright.dev/docs/api/class-browsercontext#browser-context-grant-permissions). Argument can be provided multiple times. |
|
|
87
87
|
| --coi | If set, enables cross origin isolation. Defaults to false. |
|
package/out/server/download.js
CHANGED
|
@@ -24,15 +24,14 @@ async function getLatestBuild(quality) {
|
|
|
24
24
|
async function getDownloadURL(quality, commit) {
|
|
25
25
|
return new Promise((resolve, reject) => {
|
|
26
26
|
const url = `https://update.code.visualstudio.com/commit:${commit}/web-standalone/${quality}`;
|
|
27
|
-
|
|
28
|
-
httpLibrary.get(url, { method: 'HEAD', ...getAgent(url) }, res => {
|
|
29
|
-
console.log(res.statusCode, res.headers.location);
|
|
27
|
+
https.get(url, { method: 'HEAD', ...getAgent(url) }, res => {
|
|
30
28
|
if ((res.statusCode === 301 || res.statusCode === 302 || res.statusCode === 307) && res.headers.location) {
|
|
31
29
|
resolve(res.headers.location);
|
|
32
30
|
}
|
|
33
31
|
else {
|
|
34
32
|
resolve(undefined);
|
|
35
33
|
}
|
|
34
|
+
res.resume(); // Discard response body
|
|
36
35
|
});
|
|
37
36
|
});
|
|
38
37
|
}
|
|
@@ -59,6 +58,7 @@ async function downloadAndUntar(downloadUrl, destination, message) {
|
|
|
59
58
|
}
|
|
60
59
|
received += chunk.length;
|
|
61
60
|
});
|
|
61
|
+
res.on('error', reject);
|
|
62
62
|
res.on('end', () => {
|
|
63
63
|
if (timeout) {
|
|
64
64
|
clearTimeout(timeout);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vscode/test-web",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.64",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"install-extensions": "npm i --prefix=fs-provider && npm i --prefix=sample",
|
|
6
6
|
"compile": "tsc -b ./ && npm run compile-fs-provider",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@koa/cors": "^5.0.0",
|
|
27
27
|
"@koa/router": "^13.1.0",
|
|
28
|
-
"@playwright/browser-chromium": "^1.48.
|
|
28
|
+
"@playwright/browser-chromium": "^1.48.2",
|
|
29
29
|
"glob": "^11.0.0",
|
|
30
30
|
"gunzip-maybe": "^1.4.2",
|
|
31
31
|
"http-proxy-agent": "^7.0.2",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"koa-mount": "^4.0.0",
|
|
36
36
|
"koa-static": "^5.0.0",
|
|
37
37
|
"minimist": "^1.2.8",
|
|
38
|
-
"playwright": "^1.48.
|
|
38
|
+
"playwright": "^1.48.2",
|
|
39
39
|
"tar-fs": "^3.0.6",
|
|
40
40
|
"vscode-uri": "^3.0.8"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@eslint/eslintrc": "^3.
|
|
44
|
-
"@eslint/js": "^9.
|
|
43
|
+
"@eslint/eslintrc": "^3.2.0",
|
|
44
|
+
"@eslint/js": "^9.15.0",
|
|
45
45
|
"@types/gunzip-maybe": "^1.4.2",
|
|
46
46
|
"@types/koa": "^2.15.0",
|
|
47
47
|
"@types/koa__router": "^12.0.4",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@types/minimist": "^1.2.5",
|
|
52
52
|
"@types/node": "^20.16.13",
|
|
53
53
|
"@types/tar-fs": "^2.0.4",
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
55
|
-
"@typescript-eslint/parser": "^8.
|
|
56
|
-
"eslint": "^9.
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^8.14.0",
|
|
55
|
+
"@typescript-eslint/parser": "^8.14.0",
|
|
56
|
+
"eslint": "^9.15.0",
|
|
57
57
|
"@tony.ganchev/eslint-plugin-header": "^3.1.2",
|
|
58
58
|
"typescript": "^5.6.3"
|
|
59
59
|
},
|