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

es6-react-mixins

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-react-mixins - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

7

lib/mixin.js

@@ -29,2 +29,5 @@ /*

};
var trueNoop = function trueNoop() {
return true;
};
var es6ify = function es6ify(mixin) {

@@ -77,4 +80,6 @@ if (typeof mixin === 'function') {

Base.prototype.shouldComponentUpdate = trueNoop;
// No-ops so we need not check before calling super()
['componentWillMount', 'componentDidMount', 'componentWillReceiveProps', 'shouldComponentUpdate', 'componentWillUpdate', 'componentDidUpdate', 'componentWillUnmount', 'render'].forEach(function (m) {
['componentWillMount', 'componentDidMount', 'componentWillReceiveProps', 'componentWillUpdate', 'componentDidUpdate', 'componentWillUnmount', 'render'].forEach(function (m) {
return Base.prototype[m] = noop;

@@ -81,0 +86,0 @@ });

2

package.json
{
"name": "es6-react-mixins",
"version": "0.1.6",
"version": "0.1.7",
"description": "Augments ES6 classes with ES6 or traditional React mixins",

@@ -5,0 +5,0 @@ "author": "Angus Croll",

@@ -118,8 +118,1 @@ # es6-react-mixins

Yes please!
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