From 32c6a933702813f2b44340f1bd857544711910b8 Mon Sep 17 00:00:00 2001 From: Yonle Date: Sat, 11 May 2024 12:11:35 +0700 Subject: [PATCH] deps: add optional package for another speed: utf-8-validate Signed-off-by: Yonle --- README.md | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d88eb34..21d68bd 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ This project solve the problem by **reducing** the number of connected relays, a You could set up an bostr bouncer by installing [Bostr CLI](#bostr-cli), or setting up via [The Source Code](#source-code), or via [Docker](#docker). -**Tip:** When dependencies installation is failed due to failed compilation of `bufferutil` package, Run `npm install` with `--omit=optional` being set (Example: `npm install --omit=optional -g bostr`). +**Tip:** When dependencies installation is failed due to failed compilation of `bufferutil` or `utf-8-validate` packages, Run `npm install` with `--omit=optional` being set (Example: `npm install --omit=optional -g bostr`). ### Bostr CLI Install bostr via `npm`: diff --git a/package.json b/package.json index fafa6d4..437c67a 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "ws": "^8.17.0" }, "optionalDependencies": { - "bufferutil": "^4.0.8" + "bufferutil": "^4.0.8", + "utf-8-validate": "^6.0.4" }, "engines": { "node": ">=18"