Comparing version 3.0.0 to 3.1.0
@@ -27,2 +27,6 @@ 'use strict'; | ||
var indentText = function indentText(text) { | ||
return text.replace(/^(?!\s+$)/mg, ' '.repeat(13)).trim(); | ||
}; | ||
var logger = function logger(_ref) { | ||
@@ -60,3 +64,3 @@ var title = _ref.title, | ||
}); | ||
}); | ||
}).map(indentText); | ||
logFunction.apply(undefined, [(0, _chalk.gray)(time()), `[${title}]`].concat(_toConsumableArray(formattedMessages))); | ||
@@ -63,0 +67,0 @@ }; |
{ | ||
"name": "logging", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Lightweight informative modern console logging.", | ||
@@ -21,3 +21,3 @@ "main": "lib", | ||
"precommit": "npm -s run test", | ||
"publish": "np" | ||
"np": "np" | ||
}, | ||
@@ -39,3 +39,3 @@ "repository": "http://github.com/dylang/logging", | ||
"babel-runtime": "^6.23.0", | ||
"eslint": "^3.15.0", | ||
"eslint": "^3.16.0", | ||
"eslint-config-xo": "^0.17.0", | ||
@@ -42,0 +42,0 @@ "eslint-loader": "^1.6.0", |
@@ -1,5 +0,7 @@ | ||
# Logging [![Build Status](https://secure.travis-ci.org/dylang/logging.png)](https://travis-ci.org/dylang/logging) | ||
# Logging [![Build Status](https://secure.travis-ci.org/dylang/logging.svg)](https://travis-ci.org/dylang/logging) | ||
Lightweight informative modern console logging. | ||
> Lightweight informative modern console logging. | ||
[![logging](screenshots/screenshot.png)](screenshots/screenshot.png) | ||
## Install | ||
@@ -15,3 +17,2 @@ | ||
* Nice coloring. | ||
* Works in the browser. | ||
@@ -18,0 +19,0 @@ ## Usage |
@@ -16,2 +16,4 @@ import { | ||
const indentText = (text) => text.replace(/^(?!\s+$)/mg, ' '.repeat(13)).trim(); | ||
const logger = ({ | ||
@@ -49,3 +51,3 @@ title, | ||
}); | ||
}); | ||
}).map(indentText); | ||
logFunction(gray(time()), `[${title}]`, ...formattedMessages); | ||
@@ -52,0 +54,0 @@ }; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11500
234
39
0