react-observable-mixin
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -18,13 +18,14 @@ 'use strict'; | ||
*/ | ||
function createChainableTypeChecker(validate) { | ||
/** | ||
* Check type. | ||
*/ | ||
function checkType(isRequired, props, propName, componentName, location) { | ||
componentName = componentName || ANONYMOUS; | ||
if (props[propName] == null) { | ||
var locationName = location; | ||
if (isRequired) { | ||
throw new Error('Required ' + locationName + ' `' + propName + '` was not specified in ' + ('`' + componentName + '`.')); | ||
} | ||
} else { | ||
return validate(props, propName, componentName, location); | ||
if (props[propName]) return validate(props, propName, componentName, location); | ||
var locationName = location; | ||
if (isRequired) { | ||
throw new Error('Required ' + locationName + ' `' + propName + '` was not specified in ' + ('`' + componentName + '`.')); | ||
} | ||
@@ -31,0 +32,0 @@ } |
@@ -100,3 +100,3 @@ 'use strict'; | ||
return (_ref = {}, _ref[key] = value, _ref); | ||
return _ref = {}, _ref[key] = value, _ref; | ||
}); | ||
@@ -103,0 +103,0 @@ }); |
{ | ||
"name": "react-observable-mixin", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Container like observable mixin for ReactJS.", | ||
@@ -10,3 +10,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"babel-runtime": "^5.8.29", | ||
"babel-runtime": "^6.0.14", | ||
"rx-lite": "^4.0.6", | ||
@@ -17,5 +17,6 @@ "shallowequal": "^0.2.2" | ||
"@doctolib/gulp-tasks": "^1.0.0", | ||
"@doctolib/linter": "^1.0.0", | ||
"babel-eslint": "^4.1.3", | ||
"chai": "^3.3.0", | ||
"eslint": "^1.7.3", | ||
"eslint-config-doctolib": "^1.0.2", | ||
"eslint-plugin-mocha": "^1.0.0", | ||
@@ -37,3 +38,4 @@ "eslint-plugin-react": "^3.6.3", | ||
"cover": "gulp cover", | ||
"coveralls": "eslint . && gulp coveralls", | ||
"coveralls": "gulp coveralls", | ||
"travis": "npm run lint && npm run coveralls", | ||
"lint": "eslint .", | ||
@@ -40,0 +42,0 @@ "test": "gulp test" |
9387
18
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)
- Removedbabel-runtime@5.8.38(transitive)
- Removedcore-js@1.2.7(transitive)
Updatedbabel-runtime@^6.0.14