woodland 22.2.0 → 22.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/woodland.cjs +9 -4
- package/dist/woodland.js +9 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -279,7 +279,7 @@ npm run lint # Check linting
|
|
|
279
279
|
## Documentation
|
|
280
280
|
|
|
281
281
|
- [API Reference](docs/API.md) - Complete method documentation
|
|
282
|
-
- [
|
|
282
|
+
- [Framework Overview](docs/OVERVIEW.md) - Architecture, OWASP security, internals
|
|
283
283
|
- [Code Style Guide](docs/CODE_STYLE_GUIDE.md) - Conventions and best practices
|
|
284
284
|
- [Benchmarks](docs/BENCHMARKS.md) - Performance testing results
|
|
285
285
|
|
package/dist/cli.cjs
CHANGED
package/dist/woodland.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @copyright 2026 Jason Mulligan <jason.mulligan@avoidwork.com>
|
|
5
5
|
* @license BSD-3-Clause
|
|
6
|
-
* @version 22.2.
|
|
6
|
+
* @version 22.2.1
|
|
7
7
|
*/
|
|
8
8
|
'use strict';
|
|
9
9
|
|
|
@@ -1476,10 +1476,15 @@ function validateLogging(logging = {}) {
|
|
|
1476
1476
|
const envLogFormat = process.env.WOODLAND_LOG_FORMAT;
|
|
1477
1477
|
const envLogLevel = process.env.WOODLAND_LOG_LEVEL;
|
|
1478
1478
|
|
|
1479
|
-
const enabled =
|
|
1479
|
+
const enabled =
|
|
1480
|
+
envLogEnabled !== undefined
|
|
1481
|
+
? envLogEnabled !== FALSE
|
|
1482
|
+
: logging.enabled !== undefined
|
|
1483
|
+
? logging.enabled !== false
|
|
1484
|
+
: TRUE !== FALSE;
|
|
1480
1485
|
|
|
1481
|
-
const format = resolveLoggingValue(logging.format,
|
|
1482
|
-
const level = resolveLoggingValue(logging.level,
|
|
1486
|
+
const format = resolveLoggingValue(envLogFormat, logging.format, LOG_FORMAT);
|
|
1487
|
+
const level = resolveLoggingValue(envLogLevel, logging.level, INFO);
|
|
1483
1488
|
|
|
1484
1489
|
if (!VALID_LOG_LEVELS.has(level)) {
|
|
1485
1490
|
return Object.freeze({ enabled, format, level: INFO });
|
package/dist/woodland.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @copyright 2026 Jason Mulligan <jason.mulligan@avoidwork.com>
|
|
5
5
|
* @license BSD-3-Clause
|
|
6
|
-
* @version 22.2.
|
|
6
|
+
* @version 22.2.1
|
|
7
7
|
*/
|
|
8
8
|
import {STATUS_CODES}from'node:http';import {EventEmitter}from'node:events';import {readFileSync,createReadStream}from'node:fs';import {etag}from'tiny-etag';import {lru}from'tiny-lru';import {precise}from'precise';import {createRequire}from'node:module';import {join,extname,resolve,sep}from'node:path';import {fileURLToPath,URL as URL$1}from'node:url';import mimeDb from'mime-db';import {coerce}from'tiny-coerce';import {Validator}from'jsonschema';import {realpath,stat,readdir}from'node:fs/promises';const __dirname$2 = fileURLToPath(new URL$1(".", import.meta.url));
|
|
9
9
|
const require$1 = createRequire(import.meta.url);
|
|
@@ -1451,10 +1451,15 @@ function validateLogging(logging = {}) {
|
|
|
1451
1451
|
const envLogFormat = process.env.WOODLAND_LOG_FORMAT;
|
|
1452
1452
|
const envLogLevel = process.env.WOODLAND_LOG_LEVEL;
|
|
1453
1453
|
|
|
1454
|
-
const enabled =
|
|
1454
|
+
const enabled =
|
|
1455
|
+
envLogEnabled !== undefined
|
|
1456
|
+
? envLogEnabled !== FALSE
|
|
1457
|
+
: logging.enabled !== undefined
|
|
1458
|
+
? logging.enabled !== false
|
|
1459
|
+
: TRUE !== FALSE;
|
|
1455
1460
|
|
|
1456
|
-
const format = resolveLoggingValue(logging.format,
|
|
1457
|
-
const level = resolveLoggingValue(logging.level,
|
|
1461
|
+
const format = resolveLoggingValue(envLogFormat, logging.format, LOG_FORMAT);
|
|
1462
|
+
const level = resolveLoggingValue(envLogLevel, logging.level, INFO);
|
|
1458
1463
|
|
|
1459
1464
|
if (!VALID_LOG_LEVELS.has(level)) {
|
|
1460
1465
|
return Object.freeze({ enabled, format, level: INFO });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "woodland",
|
|
3
|
-
"version": "22.2.
|
|
3
|
+
"version": "22.2.1",
|
|
4
4
|
"description": "Secure HTTP framework for Node.js. Express-compatible with built-in security, no performance tradeoff.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"prebuild": "npm run clean",
|
|
59
59
|
"rollup": "rollup --config",
|
|
60
60
|
"sample": "node sample.js",
|
|
61
|
-
"test": "npm run lint && node --test tests/**/*.test.js",
|
|
61
|
+
"test": "npm run lint && WOODLAND_LOG_ENABLED=false node --test tests/**/*.test.js",
|
|
62
62
|
"test:cli": "node --test tests/unit/cli.test.js",
|
|
63
63
|
"test:watch": "node --test --watch tests/**/*.test.js"
|
|
64
64
|
},
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"auto-changelog": "^2.5.0",
|
|
75
75
|
"husky": "^9.1.7",
|
|
76
|
-
"oxfmt": "^0.
|
|
76
|
+
"oxfmt": "^0.51.0",
|
|
77
77
|
"oxlint": "^1.57.0",
|
|
78
78
|
"rimraf": "^6.1.3",
|
|
79
79
|
"rollup": "^4.60.0"
|