9e8ee446d1
Validate / test (push) Successful in 20s
BufferLogAppender now accepts threshold and optional size bounds via its constructor, replaces bufferMax with the size target/max API, defaults to bounded buffering, and may reassign its buffer during trim/clear operations. Also adds batched buffer trimming for high-throughput logging, a clamp utility for bounds normalization, and expanded tests for buffer sizing, trimming behavior, and clamp semantics.
32 lines
721 B
JSON
32 lines
721 B
JSON
{
|
|
"name": "@jdbernard/logging",
|
|
"version": "2.5.0",
|
|
"description": "Simple Javascript logging service.",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"/dist"
|
|
],
|
|
"scripts": {
|
|
"build": "bunx tsc",
|
|
"prepare": "npm run build",
|
|
"test": "bun test",
|
|
"test:coverage": "bun test --coverage"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.jdb-software.com/jdb/js-logging.git"
|
|
},
|
|
"keywords": [
|
|
"log",
|
|
"logging"
|
|
],
|
|
"author": "Jonathan Bernard",
|
|
"license": "GPL-3.0",
|
|
"devDependencies": {
|
|
"@typescript-eslint/parser": "^8.19.0",
|
|
"eslint-plugin-import": "^2.31.0",
|
|
"typescript": "^5.0.4",
|
|
"typescript-eslint": "^8.19.0"
|
|
}
|
|
} |