diff --git a/.travis.yml b/.travis.yml index a0ae418..e8a0173 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,9 @@ language: node_js script: make prepush node_js: - - "4" # Maintenance LTS release - - "lts/*" # Active LTS release + - "6" # Maintenance LTS release + - "8" # Maintenance LTS release + - "10" # Active LTS release - "node" # Latest stable release after_success: - make report-coverage diff --git a/lib/helpers/bunyan.js b/lib/helpers/bunyan.js index c32e181..0dd7146 100644 --- a/lib/helpers/bunyan.js +++ b/lib/helpers/bunyan.js @@ -7,7 +7,7 @@ var util = require('util'); var assert = require('assert-plus'); var bunyan = require('bunyan'); -var lru = require('lru-cache'); +var LRU = require('lru-cache'); var uuid = require('uuid'); @@ -83,7 +83,7 @@ function RequestCaptureStream(opts) { this.level = opts.level ? bunyan.resolveLevel(opts.level) : bunyan.WARN; this.limit = opts.maxRecords || 100; this.maxRequestIds = opts.maxRequestIds || 1000; - this.requestMap = lru({ + this.requestMap = new LRU({ max: self.maxRequestIds }); this.dumpDefault = opts.dumpDefault; diff --git a/package.json b/package.json index 468bb99..8cd5320 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "fast-safe-stringify": "^2.0.6", "keep-alive-agent": "0.0.1", "lodash": "^4.17.11", - "lru-cache": "^4.0.1", + "lru-cache": "^5.1.1", "mime": "^2.4.0", "once": "^1.4.0", "qs": "^6.6.0",