🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

livelocalhost

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

livelocalhost - npm Package Compare versions

Comparing version
1.2.4
to
1.2.5
+1
-2
livelocalhost.js

@@ -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

{
"name": "livelocalhost",
"version": "1.2.4",
"version": "1.2.5",
"description": "localhost development server with live reloading",

@@ -5,0 +5,0 @@ "type": "module",