Cli-table2 is a valuable npm package for developers seeking to create visually appealing and easily readable tables directly within their command-line interfaces. Based on the popular cli-table library, cli-table2 enhances the experience with improved unicode support and customisation options, enabling the generation of aesthetically pleasing tables with diverse character sets. This makes it perfect to display data, summaries, or any tabular information clearly and professionally.
Comparing versions 0.1.1 and 0.1.2, the core functionality and dependencies remain consistent. Both versions rely on 'colors' for adding colour to the tables, and 'lodash' for utility functions. They share the same development dependencies, including testing frameworks like 'chai', 'sinon', and 'gulp' for task automation, indicating an emphasis on quality and maintainability.
The key differentiator between the two versions resides in the release date. Version 0.1.2 was released shortly after 0.1.1, with about 40 minutes difference, suggesting that version 0.1.2 may contain bug fixes, minor improvements, or dependency updates which could improve its overall stability. Although the specifics of these changes aren't explicitly stated, the slightly later release date implies an incremental refinement of the package. For developers, it is important to always use the latest stable version, in this case 0.1.2, to take advantage of these potential improvements. This library offers a practical solution for enhancing command-line tools and scripts.
All the vulnerabilities related to the version 0.1.2 of the package
Command Injection in lodash
lodash
versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Prototype Pollution in lodash
Versions of lodash
before 4.17.11 are vulnerable to prototype pollution.
The vulnerable functions are 'defaultsDeep', 'merge', and 'mergeWith' which allow a malicious user to modify the prototype of Object
via {constructor: {prototype: {...}}}
causing the addition or modification of an existing property that will exist on all objects.
Update to version 4.17.11 or later.
Prototype Pollution in lodash
Versions of lodash
before 4.17.5 are vulnerable to prototype pollution.
The vulnerable functions are 'defaultsDeep', 'merge', and 'mergeWith' which allow a malicious user to modify the prototype of Object
via __proto__
causing the addition or modification of an existing property that will exist on all objects.
Update to version 4.17.5 or later.
Prototype Pollution in lodash
Versions of lodash
before 4.17.12 are vulnerable to Prototype Pollution. The function defaultsDeep
allows a malicious user to modify the prototype of Object
via {constructor: {prototype: {...}}}
causing the addition or modification of an existing property that will exist on all objects.
Update to version 4.17.12 or later.