[Pkg-javascript-commits] [node-cross-spawn-async] 01/06: Imported Upstream version 2.1.9
Ross Gammon
ross-guest at moszumanska.debian.org
Mon Mar 21 12:13:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
ross-guest pushed a commit to branch master
in repository node-cross-spawn-async.
commit 25131a075d858133e42384b69f4063f8e3d94ced
Author: Ross Gammon <rossgammon at mail.dk>
Date: Mon Mar 21 12:19:46 2016 +0100
Imported Upstream version 2.1.9
---
README.md | 2 +-
lib/parse.js | 1 +
package.json | 4 ++--
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 0a8b935..1ff1fc3 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ Exactly the same way as node's [`spawn`](https://nodejs.org/api/child_process.ht
```javascript
var spawn = require('cross-spawn-async');
-var process = spawn('npm', ['list', '-g', '-depth' '0'], { stdio: 'inherit' });
+var process = spawn('npm', ['list', '-g', '-depth', '0'], { stdio: 'inherit' });
```
diff --git a/lib/parse.js b/lib/parse.js
index 8ac08b3..542ef6d 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -23,6 +23,7 @@ function readShebang(command) {
try {
fd = fs.openSync(command, 'r');
fs.readSync(fd, buffer, 0, 150, 0);
+ fs.closeSync(fd);
} catch (e) {}
// Check if it is a shebang
diff --git a/package.json b/package.json
index e149d21..11bbf66 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cross-spawn-async",
- "version": "2.1.8",
+ "version": "2.1.9",
"description": "Cross platform child_process#spawn",
"main": "index.js",
"scripts": {
@@ -35,7 +35,7 @@
},
"devDependencies": {
"expect.js": "^0.3.0",
- "glob": "^6.0.3",
+ "glob": "^7.0.0",
"mkdirp": "^0.5.1",
"mocha": "^2.2.5",
"rimraf": "^2.5.0"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-cross-spawn-async.git
More information about the Pkg-javascript-commits
mailing list