Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

table-printer-cli

Package Overview
Dependencies
Maintainers
1
Versions
246
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

table-printer-cli - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.1.2](https://github.com/ayonious/table-printer-cli/compare/v1.1.1...v1.1.2) (2020-11-21)
### Bug Fixes
* console.error for input error message ([#221](https://github.com/ayonious/table-printer-cli/issues/221)) ([18af899](https://github.com/ayonious/table-printer-cli/commit/18af899e92f5226159b891de7bdae113e92486fc))
## [1.1.1](https://github.com/ayonious/table-printer-cli/compare/v1.1.0...v1.1.1) (2020-11-19)

@@ -2,0 +9,0 @@

2

dist/src/inputVerifier.d.ts

@@ -1,2 +0,2 @@

export declare const verifyInput: (inp: string) => Boolean;
declare const verifyInput: (inp: string) => Boolean;
export default verifyInput;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.verifyInput = void 0;
const isValidJson = (str) => {

@@ -8,3 +7,3 @@ try {

if (!Array.isArray(jsonObj)) {
console.log('input Not an array');
console.error('"input" is not an array');
return false;

@@ -15,12 +14,7 @@ }

catch (err) {
console.log('Invalid json input');
console.log('Invalid JSON input');
return false;
}
};
exports.verifyInput = (inp) => {
if (!isValidJson(inp)) {
return false;
}
return true;
};
exports.default = exports.verifyInput;
const verifyInput = (inp) => isValidJson(inp);
exports.default = verifyInput;
{
"name": "table-printer-cli",
"version": "1.1.1",
"version": "1.1.2",
"description": "console table printer cli. Print table on bash terminal",

@@ -48,3 +48,3 @@ "main": "dist/index.js",

"@typescript-eslint/parser": "^4.8.1",
"eslint": "^7.13.0",
"eslint": "^7.14.0",
"eslint-config-airbnb-base": "^14.2.1",

@@ -54,8 +54,8 @@ "eslint-plugin-import": "^2.22.1",

"jest": "^26.6.3",
"prettier": "^2.1.2",
"prettier": "^2.2.0",
"pretty-quick": "^3.1.0",
"semantic-release": "^17.2.3",
"semantic-release": "^17.2.4",
"ts-jest": "^26.4.4",
"typescript": "^4.0.5"
"typescript": "^4.1.2"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc