loglevel-plugin-prefix
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -28,9 +28,9 @@ (function (root, factory) { | ||
template: '[%t] %l:', | ||
timestampFormatter: function timestampFormatter(date) { | ||
timestampFormatter: function (date) { | ||
return date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, '$1'); | ||
}, | ||
levelFormatter: function levelFormatter(level) { | ||
levelFormatter: function (level) { | ||
return level.toUpperCase(); | ||
}, | ||
nameFormatter: function nameFormatter(name) { | ||
nameFormatter: function (name) { | ||
return name || 'root'; | ||
@@ -37,0 +37,0 @@ } |
@@ -25,3 +25,3 @@ { | ||
"license": "MIT", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"main": "./lib/loglevel-plugin-prefix", | ||
@@ -28,0 +28,0 @@ "scripts": { |
@@ -56,8 +56,5 @@ # loglevel-plugin-prefix | ||
### Browser directly | ||
Download [production version](https://raw.githubusercontent.com/kutuluk/loglevel-plugin-prefix/master/dist/loglevel-plugin-prefix.min.js) | ||
and copy to your project folder | ||
```html | ||
<script src="loglevel.min.js"></script> | ||
<script src="loglevel-plugin-prefix.min.js"></script> | ||
<script src="https://unpkg.com/loglevel/dist/loglevel.min.js"></script> | ||
<script src="https://unpkg.com/loglevel-plugin-prefix/dist/loglevel-plugin-prefix.min.js"></script> | ||
@@ -64,0 +61,0 @@ <script> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16942
246