New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vitest/ui

Package Overview
Dependencies
Maintainers
4
Versions
278
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitest/ui - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

dist/client/assets/index-CkLwJNkP.js

21

dist/index.js

@@ -0,1 +1,2 @@

import fs from 'node:fs';
import { fileURLToPath } from 'node:url';

@@ -8,3 +9,3 @@ import { toArray } from '@vitest/utils';

var version = "3.0.4";
var version = "3.0.5";

@@ -52,2 +53,20 @@ var index = (ctx) => {

const clientDist = resolve(fileURLToPath(import.meta.url), "../client");
const clientIndexHtml = fs.readFileSync(resolve(clientDist, "index.html"), "utf-8");
server.middlewares.use(function vitestUiHtmlMiddleware(req, res, next) {
if (req.url) {
const url = new URL(req.url, "http://localhost");
if (url.pathname === base) {
const html = clientIndexHtml.replace(
"<!-- !LOAD_METADATA! -->",
`<script>window.VITEST_API_TOKEN = ${JSON.stringify(ctx.config.api.token)}<\/script>`
);
res.setHeader("Cache-Control", "no-cache, max-age=0, must-revalidate");
res.setHeader("Content-Type", "text/html; charset=utf-8");
res.write(html);
res.end();
return;
}
}
next();
});
server.middlewares.use(

@@ -54,0 +73,0 @@ base,

10

package.json
{
"name": "@vitest/ui",
"type": "module",
"version": "3.0.4",
"version": "3.0.5",
"description": "UI for Vitest",

@@ -37,3 +37,3 @@ "license": "MIT",

"peerDependencies": {
"vitest": "3.0.4"
"vitest": "3.0.5"
},

@@ -47,3 +47,3 @@ "dependencies": {

"tinyrainbow": "^2.0.0",
"@vitest/utils": "3.0.4"
"@vitest/utils": "3.0.5"
},

@@ -79,4 +79,4 @@ "devDependencies": {

"vue-virtual-scroller": "2.0.0-beta.8",
"@vitest/ws-client": "3.0.4",
"@vitest/runner": "3.0.4"
"@vitest/runner": "3.0.5",
"@vitest/ws-client": "3.0.5"
},

@@ -83,0 +83,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc