initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
16
github/codeql-action-v1/node_modules/table/dist/calculateColumnWidths.js
generated
vendored
Normal file
16
github/codeql-action-v1/node_modules/table/dist/calculateColumnWidths.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const calculateCellWidths_1 = require("./calculateCellWidths");
|
||||
/**
|
||||
* Produces an array of values that describe the largest value length (width) in every column.
|
||||
*/
|
||||
exports.default = (rows) => {
|
||||
const columnWidths = new Array(rows[0].length).fill(0);
|
||||
rows.forEach((row) => {
|
||||
const cellWidths = calculateCellWidths_1.calculateCellWidths(row);
|
||||
cellWidths.forEach((cellWidth, cellIndex) => {
|
||||
columnWidths[cellIndex] = Math.max(columnWidths[cellIndex], cellWidth);
|
||||
});
|
||||
});
|
||||
return columnWidths;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue