X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Ftable%2Fdist%2FcalculateCellWidthIndex.js;fp=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Ftable%2Fdist%2FcalculateCellWidthIndex.js;h=0000000000000000000000000000000000000000;hb=3be0a9efc698a9570a44456009afc6014812625a;hp=a4df50167a1f4f029f31fa5f71016473039ca439;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088;p=dotfiles%2F.git diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/dist/calculateCellWidthIndex.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/dist/calculateCellWidthIndex.js deleted file mode 100644 index a4df5016..00000000 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/dist/calculateCellWidthIndex.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _stringWidth = _interopRequireDefault(require("string-width")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Calculates width of each cell contents. - * - * @param {string[]} cells - * @returns {number[]} - */ -const calculateCellWidthIndex = cells => { - return cells.map(value => { - return Math.max(...value.split('\n').map(line => { - return (0, _stringWidth.default)(line); - })); - }); -}; - -var _default = calculateCellWidthIndex; -exports.default = _default; -//# sourceMappingURL=calculateCellWidthIndex.js.map \ No newline at end of file