hyperdrive-http
Advanced tools
Comparing version 4.3.0 to 4.3.1
{ | ||
"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 @@ }) |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21985
5
+ Addedmime@2.6.0(transitive)
+ Addedpump@3.0.2(transitive)
- Removedmime@1.6.0(transitive)
- Removedpump@1.0.3(transitive)
Updatedmime@^2.3.1
Updatedpump@^3.0.0