woodland 22.0.0 → 22.0.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/dist/cli.cjs +9 -5
- package/dist/woodland.cjs +1 -1
- package/dist/woodland.js +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @copyright 2026 Jason Mulligan <jason.mulligan@avoidwork.com>
|
|
6
6
|
* @license BSD-3-Clause
|
|
7
|
-
* @version 22.0.
|
|
7
|
+
* @version 22.0.1
|
|
8
8
|
*/
|
|
9
9
|
'use strict';
|
|
10
10
|
|
|
11
11
|
var node_http = require('node:http');
|
|
12
12
|
var node_url = require('node:url');
|
|
13
|
+
var node_path = require('node:path');
|
|
13
14
|
var tinyCoerce = require('tiny-coerce');
|
|
14
15
|
var woodland = require('woodland');
|
|
15
16
|
var node_module = require('node:module');
|
|
16
|
-
var node_path = require('node:path');
|
|
17
17
|
var mimeDb = require('mime-db');
|
|
18
18
|
|
|
19
19
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
@@ -42,6 +42,7 @@ const DOUBLE_COLON = "::";
|
|
|
42
42
|
const EMPTY = "";
|
|
43
43
|
const EQUAL = "=";
|
|
44
44
|
const HYPHEN = "-";
|
|
45
|
+
const WOODLAND = "woodland";
|
|
45
46
|
const STRING = "string";
|
|
46
47
|
`nodejs/${process.version}, ${process.platform}/${process.arch}`;
|
|
47
48
|
const LOCALHOST = "127.0.0.1";
|
|
@@ -282,9 +283,12 @@ function main(args = process.argv) {
|
|
|
282
283
|
|
|
283
284
|
// CLI entry point - only run when executed directly
|
|
284
285
|
const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli.cjs', document.baseURI).href)));
|
|
285
|
-
/* node:coverage ignore next
|
|
286
|
-
if (process.argv[1]
|
|
287
|
-
|
|
286
|
+
/* node:coverage ignore next 6 */
|
|
287
|
+
if (process.argv[1]) {
|
|
288
|
+
const scriptPath = node_path.resolve(process.argv[1]);
|
|
289
|
+
if (scriptPath === __filename$1 || node_path.basename(scriptPath) === WOODLAND) {
|
|
290
|
+
main();
|
|
291
|
+
}
|
|
288
292
|
}
|
|
289
293
|
|
|
290
294
|
exports.main = main;
|
package/dist/woodland.cjs
CHANGED
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.0.
|
|
6
|
+
* @version 22.0.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);
|