Comments (6)
https://github.com/zloirock/core-js/runs/4240992349?check_suite_focus=true
from cli-table.
Can confirm that I am seeing the same error.
This line will throw an error if typeof stripped != "string"
Looks like PR #149 introduced a scenario where this constraint is not met. I'm guessing this is when the bug was introduced.
I haven't studied the code enough to determine if the preferred solution is to type check in the strlen utility function or revert the recently merged PR.
from cli-table.
I face the same issue. In my case, I decided to cast all numbers I pass into the table to strings. It helped.
from cli-table.
var stripped = ("" + str).replace(code,'');
was changed to
var stripped = stripAnsi(str);
so numbers aren't getting converted to strings before stripping them. Maybe
var stripped = stripAnsi("" + str);
would be a friendlier, more backwards compatible approach?
from cli-table.
This problem is currently crashing my build pipeline as it is a dependency of a dependency for us. I put a PR to try and resolve the issue, hoping to get it reviewed and merged ASAP
from cli-table.
See #160 - any inclusion of strip-ansi
v6 is a breaking change, because it drops support for node < 12, and the v0.3 line claims support for node 0.2+.
from cli-table.
Related Issues (20)
- Breaking change in non-major version HOT 2
- Prototype Pollution HOT 3
- `colors` package update would improve webpack compatibility HOT 2
- Width calculations are off when table contains terminal hyperlink control characters HOT 3
- `node examples/revs.js` gives errors
- 0.3.7 crashes when creating tables without options HOT 2
- 0.3.7 node version HOT 2
- Breaking change to utils.strlen in 0.3.7 HOT 1
- v0.3.7 has a breaking change HOT 10
- I have a little visibility problem
- colors package is corrupted HOT 1
- Consider adding documentation of the package
- emoji gives wrong padding
- colAlign value to center text is "middle" and not "center"
- Output to file?
- Chinese causes table overflow HOT 2
- error [90mx in bot telegram
- Colors package
- .toString() throws error when new Table was instanciated with "head" prop as undefined.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli-table.