mobservable
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -1,3 +0,7 @@ | ||
# 1.0.4 | ||
# 1.0.6 | ||
Fix incompatibility issue with systemjs bundler | ||
# 1.0.4/5 | ||
* `map.size` is now a property instead of a function | ||
@@ -4,0 +8,0 @@ * `map()` now accepts an array as entries to construct the new map |
@@ -39,3 +39,3 @@ /** | ||
case ValueType.ComplexFunction: | ||
throw new Error("[mobservable.observable] To be able to make a function reactive it shoul dnot have arguments. If you need an observable reference to a function, use `observable(asReference(f))`"); | ||
throw new Error("[mobservable.observable] To be able to make a function reactive it should not have arguments. If you need an observable reference to a function, use `observable(asReference(f))`"); | ||
case ValueType.ViewFunction: { | ||
@@ -213,2 +213,4 @@ var context = { | ||
} | ||
if (isObservable(source) && source.$mobservable instanceof observablevalue_1.ObservableValue) | ||
return source(); | ||
return source; | ||
@@ -215,0 +217,0 @@ } |
{ | ||
"name": "mobservable", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Observable data. Reactive functions. Simple code.", | ||
"main": "index.js", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
@@ -10,4 +10,5 @@ "scripts": { | ||
"test-browser": "npm run buildtest && ( browserify test/*.js | tape-run )", | ||
"test-travis": "npm run clean && npm run test-browser && istanbul cover tape test/*.js", | ||
"coverage": "npm run buildtest && istanbul cover tape test/*.js && cat ./coverage/lcov.info|coveralls", | ||
"perf": "npm run build && time nodeunit test/perf/*.js", | ||
"perf": "npm run build && time tape test/perf/*.js", | ||
"prepublish": "npm run clean && npm run build-dist", | ||
@@ -34,3 +35,2 @@ "clean": "rm -rf lib/ dist/", | ||
"babel": "^5.8.23", | ||
"babelify": "^6.4.0", | ||
"browserify": "^12.0.1", | ||
@@ -37,0 +37,0 @@ "coveralls": "^2.11.4", |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
164430
9
2021
0
44