Socket
Socket
Sign inDemoInstall

table

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

table - npm Package Compare versions

Comparing version 5.1.1 to 5.2.0

dist/wrapCell.js

10

dist/calculateCellHeight.js

@@ -10,6 +10,4 @@ "use strict";

var _stringWidth = _interopRequireDefault(require("string-width"));
var _wrapCell = _interopRequireDefault(require("./wrapCell"));
var _wrapWord = _interopRequireDefault(require("./wrapWord"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -36,7 +34,3 @@

if (useWrapWord) {
return (0, _wrapWord.default)(value, columnWidth).length;
}
return Math.ceil((0, _stringWidth.default)(value) / columnWidth);
return (0, _wrapCell.default)(value, columnWidth, useWrapWord).length;
};

@@ -43,0 +37,0 @@

17

dist/mapDataUsingRowHeightIndex.js

@@ -10,6 +10,4 @@ "use strict";

var _wrapString = _interopRequireDefault(require("./wrapString"));
var _wrapCell = _interopRequireDefault(require("./wrapCell"));
var _wrapWord = _interopRequireDefault(require("./wrapWord"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -34,12 +32,5 @@

cells.forEach((value, index1) => {
let chunkedValue;
if (config.columns[index1].wrapWord) {
chunkedValue = (0, _wrapWord.default)(value, config.columns[index1].width);
} else {
chunkedValue = (0, _wrapString.default)(value, config.columns[index1].width);
}
chunkedValue.forEach((part, index2) => {
rowHeight[index2][index1] = part;
const cellLines = (0, _wrapCell.default)(value, config.columns[index1].width, config.columns[index1].wrapWord);
cellLines.forEach((cellLine, index2) => {
rowHeight[index2][index1] = cellLine;
});

@@ -46,0 +37,0 @@ });

@@ -82,3 +82,3 @@ {

},
"version": "5.1.1"
"version": "5.2.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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