From 4e2150207c568adb9ead8f4c4528016081c88020 Mon Sep 17 00:00:00 2001 From: Josh Junon Date: Thu, 19 Nov 2020 13:14:31 +0100 Subject: [PATCH 1/2] fix regression --- src/node.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index dbbb5f10..1e6a5f16 100644 --- a/src/node.js +++ b/src/node.js @@ -160,7 +160,10 @@ var formatters = module.exports.formatters; formatters.o = function (v) { this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts).replace(/\s*\n\s*/g, ' '); + return util.inspect(v, this.inspectOpts) + .split('\n') + .map(function (str) { return str.trim(); }) + .join(' '); }; /** * Map %O to `util.inspect()`, allowing multiple lines if needed. From 338326076faaf6d230090903de97f459c4bccabc Mon Sep 17 00:00:00 2001 From: Josh Junon Date: Thu, 19 Nov 2020 13:56:29 +0100 Subject: [PATCH 2/2] 3.2.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3650bb0b..191c8154 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "debug", - "version": "3.2.6", + "version": "3.2.7", "repository": { "type": "git", "url": "git://github.com/visionmedia/debug.git"