Socket
Socket
Sign inDemoInstall

enhanced-resolve

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enhanced-resolve - npm Package Compare versions

Comparing version 0.5.9 to 0.5.10

37

lib/CachedInputFileSystem.js

@@ -9,3 +9,8 @@ /*

this.data = {};
this.levels = duration > 0 ? [[], [], [], [], [], [], [], [], []] : [];
this.levels = [];
if(duration > 0) {
this.levels.push([], [], [], [], [], [], [], [], []);
for(var i = 8000; i < duration; i+=500)
this.levels.push([]);
}
this.count = 0;

@@ -92,10 +97,16 @@ this.interval = null;

Storage.prototype.purge = function() {
this.count = 0;
clearInterval(this.interval);
this.nextTick = null;
this.data = {};
this.levels.forEach(function(level) {
level.length = 0;
});
Storage.prototype.purge = function(what) {
if(!what) {
this.count = 0;
clearInterval(this.interval);
this.nextTick = null;
this.data = {};
this.levels.forEach(function(level) {
level.length = 0;
});
} else {
for(var i = what.length - 1; i >= 0; i--) {
delete this.data[what[i]];
}
}
};

@@ -128,6 +139,6 @@

CachedInputFileSystem.prototype.purge = function() {
this._statStorage.purge();
this._readdirStorage.purge();
this._readFileStorage.purge();
CachedInputFileSystem.prototype.purge = function(what) {
this._statStorage.purge(what);
this._readdirStorage.purge(what);
this._readFileStorage.purge(what);
};

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

{
"name": "enhanced-resolve",
"version": "0.5.9",
"version": "0.5.10",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "Offers a async require.resolve function. It's highly configurable.",

@@ -0,0 +0,0 @@ # enhanced-resolve

@@ -0,0 +0,0 @@ var Resolver = require("../lib/Resolver");

@@ -0,0 +0,0 @@ var CachedInputFileSystem = require("../lib/CachedInputFileSystem");

module.exports = function a() {
return "This is a";
};
module.exports = function b() {
return "This is b";
};

@@ -0,0 +0,0 @@ module.exports = function b() {

@@ -0,0 +0,0 @@ var complex1 = require("./lib/complex1");

@@ -0,0 +0,0 @@ var a = require("./a");

@@ -0,0 +0,0 @@ var a = require("./a");

@@ -0,0 +0,0 @@ var a = require("./a");

module.exports = function a() {
return "This is m1/a";
};
module.exports = function a() {
return "This is m1/b";
};
module.exports = function() {
"module.exports = 'This is m2-loader/b';";
}
module.exports = "This is m2/b";

@@ -0,0 +0,0 @@ var MemoryInputFileSystem = require("../lib/MemoryInputFileSystem");

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ var resolve = require("../");

Sorry, the diff of this file is not supported yet

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