@vitest/web-worker 0.28.5 → 0.29.0
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/dist/pure.js +3 -3
- package/package.json +2 -2
package/dist/pure.js
CHANGED
@@ -323,13 +323,13 @@ function createMessageEvent(data, transferOrOptions, clone) {
|
|
323
323
|
}
|
324
324
|
}
|
325
325
|
function getRunnerOptions() {
|
326
|
-
const { config, rpc, mockMap, moduleCache } = getWorkerState();
|
326
|
+
const { config, ctx, rpc, mockMap, moduleCache } = getWorkerState();
|
327
327
|
return {
|
328
328
|
fetchModule(id) {
|
329
|
-
return rpc.fetch(id);
|
329
|
+
return rpc.fetch(id, ctx.environment.name);
|
330
330
|
},
|
331
331
|
resolveId(id, importer) {
|
332
|
-
return rpc.resolveId(id, importer);
|
332
|
+
return rpc.resolveId(id, importer, ctx.environment.name);
|
333
333
|
},
|
334
334
|
moduleCache,
|
335
335
|
mockMap,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/web-worker",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.29.0",
|
5
5
|
"description": "Web Worker support for testing in Vitest",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -32,7 +32,7 @@
|
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
34
|
"debug": "^4.3.4",
|
35
|
-
"vite-node": "0.
|
35
|
+
"vite-node": "0.29.0"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
38
|
"@types/debug": "^4.1.7",
|