utiller 1.0.53 → 1.0.56

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.
@@ -97,11 +97,11 @@ var InfinitePool = /*#__PURE__*/function () {
97
97
  while (1) {
98
98
  switch (_context.prev = _context.next) {
99
99
  case 0:
100
- _this.isQueuePolling = false;
100
+ _this.terminate();
101
101
 
102
102
  case 1:
103
103
  if (!(_lodash["default"].size(_this.executingTaskQueue) > 0)) {
104
- _context.next = 7;
104
+ _context.next = 8;
105
105
  break;
106
106
  }
107
107
 
@@ -111,13 +111,15 @@ var InfinitePool = /*#__PURE__*/function () {
111
111
  case 4:
112
112
  _index2.utiller.appendInfo(_this.getPoollerLogFormat("\u54AC\u5728 stopInBackground \u51FA\u4E0D\u4F86"));
113
113
 
114
+ _this.showState();
115
+
114
116
  _context.next = 1;
115
117
  break;
116
118
 
117
- case 7:
119
+ case 8:
118
120
  return _context.abrupt("return", true);
119
121
 
120
- case 8:
122
+ case 9:
121
123
  case "end":
122
124
  return _context.stop();
123
125
  }
@@ -375,18 +377,20 @@ var InfinitePool = /*#__PURE__*/function () {
375
377
 
376
378
  case 11:
377
379
  if (!(_this.isRunning() && !_lodash["default"].isEmpty(_this.paramQueue))) {
378
- _context3.next = 16;
380
+ _context3.next = 17;
379
381
  break;
380
382
  }
381
383
 
382
- _context3.next = 14;
384
+ _index2.utiller.appendInfo(_this.getPoollerLogFormat("\u9084\u5728\u904B\u884C\u4E2D "));
385
+
386
+ _context3.next = 15;
383
387
  return (0, _classPrivateFieldGet2["default"])(_this, _run).call(_this);
384
388
 
385
- case 14:
389
+ case 15:
386
390
  _context3.next = 11;
387
391
  break;
388
392
 
389
- case 16:
393
+ case 17:
390
394
  case "end":
391
395
  return _context3.stop();
392
396
  }
@@ -911,7 +915,7 @@ var InfinitePool = /*#__PURE__*/function () {
911
915
  }
912
916
 
913
917
  if (this.state === _configerer.configerer.POOLLER_STATE.RUN_BY_EACH_TASK) {
914
- /** 因為不這樣做, 就會產生 race condition, 會產生出3個runInGround instance */
918
+ /** 因為不這樣做, 就會產生 race condition, 會產生出3個runInBackGround instance */
915
919
  this.runByEachTaskInBackGround();
916
920
  return;
917
921
  }
@@ -1055,7 +1055,7 @@ var NodeUtiller = /*#__PURE__*/function (_Utiller) {
1055
1055
  isError ? (_console = console).error.apply(_console, (0, _toConsumableArray2["default"])(datas)) : (_console2 = console).log.apply(_console2, (0, _toConsumableArray2["default"])(datas));
1056
1056
  }
1057
1057
 
1058
- var persistlog = "".concat(new Date(), " ").concat(isError ? "ERROR" : "LOG", " : ").concat(this.getLogString(datas));
1058
+ var persistlog = "".concat(this.getCurrentTimeFormat(), " ").concat(isError ? "ERROR" : "LOG", " : ").concat(this.getLogString(datas));
1059
1059
  this.appendFile(path, persistlog);
1060
1060
  }
1061
1061
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utiller",
3
- "version": "1.0.53",
3
+ "version": "1.0.56",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
15
  "bl": "^4.1.0",
16
- "configerer": "^1.0.10",
16
+ "configerer": "^1.0.11",
17
17
  "crypto-js": "^4.0.0",
18
18
  "del": "^6.0.0",
19
19
  "fs-extra": "^9.1.0",
@@ -10,10 +10,10 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "configerer": "^1.0.10",
14
- "utiller": "^1.0.52",
13
+ "configerer": "^1.0.11",
14
+ "utiller": "^1.0.55",
15
15
  "linepayer": "^1.0.4",
16
- "databazer": "^1.0.8",
16
+ "databazer": "^1.0.9",
17
17
  "lodash": "^4.17.20",
18
18
  "moment": "^2.29.1"
19
19
  },