Merge pull request #34 from maxdaniel98/chunk-split-fix

Add require Buffer to allow for Buffer.isBuffer()
feat/compaction-failure-event
tex0l 11 months ago committed by GitHub
commit 20b0ec441e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      lib/byline.js

@ -25,6 +25,7 @@
*/ */
const stream = require('stream') const stream = require('stream')
const timers = require('timers') const timers = require('timers')
const Buffer = require('buffer').Buffer;
const createLineStream = (readStream, options) => { const createLineStream = (readStream, options) => {
if (!readStream) throw new Error('expected readStream') if (!readStream) throw new Error('expected readStream')

Loading…
Cancel
Save