From 6a3bf79175288328d37c6cf4121d6b39eb68f19f Mon Sep 17 00:00:00 2001 From: Charlie Robbins Date: Fri, 26 Jun 2020 23:01:02 -0400 Subject: [PATCH] [fix] Bump to latest readable-stream. (#45) Co-authored-by: DABH --- index.js | 2 +- package-lock.json | 28 +++++++++++++--------------- package.json | 2 +- test/index.test.js | 2 +- test/legacy.test.js | 2 +- 5 files changed, 17 insertions(+), 19 deletions(-) diff --git a/index.js b/index.js index 46531bd..24c2d90 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ 'use strict'; const util = require('util'); -const Writable = require('readable-stream/writable'); +const Writable = require('readable-stream/lib/_stream_writable.js'); const { LEVEL } = require('triple-beam'); /** diff --git a/package-lock.json b/package-lock.json index 6ec993b..7452304 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1803,7 +1803,8 @@ "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true }, "cross-spawn": { "version": "5.1.0", @@ -3816,7 +3817,8 @@ "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true }, "isexe": { "version": "2.0.0", @@ -5647,17 +5649,13 @@ } }, "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz", + "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==", "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" } }, "readdirp": { @@ -6628,9 +6626,9 @@ } }, "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.2.0.tgz", + "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==", "requires": { "safe-buffer": "~5.1.0" } diff --git a/package.json b/package.json index edce3ff..6d6855a 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "homepage": "https://github.com/winstonjs/winston-transport#readme", "dependencies": { "logform": "^2.2.0", - "readable-stream": "^2.3.7", + "readable-stream": "^3.4.0", "triple-beam": "^1.2.0" }, "devDependencies": { diff --git a/test/index.test.js b/test/index.test.js index ba1b78e..354d3e4 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -2,7 +2,7 @@ const assume = require('assume'); const { format } = require('logform'); -const Writable = require('readable-stream/writable'); +const Writable = require('readable-stream/lib/_stream_writable.js'); const TransportStream = require('../'); const Parent = require('./fixtures/parent'); const { testLevels, testOrder } = require('./fixtures'); diff --git a/test/legacy.test.js b/test/legacy.test.js index a564cd6..0fe6df2 100644 --- a/test/legacy.test.js +++ b/test/legacy.test.js @@ -1,7 +1,7 @@ 'use strict'; const assume = require('assume'); -const Writable = require('readable-stream/writable'); +const Writable = require('readable-stream/lib/_stream_writable.js'); const LegacyTransportStream = require('../legacy'); const LegacyTransport = require('./fixtures/legacy-transport'); const { testLevels, testOrder } = require('./fixtures');