Skip to content

Commit 813a62e

Browse files
committed
Update dependencies
1 parent e6529e8 commit 813a62e

File tree

5 files changed

+28
-26
lines changed

5 files changed

+28
-26
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
dist: xenial
12
language: node_js
23
node_js:
3-
- "iojs"
4-
- "0.12"
5-
- "0.10"
4+
- "10"
5+
- "12"

Cakefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,15 @@ build = (callback) ->
6262
test_files = glob.sync path.join(test_dir, '*.coffee')
6363
commands.push "node_modules/.bin/coffee --output #{out_dir} " +
6464
"--compile #{test_files.join(' ')}"
65-
async.forEachSeries commands, run, ->
6665

66+
async.forEachSeries commands, run, ->
6767
# Build the binary test image.
6868
buffer = fs.readFileSync 'test/fixtures/xhr2.png'
6969
bytes = (buffer.readUInt8(i) for i in [0...buffer.length])
7070
globalJs = '((function(){ return this.global || this; })())'
7171
js = "#{globalJs}.xhr2PngBytes = #{JSON.stringify(bytes)};"
72-
fs.writeFileSync 'test/js/helpers/xhr2.png.js', js
73-
74-
callback() if callback
72+
fs.writeFile 'test/js/helpers/xhr2.png.js', js, ->
73+
callback() if callback
7574

7675
webtest = (callback) ->
7776
xhrServer = require './test/js/helpers/xhr_server.js'
@@ -101,9 +100,9 @@ vendor = (callback) ->
101100

102101
downloads = [
103102
# chai.js ships different builds for browsers vs node.js
104-
['http://chaijs.com/chai.js', 'test/vendor/chai.js'],
103+
['https://www.chaijs.com/chai.js', 'test/vendor/chai.js'],
105104
# sinon.js also ships special builds for browsers
106-
['http://sinonjs.org/releases/sinon.js', 'test/vendor/sinon.js'],
105+
['https://sinonjs.org/releases/sinon.js', 'test/vendor/sinon.js'],
107106
]
108107
async.forEachSeries downloads, download, ->
109108
callback() if callback

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Installing CoffeeScript globally will let you type `cake` instead of
117117
`node_modules/.bin/cake`
118118

119119
```bash
120-
npm install -g coffee-script
120+
npm install -g coffeescript
121121
```
122122

123123
The library comes with unit tests that exercise the XMLHttpRequest API.

package.json

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
"name": "xhr2",
33
"version": "0.1.4",
44
"description": "XMLHttpRequest emulation for node.js",
5-
"keywords": ["xhr", "xmlhttprequest", "ajax", "browser"],
5+
"keywords": [
6+
"xhr",
7+
"xmlhttprequest",
8+
"ajax",
9+
"browser"
10+
],
611
"homepage": "https://github.com/pwnall/node-xhr2",
712
"author": "Victor Costan <[email protected]> (http://www.costan.us)",
813
"contributors": [
@@ -20,20 +25,19 @@
2025
"engines": {
2126
"node": ">= 0.6"
2227
},
23-
"dependencies": {
24-
},
28+
"dependencies": {},
2529
"devDependencies": {
26-
"async": ">= 1.4.2",
27-
"chai": ">= 3.2.0",
28-
"codo": ">= 2.0.11",
29-
"coffee-script": ">= 1.9.3",
30-
"express": ">= 4.13.3",
31-
"glob": ">= 5.0.14",
32-
"mocha": ">= 2.2.5",
33-
"open": ">= 0.0.5",
30+
"async": ">=3.0.1",
31+
"chai": ">=4.2.0",
32+
"codo": ">=2.1.2",
33+
"coffeescript": ">=2.4.1",
34+
"express": ">=4.17.1",
35+
"glob": ">=7.1.4",
36+
"mocha": ">=6.1.4",
37+
"open": ">=6.3.0",
3438
"remove": ">= 0.1.5",
35-
"sinon": ">= 1.15.4",
36-
"sinon-chai": ">= 2.8.0"
39+
"sinon": ">=7.3.2",
40+
"sinon-chai": ">=3.3.0"
3741
},
3842
"main": "lib/xhr2.js",
3943
"browser": "lib/browser.js",
@@ -44,7 +48,7 @@
4448
"test": "test"
4549
},
4650
"scripts": {
47-
"prepublish": "node_modules/coffee-script/bin/cake build",
48-
"test": "node_modules/coffee-script/bin/cake test"
51+
"prepublish": "cake build",
52+
"test": "cake test"
4953
}
5054
}

test/src/helpers/setup.coffee

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ if typeof window is 'undefined'
2020
agent.options.rejectUnauthorized = true
2121
agent.options.ca = xhrServer.https.sslCertificate()
2222
global.XMLHttpRequest.nodejsSet httpsAgent: agent
23-
console.log xhrServer.http.testUrl()
2423
global.XMLHttpRequest.nodejsSet(
2524
baseUrl: xhrServer.http.testUrl().replace('https://', 'http://'))
2625
else

0 commit comments

Comments
 (0)