hyperdrive-http
Advanced tools
Comparing version 4.0.1 to 4.1.0
@@ -90,3 +90,4 @@ var toHTML = require('directory-index-html') | ||
var html = toHTML({directory: name, script: (!opts.live || archive._checkout) ? null : script}, entries) | ||
var footer = opts.footer ? opts.footer + ' Archive version: ' + archive.version : null | ||
var html = toHTML({directory: name, script: (!opts.live || archive._checkout) ? null : script, footer: footer}, entries) | ||
res.setHeader('Content-Type', 'text/html; charset=utf-8') | ||
@@ -93,0 +94,0 @@ res.setHeader('Content-Length', Buffer.byteLength(html)) |
{ | ||
"name": "hyperdrive-http", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "Handle Hyper[drive|core] HTTP Requests", | ||
@@ -32,3 +32,3 @@ "main": "index.js", | ||
"hyperdiscovery": "^1.3.0", | ||
"hyperdrive": "^8.0.0", | ||
"hyperdrive": "^9.0.0", | ||
"random-access-memory": "^2.3.0", | ||
@@ -35,0 +35,0 @@ "standard": "^9.0.2" |
@@ -36,2 +36,3 @@ # Hyperdrive Http | ||
- `live` - If set to `true` will reload a directly listing if the archive receives updates. | ||
- `footer` - Add a footer to your HTML page. Automatically adds archive version number to footer. | ||
@@ -38,0 +39,0 @@ ### URL Format |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 7 instances in 1 package
79563
517
55
5
11