🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-break

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-break - npm Package Compare versions

Comparing version

to
1.3.2

4

lib/react-break.js

@@ -83,3 +83,5 @@ 'use strict';

return _ret = (_temp = (_this = (0, _possibleConstructorReturn3.default)(this, (_ref = Break.__proto__ || (0, _getPrototypeOf2.default)(Break)).call.apply(_ref, [this].concat(args))), _this), _this.state = { layout: (0, _breakjs2.default)(_this.props.breakpoints) }, _this.onLayoutChange = function () {
_this.forceUpdate();
if (_this.mounted) {
_this.forceUpdate();
}
}, _this.mounted = false, _temp), (0, _possibleConstructorReturn3.default)(_this, _ret);

@@ -86,0 +88,0 @@ }

{
"name": "react-break",
"version": "1.3.1",
"version": "1.3.2",
"description": "Responsive breakpoints in React.",

@@ -5,0 +5,0 @@ "main": "./lib/react-break.js",

@@ -52,3 +52,5 @@ import React, { PureComponent } from 'react';

onLayoutChange = () => {
this.forceUpdate();
if (this.mounted) {
this.forceUpdate();
}
}

@@ -55,0 +57,0 @@

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

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