@vitest/web-worker 3.0.0 → 3.0.2
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 +1 -1
- package/package.json +2 -2
package/dist/pure.js
CHANGED
@@ -298,7 +298,7 @@ function assertGlobalExists(name) {
|
|
298
298
|
function createClonedMessageEvent(data, transferOrOptions, clone) {
|
299
299
|
const transfer = Array.isArray(transferOrOptions) ? transferOrOptions : transferOrOptions?.transfer;
|
300
300
|
debug("clone worker message %o", data);
|
301
|
-
const origin = typeof location === "undefined" ?
|
301
|
+
const origin = typeof location === "undefined" ? undefined : location.origin;
|
302
302
|
if (typeof structuredClone === "function" && clone === "native") {
|
303
303
|
debug("create message event, using native structured clone");
|
304
304
|
return new MessageEvent("message", {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/web-worker",
|
3
3
|
"type": "module",
|
4
|
-
"version": "3.0.
|
4
|
+
"version": "3.0.2",
|
5
5
|
"description": "Web Worker support for testing in Vitest",
|
6
6
|
"license": "MIT",
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
@@ -33,7 +33,7 @@
|
|
33
33
|
"dist"
|
34
34
|
],
|
35
35
|
"peerDependencies": {
|
36
|
-
"vitest": "3.0.
|
36
|
+
"vitest": "3.0.2"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
39
|
"debug": "^4.4.0"
|