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 1.6.0 to 1.6.1

dist/client/assets/index-9agQl9q3.js

19

dist/index.js

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

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

@@ -25,2 +26,20 @@ import { resolve, basename } from 'pathe';

const clientDist = resolve(fileURLToPath(import.meta.url), "../client");
const clientIndexHtml = fs.readFileSync(resolve(clientDist, "index.html"), "utf-8");
server.middlewares.use((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(base, sirv(clientDist, {

@@ -27,0 +46,0 @@ single: true,

10

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

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

"peerDependencies": {
"vitest": "1.6.0"
"vitest": "1.6.1"
},

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

"sirv": "^2.0.4",
"@vitest/utils": "1.6.0"
"@vitest/utils": "1.6.1"
},

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

"vue-router": "^4.2.5",
"@vitest/runner": "1.6.0",
"@vitest/ws-client": "1.6.0"
"@vitest/runner": "1.6.1",
"@vitest/ws-client": "1.6.1"
},

@@ -81,0 +81,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