Release 2.6.9

This commit is contained in:
Nathan Rajlich 2017-09-22 15:32:23 +02:00
parent f53962e944
commit 13abeae468
4 changed files with 22 additions and 2 deletions

View File

@ -1,4 +1,9 @@
2.6.9 / 2017-09-22
==================
* remove ReDoS regexp in %o formatter (#504)
2.6.8 / 2017-05-18
==================

View File

@ -2,7 +2,7 @@
"name": "debug",
"repo": "visionmedia/debug",
"description": "small debugging utility",
"version": "2.6.8",
"version": "2.6.9",
"keywords": [
"debug",
"log",

View File

@ -1,6 +1,6 @@
{
"name": "debug",
"version": "2.6.8",
"version": "2.6.9",
"repository": {
"type": "git",
"url": "git://github.com/visionmedia/debug.git"

15
src/inspector-log.js Normal file
View File

@ -0,0 +1,15 @@
module.exports = inspectorLog;
// black hole
const nullStream = new (require('stream').Writable)();
nullStream._write = () => {};
/**
* Outputs a `console.log()` to the Node.js Inspector console *only*.
*/
function inspectorLog() {
const stdout = console._stdout;
console._stdout = nullStream;
console.log.apply(console, arguments);
console._stdout = stdout;
}