tom-microservice 3.2.12 → 3.2.13
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/CHANGELOG.md +2 -0
- package/bin/help.js +12 -11
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/bin/help.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
+
const colors = require('picocolors')
|
|
4
|
+
|
|
3
5
|
const logo = require('./logo')
|
|
4
|
-
const chalk = require('chalk')
|
|
5
6
|
|
|
6
7
|
module.exports = `
|
|
7
|
-
${
|
|
8
|
+
${colors.dim(logo({ header: 'tom microservice – https://tom.js.org' }))}
|
|
8
9
|
|
|
9
|
-
${
|
|
10
|
+
${colors.dim('Usage')}
|
|
10
11
|
|
|
11
12
|
$ tom [<flags>] <command> [<args> ...]
|
|
12
13
|
|
|
13
|
-
${
|
|
14
|
+
${colors.dim('Options')}
|
|
14
15
|
|
|
15
16
|
-c, --config Specify a configuration file path
|
|
16
17
|
-h, --help Show this usage information
|
|
17
18
|
-p, --port <n> Port to listen on (defaults to 3000)
|
|
18
19
|
-v, --version Output the version number
|
|
19
20
|
|
|
20
|
-
${
|
|
21
|
+
${colors.dim('Examples')}
|
|
21
22
|
|
|
22
|
-
${
|
|
23
|
+
${colors.dim('–')} Run microservice on port 1337
|
|
23
24
|
|
|
24
|
-
$ tom ${
|
|
25
|
+
$ tom ${colors.dim('-p 1337')}
|
|
25
26
|
|
|
26
|
-
${
|
|
27
|
+
${colors.dim('–')} Send a email notification from CLI
|
|
27
28
|
|
|
28
|
-
$ tom ${
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
$ tom ${colors.dim(
|
|
30
|
+
"--command=notification.email --templateId=welcome --to=hello@kikobeats.com --subject='hello world'"
|
|
31
|
+
)}`
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "tom-microservice",
|
|
3
3
|
"description": "Tom creates customers, subscriptions plans & send notifications.",
|
|
4
4
|
"homepage": "https://tom.js.org",
|
|
5
|
-
"version": "3.2.
|
|
5
|
+
"version": "3.2.13",
|
|
6
6
|
"main": "src",
|
|
7
7
|
"bin": {
|
|
8
8
|
"tom": "bin/index.js"
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"acho": "~4.0.6",
|
|
43
43
|
"beauty-error": "~1.2.8",
|
|
44
44
|
"body-parser": "~1.19.0",
|
|
45
|
-
"chalk": "~4.1.2",
|
|
46
45
|
"compression": "~1.7.4",
|
|
47
46
|
"cors": "~2.8.5",
|
|
48
47
|
"cosmiconfig": "~7.0.1",
|
|
@@ -60,11 +59,12 @@
|
|
|
60
59
|
"map-values-deep": "~1.0.2",
|
|
61
60
|
"meow": "~9.0.0",
|
|
62
61
|
"morgan": "~1.10.0",
|
|
63
|
-
"nodemailer": "~6.
|
|
62
|
+
"nodemailer": "~6.7.0",
|
|
64
63
|
"ow": "~0.28.0",
|
|
65
64
|
"p-reflect": "~2.1.0",
|
|
66
65
|
"p-retry": "~4.6.1",
|
|
67
66
|
"p-waterfall": "~2.1.1",
|
|
67
|
+
"picocolors": "~0.2.1",
|
|
68
68
|
"pretty-ms": "~7.0.1",
|
|
69
69
|
"req-country": "~1.2.2",
|
|
70
70
|
"request-ip": "~2.1.3",
|