table-printer-cli
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -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 @@ |
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7997
57