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

@allegiant/static

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@allegiant/static - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

15

index.js

@@ -8,3 +8,2 @@ const fs = require('fs');

conn.status = 500;
conn.statusMessage = conn.getStatusMessage(500);
return false;

@@ -21,6 +20,3 @@ }

conn.writeHead(404, {
'Content-Type': conn.mime.type('.html', 'utf-8'),
}, conn.getStatusMessage(404));
conn.status = 404;
return false;

@@ -31,3 +27,3 @@ }

console.log(conn.uri + " :: Directory Read Attempt: "); // eslint-disable-line
conn.writeHead(403, {}, conn.getStatusMessage(403));
conn.status = 403;

@@ -41,6 +37,5 @@ return false;

conn.writeHead(200, {
'Last-Modified': conn.stat.mtime.toUTCString(),
'Content-Length': conn.stat.size
});
conn.status = 200;
conn.setHeader('Last-Modified', conn.stat.mtime.toUTCString());
conn.setHeader('Content-Length', conn.stat.size);

@@ -47,0 +42,0 @@ return conn.streamReadable(fs.createReadStream(conn.fname));

{
"name": "@allegiant/static",
"version": "0.0.7",
"version": "0.0.8",
"description": "Static files module for the allegiant app framework.",

@@ -5,0 +5,0 @@ "author": "echopoint <echopoint@tutanota.com>",

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