-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch cli-table3@0.6.5 for the project I'm working on.
Here is the diff that solved my problem:
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;This issue body was partially generated by patch-package.
Metadata
Metadata
Assignees
Labels
No labels