feat: add debug logging

Add debug logs using the `debug` library.

To use this new feature, set the `DEBUG` environment variable:
- `DEBUG=mineping:*` enables all logs from this library.
- `DEBUG=mineping:java` enables logs for the Java module only.
- `DEBUG=mineping:bedrock` enables logs for the Bedrock module only.
This commit is contained in:
2025-06-19 02:14:04 +03:00
parent c7b99cb6db
commit 7322034aba
4 changed files with 45 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@minescope/mineping",
"version": "1.7.0-beta.0",
"version": "1.7.0-beta.1",
"description": "Ping both Minecraft Bedrock and Java servers.",
"main": "index.js",
"type": "module",
@ -23,6 +23,9 @@
"engines": {
"node": ">=14"
},
"dependencies": {
"debug": "^4.4.1"
},
"devDependencies": {
"vitest": "^3.2.3"
}