fca-arif-babu 8.0.0 → 11.0.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/logger.js +5 -5
- package/package.json +1 -1
package/logger.js
CHANGED
@@ -17,10 +17,10 @@ function getType(obj) {
|
|
17
17
|
|
18
18
|
module.exports = {
|
19
19
|
Normal: function(/** @type {string} */ Str, /** @type {() => any} */ Data ,/** @type {() => void} */ Callback) {
|
20
|
-
if (isHexcolor(global.Fca.Require.
|
21
|
-
this.Warning(getText(global.Fca.Require.Language.Index.InvaildMainColor,global.Fca.Require.
|
20
|
+
if (isHexcolor(global.Fca.Require.Arif.MainColor) != true) {
|
21
|
+
this.Warning(getText(global.Fca.Require.Language.Index.InvaildMainColor,global.Fca.Require.Arif.MainColor),process.exit(0));
|
22
22
|
}
|
23
|
-
else console.log(chalk.hex(global.Fca.Require.
|
23
|
+
else console.log(chalk.hex(global.Fca.Require.Arif.MainColor).bold(`${global.Fca.Require.Arif.MainName || '[ FCA-HZI ]'} > `) + Str);
|
24
24
|
if (getType(Data) == 'Function' || getType(Data) == 'AsyncFunction') {
|
25
25
|
return Data();
|
26
26
|
}
|
@@ -50,14 +50,14 @@ module.exports = {
|
|
50
50
|
else return callback;
|
51
51
|
},
|
52
52
|
Success: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
|
53
|
-
console.log(chalk.hex('#9900FF').bold(`${global.Fca.Require.
|
53
|
+
console.log(chalk.hex('#9900FF').bold(`${global.Fca.Require.Arif.MainName || '[ FCA-HZI ]'} > `) + chalk.green(str));
|
54
54
|
if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
|
55
55
|
callback();
|
56
56
|
}
|
57
57
|
else return callback;
|
58
58
|
},
|
59
59
|
Info: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
|
60
|
-
console.log(chalk.hex('#9900FF').bold(`${global.Fca.Require.
|
60
|
+
console.log(chalk.hex('#9900FF').bold(`${global.Fca.Require.Arif.MainName || '[ FCA-HZI ]'} > `) + chalk.blue(str));
|
61
61
|
if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
|
62
62
|
callback();
|
63
63
|
}
|