Comparing version 2.0.2 to 2.0.3
@@ -5,2 +5,13 @@ # Change Log | ||
<a name="2.0.3"></a> | ||
## [2.0.3](https://github.com/nuxt/consola/compare/v2.0.2...v2.0.3) (2018-11-02) | ||
### Bug Fixes | ||
* **pkg:** exclude src from package ([4b1fb7d](https://github.com/nuxt/consola/commit/4b1fb7d)) | ||
* use live console._stdout bindings for default stream ([d9573c3](https://github.com/nuxt/consola/commit/d9573c3)) | ||
<a name="2.0.2"></a> | ||
@@ -7,0 +18,0 @@ ## [2.0.2](https://github.com/nuxt/consola/compare/v2.0.1...v2.0.2) (2018-11-02) |
@@ -70,9 +70,5 @@ 'use strict'; | ||
this._async = typeof options.async !== 'undefined' ? options.async : null; | ||
this._stdout = options.stdout; | ||
this._stderr = options.stdout; // Create logger functions for current instance | ||
if (typeof process !== 'undefined') { | ||
this._stdout = options.stdout || process.stdout; | ||
this._stderr = options.stdout || process.stderr; | ||
} // Create logger functions for current instance | ||
for (const type in this._types) { | ||
@@ -300,4 +296,6 @@ this[type] = this._wrapLogFn(Object.assign({ | ||
async: false, | ||
stdout: this._stdout, | ||
stderr: this._stderr | ||
stdout: this._stdout || console._stdout, | ||
// eslint-disable-line no-console | ||
stderr: this._stderr || console._stderr // eslint-disable-line no-console | ||
}); | ||
@@ -310,4 +308,6 @@ } | ||
async: true, | ||
stdout: this._stdout, | ||
stderr: this._stderr | ||
stdout: this._stdout || console._stdout, | ||
// eslint-disable-line no-console | ||
stderr: this._stderr || console._stderr // eslint-disable-line no-console | ||
}))); | ||
@@ -314,0 +314,0 @@ } |
@@ -62,9 +62,5 @@ (function (global, factory) { | ||
this._async = typeof options.async !== 'undefined' ? options.async : null; | ||
this._stdout = options.stdout; | ||
this._stderr = options.stdout; // Create logger functions for current instance | ||
if (typeof process !== 'undefined') { | ||
this._stdout = options.stdout || process.stdout; | ||
this._stderr = options.stdout || process.stderr; | ||
} // Create logger functions for current instance | ||
for (const type in this._types) { | ||
@@ -292,4 +288,6 @@ this[type] = this._wrapLogFn(Object.assign({ | ||
async: false, | ||
stdout: this._stdout, | ||
stderr: this._stderr | ||
stdout: this._stdout || console._stdout, | ||
// eslint-disable-line no-console | ||
stderr: this._stderr || console._stderr // eslint-disable-line no-console | ||
}); | ||
@@ -302,4 +300,6 @@ } | ||
async: true, | ||
stdout: this._stdout, | ||
stderr: this._stderr | ||
stdout: this._stdout || console._stdout, | ||
// eslint-disable-line no-console | ||
stderr: this._stderr || console._stderr // eslint-disable-line no-console | ||
}))); | ||
@@ -306,0 +306,0 @@ } |
{ | ||
"name": "consola", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Elegant Console Logger for Node.js and Browser", | ||
@@ -22,3 +22,2 @@ "license": "MIT", | ||
"dist", | ||
"src", | ||
"index.js" | ||
@@ -25,0 +24,0 @@ ], |
4
41338
6
827