[Pkg-javascript-commits] [node-mute-stream] 01/04: Imported Upstream version 0.0.7
Paolo Greppi
paolog-guest at moszumanska.debian.org
Fri Dec 23 12:30:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
paolog-guest pushed a commit to branch master
in repository node-mute-stream.
commit a8e745e63ec01410b00c684753662bbc4c7f5c45
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date: Fri Dec 23 13:17:40 2016 +0100
Imported Upstream version 0.0.7
---
.travis.yml | 9 +++++++++
LICENSE | 36 ++++++++++++------------------------
mute.js | 9 +++++++--
package.json | 6 +++---
4 files changed, 31 insertions(+), 29 deletions(-)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..99f2bbf
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,9 @@
+language: node_js
+language: node_js
+node_js:
+ - '0.8'
+ - '0.10'
+ - '0.12'
+ - 'iojs'
+before_install:
+ - npm install -g npm at latest
diff --git a/LICENSE b/LICENSE
index 0c44ae7..19129e3 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,27 +1,15 @@
-Copyright (c) Isaac Z. Schlueter ("Author")
-All rights reserved.
+The ISC License
-The BSD License
+Copyright (c) Isaac Z. Schlueter and Contributors
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/mute.js b/mute.js
index 42eac31..a24fc09 100644
--- a/mute.js
+++ b/mute.js
@@ -84,9 +84,9 @@ Object.defineProperty(MuteStream.prototype, 'columns', {
}, enumerable: true, configurable: true })
-MuteStream.prototype.pipe = function (dest) {
+MuteStream.prototype.pipe = function (dest, options) {
this._dest = dest
- return Stream.prototype.pipe.call(this, dest)
+ return Stream.prototype.pipe.call(this, dest, options)
}
MuteStream.prototype.pause = function () {
@@ -101,6 +101,11 @@ MuteStream.prototype.write = function (c) {
if (this.muted) {
if (!this.replace) return true
if (c.match(/^\u001b/)) {
+ if(c.indexOf(this._prompt) === 0) {
+ c = c.substr(this._prompt.length);
+ c = c.replace(/./g, this.replace);
+ c = this._prompt + c;
+ }
this._hadControl = true
return this.emit('data', c)
} else {
diff --git a/package.json b/package.json
index 4cd299c..9ffdddb 100644
--- a/package.json
+++ b/package.json
@@ -1,12 +1,12 @@
{
"name": "mute-stream",
- "version": "0.0.4",
+ "version": "0.0.7",
"main": "mute.js",
"directories": {
"test": "test"
},
"devDependencies": {
- "tap": "~0.2.5"
+ "tap": "^5.4.4"
},
"scripts": {
"test": "tap test/*.js"
@@ -21,6 +21,6 @@
"pipe"
],
"author": "Isaac Z. Schlueter <i at izs.me> (http://blog.izs.me/)",
- "license": "BSD",
+ "license": "ISC",
"description": "Bytes go in, but they don't come out (when muted)."
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mute-stream.git
More information about the Pkg-javascript-commits
mailing list