Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2018-03-23 02:58:45 +0300
committerRebecca Turner <me@re-becca.org>2018-03-23 12:08:57 +0300
commit588eabd23fa04420269b9326cab26d974d9c151f (patch)
treed4e948e6fcf6eaf697d44816aa05c9b2f44ff5bb
parent40aabb94e3f24a9feabb9c490403e10ec9dc254f (diff)
lru-cache@4.1.2
Doc update. Credit: @isaacs
-rw-r--r--node_modules/lru-cache/README.md8
-rw-r--r--node_modules/lru-cache/package.json25
-rw-r--r--package-lock.json34
-rw-r--r--package.json2
4 files changed, 39 insertions, 30 deletions
diff --git a/node_modules/lru-cache/README.md b/node_modules/lru-cache/README.md
index f646c1cb8..d660dd574 100644
--- a/node_modules/lru-cache/README.md
+++ b/node_modules/lru-cache/README.md
@@ -25,10 +25,16 @@ cache.set("key", "value")
cache.get("key") // "value"
// non-string keys ARE fully supported
-var someObject = {}
+// but note that it must be THE SAME object, not
+// just a JSON-equivalent object.
+var someObject = { a: 1 }
cache.set(someObject, 'a value')
+// Object keys are not toString()-ed
cache.set('[object Object]', 'a different value')
assert.equal(cache.get(someObject), 'a value')
+// A similar object with same keys/values won't work,
+// because it's a different object identity
+assert.equal(cache.get({ a: 1 }), undefined)
cache.reset() // empty the cache
```
diff --git a/node_modules/lru-cache/package.json b/node_modules/lru-cache/package.json
index b419b5aa7..b7ce8b119 100644
--- a/node_modules/lru-cache/package.json
+++ b/node_modules/lru-cache/package.json
@@ -1,31 +1,34 @@
{
- "_from": "lru-cache@4.1.1",
- "_id": "lru-cache@4.1.1",
+ "_from": "lru-cache@4.1.2",
+ "_id": "lru-cache@4.1.2",
"_inBundle": false,
- "_integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==",
+ "_integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==",
"_location": "/lru-cache",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
- "raw": "lru-cache@4.1.1",
+ "raw": "lru-cache@4.1.2",
"name": "lru-cache",
"escapedName": "lru-cache",
- "rawSpec": "4.1.1",
+ "rawSpec": "4.1.2",
"saveSpec": null,
- "fetchSpec": "4.1.1"
+ "fetchSpec": "4.1.2"
},
"_requiredBy": [
"#USER",
"/",
+ "/cacache",
+ "/libnpx/yargs/os-locale/execa/cross-spawn",
+ "/npm-profile/make-fetch-happen",
"/pacote",
"/pacote/make-fetch-happen",
"/tap/foreground-child/cross-spawn",
- "/update-notifier/boxen/term-size/execa/cross-spawn-async"
+ "/update-notifier/boxen/term-size/execa/cross-spawn"
],
- "_resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz",
- "_shasum": "622e32e82488b49279114a4f9ecf45e7cd6bba55",
- "_spec": "lru-cache@4.1.1",
+ "_resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz",
+ "_shasum": "45234b2e6e2f2b33da125624c4664929a0224c3f",
+ "_spec": "lru-cache@4.1.2",
"_where": "/Users/rebecca/code/npm",
"author": {
"name": "Isaac Z. Schlueter",
@@ -69,5 +72,5 @@
"preversion": "npm test",
"test": "tap test/*.js --100 -J"
},
- "version": "4.1.1"
+ "version": "4.1.2"
}
diff --git a/package-lock.json b/package-lock.json
index 4bfabb695..cf0e8b6ec 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -87,7 +87,7 @@
"chownr": "1.0.1",
"glob": "7.1.2",
"graceful-fs": "4.1.11",
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"mississippi": "2.0.0",
"mkdirp": "0.5.1",
"move-concurrently": "1.0.1",
@@ -701,12 +701,12 @@
"bluebird": "3.5.1",
"find-npm-prefix": "1.0.2",
"graceful-fs": "4.1.11",
- "lock-verify": "^2.0.0",
+ "lock-verify": "2.0.1",
"npm-lifecycle": "2.0.1",
- "npm-logical-tree": "^1.2.1",
+ "npm-logical-tree": "1.2.1",
"npm-package-arg": "6.0.0",
"pacote": "7.6.1",
- "protoduck": "^5.0.0",
+ "protoduck": "5.0.0",
"read-package-json": "2.0.13",
"rimraf": "2.6.2",
"worker-farm": "1.5.4"
@@ -717,7 +717,7 @@
"resolved": "https://registry.npmjs.org/lock-verify/-/lock-verify-2.0.1.tgz",
"integrity": "sha512-y6aTtefBUKCVfAZcWf9pyfxQJutjvPuoARNKphNY6j8HkFrONOISWpre/bsV3KrEbbh6gyKmOvu3j0fMZfKbZg==",
"requires": {
- "npm-package-arg": "^5.1.2",
+ "npm-package-arg": "5.1.2",
"semver": "5.5.0"
},
"dependencies": {
@@ -744,7 +744,7 @@
"resolved": "https://registry.npmjs.org/protoduck/-/protoduck-5.0.0.tgz",
"integrity": "sha512-agsGWD8/RZrS4ga6v82Fxb0RHIS2RZnbsSue6A9/MBRhB/jcqOANAMNrqM9900b8duj+Gx+T/JMy5IowDoO/hQ==",
"requires": {
- "genfun": "^4.0.1"
+ "genfun": "4.0.1"
},
"dependencies": {
"genfun": {
@@ -960,7 +960,7 @@
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
"integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=",
"requires": {
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"shebang-command": "1.2.0",
"which": "1.3.0"
},
@@ -1196,12 +1196,12 @@
"integrity": "sha1-PNRXSgC2e643OpS3SHcmQFB7eqw="
},
"lru-cache": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz",
- "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==",
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz",
+ "integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==",
"requires": {
- "pseudomap": "1.0.2",
- "yallist": "2.1.2"
+ "pseudomap": "^1.0.2",
+ "yallist": "^2.1.2"
},
"dependencies": {
"pseudomap": {
@@ -1707,7 +1707,7 @@
"http-cache-semantics": "3.8.1",
"http-proxy-agent": "2.0.0",
"https-proxy-agent": "2.1.1",
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"mississippi": "1.3.1",
"node-fetch-npm": "2.0.2",
"promise-retry": "1.1.1",
@@ -3070,7 +3070,7 @@
"cacache": "10.0.4",
"get-stream": "3.0.0",
"glob": "7.1.2",
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"make-fetch-happen": "2.6.0",
"minimatch": "3.0.4",
"mississippi": "3.0.0",
@@ -3107,7 +3107,7 @@
"http-cache-semantics": "3.8.1",
"http-proxy-agent": "2.1.0",
"https-proxy-agent": "2.2.0",
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"mississippi": "1.3.1",
"node-fetch-npm": "2.0.2",
"promise-retry": "1.1.1",
@@ -6539,7 +6539,7 @@
"integrity": "sha1-e5JHYhwjrf3ThWAEqCPL45dCTUE=",
"dev": true,
"requires": {
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"which": "1.3.0"
}
}
@@ -8584,7 +8584,7 @@
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
"integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=",
"requires": {
- "lru-cache": "4.1.1",
+ "lru-cache": "4.1.2",
"shebang-command": "1.2.0",
"which": "1.3.0"
},
diff --git a/package.json b/package.json
index c08328fdb..0eeb40da3 100644
--- a/package.json
+++ b/package.json
@@ -79,7 +79,7 @@
"lodash.union": "~4.6.0",
"lodash.uniq": "~4.5.0",
"lodash.without": "~4.4.0",
- "lru-cache": "~4.1.1",
+ "lru-cache": "^4.1.2",
"meant": "~1.0.1",
"mississippi": "^3.0.0",
"mkdirp": "~0.5.1",