Skip to content

Commit

Permalink
Merge pull request #4 from davesag/feature/3/update-dependencies
Browse files Browse the repository at this point in the history
[Optimisation, #3] updated various dependencies
  • Loading branch information
jmckinnell authored Feb 2, 2018
2 parents b0b9b2a + c9fbf41 commit 2805b87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
"url": "https://github.com/mattdesl"
},
"dependencies": {
"buffer-to-arraybuffer": "0.0.2",
"object-assign": "^3.0.0",
"query-string": "^2.4.0",
"buffer-to-arraybuffer": "^0.0.5",
"object-assign": "^4.1.1",
"query-string": "^5.0.1",
"simple-get": "^1.4.3",
"timed-out": "^2.0.0",
"timed-out": "^4.0.1",
"url-set-query": "^1.0.0",
"xhr": "^2.0.4"
},
"devDependencies": {
"faucet": "0.0.1",
"hihat": "^2.4.3",
"standard": "^5.1.1",
"standard": "^10.0.3",
"tape": "^4.0.1"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test('test timeout', function (t) {
request('http://localhost:9021/', {
timeout: 1000
}, function (err) {
if (err) t.equal(err.code, 'ETIMEDOUT', 'got error')
if (err) t.equal(err.code, 'ESOCKETTIMEDOUT', 'got error')
else t.fail('should have received error')
server.close()
})
Expand Down Expand Up @@ -115,7 +115,7 @@ test('test arraybuffer', function (t) {

var server = http.createServer(function (req, res) {
res.statusCode = 200
var contents = new Buffer(array)
var contents = Buffer.from(array)
res.setHeader('content-type', 'application/octet-stream')
res.setHeader('content-length', contents.length)
setCORS(res)
Expand Down
3 changes: 1 addition & 2 deletions test/test-browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*globals XMLHttpRequest*/
/* globals XMLHttpRequest */
var test = require('tape')
var request = require('../')

Expand All @@ -22,7 +22,6 @@ test('should xhr from a JSON file', function (t) {
}), true)
})
}, 1000)

})

test('should respond with text by default', function (t) {
Expand Down

0 comments on commit 2805b87

Please sign in to comment.