New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

storeon

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storeon - npm Package Compare versions

Comparing version 0.8.5 to 0.8.6

3

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 0.8.6
* Fix `devtools/logger` on React Native.
## 0.8.5

@@ -5,0 +8,0 @@ * Fix TypeScript definitions (by Nikita Sivakov).

@@ -1,3 +0,21 @@

var STYLE = 'color: #008100'
var BOLD = 'color: #008100; font-weight: bold'
var print
if (typeof navigator === 'undefined' || navigator.product === 'ReactNative') {
print = function (type, name, opts) {
if (opts) {
console.log(type + ' ' + name, opts)
} else {
console.log(type + ' ' + name)
}
}
} 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)
}
}
}

@@ -8,9 +26,9 @@ module.exports = function (store) {

var keys = Object.keys(data[1]).join(', ')
console.log('%cchanged %c' + keys, STYLE, BOLD, state)
print('changed', keys, state)
} else if (data[1]) {
console.log('%caction %c' + String(data[0]), STYLE, BOLD, data[1])
print('action', String(data[0]), data[1])
} else {
console.log('%caction %c' + String(data[0]), STYLE, BOLD)
print('action', String(data[0]))
}
})
}

3

index.js

@@ -46,5 +46,4 @@ /**

if (diff && typeof diff.then !== 'function') {
changed = Object.assign({ }, state, diff)
changed = state = Object.assign({ }, state, diff)
Object.assign(changes, diff)
state = changed
}

@@ -51,0 +50,0 @@ })

{
"name": "storeon",
"version": "0.8.5",
"version": "0.8.6",
"description": "Tiny (173 bytes) event-based Redux-like state manager for React and Preact",

@@ -5,0 +5,0 @@ "keywords": [

@@ -76,3 +76,9 @@ # Storeon

Third-party tools:
* [`majo44/storeon-async-router`](https://github.com/majo44/storeon-async-router)
is router with data prefetch, modules lazy load, navigation cancellation,
and routes modification on the fly.
## Install

@@ -79,0 +85,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc