@vitest/browser 0.21.0 → 0.22.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.
@@ -1,4 +1,4 @@
1
- const p = function polyfill() {
1
+ (function polyfill() {
2
2
  const relList = document.createElement("link").relList;
3
3
  if (relList && relList.supports && relList.supports("modulepreload")) {
4
4
  return;
@@ -38,8 +38,7 @@ const p = function polyfill() {
38
38
  const fetchOpts = getFetchOpts(link);
39
39
  fetch(link.href, fetchOpts);
40
40
  }
41
- };
42
- p();
41
+ })();
43
42
  const scriptRel = "modulepreload";
44
43
  const assetsURL = function(dep) {
45
44
  return "/" + dep;
@@ -21,7 +21,7 @@
21
21
  border: none;
22
22
  }
23
23
  </style>
24
- <script type="module" crossorigin src="/assets/index.477167ab.js"></script>
24
+ <script type="module" crossorigin src="/assets/index.f4061d56.js"></script>
25
25
  </head>
26
26
  <body>
27
27
  <iframe id="vitest-ui" src=""></iframe>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/browser",
3
3
  "type": "module",
4
- "version": "0.21.0",
4
+ "version": "0.22.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.5",
29
- "modern-node-polyfills": "^0.0.7",
28
+ "mlly": "^0.5.12",
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.21.0",
35
+ "@vitest/ws-client": "0.22.1",
36
36
  "picocolors": "^1.0.0",
37
- "rollup": "^2.77.2",
38
- "vitest": "0.21.0"
37
+ "rollup": "^2.78.0",
38
+ "vitest": "0.22.1"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "rimraf dist && pnpm build:node && pnpm build:client && pnpm copy",
@@ -44,6 +44,6 @@
44
44
  "dev:client": "vite build --watch",
45
45
  "dev:node": "rollup -c --watch --watch.include=node/**",
46
46
  "dev": "rimraf dist && run-p dev:node dev:client",
47
- "copy": "esmo scripts/copy-ui-to-browser.ts"
47
+ "copy": "esno scripts/copy-ui-to-browser.ts"
48
48
  }
49
49
  }