Update checked-in dependencies
This commit is contained in:
parent
6b0d45a5c6
commit
cc1adb825a
4247 changed files with 144820 additions and 149530 deletions
36
node_modules/table/dist/padTableData.js
generated
vendored
36
node_modules/table/dist/padTableData.js
generated
vendored
|
|
@ -1,24 +1,16 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
/**
|
||||
* @param {table~row[]} rows
|
||||
* @param {Object} config
|
||||
* @returns {table~row[]}
|
||||
*/
|
||||
const padTableData = (rows, config) => {
|
||||
return rows.map(cells => {
|
||||
return cells.map((value, index1) => {
|
||||
const column = config.columns[index1];
|
||||
return ' '.repeat(column.paddingLeft) + value + ' '.repeat(column.paddingRight);
|
||||
});
|
||||
});
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.padTableData = exports.padString = void 0;
|
||||
const padString = (input, paddingLeft, paddingRight) => {
|
||||
return ' '.repeat(paddingLeft) + input + ' '.repeat(paddingRight);
|
||||
};
|
||||
|
||||
var _default = padTableData;
|
||||
exports.default = _default;
|
||||
//# sourceMappingURL=padTableData.js.map
|
||||
exports.padString = padString;
|
||||
const padTableData = (rows, config) => {
|
||||
return rows.map((cells) => {
|
||||
return cells.map((cell, cellIndex) => {
|
||||
const { paddingLeft, paddingRight } = config.columns[cellIndex];
|
||||
return exports.padString(cell, paddingLeft, paddingRight);
|
||||
});
|
||||
});
|
||||
};
|
||||
exports.padTableData = padTableData;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue