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

fast-table

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-table - npm Package Compare versions

Comparing version 1.3.6 to 1.3.7

src/AutoSizer.js

38

lib/managers/ColumnManager.js

@@ -315,8 +315,7 @@ 'use strict';

});
var baseWidth = (0, _sumBy2.default)(columns, function (column) {
return column._width;
});
var baseWidth = (0, _sumBy2.default)(columns, '_width');
_this.width = 0;
_this.leftWidth = 0;
_this.rightWidth = 0;
var centerWidth = 0;
_this.leftWidth = (0, _sumBy2.default)(leftColumns, '_width');
_this.rightWidth = (0, _sumBy2.default)(rightColumns, '_width');
var average = (0, _floor2.default)((wrapperWidth - baseWidth) / len);

@@ -326,13 +325,2 @@ var update = function update(columns) {

var width = column._width;
if (column._pathKey === last._pathKey) {
column._width = wrapperWidth - _this.width;
} else {
if (!leftColumns.some(function (c) {
return c._pathKey === column._pathKey;
}) && !rightColumns.some(function (c) {
return c._pathKey === column._pathKey;
})) {
column._width = width + average;
}
}
var children = column.children || [];

@@ -343,4 +331,12 @@ if (children.length > 0) {

} else {
if (column._width < column._minWidth) {
column._width = column._minWidth;
if (column._pathKey === last._pathKey) {
column._width = wrapperWidth - _this.leftWidth - _this.rightWidth - centerWidth;
} else {
if (!leftColumns.some(function (c) {
return c._pathKey === column._pathKey;
}) && !rightColumns.some(function (c) {
return c._pathKey === column._pathKey;
})) {
column._width = width + average;
}
}

@@ -353,6 +349,4 @@ if ((0, _isNumber2.default)(column.maxWidth) && !(0, _isNaN2.default)(column.maxWidth)) {

_this.width += column._width;
if (column.fixed === 'left' || column.fixed === true) {
_this.leftWidth += column._width;
} else if (column.fixed === 'right') {
_this.rightWidth += column._width;
if (column.fixed === 'left' || column.fixed === true) {} else if (column.fixed === 'right') {} else {
centerWidth += column._width;
}

@@ -359,0 +353,0 @@ }

{
"name": "fast-table",
"version": "1.3.6",
"version": "1.3.7",
"description": "react table fast",

@@ -8,2 +8,3 @@ "main": "./lib/index.js",

"lib",
"src",
"theme/*.css"

@@ -10,0 +11,0 @@ ],

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