@vitest/web-worker 0.15.1 → 0.17.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/index.js
CHANGED
@@ -96,8 +96,7 @@ function defineWebWorker() {
|
|
96
96
|
(_a = this.onmessage) == null ? void 0 : _a.call(this, e);
|
97
97
|
});
|
98
98
|
const runner = new InlineWorkerRunner(options, context);
|
99
|
-
|
100
|
-
id = id.replace("?worker_file", "").replace(/^file:\/+/, "/");
|
99
|
+
const id = (url instanceof URL ? url.toString() : url).replace(/^file:\/+/, "/");
|
101
100
|
const fsPath = toFilePath(id, config.root);
|
102
101
|
invalidates.push(fsPath);
|
103
102
|
runner.executeFile(fsPath).then(() => {
|
package/dist/pure.js
CHANGED
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.17.0",
|
5
5
|
"description": "Web Worker support for testing in Vitest",
|
6
6
|
"exports": {
|
7
7
|
".": {
|
@@ -26,10 +26,10 @@
|
|
26
26
|
"vitest": "*"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"vite-node": "0.
|
29
|
+
"vite-node": "0.17.0"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
|
-
"rollup": "^2.75.
|
32
|
+
"rollup": "^2.75.7"
|
33
33
|
},
|
34
34
|
"scripts": {
|
35
35
|
"build": "rimraf dist && rollup -c",
|