From cdb8e42b8c848983e5ea387914bd4e0fefb54e88 Mon Sep 17 00:00:00 2001 From: Alice Kile Date: Wed, 15 Feb 2023 21:44:44 +0100 Subject: [PATCH] fix typo in RawSource --- lib/RawSource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RawSource.js b/lib/RawSource.js index 71f1341..098d317 100644 --- a/lib/RawSource.js +++ b/lib/RawSource.js @@ -13,7 +13,7 @@ class RawSource extends Source { super(); const isBuffer = Buffer.isBuffer(value); if (!isBuffer && typeof value !== "string") { - throw new TypeError("argument 'value' must be either string of Buffer"); + throw new TypeError("argument 'value' must be either string or Buffer"); } this._valueIsBuffer = !convertToString && isBuffer; this._value = convertToString && isBuffer ? undefined : value;