@imgcook/cli
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -45,3 +45,2 @@ const ora = require('ora'); | ||
configData = JSON.parse(configData); | ||
const repoData = await ajaxPost(url, { | ||
@@ -141,6 +140,7 @@ data: { | ||
} | ||
if (!repoData.success || repoData.success === 'false') { | ||
if (repoData.code && repoData.code.message) { | ||
spinner.fail(`${repoData.code.message}`); | ||
} else if (typeof repoData === 'string') { | ||
spinner.fail('Export code exception.'); | ||
} else { | ||
@@ -147,0 +147,0 @@ spinner.fail(`${repoData.errorMsg}`); |
@@ -9,3 +9,3 @@ | ||
spinner.start(`Update imgcook cli...`); | ||
childProcess.exec('npm update @imgcook/cli -g', () => { | ||
childProcess.exec('npm install -g @imgcook/cli', () => { | ||
spinner.succeed(`Update complete.`); | ||
@@ -12,0 +12,0 @@ }); |
{ | ||
"name": "@imgcook/cli", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@imgcook/cli-utils": "^0.1.6", | ||
"@imgcook/cli-utils": "^0.1.7", | ||
"chalk": "^2.4.2", | ||
@@ -47,3 +47,3 @@ "commander": "^2.19.0", | ||
}, | ||
"gitHead": "27bbc51c6df7d11fa6588e33c839dd29f50b7763" | ||
"gitHead": "a4bbbdd133080e9b45b3e3a5dd67144327ada4fe" | ||
} |
@@ -51,5 +51,4 @@ # imgcook-cli | ||
> Get accessId :Official website top right corner avatar -> Personal page -> Top left Icon | ||
> ![image.png](https://intranetproxy.alipay.com/skylark/lark/0/2019/png/199/1576161013370-acd72bac-c714-4653-828e-963d6aea3c8b.png#align=left&display=inline&height=164&name=image.png&originHeight=480&originWidth=1156&size=151842&status=done&style=none&width=396) | ||
> <img src="https://gw.alicdn.com/tfs/TB1rFW3qeL2gK0jSZFmXXc7iXXa-1156-480.png" width=396 alt="" /> | ||
#### imgcook pull | ||
@@ -56,0 +55,0 @@ > Pull module code |
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
930
29176
100
Updated@imgcook/cli-utils@^0.1.7