Socket
Socket
Sign inDemoInstall

react

Package Overview
Dependencies
Maintainers
2
Versions
1977
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react - npm Package Compare versions

Comparing version 0.12.1 to 0.12.2

7

lib/CSSProperty.js

@@ -19,3 +19,2 @@ /**

columnCount: true,
fillOpacity: true,
flex: true,

@@ -32,3 +31,7 @@ flexGrow: true,

zIndex: true,
zoom: true
zoom: true,
// SVG-related properties
fillOpacity: true,
strokeOpacity: true
};

@@ -35,0 +38,0 @@

@@ -91,3 +91,7 @@ /**

form: MUST_USE_ATTRIBUTE,
formAction: MUST_USE_ATTRIBUTE,
formEncType: MUST_USE_ATTRIBUTE,
formMethod: MUST_USE_ATTRIBUTE,
formNoValidate: HAS_BOOLEAN_VALUE,
formTarget: MUST_USE_ATTRIBUTE,
frameBorder: MUST_USE_ATTRIBUTE,

@@ -107,2 +111,4 @@ height: MUST_USE_ATTRIBUTE,

manifest: MUST_USE_ATTRIBUTE,
marginHeight: null,
marginWidth: null,
max: null,

@@ -109,0 +115,0 @@ maxLength: MUST_USE_ATTRIBUTE,

@@ -182,4 +182,4 @@ /**

// internal version.
React.version = '0.12.1';
React.version = '0.12.2';
module.exports = React;

@@ -177,3 +177,3 @@ /**

// Resolve default props
if (type.defaultProps) {
if (type && type.defaultProps) {
var defaultProps = type.defaultProps;

@@ -180,0 +180,0 @@ for (propName in defaultProps) {

@@ -26,2 +26,3 @@ /**

var monitorCodeUse = require("./monitorCodeUse");
var warning = require("./warning");

@@ -224,2 +225,11 @@ /**

createElement: function(type, props, children) {
// We warn in this case but don't throw. We expect the element creation to
// succeed and there will likely be errors in render.
("production" !== process.env.NODE_ENV ? warning(
type != null,
'React.createElement: type should not be null or undefined. It should ' +
'be a string (for DOM elements) or a ReactClass (for composite ' +
'components).'
) : null);
var element = ReactElement.createElement.apply(this, arguments);

@@ -237,19 +247,21 @@

var name = type.displayName;
if (type.propTypes) {
checkPropTypes(
name,
type.propTypes,
element.props,
ReactPropTypeLocations.prop
);
if (type) {
var name = type.displayName;
if (type.propTypes) {
checkPropTypes(
name,
type.propTypes,
element.props,
ReactPropTypeLocations.prop
);
}
if (type.contextTypes) {
checkPropTypes(
name,
type.contextTypes,
element._context,
ReactPropTypeLocations.context
);
}
}
if (type.contextTypes) {
checkPropTypes(
name,
type.contextTypes,
element._context,
ReactPropTypeLocations.context
);
}
return element;

@@ -256,0 +268,0 @@ },

@@ -66,5 +66,5 @@ /**

createInstanceForTag: createInstanceForTag,
injection: ReactNativeComponentInjection,
injection: ReactNativeComponentInjection
};
module.exports = ReactNativeComponent;

@@ -234,3 +234,3 @@ /**

var ConvenienceConstructor = React.createClass({displayName: 'ConvenienceConstructor',
var ConvenienceConstructor = React.createClass({displayName: "ConvenienceConstructor",
render: function() {

@@ -237,0 +237,0 @@ return React.createElement(

{
"name": "react",
"description": "React is a JavaScript library for building user interfaces.",
"version": "0.12.1",
"version": "0.12.2",
"keywords": [

@@ -6,0 +6,0 @@ "react"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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