Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uvu

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uvu - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

3

package.json
{
"name": "uvu",
"version": "0.5.4",
"version": "0.5.5",
"repository": "lukeed/uvu",

@@ -51,3 +51,2 @@ "description": "uvu is an extremely fast and lightweight test runner for Node.js and the browser",

"diff": "src/diff.js",
"parse": "src/parse.js",
"assert": "src/assert.js",

@@ -54,0 +53,0 @@ "default": "src/index.js"

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

// @ts-check
const { readdir, stat } = require('fs');

@@ -9,7 +10,2 @@ const { resolve, join } = require('path');

function exists(dep) {
try { return require.resolve(dep) }
catch (err) { return false }
}
async function parse(dir, pattern, opts = {}) {

@@ -26,6 +22,4 @@ if (pattern) pattern = toRegex(pattern);

requires.forEach(name => {
let tmp = exists(name);
if (tmp) return require(tmp);
if (tmp = exists(resolve(name))) return require(tmp);
throw new Error(`Cannot find module '${name}'`);
try { return require(name) }
catch (e) { throw new Error(`Cannot find module "${name}"`) }
});

@@ -58,2 +52,2 @@

exports.parse = parse;
exports.parse = parse;

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