Skip to content

Commit 405a69e

Browse files
committed
Replaced win-spawn with cross-spawn
1 parent 94b6565 commit 405a69e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/form_data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ FormData.prototype.getLengthSync = function() {
311311
knownLength += this._lastBoundary().length;
312312
}
313313

314-
// https://github.com/felixge/node-form-data/issues/40
314+
// https://github.com/form-data/form-data/issues/40
315315
if (this._lengthRetrievers.length) {
316-
// Some async length retrivers are present
316+
// Some async length retrievers are present
317317
// therefore synchronous length calculation is false.
318318
// Please use getLength(callback) to get proper length
319319
this._error(new Error('Cannot calculate proper length in synchronous way.'));

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
"devDependencies": {
3737
"codacy-coverage": "^1.1.3",
3838
"coveralls": "^2.11.6",
39+
"cross-spawn": "^2.1.5",
3940
"eslint": "^1.10.3",
4041
"fake": "^0.2.2",
4142
"far": "^0.0.7",
4243
"formidable": "^1.0.17",
4344
"istanbul": "^0.4.1",
4445
"pre-commit": "^1.0.10",
4546
"request": "^2.60.0",
46-
"rimraf": "^2.5.0",
47-
"win-spawn": "^2.0.0"
47+
"rimraf": "^2.5.0"
4848
}
4949
}

test/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var path = require('path');
33
var static = require('./static');
44
var far = require('far').create();
55
var farPaths = require('far/lib/paths');
6-
var spawn = require('win-spawn');
6+
var spawn = require('cross-spawn');
77
var basePath = process.cwd();
88
var istanbul = path.join(basePath, './node_modules/.bin/istanbul');
99

0 commit comments

Comments
 (0)