Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-observable-mixin

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-observable-mixin - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

17

lib/ObservablePropTypes.js

@@ -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"

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