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

hyperdrive-http

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperdrive-http - npm Package Compare versions

Comparing version 3.4.0 to 3.4.1

17

index.js

@@ -24,3 +24,3 @@ var pump = require('pump')

getArchive(datUrl, function (err, archive) {
if (err) return onerror(err)
if (err) return onerror(err, res)
archiveResponse(datUrl, archive, req, res)

@@ -40,5 +40,14 @@ })

try {
// check if we are serving archive at root
key = key.replace(/\.changes$/, '')
encoding.decode(key)
} catch (e) {
if (!filename) filename = key
key = null
}
if (/\.changes$/.test(req.url)) {
op = 'changes'
filename = filename.replace(/\.changes$/, '')
if (filename) filename = filename.replace(/\.changes$/, '')
} else if (req.method === 'POST') {

@@ -108,4 +117,8 @@ op = 'upload'

function onerror (status, res) {
if (typeof status !== 'number') {
console.error(status)
status = 404
}
res.statusCode = status
res.end()
}

2

package.json
{
"name": "hyperdrive-http",
"version": "3.4.0",
"version": "3.4.1",
"description": "Handle Hyperdrive HTTP Requests",

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