whistle 2.9.74 → 2.9.76-beta

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.
package/bin/status.js CHANGED
@@ -1,5 +1,3 @@
1
- var Q = require('q');
2
-
3
1
  var util = require('./util');
4
2
  var pkg = require('../package.json');
5
3
  var colors = require('colors/safe');
@@ -12,13 +10,13 @@ var info = util.info;
12
10
 
13
11
  function showAll(byStop) {
14
12
  var list = readConfigList().map(function(config) {
15
- var deferred = Q.defer();
16
- isRunning(config.pid, function(running) {
17
- deferred.resolve(running && config);
13
+ return new Promise(function(resolve) {
14
+ isRunning(config.pid, function(running) {
15
+ resolve(running && config);
16
+ });
18
17
  });
19
- return deferred.promise;
20
18
  });
21
- Q.all(list).then(function(confList) {
19
+ Promise.all(list).then(function(confList) {
22
20
  confList = confList.filter(function(conf) {
23
21
  return conf;
24
22
  });
@@ -8,6 +8,6 @@
8
8
  </head>
9
9
  <body style="overscroll-behavior-x: none;">
10
10
  <div id="container" class="main"></div>
11
- <script src="js/index.js?v=2.9.74"></script>
11
+ <script src="js/index.js?v=2.9.75"></script>
12
12
  </body>
13
13
  </html>