Comparing version 0.9.3 to 0.9.4
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 0.9.4 | ||
* Fix logger on `0` in event data. | ||
## 0.9.3 | ||
@@ -5,0 +8,0 @@ * Improved TypeScript support for typed events and store (by @majo44). |
@@ -1,5 +0,5 @@ | ||
var print = console.log | ||
var print | ||
if (typeof navigator !== 'undefined' && navigator.product !== 'ReactNative') { | ||
print = function (type, name, opts) { | ||
if (opts) { | ||
if (typeof opts !== 'undefined') { | ||
console.log( | ||
@@ -19,2 +19,10 @@ '%c' + type + ' %c' + name, | ||
} | ||
} else { | ||
print = function (type, name, opts) { | ||
if (typeof opts !== 'undefined') { | ||
console.log(type, name, opts) | ||
} else { | ||
console.log(type, name) | ||
} | ||
} | ||
} | ||
@@ -27,8 +35,6 @@ | ||
print('changed', keys, state) | ||
} else if (data[1]) { | ||
} else { | ||
print('action', String(data[0]), data[1]) | ||
} else { | ||
print('action', String(data[0])) | ||
} | ||
}) | ||
} |
@@ -20,3 +20,3 @@ /** | ||
console.log('changed ' + keys, state) | ||
} else if (data[1]) { | ||
} else if (typeof data[1] !== 'undefined') { | ||
console.log('action ' + String(data[0]), data[1]) | ||
@@ -23,0 +23,0 @@ } else { |
{ | ||
"name": "storeon", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"description": "Tiny (173 bytes) event-based Redux-like state manager for React and Preact", | ||
@@ -23,4 +23,4 @@ "keywords": [ | ||
"sharec": { | ||
"version": "0.3.5" | ||
"version": "0.4.0" | ||
} | ||
} |
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
30393
459