node-power-user 0.0.27 → 0.0.28
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/dist/index.js +7 -1
- package/package.json +2 -1
- package/src/index.js +7 -1
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ const path = require('path');
|
|
|
12
12
|
const { spawn, exec } = require('child_process');
|
|
13
13
|
const argv = require('yargs').argv;
|
|
14
14
|
const JSON5 = require('json5');
|
|
15
|
+
const powertools = require('node-powertools');
|
|
15
16
|
const { isEqual } = require('lodash');
|
|
16
17
|
const semverIsEqual = require('semver/functions/eq')
|
|
17
18
|
const semverCoerce = require('semver/functions/coerce')
|
|
@@ -295,7 +296,12 @@ const self = this;
|
|
|
295
296
|
return bump(self);
|
|
296
297
|
}
|
|
297
298
|
|
|
298
|
-
|
|
299
|
+
if (self.options['wait'] || self.options['--wait']) {
|
|
300
|
+
const time = parseInt(self.options['wait'] || self.options['--wait'] || 1000);
|
|
301
|
+
self.log(chalk.blue(`Waiting ${time}...`));
|
|
302
|
+
await powertools.wait(time);
|
|
303
|
+
self.log(chalk.green(`Done waiting`));
|
|
304
|
+
}
|
|
299
305
|
};
|
|
300
306
|
|
|
301
307
|
Main.prototype.log = function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-power-user",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"description": "Easy tools for every Node.js developer!",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"json5": "^2.2.1",
|
|
36
36
|
"keychain": "^1.3.0",
|
|
37
37
|
"lodash": "^4.17.21",
|
|
38
|
+
"node-powertools": "^0.0.21",
|
|
38
39
|
"npm-api": "^1.0.1",
|
|
39
40
|
"semver": "^7.3.7",
|
|
40
41
|
"table": "^6.8.0",
|
package/src/index.js
CHANGED
|
@@ -12,6 +12,7 @@ const path = require('path');
|
|
|
12
12
|
const { spawn, exec } = require('child_process');
|
|
13
13
|
const argv = require('yargs').argv;
|
|
14
14
|
const JSON5 = require('json5');
|
|
15
|
+
const powertools = require('node-powertools');
|
|
15
16
|
const { isEqual } = require('lodash');
|
|
16
17
|
const semverIsEqual = require('semver/functions/eq')
|
|
17
18
|
const semverCoerce = require('semver/functions/coerce')
|
|
@@ -295,7 +296,12 @@ const self = this;
|
|
|
295
296
|
return bump(self);
|
|
296
297
|
}
|
|
297
298
|
|
|
298
|
-
|
|
299
|
+
if (self.options['wait'] || self.options['--wait']) {
|
|
300
|
+
const time = parseInt(self.options['wait'] || self.options['--wait'] || 1000);
|
|
301
|
+
self.log(chalk.blue(`Waiting ${time}...`));
|
|
302
|
+
await powertools.wait(time);
|
|
303
|
+
self.log(chalk.green(`Done waiting`));
|
|
304
|
+
}
|
|
299
305
|
};
|
|
300
306
|
|
|
301
307
|
Main.prototype.log = function () {
|