Просмотр исходного кода

updated minor, patch dependencies and lru-cache. Fixed constructor in lru-cache

mserranom 6 лет назад
Родитель
Сommit
caa28a0ff0

+ 1 - 1
services/spelling/app/js/ASpell.js

@@ -17,7 +17,7 @@ const { promisify } = require('util')
 
 const OneMinute = 60 * 1000
 const opts = { max: 10000, maxAge: OneMinute * 60 * 10 }
-const cache = LRU(opts)
+const cache = new LRU(opts)
 
 const cacheFsPath = Path.resolve(settings.cacheDir, 'spell.cache')
 const cacheFsPathTmp = cacheFsPath + '.tmp'

+ 1 - 1
services/spelling/app/js/MongoCache.js

@@ -6,6 +6,6 @@ const cacheOpts = {
   maxAge: 1000 * 60 * 60 * 10
 }
 
-const cache = LRU(cacheOpts)
+const cache = new LRU(cacheOpts)
 
 module.exports = cache

Разница между файлами не показана из-за своего большого размера
+ 795 - 60
services/spelling/package-lock.json


+ 16 - 16
services/spelling/package.json

@@ -24,31 +24,31 @@
   },
   "version": "0.1.4",
   "dependencies": {
-    "@overleaf/o-error": "^2.0.0",
-    "async": "0.1.22",
-    "body-parser": "^1.12.0",
-    "coffee-script": "^1.9.1",
-    "express": "^4.12.1",
-    "logger-sharelatex": "^1.8.0",
-    "lru-cache": "^4.0.0",
-    "metrics-sharelatex": "^2.2.0",
-    "mongojs": "2.4.0",
+    "@overleaf/o-error": "^2.1.0",
+    "async": "^2.6.3",
+    "body-parser": "^1.19.0",
+    "coffee-script": "^1.12.7",
+    "express": "^4.17.1",
+    "logger-sharelatex": "^1.9.1",
+    "lru-cache": "^5.1.1",
+    "metrics-sharelatex": "^2.6.2",
+    "mongojs": "3.1.0",
     "node-statsd": "0.0.3",
-    "request": "^2.88.0",
+    "request": "^2.88.2",
     "settings-sharelatex": "^1.1.0",
-    "underscore": "1.9.1"
+    "underscore": "1.9.2"
   },
   "devDependencies": {
-    "bunyan": "^1.0.0",
+    "bunyan": "^1.8.12",
     "chai": "",
     "eslint": "^6.8.0",
-    "eslint-config-prettier": "^6.10.0",
-    "eslint-config-standard": "^14.1.0",
+    "eslint-config-prettier": "^6.10.1",
+    "eslint-config-standard": "^14.1.1",
     "eslint-plugin-chai-expect": "^2.1.0",
     "eslint-plugin-chai-friendly": "^0.5.0",
-    "eslint-plugin-import": "^2.20.1",
+    "eslint-plugin-import": "^2.20.2",
     "eslint-plugin-mocha": "^6.3.0",
-    "eslint-plugin-node": "^11.0.0",
+    "eslint-plugin-node": "^11.1.0",
     "eslint-plugin-prettier": "^3.1.2",
     "eslint-plugin-promise": "^4.2.1",
     "eslint-plugin-standard": "^4.0.1",

Некоторые файлы не были показаны из-за большого количества измененных файлов