Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mellon-server

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mellon-server - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

14

index.js

@@ -49,3 +49,3 @@ const http = require('http');

}
else if (pathItem.endsWith('/') && stat && stat.isDirectory()) {
else if ((pathItem === "" || pathItem.endsWith('/')) && stat && stat.isDirectory()) {
doDir(`${public_dir}/${pathItem}`,pathItem,req,res);

@@ -130,3 +130,13 @@ }

lsDir.forEach( (entry) => {
content += `<a href="${baseUrl}/${pathItem}${entry}">${entry}</a><br>`
const stat = fs.lstatSync(`${path}${entry}`);
if (stat && stat.isFile()) {
content += `<a href="${baseUrl}/${pathItem}${entry}">${entry}</a><br>`
}
else if (stat && stat.isDirectory()) {
content += `<a href="${baseUrl}/${pathItem}${entry}/">${entry}/</a><br>`
}
else {
// Do nothing
}
});

@@ -133,0 +143,0 @@ content += '</body></html>';

2

package.json
{
"name": "mellon-server",
"version": "1.0.7",
"version": "1.0.8",
"description": "A small hackable HTTP server",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc