chore: upgrade lru-cache to v5 (#4380)

This commit is contained in:
Clark Du 2018-11-21 13:32:13 +00:00 committed by Pooya Parsa
parent 70f0dc3825
commit ccbe6c3b1f
3 changed files with 9 additions and 2 deletions

View File

@ -12,7 +12,7 @@
"@nuxtjs/devalue": "^1.1.0",
"consola": "^2.3.0",
"fs-extra": "^7.0.1",
"lru-cache": "^4.1.3",
"lru-cache": "^5.1.1",
"vue": "^2.5.17",
"vue-meta": "^1.5.5",
"vue-no-ssr": "^1.1.0",

View File

@ -9,7 +9,7 @@ export default class SPAMetaRenderer {
this.renderer = renderer
this.options = this.renderer.context.options
this.vueRenderer = createRenderer()
this.cache = LRU({})
this.cache = new LRU()
// Add VueMeta to Vue (this is only for SPA mode)
// See app/index.js

View File

@ -6657,6 +6657,13 @@ lru-cache@4.1.x, lru-cache@^4.0.1, lru-cache@^4.1.2, lru-cache@^4.1.3:
pseudomap "^1.0.2"
yallist "^2.1.2"
lru-cache@^5.1.1:
version "5.1.1"
resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==
dependencies:
yallist "^3.0.2"
magic-string@0.25.0:
version "0.25.0"
resolved "https://registry.npmjs.org/magic-string/-/magic-string-0.25.0.tgz#1f3696f9931ff0a1ed4c132250529e19cad6759b"