Socket
Socket
Sign inDemoInstall

serve

Package Overview
Dependencies
Maintainers
4
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serve - npm Package Compare versions

Comparing version 9.1.0 to 9.1.1

8

bin/serve.js

@@ -176,6 +176,10 @@ #!/usr/bin/env node

const address = details.address === '::' ? 'localhost' : details.address;
const {address: ip} = await lookup(os.hostname());
localAddress = `http://${address}:${details.port}`;
networkAddress = `http://${ip}:${details.port}`;
try {
const {address: ip} = await lookup(os.hostname());
networkAddress = `http://${ip}:${details.port}`;
} catch (err) {
console.error(error(`DNS lookup failed: ${err.message}`));
}
}

@@ -182,0 +186,0 @@

{
"name": "serve",
"version": "9.1.0",
"version": "9.1.1",
"description": "Static file serving and directory listing",

@@ -5,0 +5,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc