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/calculateCellWidths.js
generated
vendored
Normal file
16
github/codeql-action-v1/node_modules/table/dist/calculateCellWidths.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.calculateCellWidths = void 0;
|
||||
const string_width_1 = __importDefault(require("string-width"));
|
||||
/**
|
||||
* Calculates width of each cell contents in a row.
|
||||
*/
|
||||
const calculateCellWidths = (cells) => {
|
||||
return cells.map((cell) => {
|
||||
return Math.max(...cell.split('\n').map(string_width_1.default));
|
||||
});
|
||||
};
|
||||
exports.calculateCellWidths = calculateCellWidths;
|
||||
Loading…
Add table
Add a link
Reference in a new issue