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

co-mocha

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

co-mocha - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

8

co-mocha.js

@@ -43,8 +43,8 @@ var co = require('co');

var suffix = path.sep + path.join('', 'mocha', 'index.js');
var children = require.main && require.main.children || [];
var children = require.cache || {};
return children.filter(function (child) {
return child.id.slice(suffix.length * -1) === suffix;
return Object.keys(children).filter(function (child) {
return child.slice(suffix.length * -1) === suffix;
}).map(function (child) {
return child.exports;
return children[child].exports;
});

@@ -51,0 +51,0 @@ };

{
"name": "co-mocha",
"version": "1.0.2",
"version": "1.0.3",
"description": "Enable support for generators in Mocha tests",

@@ -5,0 +5,0 @@ "main": "co-mocha.js",

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