component-shipinlv 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,8 +6,6 @@ import Tool from "./Tool";
6
6
  import notification from "./notification";
7
7
  import userAgent from "./user-agent";
8
8
  import VideoApiOpenChrome from "./video-api/open-chrome";
9
- import sleep from "./sleep";
10
- import VideoApiQuitChrome from "./video-api/quit-chrome";
11
9
  import * as VideoPublishCrawlerTaskController from "../service/api/VideoPublishCrawlerTaskController";
12
10
 
13
11
  // @isNew: 只有 新建账户,才要 isNew
@@ -56,19 +54,15 @@ var openChrome = /*#__PURE__*/function () {
56
54
  case 8:
57
55
  cmdResult = _context.sent;
58
56
  console.log("cmd:", query);
59
- if (cmdResult) {
60
- _context.next = 14;
61
- break;
57
+ if (!cmdResult) {
58
+ // await sleep( 6e3 );
59
+ // VideoApiQuitChrome({
60
+ // platform: query.platform,
61
+ // platformVideoAccountId: query.platformAccountId,
62
+ // chromeProfileName: query.chromeProfileName,
63
+ // });
62
64
  }
63
- _context.next = 13;
64
- return sleep(6e3);
65
- case 13:
66
- VideoApiQuitChrome({
67
- platform: query.platform,
68
- platformVideoAccountId: query.platformAccountId,
69
- chromeProfileName: query.chromeProfileName
70
- });
71
- case 14:
65
+ case 11:
72
66
  case "end":
73
67
  return _context.stop();
74
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",