New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

miwen-component_case_1-react

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

miwen-component_case_1-react - npm Package Compare versions

Comparing version 0.0.11 to 0.0.13

27

component_case_1-react.js

@@ -135,3 +135,3 @@ (function (global, factory) {

"methods": [],
"version": "0.0.11",
"version": "0.0.13",
"author": "miwen"

@@ -167,2 +167,27 @@ });

}, {
key: "isObjectValueEqual",
value: function isObjectValueEqual(a, b) {
var aProps = Object.getOwnPropertyNames(a);
var bProps = Object.getOwnPropertyNames(b);
if (aProps.length != bProps.length) {
return false;
}
for (var i = 0; i < aProps.length; i++) {
var propName = aProps[i];
if (a[propName] !== b[propName]) {
return false;
}
}
return true;
}
}, {
key: "shouldComponentUpdate",
value: function shouldComponentUpdate(prevProps, nextState) {
return !this.isObjectValueEqual(nextState.options, this.state.options);
}
}, {
key: "componentDidUpdate",

@@ -169,0 +194,0 @@ value: function componentDidUpdate(prevProps, prevState) {

2

package.json
{
"name": "miwen-component_case_1-react",
"version": "0.0.11",
"version": "0.0.13",
"main":"component_case_1-react.js",

@@ -5,0 +5,0 @@ "description": "",

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