[Pkg-javascript-commits] [node-klaw] 01/03: New upstream version 1.3.1

Julien Puydt julien.puydt at laposte.net
Mon Oct 31 18:06:37 UTC 2016


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository node-klaw.

commit d2fcb230d6253dd81d56753f13472f30c39d4f20
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Thu Oct 27 20:24:56 2016 +0200

    New upstream version 1.3.1
---
 CHANGELOG.md | 8 ++++++++
 package.json | 7 +++++--
 src/index.js | 7 ++++++-
 3 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 35f0d72..83410c7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,8 @@
+1.3.1 / 2016-10-25
+------------------
+### Added
+- `graceful-fs` added as an `optionalDependencies`. Thanks [ryanzim]!
+
 1.3.0 / 2016-06-09
 ------------------
 ### Added
@@ -32,3 +37,6 @@
 0.1.0 / 2015-10-25
 ------------------
 - initial release
+
+<!-- contributors -->
+[ryanzim]: https://github.com/ryanzim
diff --git a/package.json b/package.json
index 6a6f5f3..6a2346a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "klaw",
-  "version": "1.3.0",
+  "version": "1.3.1",
   "description": "File system walker with Readable stream interface.",
   "main": "./src/index.js",
   "scripts": {
@@ -30,8 +30,11 @@
     "mkdirp": "^0.5.1",
     "mock-fs": "^3.8.0",
     "rimraf": "^2.4.3",
-    "standard": "^5.3.1",
+    "standard": "^8.4.0",
     "tap-spec": "^4.1.1",
     "tape": "^4.2.2"
+  },
+  "optionalDependencies": {
+    "graceful-fs": "^4.1.9"
   }
 }
diff --git a/src/index.js b/src/index.js
index 3b33df6..ae4a20e 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,5 +1,10 @@
 var assert = require('assert')
-var fs = require('fs')
+var fs
+try {
+  fs = require('graceful-fs')
+} catch (e) {
+  fs = require('fs')
+}
 var path = require('path')
 var Readable = require('stream').Readable
 var util = require('util')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-klaw.git



More information about the Pkg-javascript-commits mailing list