woodland 20.2.4 → 20.2.6
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 +13 -14
- package/dist/cli.cjs +1 -1
- package/dist/woodland.cjs +1 -1
- package/dist/woodland.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,10 +45,10 @@ import helmet from 'helmet';
|
|
|
45
45
|
import rateLimit from 'express-rate-limit';
|
|
46
46
|
|
|
47
47
|
// Security headers
|
|
48
|
-
app.
|
|
48
|
+
app.always(helmet());
|
|
49
49
|
|
|
50
50
|
// Rate limiting
|
|
51
|
-
app.
|
|
51
|
+
app.always(rateLimit({
|
|
52
52
|
windowMs: 15 * 60 * 1000, // 15 minutes
|
|
53
53
|
max: 100 // limit each IP to 100 requests per windowMs
|
|
54
54
|
}));
|
|
@@ -922,18 +922,17 @@ npm test
|
|
|
922
922
|
### Test Results
|
|
923
923
|
|
|
924
924
|
```
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
--------------|---------|----------|---------|---------|------------------------
|
|
925
|
+
386 passing (6s)
|
|
926
|
+
|
|
927
|
+
--------------|---------|----------|---------|---------|-------------------
|
|
928
|
+
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
929
|
+
--------------|---------|----------|---------|---------|-------------------
|
|
930
|
+
All files | 100 | 100 | 100 | 100 |
|
|
931
|
+
cli.js | 100 | 100 | 100 | 100 |
|
|
932
|
+
constants.js | 100 | 100 | 100 | 100 |
|
|
933
|
+
utility.js | 100 | 100 | 100 | 100 |
|
|
934
|
+
woodland.js | 100 | 100 | 100 | 100 |
|
|
935
|
+
--------------|---------|----------|---------|---------|-------------------
|
|
937
936
|
```
|
|
938
937
|
|
|
939
938
|
### Test Categories
|
package/dist/cli.cjs
CHANGED
package/dist/woodland.cjs
CHANGED
package/dist/woodland.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @copyright 2025 Jason Mulligan <jason.mulligan@avoidwork.com>
|
|
5
5
|
* @license BSD-3-Clause
|
|
6
|
-
* @version 20.2.
|
|
6
|
+
* @version 20.2.6
|
|
7
7
|
*/
|
|
8
8
|
import {STATUS_CODES,METHODS}from'node:http';import {join,extname,resolve}from'node:path';import {EventEmitter}from'node:events';import {stat,readdir}from'node:fs/promises';import {readFileSync,createReadStream}from'node:fs';import {etag}from'tiny-etag';import {precise}from'precise';import {lru}from'tiny-lru';import {createRequire}from'node:module';import {fileURLToPath,URL}from'node:url';import {coerce}from'tiny-coerce';import mimeDb from'mime-db';const __dirname$1 = fileURLToPath(new URL(".", import.meta.url));
|
|
9
9
|
const require = createRequire(import.meta.url);
|