micro-observables
Advanced tools
Comparing version 1.5.0-rc7 to 1.5.0
{ | ||
"name": "micro-observables", | ||
"version": "1.5.0-rc7", | ||
"version": "1.5.0", | ||
"description": "A simple Observable library that can be used for easy state management in React applications.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -405,3 +405,3 @@ # Micro-observables | ||
const numbers = [...Array(10)].map((_, index) => observable(index)); | ||
const total = Observable.compute(() => numbers.reduce((a, b) => a.get() + b.get())); | ||
const total = Observable.merge(numbers).transform(num => num.reduce((a, b) => a + b)); | ||
expect(total.get()).toStrictEqual(45); | ||
@@ -408,0 +408,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
135071