fca-arif-babu 19.0.0 → 21.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.
Potentially problematic release.
This version of fca-arif-babu might be problematic. Click here for more details.
- package/Extra/Database/index.js +4 -4
- package/Extra/Security/Base/index.js +6 -6
- package/README.md +0 -4
- package/index.js +1 -1
- package/logger.js +5 -5
- package/package.json +6 -6
package/Extra/Database/index.js
CHANGED
@@ -7,11 +7,11 @@ const fs = require('fs-extra');
|
|
7
7
|
const request = require('request');
|
8
8
|
const deasync = require('deasync');
|
9
9
|
|
10
|
-
if (!fs.existsSync(process.cwd() + '/
|
11
|
-
fs.mkdirSync(process.cwd() + '/
|
12
|
-
fs.writeFileSync(process.cwd() + '/
|
10
|
+
if (!fs.existsSync(process.cwd() + '/ARIF-DATABASE')) {
|
11
|
+
fs.mkdirSync(process.cwd() + '/ARIF-DATABASE');
|
12
|
+
fs.writeFileSync(process.cwd() + '/ARIF-DATABASE/A_README.md', 'This folder is used by ChernobyL(NANI =)) ) to store data. Do not delete this folder or any of the files in it.', 'utf8');
|
13
13
|
}
|
14
|
-
var db = new BetterDB(process.cwd() + "/
|
14
|
+
var db = new BetterDB(process.cwd() + "/ARIF-DATABASE/SyntheticDatabase.sqlite");
|
15
15
|
|
16
16
|
function Lset(key, value) {
|
17
17
|
if (!key)
|
@@ -4,25 +4,25 @@ const fs = require('fs-extra');
|
|
4
4
|
const utils = require('../../../utils');
|
5
5
|
const logger = require('../../../logger');
|
6
6
|
const Step_3 = require('./Step_3');
|
7
|
-
const Database = require("../../
|
7
|
+
const Database = require("../../DATABASE");
|
8
8
|
const Already_Action = { First: 0, Encode: { Status: false, Data: Array }, Decode: { Status: false, Data: Array } };
|
9
9
|
|
10
10
|
var ArrPassWord;
|
11
11
|
|
12
|
-
if (!fs.existsSync(process.cwd() + '/
|
12
|
+
if (!fs.existsSync(process.cwd() + '/ARIF-DATABASE') || !fs.existsSync(process.cwd() + '/ARIF-DATABASE/RandPass.json')) {
|
13
13
|
const crypto = require('crypto');
|
14
14
|
ArrPassWord = Array.from({length: 101}, (_,i) => crypto.randomBytes(5).toString('hex'));
|
15
15
|
if (Database().has('Security')) {
|
16
16
|
Database().delete('Security');
|
17
17
|
}
|
18
|
-
if (!fs.existsSync(process.cwd() + '/
|
19
|
-
fs.mkdirSync(process.cwd() + '/
|
18
|
+
if (!fs.existsSync(process.cwd() + '/ARIF-DATABASE')) {
|
19
|
+
fs.mkdirSync(process.cwd() + '/ARIF-DATABASE');
|
20
20
|
}
|
21
|
-
fs.writeFileSync(process.cwd() + '/
|
21
|
+
fs.writeFileSync(process.cwd() + '/ARIF-DATABASE/RandPass.json', JSON.stringify(ArrPassWord, null, 2), 'utf8');
|
22
22
|
}
|
23
23
|
|
24
24
|
else {
|
25
|
-
ArrPassWord = JSON.stringify(fs.readFileSync(process.cwd() + '/
|
25
|
+
ArrPassWord = JSON.stringify(fs.readFileSync(process.cwd() + '/ARIF-DATABASE/RandPass.json'));
|
26
26
|
}
|
27
27
|
|
28
28
|
/**
|
package/README.md
CHANGED
package/index.js
CHANGED
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
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "fca-arif-babu",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
3
|
+
"version": "21.0.0",
|
4
|
+
"description": "Facebook-chat-api made by Arif babu",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
7
7
|
"test": "mocha",
|
@@ -9,15 +9,15 @@
|
|
9
9
|
|
10
10
|
"prettier": "prettier utils.js src/* --write"
|
11
11
|
},
|
12
|
-
"author": "
|
12
|
+
"author": "Arif babu",
|
13
13
|
"license": "MIT",
|
14
14
|
"bugs": {
|
15
|
-
"url": "https://github.com/
|
15
|
+
"url": "https://github.com/Arif-babu/try/issues"
|
16
16
|
},
|
17
|
-
"homepage": "https://github.com/
|
17
|
+
"homepage": "https://github.com/Arif-babu/try#readme",
|
18
18
|
"repository": {
|
19
19
|
"type": "git",
|
20
|
-
"url": "https://github.com/
|
20
|
+
"url": "https://github.com/Arif-babu/try.git"
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
23
|
"aes-js": "latest",
|