deps: add optional package for another speed: utf-8-validate

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle
2024-05-11 12:11:35 +07:00
parent 82689f7c50
commit 32c6a93370
2 changed files with 3 additions and 2 deletions

View File

@@ -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). 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 ### Bostr CLI
Install bostr via `npm`: Install bostr via `npm`:

View File

@@ -31,7 +31,8 @@
"ws": "^8.17.0" "ws": "^8.17.0"
}, },
"optionalDependencies": { "optionalDependencies": {
"bufferutil": "^4.0.8" "bufferutil": "^4.0.8",
"utf-8-validate": "^6.0.4"
}, },
"engines": { "engines": {
"node": ">=18" "node": ">=18"