File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33* .sublime- *
44* .un~
55
6- .idea
7- .gitignore
8- .istanbul.yml
9- .npmignore
10- .travis.yml
6+ . *
117
128Makefile
139appveyor.yml
Original file line number Diff line number Diff line change @@ -4,8 +4,14 @@ node_js:
44 - " 0.10"
55 - " 0.12"
66 - " iojs"
7- - " 4.2"
8- - " stable"
7+ - " 4"
8+ - " 5"
9+ - " 6"
10+ script :
11+ - node --version
12+ - npm --version
13+ - npm run lint
14+ - npm run test
915after_script :
1016 - " cat coverage/lcov.info | ./node_modules/.bin/coveralls"
1117notifications :
Original file line number Diff line number Diff line change 1- init :
2- - git config --global core.autocrlf true
31environment :
42 matrix :
53 - nodejs_version : ' 0.10'
64 - nodejs_version : ' 0.12'
75 - nodejs_version : ' 1.0'
8- - nodejs_version : ' 4.2 '
6+ - nodejs_version : ' 4'
97 - nodejs_version : ' 5'
8+ - nodejs_version : ' 6'
109platform :
1110 - x86
1211 - x64
@@ -20,3 +19,5 @@ test_script:
2019 - npm --version
2120 - npm run test
2221build : off
22+ matrix :
23+ fast_finish : true
Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ FormData.prototype.getHeaders = function(userHeaders) {
291291 return formHeaders ;
292292} ;
293293
294+ // TODO: Looks like unused function
294295FormData . prototype . getCustomHeaders = function ( contentType ) {
295296 contentType = contentType ? contentType : 'multipart/form-data' ;
296297
Original file line number Diff line number Diff line change 11// populates missing values
22module . exports = function ( dst , src ) {
3- for ( var prop in src ) {
4- if ( src . hasOwnProperty ( prop ) && ! dst [ prop ] ) {
5- dst [ prop ] = src [ prop ] ;
6- }
7- }
3+
4+ Object . keys ( src ) . forEach ( function ( prop )
5+ {
6+ dst [ prop ] = dst [ prop ] || src [ prop ] ;
7+ } ) ;
8+
89 return dst ;
910} ;
Original file line number Diff line number Diff line change 1616 "lint" : " eslint lib/*.js test/*.js test/**/*.js" ,
1717 "predebug" : " rimraf coverage test/tmp" ,
1818 "debug" : " verbose=1 ./test/run.js" ,
19- "check" : " istanbul check-coverage coverage/coverage*.json" ,
20- "coverage" : " codacy-coverage < ./coverage/lcov.info; true"
19+ "check" : " istanbul check-coverage coverage/coverage*.json"
2120 },
2221 "pre-commit" : [
2322 " lint" ,
3231 "combined-stream" : " ^1.0.5" ,
3332 "mime-types" : " ^2.1.10"
3433 },
35- "license" : " MIT" ,
3634 "devDependencies" : {
37- "codacy-coverage" : " ^1.1.3" ,
3835 "coveralls" : " ^2.11.8" ,
3936 "cross-spawn" : " ^2.1.5" ,
4037 "eslint" : " ^2.4.0" ,
4542 "pre-commit" : " ^1.1.2" ,
4643 "request" : " ^2.69.0" ,
4744 "rimraf" : " ^2.5.2"
48- }
45+ },
46+ "license" : " MIT"
4947}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments