livelocalhost
Advanced tools
+1
-2
@@ -5,3 +5,2 @@ // LiveLocalhost class | ||
| import { isAbsolute, join, normalize, extname, sep } from 'node:path'; | ||
| import { parse } from 'node:url'; | ||
| import { access, stat, readFile } from 'fs/promises'; | ||
@@ -80,3 +79,3 @@ import { constants as fsConstants } from 'fs'; | ||
| // get requested path | ||
| const path = parse( req.url )?.pathname; | ||
| const path = (new URL(req.url, 'http://localhost'))?.pathname; | ||
@@ -83,0 +82,0 @@ // no or invalid path |
+1
-1
| { | ||
| "name": "livelocalhost", | ||
| "version": "1.2.4", | ||
| "version": "1.2.5", | ||
| "description": "localhost development server with live reloading", | ||
@@ -5,0 +5,0 @@ "type": "module", |
24110
-0.05%446
-0.22%