Comparing version 0.8.6 to 0.8.7
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 0.8.7 | ||
* Reduce `devtools/logger` size (by WrinkleJ and Alexey Berezin). | ||
## 0.8.6 | ||
@@ -5,0 +8,0 @@ * Fix `devtools/logger` on React Native. |
@@ -1,20 +0,19 @@ | ||
var print | ||
if (typeof navigator === 'undefined' || navigator.product === 'ReactNative') { | ||
var print = console.log | ||
if (typeof navigator !== 'undefined' && navigator.product !== 'ReactNative') { | ||
print = function (type, name, opts) { | ||
if (opts) { | ||
console.log(type + ' ' + name, opts) | ||
console.log( | ||
'%c' + type + ' %c' + name, | ||
'color: #070', | ||
'color: #070; font-weight: 700', | ||
opts | ||
) | ||
} else { | ||
console.log(type + ' ' + name) | ||
console.log( | ||
'%c' + type + ' %c' + name, | ||
'color: #070', | ||
'color: #070; font-weight: 700' | ||
) | ||
} | ||
} | ||
} else { | ||
var STYLE = 'color: #008100' | ||
var BOLD = 'color: #008100; font-weight: bold' | ||
print = function (type, name, opts) { | ||
if (opts) { | ||
console.log('%c' + type + ' %c' + name, STYLE, BOLD, opts) | ||
} else { | ||
console.log('%c' + type + ' %c' + name, STYLE, BOLD) | ||
} | ||
} | ||
} | ||
@@ -21,0 +20,0 @@ |
{ | ||
"name": "storeon", | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"description": "Tiny (173 bytes) event-based Redux-like state manager for React and Preact", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
27457
449