chore(*): update dev dependencies
This commit is contained in:
@@ -36,14 +36,14 @@
|
||||
"lodash": "^4.16.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.16.0",
|
||||
"babel-eslint": "^7.0.0",
|
||||
"babel-cli": "^6.24.1",
|
||||
"babel-eslint": "^7.2.3",
|
||||
"babel-plugin-lodash": "^3.2.9",
|
||||
"babel-plugin-transform-runtime": "^6.15.0",
|
||||
"babel-preset-es2015": "^6.16.0",
|
||||
"babel-preset-stage-0": "^6.16.0",
|
||||
"dependency-check": "^2.5.1",
|
||||
"standard": "^8.2.0"
|
||||
"babel-plugin-transform-runtime": "^6.23.0",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"babel-preset-stage-0": "^6.24.1",
|
||||
"dependency-check": "^2.9.1",
|
||||
"standard": "^10.0.2"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
|
||||
|
||||
@@ -14,8 +14,6 @@ import {
|
||||
debug
|
||||
} from './utils'
|
||||
|
||||
class Emitter extends EventEmitter {}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
const PERFORMANCE_MODE = 0
|
||||
@@ -104,7 +102,7 @@ export const configurationSchema = {
|
||||
const makeJob = (cronPattern, fn) => {
|
||||
const job = {
|
||||
running: false,
|
||||
emitter: new Emitter()
|
||||
emitter: new EventEmitter()
|
||||
}
|
||||
|
||||
job.cron = new CronJob(cronPattern, async () => {
|
||||
@@ -117,7 +115,7 @@ const makeJob = (cronPattern, fn) => {
|
||||
try {
|
||||
await fn()
|
||||
} catch (error) {
|
||||
console.error('[WARN] scheduled function:', error && error.stack || error)
|
||||
console.error('[WARN] scheduled function:', (error && error.stack) || error)
|
||||
} finally {
|
||||
job.running = false
|
||||
job.emitter.emit('finish')
|
||||
@@ -136,7 +134,6 @@ class LoadBalancerPlugin {
|
||||
constructor (xo) {
|
||||
this.xo = xo
|
||||
this._job = makeJob(`*/${EXECUTION_DELAY} * * * *`, ::this._executePlans)
|
||||
this._emitter
|
||||
}
|
||||
|
||||
async configure ({ plans }) {
|
||||
|
||||
@@ -132,7 +132,5 @@ export default class PerformancePlan extends Plan {
|
||||
|
||||
await Promise.all(promises)
|
||||
debug(`Performance mode: ${optimizationsCount} optimizations for Host (${exceededHost.id}).`)
|
||||
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user