Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used [patch-package](https://github.com/ds300/patch-package) to patch `cli-table3@0.6.5` for the project I'm working on. <!-- 🔺️🔺️🔺️ PLEASE REPLACE THIS BLOCK with a description of your problem, and any other relevant context 🔺️🔺️🔺️ --> Here is the diff that solved my problem: ```diff diff --git a/node_modules/cli-table3/src/utils.js b/node_modules/cli-table3/src/utils.js index d21e251..778c282 100644 --- a/node_modules/cli-table3/src/utils.js +++ b/node_modules/cli-table3/src/utils.js @@ -1,4 +1,7 @@ -const stringWidth = require('string-width'); +let stringWidth = require('string-width'); +if (typeof stringWidth !== 'function' && stringWidth.default) { + stringWidth = stringWidth.default; +} function codeRegex(capture) { return capture ? /\u001b\[((?:\d*;){0,5}\d*)m/g : /\u001b\[(?:\d*;){0,5}\d*m/g; ``` <em>This issue body was [partially generated by patch-package](https://github.com/ds300/patch-package/issues/296).</em>
Activity