From 79c3ff21ba079c1505c59f3dd6ae6d40f956d84a Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 4 Feb 2023 22:01:58 -0800 Subject: [PATCH] [Fix] downgrade `tap-parser` to v0.7.0 Starting in tap-parser v1.0.0, faucet starts outputting duplicate lines for each output line --- .npmrc | 1 + index.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.npmrc b/.npmrc index eacea13..80b7be8 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1,4 @@ package-lock=false allow-same-version=true message=v%s +audit-level=none diff --git a/index.js b/index.js index fe5936e..41aa634 100644 --- a/index.js +++ b/index.js @@ -72,7 +72,7 @@ module.exports = function (opts) { } var fmt = '\r %s \x1b[1m\x1b[' + c + 'm%d\x1b[0m %s\x1b[K'; - var str = sprintf(fmt, ok, res.id, res.name); + var str = sprintf(fmt, ok, res.number, res.name); if (!res.ok) { var y = ++test.offset + 1; diff --git a/package.json b/package.json index 6f29e62..7407e1d 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "sprintf-js": "^1.1.2", "string.prototype.split": "^1.0.7", "string.prototype.trim": "^1.2.7", - "tap-parser": "^5.4.0", + "tap-parser": "^0.7.0", "tape": "^5.6.3", "through2": "^0.2.3" },