summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/lru-cache
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/lru-cache')
-rw-r--r--deps/npm/node_modules/lru-cache/index.js5
-rw-r--r--deps/npm/node_modules/lru-cache/package.json48
2 files changed, 24 insertions, 29 deletions
diff --git a/deps/npm/node_modules/lru-cache/index.js b/deps/npm/node_modules/lru-cache/index.js
index 3f047f8ca7..bd35b53589 100644
--- a/deps/npm/node_modules/lru-cache/index.js
+++ b/deps/npm/node_modules/lru-cache/index.js
@@ -11,7 +11,7 @@ var util = require('util')
var Yallist = require('yallist')
// use symbols if possible, otherwise just _props
-var hasSymbol = typeof Symbol === 'function'
+var hasSymbol = typeof Symbol === 'function' && process.env._nodeLRUCacheForceNoSymbol !== '1'
var makeSymbol
if (hasSymbol) {
makeSymbol = function (key) {
@@ -221,6 +221,7 @@ LRUCache.prototype.dumpLru = function () {
return this[LRU_LIST]
}
+/* istanbul ignore next */
LRUCache.prototype.inspect = function (n, opts) {
var str = 'LRUCache {'
var extras = false
@@ -434,7 +435,7 @@ function isStale (self, hit) {
function trim (self) {
if (self[LENGTH] > self[MAX]) {
for (var walker = self[LRU_LIST].tail;
- self[LENGTH] > self[MAX] && walker !== null;) {
+ self[LENGTH] > self[MAX] && walker !== null;) {
// We know that we're about to delete this one, and also
// what the next least recently used key will be, so just
// go ahead and set it now.
diff --git a/deps/npm/node_modules/lru-cache/package.json b/deps/npm/node_modules/lru-cache/package.json
index 238a6894e9..14760df465 100644
--- a/deps/npm/node_modules/lru-cache/package.json
+++ b/deps/npm/node_modules/lru-cache/package.json
@@ -1,43 +1,32 @@
{
- "_args": [
- [
- "lru-cache@4.1.3",
- "/Users/rebecca/code/npm"
- ]
- ],
- "_from": "lru-cache@4.1.3",
- "_id": "lru-cache@4.1.3",
+ "_from": "lru-cache@4.1.5",
+ "_id": "lru-cache@4.1.5",
"_inBundle": false,
- "_integrity": "sha512-fFEhvcgzuIoJVUF8fYr5KR0YqxD238zgObTps31YdADwPPAp82a4M8TrckkWyx7ekNlf9aBcVn81cFwwXngrJA==",
+ "_integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
"_location": "/lru-cache",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
- "raw": "lru-cache@4.1.3",
+ "raw": "lru-cache@4.1.5",
"name": "lru-cache",
"escapedName": "lru-cache",
- "rawSpec": "4.1.3",
+ "rawSpec": "4.1.5",
"saveSpec": null,
- "fetchSpec": "4.1.3"
+ "fetchSpec": "4.1.5"
},
"_requiredBy": [
+ "#USER",
"/",
- "/cacache",
"/cross-spawn",
"/foreground-child/cross-spawn",
- "/libnpmhook/npm-registry-fetch",
"/make-fetch-happen",
- "/npm-profile/cacache",
- "/npm-profile/make-fetch-happen",
- "/npm-registry-fetch",
- "/npm-registry-fetch/cacache",
- "/npm-registry-fetch/make-fetch-happen",
- "/pacote"
+ "/npm-registry-fetch"
],
- "_resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.3.tgz",
- "_spec": "4.1.3",
- "_where": "/Users/rebecca/code/npm",
+ "_resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
+ "_shasum": "8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd",
+ "_spec": "lru-cache@4.1.5",
+ "_where": "/Users/aeschright/code/cli",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me"
@@ -45,15 +34,17 @@
"bugs": {
"url": "https://github.com/isaacs/node-lru-cache/issues"
},
+ "bundleDependencies": false,
"dependencies": {
"pseudomap": "^1.0.2",
"yallist": "^2.1.2"
},
+ "deprecated": false,
"description": "A cache object that deletes the least-recently-used items.",
"devDependencies": {
"benchmark": "^2.1.4",
- "standard": "^5.4.1",
- "tap": "^11.1.4"
+ "standard": "^12.0.1",
+ "tap": "^12.1.0"
},
"files": [
"index.js"
@@ -72,11 +63,14 @@
"url": "git://github.com/isaacs/node-lru-cache.git"
},
"scripts": {
+ "coveragerport": "tap --coverage-report=html",
+ "lintfix": "standard --fix test/*.js index.js",
"postpublish": "git push origin --all; git push origin --tags",
"posttest": "standard test/*.js index.js",
- "postversion": "npm publish",
+ "postversion": "npm publish --tag=legacy",
"preversion": "npm test",
+ "snap": "TAP_SNAPSHOT=1 tap test/*.js -J",
"test": "tap test/*.js --100 -J"
},
- "version": "4.1.3"
+ "version": "4.1.5"
}