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

patternity

Package Overview
Dependencies
Maintainers
5
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

patternity - npm Package Compare versions

Comparing version

to
1.0.70-rc1

9

lib/accordion/accordion-body.js

@@ -36,2 +36,3 @@ "use strict";

this.applyRealMaxHeight = function () {
if (!_this.props.open) return;
var detailsHeight = _this.refs.details.getDOMNode().offsetHeight;

@@ -45,8 +46,8 @@ if (detailsHeight !== _this.state.maxHeight) _this.setState({ maxHeight: detailsHeight });

value: function componentDidMount() {
this.applyRealMaxHeight();
this.poll = setInterval(this.applyRealMaxHeight, 200);
}
}, {
key: "componentDidUpdate",
value: function componentDidUpdate() {
this.applyRealMaxHeight();
key: "componentWillUnmount",
value: function componentWillUnmount() {
clearInterval(this.poll);
}

@@ -53,0 +54,0 @@ }, {

{
"name": "patternity",
"version": "1.0.68",
"version": "1.0.70-rc1",
"description": "Patternity is the pattern library and style guide for all Influitive apps",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,7 +5,7 @@ import React, { Component, PropTypes } from 'react';

componentDidMount() {
this.applyRealMaxHeight();
this.poll = setInterval(this.applyRealMaxHeight, 200);
}
componentDidUpdate() {
this.applyRealMaxHeight();
componentWillUnmount() {
clearInterval(this.poll);
}

@@ -27,2 +27,3 @@

applyRealMaxHeight = () => {
if (!this.props.open) return;
const detailsHeight = this.refs.details.getDOMNode().offsetHeight;

@@ -29,0 +30,0 @@ if (detailsHeight !== this.state.maxHeight) this.setState({maxHeight: detailsHeight});