@storm-software/config-tools 1.109.0 → 1.111.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/CHANGELOG.md +15 -1
- package/README.md +1 -2
- package/index.cjs +14 -21
- package/index.js +14 -21
- package/meta.cjs.json +4 -4
- package/meta.esm.json +4 -4
- package/package.json +1 -1
- package/utilities/logger.cjs +14 -21
- package/utilities/logger.js +14 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
|
+
## 1.111.0 (2024-11-08)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **build-tools:** Added back cjs build and local package.json dependencies ([d86d3c2a](https://github.com/storm-software/storm-ops/commit/d86d3c2a))
|
|
6
|
+
|
|
7
|
+
## 1.110.0 (2024-11-08)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **config:** Regenerate the Storm configuration schema
|
|
12
|
+
([baeb1c6f](https://github.com/storm-software/storm-ops/commit/baeb1c6f))
|
|
13
|
+
|
|
1
14
|
## 1.109.0 (2024-11-07)
|
|
2
15
|
|
|
3
16
|
### Features
|
|
4
17
|
|
|
5
|
-
- **config:** Add the `danger` color token
|
|
18
|
+
- **config:** Add the `danger` color token
|
|
19
|
+
([06dba937](https://github.com/storm-software/storm-ops/commit/06dba937))
|
|
6
20
|
|
|
7
21
|
## 1.108.0 (2024-11-01)
|
|
8
22
|
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm Configuration Tools](#storm-configuration-tools)
|
package/index.cjs
CHANGED
|
@@ -66471,10 +66471,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66471
66471
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
66472
66472
|
return (message) => {
|
|
66473
66473
|
console.error(
|
|
66474
|
-
|
|
66475
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66474
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66476
66475
|
" \u{1F480} Fatal "
|
|
66477
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66476
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
66478
66477
|
`
|
|
66479
66478
|
);
|
|
66480
66479
|
};
|
|
@@ -66482,10 +66481,9 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
66482
66481
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
66483
66482
|
return (message) => {
|
|
66484
66483
|
console.error(
|
|
66485
|
-
|
|
66486
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66484
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66487
66485
|
" \u2718 Error "
|
|
66488
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66486
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
66489
66487
|
`
|
|
66490
66488
|
);
|
|
66491
66489
|
};
|
|
@@ -66493,10 +66491,9 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
66493
66491
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
66494
66492
|
return (message) => {
|
|
66495
66493
|
console.warn(
|
|
66496
|
-
|
|
66497
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66494
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66498
66495
|
" \u26A0 Warn "
|
|
66499
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66496
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
66500
66497
|
`
|
|
66501
66498
|
);
|
|
66502
66499
|
};
|
|
@@ -66504,10 +66501,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66504
66501
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
66505
66502
|
return (message) => {
|
|
66506
66503
|
console.info(
|
|
66507
|
-
|
|
66508
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66504
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66509
66505
|
" \u2713 Success "
|
|
66510
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66506
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
66511
66507
|
`
|
|
66512
66508
|
);
|
|
66513
66509
|
};
|
|
@@ -66515,10 +66511,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66515
66511
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
66516
66512
|
return (message) => {
|
|
66517
66513
|
console.info(
|
|
66518
|
-
|
|
66519
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66514
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66520
66515
|
" \u2139 Info "
|
|
66521
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66516
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
66522
66517
|
`
|
|
66523
66518
|
);
|
|
66524
66519
|
};
|
|
@@ -66526,20 +66521,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
66526
66521
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
66527
66522
|
return (message) => {
|
|
66528
66523
|
console.debug(
|
|
66529
|
-
|
|
66530
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66524
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66531
66525
|
" \u{1F6E0} Debug "
|
|
66532
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66526
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
66533
66527
|
`
|
|
66534
66528
|
);
|
|
66535
66529
|
};
|
|
66536
66530
|
}
|
|
66537
66531
|
return (message) => {
|
|
66538
66532
|
console.log(
|
|
66539
|
-
|
|
66540
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66533
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66541
66534
|
" \u2709 System "
|
|
66542
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66535
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
66543
66536
|
`
|
|
66544
66537
|
);
|
|
66545
66538
|
};
|
package/index.js
CHANGED
|
@@ -66428,10 +66428,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
66428
66428
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
66429
66429
|
return (message) => {
|
|
66430
66430
|
console.error(
|
|
66431
|
-
|
|
66432
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66431
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
66433
66432
|
" \u{1F480} Fatal "
|
|
66434
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66433
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
66435
66434
|
`
|
|
66436
66435
|
);
|
|
66437
66436
|
};
|
|
@@ -66439,10 +66438,9 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
66439
66438
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
66440
66439
|
return (message) => {
|
|
66441
66440
|
console.error(
|
|
66442
|
-
|
|
66443
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66441
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
66444
66442
|
" \u2718 Error "
|
|
66445
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
66443
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
66446
66444
|
`
|
|
66447
66445
|
);
|
|
66448
66446
|
};
|
|
@@ -66450,10 +66448,9 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
66450
66448
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
66451
66449
|
return (message) => {
|
|
66452
66450
|
console.warn(
|
|
66453
|
-
|
|
66454
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66451
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
66455
66452
|
" \u26A0 Warn "
|
|
66456
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
66453
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
66457
66454
|
`
|
|
66458
66455
|
);
|
|
66459
66456
|
};
|
|
@@ -66461,10 +66458,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66461
66458
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
66462
66459
|
return (message) => {
|
|
66463
66460
|
console.info(
|
|
66464
|
-
|
|
66465
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66461
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
66466
66462
|
" \u2713 Success "
|
|
66467
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
66463
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
66468
66464
|
`
|
|
66469
66465
|
);
|
|
66470
66466
|
};
|
|
@@ -66472,10 +66468,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
66472
66468
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
66473
66469
|
return (message) => {
|
|
66474
66470
|
console.info(
|
|
66475
|
-
|
|
66476
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66471
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
66477
66472
|
" \u2139 Info "
|
|
66478
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
66473
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
66479
66474
|
`
|
|
66480
66475
|
);
|
|
66481
66476
|
};
|
|
@@ -66483,20 +66478,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
66483
66478
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
66484
66479
|
return (message) => {
|
|
66485
66480
|
console.debug(
|
|
66486
|
-
|
|
66487
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66481
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66488
66482
|
" \u{1F6E0} Debug "
|
|
66489
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66483
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
66490
66484
|
`
|
|
66491
66485
|
);
|
|
66492
66486
|
};
|
|
66493
66487
|
}
|
|
66494
66488
|
return (message) => {
|
|
66495
66489
|
console.log(
|
|
66496
|
-
|
|
66497
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66490
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
66498
66491
|
" \u2709 System "
|
|
66499
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
66492
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
66500
66493
|
`
|
|
66501
66494
|
);
|
|
66502
66495
|
};
|
package/meta.cjs.json
CHANGED
|
@@ -5187,7 +5187,7 @@
|
|
|
5187
5187
|
"bytesInOutput": 1125
|
|
5188
5188
|
},
|
|
5189
5189
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5190
|
-
"bytesInOutput":
|
|
5190
|
+
"bytesInOutput": 5822
|
|
5191
5191
|
},
|
|
5192
5192
|
"packages/config-tools/src/utilities/process-handler.ts": {
|
|
5193
5193
|
"bytesInOutput": 1268
|
|
@@ -5211,7 +5211,7 @@
|
|
|
5211
5211
|
"bytesInOutput": 0
|
|
5212
5212
|
}
|
|
5213
5213
|
},
|
|
5214
|
-
"bytes":
|
|
5214
|
+
"bytes": 4132457
|
|
5215
5215
|
},
|
|
5216
5216
|
"dist/packages/config-tools/utilities/find-workspace-root.cjs": {
|
|
5217
5217
|
"imports": [
|
|
@@ -5340,7 +5340,7 @@
|
|
|
5340
5340
|
"bytesInOutput": 5939
|
|
5341
5341
|
},
|
|
5342
5342
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5343
|
-
"bytesInOutput":
|
|
5343
|
+
"bytesInOutput": 6284
|
|
5344
5344
|
},
|
|
5345
5345
|
"packages/config-tools/src/types.ts": {
|
|
5346
5346
|
"bytesInOutput": 297
|
|
@@ -5367,7 +5367,7 @@
|
|
|
5367
5367
|
"bytesInOutput": 468
|
|
5368
5368
|
}
|
|
5369
5369
|
},
|
|
5370
|
-
"bytes":
|
|
5370
|
+
"bytes": 186101
|
|
5371
5371
|
}
|
|
5372
5372
|
}
|
|
5373
5373
|
}
|
package/meta.esm.json
CHANGED
|
@@ -5227,7 +5227,7 @@
|
|
|
5227
5227
|
"bytesInOutput": 1125
|
|
5228
5228
|
},
|
|
5229
5229
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5230
|
-
"bytesInOutput":
|
|
5230
|
+
"bytesInOutput": 5822
|
|
5231
5231
|
},
|
|
5232
5232
|
"packages/config-tools/src/utilities/process-handler.ts": {
|
|
5233
5233
|
"bytesInOutput": 1268
|
|
@@ -5254,7 +5254,7 @@
|
|
|
5254
5254
|
"bytesInOutput": 0
|
|
5255
5255
|
}
|
|
5256
5256
|
},
|
|
5257
|
-
"bytes":
|
|
5257
|
+
"bytes": 4127071
|
|
5258
5258
|
},
|
|
5259
5259
|
"dist/packages/config-tools/utilities/find-workspace-root.js": {
|
|
5260
5260
|
"imports": [
|
|
@@ -5424,10 +5424,10 @@
|
|
|
5424
5424
|
"bytesInOutput": 468
|
|
5425
5425
|
},
|
|
5426
5426
|
"packages/config-tools/src/utilities/logger.ts": {
|
|
5427
|
-
"bytesInOutput":
|
|
5427
|
+
"bytesInOutput": 5810
|
|
5428
5428
|
}
|
|
5429
5429
|
},
|
|
5430
|
-
"bytes":
|
|
5430
|
+
"bytes": 185618
|
|
5431
5431
|
}
|
|
5432
5432
|
}
|
|
5433
5433
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.111.0",
|
|
4
4
|
"description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
package/utilities/logger.cjs
CHANGED
|
@@ -5771,10 +5771,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5771
5771
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
5772
5772
|
return (message) => {
|
|
5773
5773
|
console.error(
|
|
5774
|
-
|
|
5775
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5774
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5776
5775
|
" \u{1F480} Fatal "
|
|
5777
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5776
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
5778
5777
|
`
|
|
5779
5778
|
);
|
|
5780
5779
|
};
|
|
@@ -5782,10 +5781,9 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
5782
5781
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
5783
5782
|
return (message) => {
|
|
5784
5783
|
console.error(
|
|
5785
|
-
|
|
5786
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5784
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5787
5785
|
" \u2718 Error "
|
|
5788
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5786
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
5789
5787
|
`
|
|
5790
5788
|
);
|
|
5791
5789
|
};
|
|
@@ -5793,10 +5791,9 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
5793
5791
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
5794
5792
|
return (message) => {
|
|
5795
5793
|
console.warn(
|
|
5796
|
-
|
|
5797
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
5794
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
5798
5795
|
" \u26A0 Warn "
|
|
5799
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
5796
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
5800
5797
|
`
|
|
5801
5798
|
);
|
|
5802
5799
|
};
|
|
@@ -5804,10 +5801,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
5804
5801
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
5805
5802
|
return (message) => {
|
|
5806
5803
|
console.info(
|
|
5807
|
-
|
|
5808
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
5804
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
5809
5805
|
" \u2713 Success "
|
|
5810
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
5806
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
5811
5807
|
`
|
|
5812
5808
|
);
|
|
5813
5809
|
};
|
|
@@ -5815,10 +5811,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
5815
5811
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
5816
5812
|
return (message) => {
|
|
5817
5813
|
console.info(
|
|
5818
|
-
|
|
5819
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
5814
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
5820
5815
|
" \u2139 Info "
|
|
5821
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
5816
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
5822
5817
|
`
|
|
5823
5818
|
);
|
|
5824
5819
|
};
|
|
@@ -5826,20 +5821,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
5826
5821
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
5827
5822
|
return (message) => {
|
|
5828
5823
|
console.debug(
|
|
5829
|
-
|
|
5830
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
5824
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
5831
5825
|
" \u{1F6E0} Debug "
|
|
5832
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
5826
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
5833
5827
|
`
|
|
5834
5828
|
);
|
|
5835
5829
|
};
|
|
5836
5830
|
}
|
|
5837
5831
|
return (message) => {
|
|
5838
5832
|
console.log(
|
|
5839
|
-
|
|
5840
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
5833
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
5841
5834
|
" \u2709 System "
|
|
5842
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
5835
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
5843
5836
|
`
|
|
5844
5837
|
);
|
|
5845
5838
|
};
|
package/utilities/logger.js
CHANGED
|
@@ -5755,10 +5755,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
5755
5755
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
5756
5756
|
return (message) => {
|
|
5757
5757
|
console.error(
|
|
5758
|
-
|
|
5759
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5758
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
5760
5759
|
" \u{1F480} Fatal "
|
|
5761
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5760
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
5762
5761
|
`
|
|
5763
5762
|
);
|
|
5764
5763
|
};
|
|
@@ -5766,10 +5765,9 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
5766
5765
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
5767
5766
|
return (message) => {
|
|
5768
5767
|
console.error(
|
|
5769
|
-
|
|
5770
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5768
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
5771
5769
|
" \u2718 Error "
|
|
5772
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
5770
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
5773
5771
|
`
|
|
5774
5772
|
);
|
|
5775
5773
|
};
|
|
@@ -5777,10 +5775,9 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
5777
5775
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
5778
5776
|
return (message) => {
|
|
5779
5777
|
console.warn(
|
|
5780
|
-
|
|
5781
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
5778
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
5782
5779
|
" \u26A0 Warn "
|
|
5783
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
5780
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
5784
5781
|
`
|
|
5785
5782
|
);
|
|
5786
5783
|
};
|
|
@@ -5788,10 +5785,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
5788
5785
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
5789
5786
|
return (message) => {
|
|
5790
5787
|
console.info(
|
|
5791
|
-
|
|
5792
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
5788
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
5793
5789
|
" \u2713 Success "
|
|
5794
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
5790
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
5795
5791
|
`
|
|
5796
5792
|
);
|
|
5797
5793
|
};
|
|
@@ -5799,10 +5795,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
5799
5795
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
5800
5796
|
return (message) => {
|
|
5801
5797
|
console.info(
|
|
5802
|
-
|
|
5803
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
5798
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
5804
5799
|
" \u2139 Info "
|
|
5805
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
5800
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
5806
5801
|
`
|
|
5807
5802
|
);
|
|
5808
5803
|
};
|
|
@@ -5810,20 +5805,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
5810
5805
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
5811
5806
|
return (message) => {
|
|
5812
5807
|
console.debug(
|
|
5813
|
-
|
|
5814
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
5808
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
5815
5809
|
" \u{1F6E0} Debug "
|
|
5816
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
5810
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
5817
5811
|
`
|
|
5818
5812
|
);
|
|
5819
5813
|
};
|
|
5820
5814
|
}
|
|
5821
5815
|
return (message) => {
|
|
5822
5816
|
console.log(
|
|
5823
|
-
|
|
5824
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
5817
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
5825
5818
|
" \u2709 System "
|
|
5826
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
5819
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
5827
5820
|
`
|
|
5828
5821
|
);
|
|
5829
5822
|
};
|