react-addons-pure-render-mixin
Advanced tools
Comparing version 15.4.2 to 15.5.0-alpha.0
23
index.js
@@ -1,1 +0,22 @@ | ||
module.exports = require('react/lib/ReactComponentWithPureRenderMixin'); | ||
/** | ||
* Copyright 2015-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
*/ | ||
'use strict'; | ||
var shallowEqual = require('fbjs/lib/shallowEqual'); | ||
module.exports = { | ||
shouldComponentUpdate: function(nextProps, nextState) { | ||
return ( | ||
!shallowEqual(this.props, nextProps) || | ||
!shallowEqual(this.state, nextState) | ||
); | ||
}, | ||
}; |
{ | ||
"name": "react-addons-pure-render-mixin", | ||
"version": "15.4.2", | ||
"version": "15.5.0-alpha.0", | ||
"main": "index.js", | ||
@@ -15,5 +15,2 @@ "repository": "facebook/react", | ||
}, | ||
"peerDependencies": { | ||
"react": "^15.4.2" | ||
}, | ||
"files": [ | ||
@@ -23,4 +20,14 @@ "LICENSE", | ||
"README.md", | ||
"index.js" | ||
] | ||
} | ||
"index.js", | ||
"react-addons-pure-render-mixin.js", | ||
"react-addons-pure-render-mixin.min.js" | ||
], | ||
"scripts": { | ||
"test": "jest" | ||
}, | ||
"devDependencies": { | ||
"jest": "^19.0.2", | ||
"react": "^16.0.0-alpha.4", | ||
"react-dom": "^16.0.0-alpha.4" | ||
} | ||
} |
@@ -5,2 +5,2 @@ # react-addons-pure-render-mixin | ||
See <https://facebook.github.io/react/docs/pure-render-mixin.html> for more information. | ||
See <https://facebook.github.io/react/docs/pure-render-mixin.html> for more information. |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
10395
2
7
136
6
0
3
49413
3
5