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

@vitest/web-worker

Package Overview
Dependencies
Maintainers
4
Versions
205
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitest/web-worker - npm Package Compare versions

Comparing version 1.5.3 to 1.6.0

1

dist/index.js
import { defineWebWorkers } from './pure.js';
import 'vitest/execute';
import 'node:fs';
import 'debug';

@@ -4,0 +5,0 @@ import 'node:worker_threads';

10

dist/pure.js
import { VitestExecutor } from 'vitest/execute';
import { readFileSync } from 'node:fs';
import createDebug from 'debug';

@@ -330,4 +331,9 @@ import { MessageChannel } from 'node:worker_threads';

return {
fetchModule(id) {
return rpc.fetch(id, "web");
async fetchModule(id) {
const result = await rpc.fetch(id, "web");
if (result.id && !result.externalize) {
const code = readFileSync(result.id, "utf-8");
return { code };
}
return result;
},

@@ -334,0 +340,0 @@ resolveId(id, importer) {

{
"name": "@vitest/web-worker",
"type": "module",
"version": "1.5.3",
"version": "1.6.0",
"description": "Web Worker support for testing in Vitest",

@@ -6,0 +6,0 @@ "license": "MIT",

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