Skip to content

Commit 54b6114

Browse files
committed
Updated deps, updated docs
1 parent 440d72b commit 54b6114

3 files changed

Lines changed: 22 additions & 17 deletions

File tree

.istanbul.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ instrumentation:
44
extensions:
55
- .js
66
default-excludes: true
7-
excludes: ['browser.js']
7+
excludes: ['lib/browser.js']
88
reporting:
99
print: summary
1010
reports:
11-
- lcov
11+
- json
1212
dir: ./coverage
1313
watermarks:
1414
statements: [80, 95]

Readme.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ The API of this library is inspired by the [XMLHttpRequest-2 FormData Interface]
1212
[![Coverage Status](https://img.shields.io/coveralls/form-data/form-data/master.svg?label=code+coverage)](https://coveralls.io/github/form-data/form-data?branch=master)
1313

1414
[![Dependency Status](https://img.shields.io/david/form-data/form-data.svg)](https://david-dm.org/form-data/form-data)
15-
[![Codacy Badge](https://img.shields.io/codacy/43ece80331c246179695e41f81eeffe2.svg)](https://www.codacy.com/app/form-data/form-data)
1615
[![bitHound Overall Score](https://www.bithound.io/github/form-data/form-data/badges/score.svg)](https://www.bithound.io/github/form-data/form-data)
1716

1817
## Install
@@ -211,8 +210,8 @@ fetch('http://example.com', { method: 'POST', body: form })
211210
## Notes
212211

213212
- ```getLengthSync()``` method DOESN'T calculate length for streams, use ```knownLength``` options as workaround.
214-
- If it feels like FormData hangs after submit and you're on ```node-0.10```, please check [Compatibility with Older Node Versions][streams2-thing]
213+
- If it feels like FormData hangs after submit, please check [Compatibility with Older Node Versions][streams2-thing]
215214

216215
## License
217216

218-
Form-Data is licensed under the MIT license.
217+
Form-Data is released under the [MIT](License) license.

package.json

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@
1111
"browser": "./lib/browser",
1212
"scripts": {
1313
"pretest": "rimraf coverage test/tmp",
14-
"test": "istanbul cover --report none test/run.js",
15-
"posttest": "istanbul report",
14+
"test": "istanbul cover test/run.js",
15+
"posttest": "istanbul report lcov text",
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"
19+
"check": "istanbul check-coverage coverage/coverage*.json",
20+
"files": "pkgfiles --sort=name",
21+
"get-version": "node -e \"console.log(require('./package.json').version)\"",
22+
"update-readme": "sed -i.bak 's/\\/master\\.svg/\\/v'$(npm --silent run get-version)'.svg/g' README.md",
23+
"restore-readme": "mv README.md.bak README.md",
24+
"prepublish": "in-publish && npm run update-readme || not-in-publish",
25+
"postpublish": "npm run restore-readme"
2026
},
2127
"pre-commit": [
2228
"lint",
@@ -27,21 +33,21 @@
2733
"node": ">= 0.10"
2834
},
2935
"dependencies": {
30-
"async": "^1.5.2",
36+
"async": "^2.0.1",
3137
"combined-stream": "^1.0.5",
32-
"mime-types": "^2.1.10"
38+
"mime-types": "^2.1.11"
3339
},
3440
"devDependencies": {
35-
"coveralls": "^2.11.8",
36-
"cross-spawn": "^2.1.5",
37-
"eslint": "^2.4.0",
41+
"coveralls": "^2.11.12",
42+
"cross-spawn": "^4.0.0",
43+
"eslint": "^2.13.1",
3844
"fake": "^0.2.2",
3945
"far": "^0.0.7",
4046
"formidable": "^1.0.17",
41-
"istanbul": "^0.4.2",
42-
"pre-commit": "^1.1.2",
43-
"request": "^2.69.0",
44-
"rimraf": "^2.5.2"
47+
"istanbul": "^0.4.5",
48+
"pre-commit": "^1.1.3",
49+
"request": "^2.74.0",
50+
"rimraf": "^2.5.4"
4551
},
4652
"license": "MIT"
4753
}

0 commit comments

Comments
 (0)