@vitest/web-worker 0.29.7 → 0.30.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.
Files changed (2) hide show
  1. package/dist/pure.js +2 -2
  2. package/package.json +5 -5
package/dist/pure.js CHANGED
@@ -452,7 +452,7 @@ function createWorkerConstructor(options) {
452
452
  }, _a.__VITEST_WEB_WORKER__ = true, _a;
453
453
  }
454
454
 
455
- const convertNodePortToWebPort = (port) => {
455
+ function convertNodePortToWebPort(port) {
456
456
  if (!("addEventListener" in port)) {
457
457
  Object.defineProperty(port, "addEventListener", {
458
458
  value(...args) {
@@ -494,7 +494,7 @@ const convertNodePortToWebPort = (port) => {
494
494
  });
495
495
  }
496
496
  return port;
497
- };
497
+ }
498
498
  function createSharedWorkerConstructor() {
499
499
  var _a;
500
500
  const runnerOptions = getRunnerOptions();
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@vitest/web-worker",
3
3
  "type": "module",
4
- "version": "0.29.7",
4
+ "version": "0.30.0",
5
5
  "description": "Web Worker support for testing in Vitest",
6
+ "license": "MIT",
6
7
  "repository": {
7
8
  "type": "git",
8
9
  "url": "git+https://github.com/vitest-dev/vitest.git",
9
10
  "directory": "packages/web-worker"
10
11
  },
12
+ "sideEffects": false,
11
13
  "exports": {
12
14
  ".": {
13
15
  "types": "./index.d.ts",
@@ -31,14 +33,12 @@
31
33
  "vitest": "*"
32
34
  },
33
35
  "dependencies": {
34
- "debug": "^4.3.4",
35
- "vite-node": "0.29.7"
36
+ "debug": "^4.3.4"
36
37
  },
37
38
  "devDependencies": {
38
39
  "@types/debug": "^4.1.7",
39
40
  "@types/ungap__structured-clone": "^0.3.0",
40
- "@ungap/structured-clone": "^1.0.1",
41
- "rollup": "^2.79.1"
41
+ "@ungap/structured-clone": "^1.0.2"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "rimraf dist && rollup -c",