...
 
Commits (4)
# see git-dpm(1) from git-dpm package # see git-dpm(1) from git-dpm package
9d06d1c5a917fbe636f4370a22d9175673b7280a b58809ff8dffdd5a3c43e169e81a381e51ec1209
9d06d1c5a917fbe636f4370a22d9175673b7280a b58809ff8dffdd5a3c43e169e81a381e51ec1209
6cf3518d743bfce0e427f2cac2cea91393beab6b 6cf3518d743bfce0e427f2cac2cea91393beab6b
6cf3518d743bfce0e427f2cac2cea91393beab6b 6cf3518d743bfce0e427f2cac2cea91393beab6b
node-tap-parser_7.0.0+ds1.orig.tar.gz node-tap-parser_7.0.0+ds1.orig.tar.gz
......
node-tap-parser (7.0.0+ds1-3) unstable; urgency=medium
* Avoid debci failure due to buffer warning
-- Bastien Roucariès <rouca@debian.org> Mon, 07 Jan 2019 00:22:47 +0100
node-tap-parser (7.0.0+ds1-2) unstable; urgency=medium node-tap-parser (7.0.0+ds1-2) unstable; urgency=medium
* Move to salsa * Move to salsa
......
From c083b61eef3951a9265ea5e4c53ba4f1050483e6 Mon Sep 17 00:00:00 2001
From: Callum Locke <callum.locke@gmail.com>
Date: Thu, 18 Jan 2018 15:04:06 +0000
Subject: Update repo and homepage entries in package.json
origin: https://github.com/tapjs/tap-parser/pull/60/commits/c97dcb3bfc5348a13a52179284f859288001e19b
---
package.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package.json b/package.json
index 5b2720c..5eddcac 100644
--- a/package.json
+++ b/package.json
@@ -35,9 +35,9 @@
},
"repository": {
"type": "git",
- "url": "git://github.com/substack/tap-parser.git"
+ "url": "git://github.com/tapjs/tap-parser.git"
},
- "homepage": "https://github.com/substack/tap-parser",
+ "homepage": "https://github.com/tapjs/tap-parser",
"keywords": [
"tap",
"test",
From b58809ff8dffdd5a3c43e169e81a381e51ec1209 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20Roucari=C3=A8s?= <rouca@debian.org>
Date: Mon, 7 Jan 2019 00:17:20 +0100
Subject: Avoid buffer() warning
forwarded: https://github.com/tapjs/tap-parser/issues/62o
---
index.js | 2 +-
test/basic.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.js b/index.js
index 43a0417..49eb90f 100644
--- a/index.js
+++ b/index.js
@@ -323,7 +323,7 @@ class Parser extends MiniPass {
return
if (typeof encoding === 'string' && encoding !== 'utf8')
- chunk = new Buffer(chunk, encoding)
+ chunk = new Buffer.from(chunk, encoding)
if (Buffer.isBuffer(chunk))
chunk += ''
diff --git a/test/basic.js b/test/basic.js
index 58110b1..cf7b847 100644
--- a/test/basic.js
+++ b/test/basic.js
@@ -14,13 +14,13 @@ t.test('end() can take chunk', function (t) {
})
t.test('encoding', function (t) {
var p = new Parser()
- p.end(new Buffer('1..0\n').toString('hex'), 'hex', t.end)
+ p.end(new Buffer.from('1..0\n').toString('hex'), 'hex', t.end)
})
})
t.test('takes a buffer just fine', function (t) {
var p = new Parser(theEnd)
- p.write(new Buffer('TAP version 13\n'))
+ p.write(new Buffer.from('TAP version 13\n'))
var calledme = false
function callme () {
0001-Eliminate-minipass.patch 0001-Eliminate-minipass.patch
0002-Update-repo-and-homepage-entries-in-package.json.patch
0003-Avoid-buffer-warning.patch
...@@ -323,7 +323,7 @@ class Parser extends MiniPass { ...@@ -323,7 +323,7 @@ class Parser extends MiniPass {
return return
if (typeof encoding === 'string' && encoding !== 'utf8') if (typeof encoding === 'string' && encoding !== 'utf8')
chunk = new Buffer(chunk, encoding) chunk = new Buffer.from(chunk, encoding)
if (Buffer.isBuffer(chunk)) if (Buffer.isBuffer(chunk))
chunk += '' chunk += ''
......
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/substack/tap-parser.git" "url": "git://github.com/tapjs/tap-parser.git"
}, },
"homepage": "https://github.com/substack/tap-parser", "homepage": "https://github.com/tapjs/tap-parser",
"keywords": [ "keywords": [
"tap", "tap",
"test", "test",
......
...@@ -14,13 +14,13 @@ t.test('end() can take chunk', function (t) { ...@@ -14,13 +14,13 @@ t.test('end() can take chunk', function (t) {
}) })
t.test('encoding', function (t) { t.test('encoding', function (t) {
var p = new Parser() var p = new Parser()
p.end(new Buffer('1..0\n').toString('hex'), 'hex', t.end) p.end(new Buffer.from('1..0\n').toString('hex'), 'hex', t.end)
}) })
}) })
t.test('takes a buffer just fine', function (t) { t.test('takes a buffer just fine', function (t) {
var p = new Parser(theEnd) var p = new Parser(theEnd)
p.write(new Buffer('TAP version 13\n')) p.write(new Buffer.from('TAP version 13\n'))
var calledme = false var calledme = false
function callme () { function callme () {
......