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 /node_modules
parent40aabb94e3f24a9feabb9c490403e10ec9dc254f (diff)
lru-cache@4.1.2
Doc update. Credit: @isaacs
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/lru-cache/README.md8
-rw-r--r--node_modules/lru-cache/package.json25
2 files changed, 21 insertions, 12 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"
}