From 29cce2da814bacb171d5c81f53d519c803353e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Rebours?= Date: Wed, 10 Jan 2024 16:14:28 +0100 Subject: [PATCH] lint --- CHANGELOG.md | 4 ++++ lib/byline.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8659e7c..bfd2a20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased +### Fixed +- Explicitly import `buffer` [#34](https://github.com/seald/nedb/pull/34). + ## [4.0.3] - 2023-12-13 ### Fixed - Fixed EPERM Exception when datastore is at the root of a disk on Windows [#48](https://github.com/seald/nedb/issues/48) diff --git a/lib/byline.js b/lib/byline.js index b3f8821..c366751 100644 --- a/lib/byline.js +++ b/lib/byline.js @@ -25,7 +25,7 @@ */ const stream = require('stream') const timers = require('timers') -const Buffer = require('buffer').Buffer; +const { Buffer } = require('buffer') const createLineStream = (readStream, options) => { if (!readStream) throw new Error('expected readStream')