diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-05-01 05:43:56 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-05-01 05:46:52 +0300 |
commit | 530a2e369128270f3e098f0e9be061533003b0eb (patch) | |
tree | 2c1c7150ce2a73c12cac33291ef901bd0fae52ec /node_modules/lru-cache | |
parent | d88958ca02ce81b027b9919aec539d0145875a59 (diff) |
lru-cache@2.6.2
Revert change to aging behavior.
Diffstat (limited to 'node_modules/lru-cache')
-rw-r--r-- | node_modules/lru-cache/bar.js | 1 | ||||
-rw-r--r-- | node_modules/lru-cache/foo.js | 1 | ||||
-rw-r--r-- | node_modules/lru-cache/lib/lru-cache.js | 1 | ||||
-rw-r--r-- | node_modules/lru-cache/package.json | 19 | ||||
-rw-r--r-- | node_modules/lru-cache/test/timeout.js | 21 |
5 files changed, 12 insertions, 31 deletions
diff --git a/node_modules/lru-cache/bar.js b/node_modules/lru-cache/bar.js new file mode 100644 index 000000000..bccb25836 --- /dev/null +++ b/node_modules/lru-cache/bar.js @@ -0,0 +1 @@ +console.log("bar");module.exports = "bar"; require("./foo.js") diff --git a/node_modules/lru-cache/foo.js b/node_modules/lru-cache/foo.js new file mode 100644 index 000000000..c8a77e36e --- /dev/null +++ b/node_modules/lru-cache/foo.js @@ -0,0 +1 @@ +console.log(require(".")) diff --git a/node_modules/lru-cache/lib/lru-cache.js b/node_modules/lru-cache/lib/lru-cache.js index 575b4476c..d66e7a238 100644 --- a/node_modules/lru-cache/lib/lru-cache.js +++ b/node_modules/lru-cache/lib/lru-cache.js @@ -238,7 +238,6 @@ function isStale(self, hit) { function use (self, hit) { shiftLU(self, hit) hit.lu = self._mru ++ - if (self._maxAge) hit.now = Date.now() self._lruList[hit.lu] = hit } diff --git a/node_modules/lru-cache/package.json b/node_modules/lru-cache/package.json index f6c859c1e..c3b70c765 100644 --- a/node_modules/lru-cache/package.json +++ b/node_modules/lru-cache/package.json @@ -1,7 +1,7 @@ { "name": "lru-cache", "description": "A cache object that deletes the least-recently-used items.", - "version": "2.6.1", + "version": "2.6.2", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me" @@ -27,23 +27,23 @@ "type": "MIT", "url": "http://github.com/isaacs/node-lru-cache/raw/master/LICENSE" }, - "gitHead": "ff3dfd40e437fa619f09610f45d1ac523bbf27c9", + "gitHead": "278d05fcc714636eeedb3959bca80c20c19a61df", "bugs": { "url": "https://github.com/isaacs/node-lru-cache/issues" }, "homepage": "https://github.com/isaacs/node-lru-cache#readme", - "_id": "lru-cache@2.6.1", - "_shasum": "9933eff15453fae1d27096365143c724e85c6cbd", - "_from": "lru-cache@>=2.6.1 <2.7.0", - "_npmVersion": "2.8.1", + "_id": "lru-cache@2.6.2", + "_shasum": "77741638c6dc972e503dbe41dcb6bfdfba499a38", + "_from": "lru-cache@>=2.6.2 <2.7.0", + "_npmVersion": "2.8.4", "_nodeVersion": "1.4.2", "_npmUser": { "name": "isaacs", "email": "isaacs@npmjs.com" }, "dist": { - "shasum": "9933eff15453fae1d27096365143c724e85c6cbd", - "tarball": "http://registry.npmjs.org/lru-cache/-/lru-cache-2.6.1.tgz" + "shasum": "77741638c6dc972e503dbe41dcb6bfdfba499a38", + "tarball": "http://registry.npmjs.org/lru-cache/-/lru-cache-2.6.2.tgz" }, "maintainers": [ { @@ -52,5 +52,6 @@ } ], "directories": {}, - "_resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.6.1.tgz" + "_resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.6.2.tgz", + "readme": "ERROR: No README data found!" } diff --git a/node_modules/lru-cache/test/timeout.js b/node_modules/lru-cache/test/timeout.js deleted file mode 100644 index 5dce62a9e..000000000 --- a/node_modules/lru-cache/test/timeout.js +++ /dev/null @@ -1,21 +0,0 @@ -var test = require("tap").test -var LRU = require("../") - -var cache = LRU( { - max: 1, - maxAge: 500 -} ); - -test('set the key', function (t) { - cache.set( "1234", 1 ); - t.end() -}) - -for (var i = 0; i < 10; i ++) { - test('get after ' + i + '00ms', function (t) { - setTimeout(function () { - t.equal(cache.get('1234'), 1) - t.end() - }, 100) - }) -} |