Comparing version 2.1.0 to 2.1.1
@@ -13,2 +13,4 @@ #!/usr/bin/env node | ||
const del = require('./del.js'); | ||
const bundle = require('./bundle.js'); | ||
const bundleRemove = require('./bundleRemove'); | ||
const start = require('./start.js'); | ||
@@ -18,5 +20,5 @@ const upload = require('./upload.js'); | ||
const download = require('./download.js'); | ||
const bundle = require('./bundle.js'); | ||
program | ||
@@ -90,2 +92,13 @@ .storeOptionsAsProperties(false) | ||
/** | ||
* Remove bundle directory i.e. the ./dist/ directory. | ||
* $dex8 bundleRemove | ||
*/ | ||
program | ||
.command('bundleRemove') | ||
.alias('brm') | ||
.description('Remove bundle directory ./dist/') | ||
.action(bundleRemove); | ||
/** | ||
* Start the dex8 skript. | ||
@@ -92,0 +105,0 @@ * $dex8 start -i input.json |
@@ -47,4 +47,6 @@ const inquirer = require('inquirer'); | ||
// status | ||
if (answer.status !== 200) { throw new Error(answer.res.content.message); } | ||
const errMsg = answer.res.content && answer.res.content.error_message ? answer.res.content.error_message : answer.statusMessage; | ||
if (answer.status !== 200) { throw new Error(errMsg); } | ||
@@ -51,0 +53,0 @@ |
@@ -13,4 +13,4 @@ { | ||
"@mikosoft/echo": "^1.0.1", | ||
"@mikosoft/functionflow": "^1.0.1" | ||
"@mikosoft/functionflow": "^1.0.3" | ||
} | ||
} |
@@ -13,3 +13,3 @@ { | ||
"@mikosoft/echo": "^1.0.1", | ||
"@mikosoft/functionflow": "^1.0.1", | ||
"@mikosoft/functionflow": "^1.0.3", | ||
"@mikosoft/httpclient-pptr": "^2.0.0", | ||
@@ -16,0 +16,0 @@ "puppeteer-core": "^5.1.0" |
@@ -159,12 +159,8 @@ /** | ||
if (answer.status === 200) { | ||
console.log(chalk.green(answer.res.content.msg)); | ||
} else { | ||
console.log(chalk.red(answer.statusMessage)); | ||
console.log(chalk.red(answer.res.content.message)); | ||
} | ||
// status | ||
const errMsg = answer.res.content && answer.res.content.error_message ? answer.res.content.error_message : answer.statusMessage; | ||
if (answer.status !== 200) { throw new Error(errMsg); } | ||
await new Promise(resolve => setTimeout(resolve, 1300)); | ||
console.log(chalk.green(answer.res.content.msg)); | ||
} catch (err) { | ||
@@ -171,0 +167,0 @@ console.log(chalk.red(err.message)); |
{ | ||
"name": "dex8-cli", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"title": "DEX8 CLI", | ||
@@ -39,3 +39,3 @@ "description": "Dex8 CLI is a command line interface which helps developers to create and run dex8.com skripts (automated serverless scripts).", | ||
"dependencies": { | ||
"@mikosoft/httpclient-node": "^1.0.1", | ||
"@mikosoft/httpclient-node": "^1.0.2", | ||
"chalk": "^4.1.0", | ||
@@ -42,0 +42,0 @@ "commander": "^6.0.0", |
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
48382
42
972
19