Skip to content

Commit

Permalink
Release 2.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Sep 22, 2017
1 parent f53962e commit 13abeae
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,4 +1,9 @@

2.6.9 / 2017-09-22
==================

* remove ReDoS regexp in %o formatter (#504)

2.6.8 / 2017-05-18
==================

Expand Down
2 changes: 1 addition & 1 deletion component.json
Expand Up @@ -2,7 +2,7 @@
"name": "debug",
"repo": "visionmedia/debug",
"description": "small debugging utility",
"version": "2.6.8",
"version": "2.6.9",
"keywords": [
"debug",
"log",
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "debug",
"version": "2.6.8",
"version": "2.6.9",
"repository": {
"type": "git",
"url": "git://github.com/visionmedia/debug.git"
Expand Down
15 changes: 15 additions & 0 deletions src/inspector-log.js
@@ -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;
}

0 comments on commit 13abeae

Please sign in to comment.