create-platformatic 2.42.0 → 2.43.0
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/package.json +8 -8
- package/src/say.mjs +11 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-platformatic",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.43.0",
|
|
4
4
|
"description": "Create platformatic application interactive tool",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"strip-ansi": "^7.1.0",
|
|
34
34
|
"undici": "^7.0.0",
|
|
35
35
|
"which": "^3.0.1",
|
|
36
|
-
"@platformatic/config": "2.
|
|
37
|
-
"@platformatic/generators": "2.
|
|
38
|
-
"@platformatic/utils": "2.
|
|
36
|
+
"@platformatic/config": "2.43.0",
|
|
37
|
+
"@platformatic/generators": "2.43.0",
|
|
38
|
+
"@platformatic/utils": "2.43.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^22.5.0",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"neostandard": "^0.12.0",
|
|
51
51
|
"typescript": "~5.7.0",
|
|
52
52
|
"yaml": "^2.4.1",
|
|
53
|
-
"@platformatic/composer": "2.
|
|
54
|
-
"@platformatic/db": "2.
|
|
55
|
-
"@platformatic/runtime": "2.
|
|
56
|
-
"@platformatic/service": "2.
|
|
53
|
+
"@platformatic/composer": "2.43.0",
|
|
54
|
+
"@platformatic/db": "2.43.0",
|
|
55
|
+
"@platformatic/runtime": "2.43.0",
|
|
56
|
+
"@platformatic/service": "2.43.0"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"test:cli": "borp --pattern \"test/cli/*test.mjs\" --timeout=300000 --concurrency=1",
|
package/src/say.mjs
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import logUpdate from 'log-update'
|
|
2
2
|
import { pltGreen } from './colors.mjs'
|
|
3
|
-
import {
|
|
3
|
+
import { randomBetween, sleep } from './utils.mjs'
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export async function say (messages) {
|
|
6
6
|
const _messages = Array.isArray(messages) ? messages : [messages]
|
|
7
7
|
|
|
8
|
+
if (process.env.NO_COLOR) {
|
|
9
|
+
for (const message of _messages) {
|
|
10
|
+
console.log(message)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
logUpdate.done()
|
|
14
|
+
return
|
|
15
|
+
}
|
|
16
|
+
|
|
8
17
|
for (const message of _messages) {
|
|
9
18
|
const _message = Array.isArray(message) ? message : message.split(' ')
|
|
10
19
|
const msg = []
|