Skip to content

Commit 440d72b

Browse files
committed
Pre-release house cleaning
1 parent dd46552 commit 440d72b

7 files changed

Lines changed: 23 additions & 56 deletions

File tree

.npmignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
*.sublime-*
44
*.un~
55

6-
.idea
7-
.gitignore
8-
.istanbul.yml
9-
.npmignore
10-
.travis.yml
6+
.*
117

128
Makefile
139
appveyor.yml

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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
915
after_script:
1016
- "cat coverage/lcov.info | ./node_modules/.bin/coveralls"
1117
notifications:

appveyor.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
init:
2-
- git config --global core.autocrlf true
31
environment:
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'
109
platform:
1110
- x86
1211
- x64
@@ -20,3 +19,5 @@ test_script:
2019
- npm --version
2120
- npm run test
2221
build: off
22+
matrix:
23+
fast_finish: true

lib/form_data.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ FormData.prototype.getHeaders = function(userHeaders) {
291291
return formHeaders;
292292
};
293293

294+
// TODO: Looks like unused function
294295
FormData.prototype.getCustomHeaders = function(contentType) {
295296
contentType = contentType ? contentType : 'multipart/form-data';
296297

lib/populate.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// populates missing values
22
module.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
};

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
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",
@@ -32,9 +31,7 @@
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",
@@ -45,5 +42,6 @@
4542
"pre-commit": "^1.1.2",
4643
"request": "^2.69.0",
4744
"rimraf": "^2.5.2"
48-
}
45+
},
46+
"license": "MIT"
4947
}

wercker.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)