massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / table / dist / src / drawRow.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/dist/src/drawRow.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/table/dist/src/drawRow.js
new file mode 100644 (file)
index 0000000..25f62ce
--- /dev/null
@@ -0,0 +1,21 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.drawRow = void 0;
+const drawContent_1 = require("./drawContent");
+const drawRow = (row, config) => {
+    const { border, drawVerticalLine } = config;
+    return (0, drawContent_1.drawContent)(row, {
+        drawSeparator: drawVerticalLine,
+        separatorGetter: (index, columnCount) => {
+            if (index === 0) {
+                return border.bodyLeft;
+            }
+            if (index === columnCount) {
+                return border.bodyRight;
+            }
+            return border.bodyJoin;
+        },
+    }) + '\n';
+};
+exports.drawRow = drawRow;
+//# sourceMappingURL=drawRow.js.map
\ No newline at end of file