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

decache

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decache - npm Package Compare versions

Comparing version 4.3.0 to 4.4.0

4

decache.js

@@ -66,3 +66,5 @@ var path = require('path'); // if module is locally defined we path.resolve it

current.children.forEach(function (child) {
if (!visited[child.id]) {
// ignore .node files, decachine native modules throws a
// "module did not self-register" error on second require
if (path.extname(child.filename) !== '.node' && !visited[child.id]) {
run(child);

@@ -69,0 +71,0 @@ }

{
"name": "decache",
"version": "4.3.0",
"version": "4.4.0",
"description": "decache (Delete Cache) lets you delete modules from node.js require() cache; useful when testing your modules/projects.",

@@ -34,2 +34,3 @@ "main": "decache.js",

"istanbul": "^0.4.4",
"modern-syslog": "~1.1.4",
"pre-commit": "^1.1.3",

@@ -36,0 +37,0 @@ "tap-spec": "^4.1.1",

@@ -58,2 +58,5 @@ # decache

Note that native modules with the `.node` extension are ignored from decaching because
they behave unexpectedly when decached.
If you have any questions or need more examples, please create a GitHub issue:

@@ -60,0 +63,0 @@ https://github.com/nelsonic/decache/issues

@@ -77,1 +77,10 @@ // awesome tests here!

});
test('.node extensions are ignored', function(t) {
require('modern-syslog');
decache('modern-syslog');
t.doesNotThrow(function() {
require('modern-syslog');
});
t.end();
});
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