@vitest/browser 0.22.0 → 0.23.1
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.
|
@@ -396,7 +396,10 @@ function createClient(url, options = {}) {
|
|
|
396
396
|
serialize: stringify,
|
|
397
397
|
deserialize: parse
|
|
398
398
|
};
|
|
399
|
-
ctx.rpc = createBirpc(
|
|
399
|
+
ctx.rpc = createBirpc(
|
|
400
|
+
functions,
|
|
401
|
+
birpcHandlers
|
|
402
|
+
);
|
|
400
403
|
let openPromise;
|
|
401
404
|
function reconnect(reset = false) {
|
|
402
405
|
if (reset)
|
package/dist/client/index.html
CHANGED
package/dist/index.js
CHANGED
|
@@ -40,10 +40,13 @@ var index = (base = "/") => {
|
|
|
40
40
|
return null;
|
|
41
41
|
},
|
|
42
42
|
async configureServer(server) {
|
|
43
|
-
server.middlewares.use(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
server.middlewares.use(
|
|
44
|
+
base,
|
|
45
|
+
sirv(resolve(distRoot, "client"), {
|
|
46
|
+
single: false,
|
|
47
|
+
dev: true
|
|
48
|
+
})
|
|
49
|
+
);
|
|
47
50
|
}
|
|
48
51
|
},
|
|
49
52
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/browser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.23.1",
|
|
5
5
|
"description": "Browser running for Vitest",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"local-pkg": "^0.4.2",
|
|
28
|
-
"mlly": "^0.5.
|
|
28
|
+
"mlly": "^0.5.14",
|
|
29
29
|
"modern-node-polyfills": "0.0.9",
|
|
30
30
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
31
31
|
"sirv": "^2.0.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/ws": "^8.5.3",
|
|
35
|
-
"@vitest/ws-client": "0.
|
|
35
|
+
"@vitest/ws-client": "0.23.1",
|
|
36
36
|
"picocolors": "^1.0.0",
|
|
37
|
-
"rollup": "^2.
|
|
38
|
-
"vitest": "0.
|
|
37
|
+
"rollup": "^2.78.1",
|
|
38
|
+
"vitest": "0.23.1"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "rimraf dist && pnpm build:node && pnpm build:client && pnpm copy",
|