Jelajahi Sumber

Merge pull request #54 from overleaf/msm-update-dependencies

Update dependencies
Miguel Serrano 6 tahun lalu
induk
melakukan
c1fe5675a0

+ 0 - 1
services/spelling/.eslintrc

@@ -1,7 +1,6 @@
 // this file was auto-generated, do not edit it directly.
 // this file was auto-generated, do not edit it directly.
 // instead run bin/update_build_scripts from
 // instead run bin/update_build_scripts from
 // https://github.com/sharelatex/sharelatex-dev-environment
 // https://github.com/sharelatex/sharelatex-dev-environment
-// Version: 1.3.5
 {
 {
   "extends": [
   "extends": [
     "standard",
     "standard",

+ 0 - 1
services/spelling/.prettierrc

@@ -1,7 +1,6 @@
 # This file was auto-generated, do not edit it directly.
 # This file was auto-generated, do not edit it directly.
 # Instead run bin/update_build_scripts from
 # Instead run bin/update_build_scripts from
 # https://github.com/sharelatex/sharelatex-dev-environment
 # https://github.com/sharelatex/sharelatex-dev-environment
-# Version: 1.3.5
 {
 {
   "semi": false,
   "semi": false,
   "singleQuote": true
   "singleQuote": true

+ 0 - 1
services/spelling/Dockerfile

@@ -1,7 +1,6 @@
 # This file was auto-generated, do not edit it directly.
 # This file was auto-generated, do not edit it directly.
 # Instead run bin/update_build_scripts from
 # Instead run bin/update_build_scripts from
 # https://github.com/sharelatex/sharelatex-dev-environment
 # https://github.com/sharelatex/sharelatex-dev-environment
-# Version: 1.3.5
 
 
 FROM node:10.19.0 as base
 FROM node:10.19.0 as base
 
 

+ 0 - 1
services/spelling/Makefile

@@ -1,7 +1,6 @@
 # This file was auto-generated, do not edit it directly.
 # This file was auto-generated, do not edit it directly.
 # Instead run bin/update_build_scripts from
 # Instead run bin/update_build_scripts from
 # https://github.com/sharelatex/sharelatex-dev-environment
 # https://github.com/sharelatex/sharelatex-dev-environment
-# Version: 1.3.5
 
 
 BUILD_NUMBER ?= local
 BUILD_NUMBER ?= local
 BRANCH_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
 BRANCH_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)

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

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

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

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

+ 6 - 6
services/spelling/buildscript.txt

@@ -1,11 +1,11 @@
 spelling
 spelling
---public-repo=False
---language=es
---env-add=
---node-version=10.19.0
 --acceptance-creds=None
 --acceptance-creds=None
+--data-dirs=cache
 --dependencies=mongo
 --dependencies=mongo
 --docker-repos=gcr.io/overleaf-ops
 --docker-repos=gcr.io/overleaf-ops
+--env-add=
 --env-pass-through=
 --env-pass-through=
---data-dirs=cache
---script-version=1.3.5
+--language=es
+--node-version=10.19.0
+--public-repo=False
+--script-version=2.0.0

+ 0 - 1
services/spelling/docker-compose.ci.yml

@@ -1,7 +1,6 @@
 # This file was auto-generated, do not edit it directly.
 # This file was auto-generated, do not edit it directly.
 # Instead run bin/update_build_scripts from
 # Instead run bin/update_build_scripts from
 # https://github.com/sharelatex/sharelatex-dev-environment
 # https://github.com/sharelatex/sharelatex-dev-environment
-# Version: 1.3.5
 
 
 version: "2.3"
 version: "2.3"
 
 

+ 0 - 1
services/spelling/docker-compose.yml

@@ -1,7 +1,6 @@
 # This file was auto-generated, do not edit it directly.
 # This file was auto-generated, do not edit it directly.
 # Instead run bin/update_build_scripts from
 # Instead run bin/update_build_scripts from
 # https://github.com/sharelatex/sharelatex-dev-environment
 # https://github.com/sharelatex/sharelatex-dev-environment
-# Version: 1.3.5
 
 
 version: "2.3"
 version: "2.3"
 
 

+ 1 - 1
services/spelling/install_deps.sh

@@ -1,7 +1,7 @@
 echo 'APT::Default-Release "stretch";' >/etc/apt/apt.conf.d/default-release
 echo 'APT::Default-Release "stretch";' >/etc/apt/apt.conf.d/default-release
 
 
 # The following aspell packages exist in Ubuntu but not Debian:
 # The following aspell packages exist in Ubuntu but not Debian:
-# aspell-af, aspell-id, aspell-nr, aspell-ns, aspell-ss, aspell-st, aspell-tn, 
+# aspell-af, aspell-id, aspell-nr, aspell-ns, aspell-ss, aspell-st, aspell-tn,
 # aspell-ts, aspell-xh, aspell-zu
 # aspell-ts, aspell-xh, aspell-zu
 echo "deb http://us.archive.ubuntu.com/ubuntu/ bionic main universe" > /etc/apt/sources.list.d/bionic.list
 echo "deb http://us.archive.ubuntu.com/ubuntu/ bionic main universe" > /etc/apt/sources.list.d/bionic.list
 apt-key adv --no-tty --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
 apt-key adv --no-tty --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32

File diff ditekan karena terlalu besar
+ 846 - 60
services/spelling/package-lock.json


+ 27 - 27
services/spelling/package.json

@@ -19,42 +19,42 @@
     "nodemon": "nodemon --config nodemon.json",
     "nodemon": "nodemon --config nodemon.json",
     "compile:smoke_tests": "[ ! -e test/smoke/coffee ] &&  echo 'No smoke tests to compile' || coffee -o test/smoke/js -c test/smoke/coffee",
     "compile:smoke_tests": "[ ! -e test/smoke/coffee ] &&  echo 'No smoke tests to compile' || coffee -o test/smoke/js -c test/smoke/coffee",
     "lint": "node_modules/.bin/eslint .",
     "lint": "node_modules/.bin/eslint .",
-    "format": "node_modules/.bin/prettier-eslint '**/*.js' --list-different",
-    "format:fix": "node_modules/.bin/prettier-eslint '**/*.js' --write"
+    "format": "node_modules/.bin/prettier-eslint $PWD'/**/*.js' --list-different",
+    "format:fix": "node_modules/.bin/prettier-eslint $PWD'/**/*.js' --write"
   },
   },
   "version": "0.1.4",
   "version": "0.1.4",
   "dependencies": {
   "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",
-    "node-statsd": "0.0.3",
-    "request": "^2.88.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.1.1",
+    "request": "^2.88.2",
     "settings-sharelatex": "^1.1.0",
     "settings-sharelatex": "^1.1.0",
-    "underscore": "1.9.1"
+    "underscore": "1.9.2"
   },
   },
   "devDependencies": {
   "devDependencies": {
-    "bunyan": "^1.0.0",
+    "bunyan": "^1.8.12",
     "chai": "",
     "chai": "",
-    "eslint": "^6.0.1",
-    "eslint-config-prettier": "^6.0.0",
-    "eslint-config-standard": "^12.0.0",
-    "eslint-plugin-chai-expect": "^2.0.1",
-    "eslint-plugin-chai-friendly": "^0.4.1",
-    "eslint-plugin-import": "^2.18.0",
-    "eslint-plugin-mocha": "^5.3.0",
-    "eslint-plugin-node": "^9.1.0",
-    "eslint-plugin-prettier": "^3.1.0",
+    "eslint": "^6.8.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.2",
+    "eslint-plugin-mocha": "^6.3.0",
+    "eslint-plugin-node": "^11.1.0",
+    "eslint-plugin-prettier": "^3.1.2",
     "eslint-plugin-promise": "^4.2.1",
     "eslint-plugin-promise": "^4.2.1",
-    "eslint-plugin-standard": "^4.0.0",
-    "mocha": "^4.1.0",
+    "eslint-plugin-standard": "^4.0.1",
+    "mocha": "^7.1.1",
     "prettier-eslint-cli": "^5.0.0",
     "prettier-eslint-cli": "^5.0.0",
     "sandboxed-module": "",
     "sandboxed-module": "",
-    "sinon": "^1.17.0"
+    "sinon": "^9.0.1"
   }
   }
 }
 }

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini