From 07e46589856aa80b893c9627c2b2df395a808007 Mon Sep 17 00:00:00 2001 From: JounQin Date: Wed, 6 Dec 2023 00:04:06 +0800 Subject: [PATCH] ci: patch `tty-table` for release action --- patches/tty-table+4.2.3.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 patches/tty-table+4.2.3.patch diff --git a/patches/tty-table+4.2.3.patch b/patches/tty-table+4.2.3.patch new file mode 100644 index 0000000..0bff1a6 --- /dev/null +++ b/patches/tty-table+4.2.3.patch @@ -0,0 +1,23 @@ +diff --git a/node_modules/tty-table/src/format.js b/node_modules/tty-table/src/format.js +index e187721..77e6dff 100644 +--- a/node_modules/tty-table/src/format.js ++++ b/node_modules/tty-table/src/format.js +@@ -1,4 +1,4 @@ +-const stripAnsi = require("strip-ansi") ++const stripAnsi = require("strip-ansi-cjs") + const smartwrap = require("smartwrap") + const wcwidth = require("wcwidth") + +diff --git a/node_modules/tty-table/src/style.js b/node_modules/tty-table/src/style.js +index e37f2b6..fc652ee 100644 +--- a/node_modules/tty-table/src/style.js ++++ b/node_modules/tty-table/src/style.js +@@ -4,7 +4,7 @@ const kleur = require("kleur") + // user kleur if we are in the browser + const colorLib = (process && process.stdout) ? chalk : kleur + +-const stripAnsi = require("strip-ansi") ++const stripAnsi = require("strip-ansi-cjs") + + module.exports.style = (str, ...colors) => { + const out = colors.reduce(function (input, color) {