intel
Advanced tools
Comparing version 1.0.1 to 1.0.2
# intel ChangeLog | ||
## v1.0.2 - 2015-09-10 | ||
- fixed formatting of RegExps by default | ||
## v1.0.1 - 2015-08-19 | ||
@@ -4,0 +8,0 @@ |
@@ -5,4 +5,2 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
const util = require('util'); | ||
const json = require('./json'); | ||
@@ -12,2 +10,7 @@ | ||
const toString = Object.prototype.toString; | ||
function type(x) { | ||
return toString.call(x).slice(8, -1).toLowerCase(); | ||
} | ||
function pad(str, value) { | ||
@@ -38,6 +41,8 @@ var isRight = false; | ||
function defaultFmt(x) { | ||
if (x === null || typeof x !== 'object' || util.isError(x)) { | ||
return String(x); | ||
} else { | ||
return json(x); | ||
switch (type(x)) { | ||
case 'arguments': | ||
case 'object': | ||
return json(x); | ||
default: | ||
return String(x); | ||
} | ||
@@ -44,0 +49,0 @@ } |
{ | ||
"name": "intel", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"dependencies": { | ||
@@ -15,3 +15,3 @@ "chalk": "~1.1.0", | ||
"bluebird": "^2.9.0", | ||
"debug": "~2.1.0", | ||
"debug": "~2.2.0", | ||
"insist": "0.x", | ||
@@ -18,0 +18,0 @@ "jshint": "2.x", |
78562
1350