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

cuculus

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cuculus - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

18

lib/cuculus.js

@@ -12,3 +12,3 @@ var PREVIOUS = Symbol('PREVIOUS');

var cached, original, path, cache,
onRestore;
onRestore, stub;

@@ -35,10 +35,12 @@ try {

onRestore = [];
stub = replacer(original, function(fn) {
if (typeof fn != "function") {
throw new TypeError("Should be function");
}
onRestore.push(fn);
});
cache = {
exports: replacer(original, function(fn) {
if (typeof fn != "function") {
throw new TypeError("Should be function");
}
onRestore.push(fn);
})
exports: stub == void 0 ? original : stub
};

@@ -45,0 +47,0 @@ cache[PREVIOUS] = cached || { exports: original };

{
"name": "cuculus",
"version": "0.2.0",
"version": "0.2.1",
"engines" : { "node" : ">=0.12.0" },

@@ -5,0 +5,0 @@ "description": "Simplest require mocking",

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