shoplazza-cli 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,7 @@ const checkAndLogin = async (store) => {
36
36
  const code = await getCode(store);
37
37
  spinner = ora(`Logging in to ${chalk.green(store)}`).start();
38
38
  log.info(`${chalk.green('✓')} Initiating authentication`);
39
- await postAcxcessToken(code, store);
39
+ await postAccessToken(code, store);
40
40
  await getUserInfo(store);
41
41
  await postExchangeToken(store);
42
42
  spinner?.stop?.();
@@ -10,7 +10,7 @@ const { checkAndZipThemes } = require('./package');
10
10
  const log = require('../../log');
11
11
 
12
12
  const checkPushTask = (taskId) => {
13
- let maxCheckCount = 60;
13
+ let maxCheckCount = 3 * 60;
14
14
  let state = -1;
15
15
  return new Promise(async (resolve, reject) => {
16
16
  while (maxCheckCount--) {
@@ -19,7 +19,7 @@ const checkPushTask = (taskId) => {
19
19
  task: { status, info, message }
20
20
  }
21
21
  } = await getPushTask(taskId);
22
- status == 0 && (await sleep(2000));
22
+ status == 0 && (await sleep(3 * 1000));
23
23
  if (status == 1 || status == 2) {
24
24
  state = status;
25
25
  state == 1 && resolve(info);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoplazza-cli",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "main": "bin/shoplazza",
6
6
  "engines": {