[Pkg-javascript-commits] [node-jsonstream] 01/03: New upstream version 1.0.6

Bastien Roucariès rouca at moszumanska.debian.org
Tue Apr 25 21:40:47 UTC 2017


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

rouca pushed a commit to branch master
in repository node-jsonstream.

commit 2bd975535e925568df8e51d2aeebb4ff2d80d2f9
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Mon Apr 17 00:14:57 2017 +0200

    New upstream version 1.0.6
---
 index.js        |  2 +-
 package.json    |  7 ++++---
 readme.markdown |  2 +-
 test/issues.js  | 20 ++++++++++++++++++++
 4 files changed, 26 insertions(+), 5 deletions(-)

diff --git a/index.js b/index.js
index 79e5efa..ec30105 100755
--- a/index.js
+++ b/index.js
@@ -101,7 +101,7 @@ exports.parse = function (path, map) {
       }
     }
   }
-
+  
   parser.onError = function (err) {
     if(err.message.indexOf("at position") > -1)
       err.message = "Invalid JSON (" + err.message + ")";
diff --git a/package.json b/package.json
index 6e4f1dd..a818ec8 100644
--- a/package.json
+++ b/package.json
@@ -1,12 +1,13 @@
 {
-  "name": "jsonstream",
-  "version": "1.0.3",
+  "name": "JSONStream",
+  "version": "1.0.6",
   "description": "rawStream.pipe(JSONStream.parse()).pipe(streamOfObjects)",
   "homepage": "http://github.com/dominictarr/JSONStream",
   "repository": {
     "type": "git",
     "url": "git://github.com/dominictarr/JSONStream.git"
   },
+  "license": "(MIT OR Apache-2.0)",
   "keywords": [
     "json",
     "stream",
@@ -16,7 +17,7 @@
     "parsing"
   ],
   "dependencies": {
-    "jsonparse": "~1.0.0",
+    "jsonparse": "^1.1.0",
     "through": ">=2.2.7 <3"
   },
   "devDependencies": {
diff --git a/readme.markdown b/readme.markdown
index 2c367ff..4a6531a 100644
--- a/readme.markdown
+++ b/readme.markdown
@@ -169,4 +169,4 @@ https://github.com/Floby/node-json-streams
 
 ## license
 
-MIT / APACHE2
+Dual-licensed under the MIT License or the Apache License, version 2.0
diff --git a/test/issues.js b/test/issues.js
new file mode 100644
index 0000000..eba392e
--- /dev/null
+++ b/test/issues.js
@@ -0,0 +1,20 @@
+var JSONStream = require('../');
+var test = require('tape')
+
+test('#66', function (t) {
+   var error = 0;
+   var stream = JSONStream
+    .parse()
+    .on('error', function (err) {
+        t.ok(err);
+        error++;
+    })
+    .on('end', function () {
+        t.ok(error === 1);
+        t.end();
+    });
+
+    stream.write('["foo":bar[');
+    stream.end();
+
+});

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



More information about the Pkg-javascript-commits mailing list