Skip to content

Commit 13abeae

Browse files
committed
Release 2.6.9
1 parent f53962e commit 13abeae

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
2.6.9 / 2017-09-22
3+
==================
4+
5+
* remove ReDoS regexp in %o formatter (#504)
6+
27
2.6.8 / 2017-05-18
38
==================
49

component.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "debug",
33
"repo": "visionmedia/debug",
44
"description": "small debugging utility",
5-
"version": "2.6.8",
5+
"version": "2.6.9",
66
"keywords": [
77
"debug",
88
"log",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "debug",
3-
"version": "2.6.8",
3+
"version": "2.6.9",
44
"repository": {
55
"type": "git",
66
"url": "git://github.com/visionmedia/debug.git"

src/inspector-log.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = inspectorLog;
2+
3+
// black hole
4+
const nullStream = new (require('stream').Writable)();
5+
nullStream._write = () => {};
6+
7+
/**
8+
* Outputs a `console.log()` to the Node.js Inspector console *only*.
9+
*/
10+
function inspectorLog() {
11+
const stdout = console._stdout;
12+
console._stdout = nullStream;
13+
console.log.apply(console, arguments);
14+
console._stdout = stdout;
15+
}

0 commit comments

Comments
 (0)