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

hyperdrive-http

Package Overview
Dependencies
Maintainers
8
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 4.3.0 to 4.3.1

12

package.json
{
"name": "hyperdrive-http",
"version": "4.3.0",
"version": "4.3.1",
"description": "Handle Hyper[drive|core] HTTP Requests",

@@ -19,4 +19,4 @@ "main": "index.js",

"directory-index-html": "^2.1.0",
"mime": "^1.3.4",
"pump": "^1.0.2",
"mime": "^2.3.1",
"pump": "^3.0.0",
"range-parser": "^1.2.0"

@@ -33,7 +33,7 @@ },

"devDependencies": {
"hyperdiscovery": "^7.0.0",
"hyperdiscovery": "^8.0.0",
"hyperdrive": "^9.0.0",
"random-access-memory": "^2.3.0",
"standard": "^10.0.3"
"random-access-memory": "^3.0.0",
"standard": "^11.0.1"
}
}

@@ -86,13 +86,13 @@ var http = require('http')

fs.createReadStream(path.join(__dirname, 'drive.js'))
.pipe(request.post('http://localhost:8000', function (err, res, body) {
t.error(err, 'no request error')
if (!err && res.statusCode === 200) {
t.equal(body.toString(), encoding.encode(archive3.key), 'Responds with key')
collect(archive3.createFileReadStream('file'), function (err, body) {
t.error(err, 'no hyperdrive error')
t.same(body, fs.readFileSync(path.join(__dirname, 'drive.js')))
t.end()
})
}
}))
.pipe(request.post('http://localhost:8000', function (err, res, body) {
t.error(err, 'no request error')
if (!err && res.statusCode === 200) {
t.equal(body.toString(), encoding.encode(archive3.key), 'Responds with key')
collect(archive3.createFileReadStream('file'), function (err, body) {
t.error(err, 'no hyperdrive error')
t.same(body, fs.readFileSync(path.join(__dirname, 'drive.js')))
t.end()
})
}
}))
})

@@ -164,13 +164,13 @@

fs.createReadStream(path.join(__dirname, 'drive.js'))
.pipe(request.post('http://localhost:8000/', function (err, res, body) {
t.error(err, 'no request error')
if (!err && res.statusCode === 200) {
t.equal(body.toString(), encoding.encode(archive3.key), 'Responds with key')
collect(archive3.createFileReadStream('file'), function (err, body) {
t.error(err, 'no hyperdrive error')
t.same(body, fs.readFileSync(path.join(__dirname, 'drive.js')))
t.end()
})
}
}))
.pipe(request.post('http://localhost:8000/', function (err, res, body) {
t.error(err, 'no request error')
if (!err && res.statusCode === 200) {
t.equal(body.toString(), encoding.encode(archive3.key), 'Responds with key')
collect(archive3.createFileReadStream('file'), function (err, body) {
t.error(err, 'no hyperdrive error')
t.same(body, fs.readFileSync(path.join(__dirname, 'drive.js')))
t.end()
})
}
}))
})

@@ -183,13 +183,13 @@

fs.createReadStream(path.join(__dirname, 'drive.js'))
.pipe(request.post(reqUrl, function (err, res, body) {
t.error(err, 'no request error')
if (!err && res.statusCode === 200) {
t.equal(body.toString(), encoding.encode(archive3.key), 'Responds with key')
collect(archive3.createFileReadStream('file'), function (err, body) {
t.error(err, 'no hyperdrive error')
t.same(body, fs.readFileSync(path.join(__dirname, 'drive.js')))
t.end()
})
}
}))
.pipe(request.post(reqUrl, function (err, res, body) {
t.error(err, 'no request error')
if (!err && res.statusCode === 200) {
t.equal(body.toString(), encoding.encode(archive3.key), 'Responds with key')
collect(archive3.createFileReadStream('file'), function (err, body) {
t.error(err, 'no hyperdrive error')
t.same(body, fs.readFileSync(path.join(__dirname, 'drive.js')))
t.end()
})
}
}))
})

@@ -196,0 +196,0 @@

@@ -74,6 +74,6 @@ var http = require('http')

request.get(getUrl)
.on('response', function () {
count++
cb()
})
.on('response', function () {
count++
cb()
})
}

@@ -80,0 +80,0 @@ })

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