@iobroker/js-controller-cli 4.0.9 → 4.0.12

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.
@@ -309,7 +309,7 @@ function List(options) {
309
309
  }
310
310
  }
311
311
  }
312
- setTimeout(processExit, 1000, null);
312
+ processExit();
313
313
  });
314
314
  break;
315
315
 
@@ -318,12 +318,12 @@ function List(options) {
318
318
  states.getKeys(filter || '*', (err, keys) => {
319
319
  if (err) {
320
320
  console.error(err);
321
- processExit(EXIT_CODES.CANNOT_GET_STATES);
321
+ return void processExit(EXIT_CODES.CANNOT_GET_STATES);
322
322
  }
323
323
  states.getStates(keys, (err, states) => {
324
324
  if (err) {
325
325
  console.error(err);
326
- return processExit(EXIT_CODES.CANNOT_GET_STATES);
326
+ return void processExit(EXIT_CODES.CANNOT_GET_STATES);
327
327
  }
328
328
  for (let i = 0; i < states.length; i++) {
329
329
  let id = keys[i];
@@ -350,7 +350,7 @@ function List(options) {
350
350
  JSON.stringify(states[i].val)
351
351
  );
352
352
  }
353
- setTimeout(processExit, 1000, null);
353
+ processExit();
354
354
  });
355
355
  });
356
356
  break;
@@ -387,7 +387,7 @@ function List(options) {
387
387
  console.log(text);
388
388
  }
389
389
  }
390
- setTimeout(processExit, 1000, null);
390
+ processExit();
391
391
  }
392
392
  );
393
393
  break;
@@ -483,7 +483,7 @@ function List(options) {
483
483
  readOnlineState(lines, flags, result => {
484
484
  console.log(result.join('\n'));
485
485
  console.log('\n+ instance is alive');
486
- setTimeout(processExit, 1000, null);
486
+ processExit();
487
487
  });
488
488
  }
489
489
  );
@@ -543,7 +543,7 @@ function List(options) {
543
543
  console.log(text + ' ' + gs.join(', '));
544
544
  }
545
545
  }
546
- setTimeout(processExit, 1000, null);
546
+ processExit();
547
547
  }
548
548
  );
549
549
  });
@@ -685,7 +685,7 @@ function List(options) {
685
685
  '--------------------+---------+---------+-----------+-------+------------------------+---------'
686
686
  );
687
687
  console.log('Legend: (l)ist, (r)ead, (w)rite, (c)reate, (d)elete');
688
- setTimeout(processExit, 1000, null);
688
+ processExit();
689
689
  });
690
690
  break;
691
691
 
@@ -751,7 +751,7 @@ function List(options) {
751
751
  }
752
752
  }
753
753
 
754
- setTimeout(processExit, 1000, null);
754
+ processExit();
755
755
  });
756
756
  });
757
757
  });
@@ -791,7 +791,7 @@ function List(options) {
791
791
  }
792
792
  }
793
793
  }
794
- setTimeout(processExit, 1000, null);
794
+ processExit();
795
795
  });
796
796
  break;
797
797
 
@@ -818,23 +818,20 @@ function List(options) {
818
818
 
819
819
  names && names.shift();
820
820
 
821
- that.listAdaptersFiles(adapters, names ? names.join('/') : null, () =>
822
- setTimeout(processExit, 1000, null)
823
- );
821
+ that.listAdaptersFiles(adapters, names ? names.join('/') : null, () => processExit());
824
822
  });
825
823
  break;
826
824
 
827
825
  default:
828
826
  if (type) {
829
827
  console.error('Unknown type: ' + type);
830
- processExit(EXIT_CODES.INVALID_ARGUMENTS);
828
+ return void processExit(EXIT_CODES.INVALID_ARGUMENTS);
831
829
  } else {
832
830
  console.log(
833
831
  'Please specify type: objects, states, instances, adapters, users, groups, enums, files'
834
832
  );
835
- processExit();
833
+ return void processExit();
836
834
  }
837
- break;
838
835
  }
839
836
  });
840
837
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@iobroker/js-controller-cli",
3
- "version": "4.0.9",
3
+ "version": "4.0.12",
4
4
  "engines": {
5
5
  "node": ">=12.0.0"
6
6
  },
7
7
  "dependencies": {
8
- "@iobroker/js-controller-common": "4.0.9",
9
- "@iobroker/js-controller-common-db": "4.0.9",
8
+ "@iobroker/js-controller-common": "4.0.12",
9
+ "@iobroker/js-controller-common-db": "4.0.12",
10
10
  "chokidar": "^3.5.3",
11
11
  "daemonize2": "^0.4.2",
12
12
  "debug": "^4.3.3",
@@ -38,5 +38,5 @@
38
38
  "lib/",
39
39
  "index.js"
40
40
  ],
41
- "gitHead": "2dbcd130e6ea7bf4398e3dc8daa0f43a81f87eaa"
41
+ "gitHead": "8d84f8138adacae4b60d05dd0f34fde8c36546dc"
42
42
  }