@cerebral/fluent
Advanced tools
Comparing version 1.0.0 to 1.0.1-1522102055181
@@ -19,5 +19,5 @@ import Hoc from './Hoc'; | ||
return connect(con, passedComponent(fakeProps)); | ||
} | ||
}, | ||
}; | ||
} | ||
}, | ||
}; | ||
@@ -41,5 +41,5 @@ } | ||
return connect(con, passedComponent(fakeProps)); | ||
} | ||
}, | ||
}; | ||
} | ||
}, | ||
}; | ||
@@ -53,4 +53,4 @@ }; | ||
get: function (target, name) { | ||
throw new CerebralError("The props lambda parameter should only be used to conveniently get the type of the components generic props parameter. Use `this.props` in the component instead."); | ||
} | ||
throw new CerebralError('The props lambda parameter should only be used to conveniently get the type of the components generic props parameter. Use `this.props` in the component instead.'); | ||
}, | ||
}; | ||
@@ -69,5 +69,5 @@ var fakeProps = Proxy ? new Proxy({}, handler) : {}; | ||
state: lookups.stateLookup(x.state), | ||
signals: lookups.signalsLookup(x.signals) | ||
signals: lookups.signalsLookup(x.signals), | ||
}, | ||
props: x.props | ||
props: x.props, | ||
}); | ||
@@ -74,0 +74,0 @@ }; |
@@ -41,2 +41,5 @@ import { Provider } from 'cerebral'; | ||
get: function (target, key) { | ||
if (key === '$mobx') { | ||
return; | ||
} | ||
if (isObservableMap(target)) { | ||
@@ -75,3 +78,5 @@ switch (key) { | ||
var value = originalFunc_2.call(target, mapKey); | ||
return new Proxy(value, validator); | ||
return value !== null && typeof value === 'object' | ||
? new Proxy(value, validator) | ||
: value; | ||
}; | ||
@@ -78,0 +83,0 @@ } |
{ | ||
"name": "@cerebral/fluent", | ||
"version": "1.0.0", | ||
"version": "1.0.1-1522102055181", | ||
"description": "Makes Cerebral typescript friendly", | ||
@@ -27,3 +27,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"cerebral": "^4.2.0", | ||
"cerebral": "^4.2.0-1522102055181", | ||
"mobx": "^3.4.1" | ||
@@ -30,0 +30,0 @@ }, |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
84848
2020
2