migrate from underscore to lodash

This commit is contained in:
Brian Gough
2020-06-15 09:52:21 +01:00
parent 19690e7847
commit 9b92793b89
9 changed files with 10 additions and 18 deletions

View File

@@ -25,7 +25,7 @@ const async = require('async')
const LockManager = require('./DockerLockManager')
const fs = require('fs')
const Path = require('path')
const _ = require('underscore')
const _ = require('lodash')
const metrics = require('metrics-sharelatex')
logger.info('using docker runner')

View File

@@ -19,7 +19,7 @@ const fs = require('fs')
const fse = require('fs-extra')
const Path = require('path')
const logger = require('logger-sharelatex')
const _ = require('underscore')
const _ = require('lodash')
const Settings = require('settings-sharelatex')
const crypto = require('crypto')

View File

@@ -19,7 +19,7 @@ const Path = require('path')
const { spawn } = require('child_process')
const logger = require('logger-sharelatex')
const Metrics = require('./Metrics')
const _ = require('underscore')
const _ = require('lodash')
module.exports = OutputFileOptimiser = {
optimiseFile(src, dst, callback) {

View File

@@ -10,7 +10,7 @@
*/
const Sequelize = require('sequelize')
const Settings = require('settings-sharelatex')
const _ = require('underscore')
const _ = require('lodash')
const logger = require('logger-sharelatex')
const options = _.extend({ logging: false }, Settings.mysql.clsi)