File tree 4 files changed +10
-2
lines changed 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,7 @@ node_modules
33
33
34
34
# Babel-compiled files
35
35
lib
36
+
37
+ # Ignore package manager lock files
38
+ package-lock.json
39
+ yarn.lock
Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ This is a major release. Check [our upgrade guide](https://github.com/bitinn/nod
13
13
14
14
- Major: Node.js 0.10.x and 0.12.x support is dropped
15
15
- Major: ` require('node-fetch/lib/response') ` etc. is now unsupported; use ` require('node-fetch').Response ` or ES6 module imports
16
- - Enhance: start testing on Node.js 4, 6, 7
16
+ - Enhance: start testing on Node.js 4, 6, 8 LTS
17
17
- Enhance: use Rollup to produce a distributed bundle (less memory overhead and faster startup)
18
18
- Enhance: make ` Object.prototype.toString() ` on Headers, Requests, and Responses return correct class strings
19
19
- Other: rewrite in ES2015 using Babel
20
20
- Other: use Codecov for code coverage tracking
21
+ - Other: update package.json script for npm 5
21
22
22
23
### HTTP requests
23
24
Original file line number Diff line number Diff line change 14
14
},
15
15
"scripts" : {
16
16
"build" : " cross-env BABEL_ENV=rollup rollup -c" ,
17
- "prepublish " : " npm run build" ,
17
+ "prepare " : " npm run build" ,
18
18
"test" : " cross-env BABEL_ENV=test mocha --compilers js:babel-register test/test.js" ,
19
19
"report" : " cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/test.js" ,
20
20
"coverage" : " cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/test.js && codecov -f coverage/coverage-final.json"
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ export default class TestServer {
10
10
this . server = http . createServer ( this . router ) ;
11
11
this . port = 30001 ;
12
12
this . hostname = 'localhost' ;
13
+ // node 8 default keepalive timeout is 5000ms
14
+ // make it shorter here as we want to close server quickly at the end of tests
15
+ this . server . keepAliveTimeout = 1000 ;
13
16
this . server . on ( 'error' , function ( err ) {
14
17
console . log ( err . stack ) ;
15
18
} ) ;
You can’t perform that action at this time.
0 commit comments