fca-rebel-remake 1.5.2 → 2.6.3
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/.cache/replit/__replit_disk_meta.json +1 -1
- package/.cache/replit/modules/nodejs-18:v11-20230920-bd784b9.res +1 -0
- package/.cache/replit/modules.stamp +0 -0
- package/.cache/replit/nix/env.json +1 -0
- package/.replit +2 -75
- package/.upm/store.json +1 -1
- package/Extra/src/Check_Update.js +7 -7
- package/Extra/src/Instant_Update.js +33 -5
- package/package.json +3 -3
- package/.config/configstore/update-notifier-npm.json +0 -4
- package/.config/configstore/update-notifier-npm.json.1735545094 +0 -4
- package/replit.nix +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"nonce":
|
|
1
|
+
{"nonce":1795298322579724078,"last_updated":{"seconds":1697836435,"nanos":913824000}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"resolve","resolvedModuleId":"nodejs-18:v11-20230920-bd784b9","inputHash":"","resolutionPath":["nodejs-18:v3-20230608-f4cd419","nodejs-18:v4-20230623-0b7a606","nodejs-18:v5-20230706-ccb32c4","nodejs-18:v6-20230711-6807d41","nodejs-18:v7-20230905-8d7bacf","nodejs-18:v8-20230907-87be05d","nodejs-18:v9-20230908-bb1b9fd","nodejs-18:v10-20230914-1095880","nodejs-18:v11-20230920-bd784b9"],"error":"","Changed":true}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"entries":{"replit.nix":{"env":{"AR":"ar","AS":"as","CC":"gcc","CONFIG_SHELL":"/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin/bash","CXX":"g++","HOST_PATH":"/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/bin:/nix/store/w8q2bwi6rdhsa1dz9i8mqznddk5l7p26-typescript-language-server-3.3.2/bin:/nix/store/zdcnqq55qi214j46zgw2qa1jp4dpdf2m-yarn-1.22.19/bin:/nix/store/n1wjpwirjdkvkqyfjjg8qafgdhpr5w2m-jest-cli-23.6.0/bin:/nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1/bin:/nix/store/mydc6f4k2z73xlcz7ilif3v2lcaiqvza-findutils-4.9.0/bin:/nix/store/j9p3g8472iijd50vhdprx0nmk2fqn5gv-diffutils-3.8/bin:/nix/store/89zs7rms6x00xfq4dq6m7mjnhkr8a6r4-gnused-4.8/bin:/nix/store/86bp03jkmsl6f92w0yzg4s59g5mhxwmy-gnugrep-3.7/bin:/nix/store/hwcdqw4jrjnd37wxqgsd47hd0j8bnj09-gawk-5.1.1/bin:/nix/store/cfbhw8r8ags41vwqaz47r583d0p4h4a1-gnutar-1.34/bin:/nix/store/p3m1ndl1lapwrlh698bnb5lvvxh67378-gzip-1.12/bin:/nix/store/a8mhcagrsly7c7mpjrpsnaahk4aax056-bzip2-1.0.8-bin/bin:/nix/store/mblgz65m3zv9x548a3d5m96fj2pbwr09-gnumake-4.3/bin:/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin:/nix/store/v7ljksji50mg3w61dykaa3n3y79n6nil-patch-2.7.6/bin:/nix/store/zlcnmqq14jz5x9439jf937mvayyl63da-xz-5.2.7-bin/bin:/nix/store/y6aj732zm9m87c82fpvf103a1xb22blp-file-5.43/bin","LD":"ld","LOCALE_ARCHIVE":"/usr/lib/locale/locale-archive","NIX_BINTOOLS":"/nix/store/1d6ian3r8kdzspw8hacjhl3xkp40g1lj-binutils-wrapper-2.39","NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu":"1","NIX_BUILD_CORES":"16","NIX_BUILD_TOP":"/tmp","NIX_CC":"/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0","NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu":"1","NIX_CFLAGS_COMPILE":" -frandom-seed=w7rihbbvnp -isystem /nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/include -isystem /nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/include","NIX_ENFORCE_NO_NATIVE":"1","NIX_HARDENING_ENABLE":"fortify stackprotector pic strictoverflow format relro bindnow","NIX_INDENT_MAKE":"1","NIX_LDFLAGS":"-rpath /nix/store/w7rihbbvnp89y3vqbkwy2z30wi3mwzhi-nix-shell/lib64 -rpath /nix/store/w7rihbbvnp89y3vqbkwy2z30wi3mwzhi-nix-shell/lib ","NIX_STORE":"/nix/store","NM":"nm","NODE_PATH":"/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/lib/node_modules:/nix/store/w8q2bwi6rdhsa1dz9i8mqznddk5l7p26-typescript-language-server-3.3.2/lib/node_modules:/nix/store/n1wjpwirjdkvkqyfjjg8qafgdhpr5w2m-jest-cli-23.6.0/lib/node_modules","OBJCOPY":"objcopy","OBJDUMP":"objdump","PATH":"/nix/store/bap4d0lpcrhpwmpb8ayjcgkmvfj62lnq-bash-interactive-5.1-p16/bin:/nix/store/pr5n59mb4jzmfx6kanwxly0l07p861fg-patchelf-0.15.0/bin:/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin:/nix/store/1gf2flfqnpqbr1b4p4qz2f72y42bs56r-gcc-11.3.0/bin:/nix/store/57xv61c5zi8pphjbcwxxjlgc34p61ic9-glibc-2.35-163-bin/bin:/nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1/bin:/nix/store/1d6ian3r8kdzspw8hacjhl3xkp40g1lj-binutils-wrapper-2.39/bin:/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin:/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/bin:/nix/store/w8q2bwi6rdhsa1dz9i8mqznddk5l7p26-typescript-language-server-3.3.2/bin:/nix/store/zdcnqq55qi214j46zgw2qa1jp4dpdf2m-yarn-1.22.19/bin:/nix/store/n1wjpwirjdkvkqyfjjg8qafgdhpr5w2m-jest-cli-23.6.0/bin:/nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1/bin:/nix/store/mydc6f4k2z73xlcz7ilif3v2lcaiqvza-findutils-4.9.0/bin:/nix/store/j9p3g8472iijd50vhdprx0nmk2fqn5gv-diffutils-3.8/bin:/nix/store/89zs7rms6x00xfq4dq6m7mjnhkr8a6r4-gnused-4.8/bin:/nix/store/86bp03jkmsl6f92w0yzg4s59g5mhxwmy-gnugrep-3.7/bin:/nix/store/hwcdqw4jrjnd37wxqgsd47hd0j8bnj09-gawk-5.1.1/bin:/nix/store/cfbhw8r8ags41vwqaz47r583d0p4h4a1-gnutar-1.34/bin:/nix/store/p3m1ndl1lapwrlh698bnb5lvvxh67378-gzip-1.12/bin:/nix/store/a8mhcagrsly7c7mpjrpsnaahk4aax056-bzip2-1.0.8-bin/bin:/nix/store/mblgz65m3zv9x548a3d5m96fj2pbwr09-gnumake-4.3/bin:/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin:/nix/store/v7ljksji50mg3w61dykaa3n3y79n6nil-patch-2.7.6/bin:/nix/store/zlcnmqq14jz5x9439jf937mvayyl63da-xz-5.2.7-bin/bin:/nix/store/y6aj732zm9m87c82fpvf103a1xb22blp-file-5.43/bin","RANLIB":"ranlib","READELF":"readelf","SIZE":"size","SOURCE_DATE_EPOCH":"315532800","STRINGS":"strings","STRIP":"strip","XDG_DATA_DIRS":"/nix/store/pr5n59mb4jzmfx6kanwxly0l07p861fg-patchelf-0.15.0/share","_":"/nix/store/a7gvj343m05j2s32xcnwr35v31ynlypr-coreutils-9.1/bin/env","__ETC_PROFILE_SOURCED":"1","buildInputs":"/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1 /nix/store/w8q2bwi6rdhsa1dz9i8mqznddk5l7p26-typescript-language-server-3.3.2 /nix/store/zdcnqq55qi214j46zgw2qa1jp4dpdf2m-yarn-1.22.19 /nix/store/n1wjpwirjdkvkqyfjjg8qafgdhpr5w2m-jest-cli-23.6.0","buildPhase":"echo \"------------------------------------------------------------\" \u003e\u003e$out\necho \" WARNING: the existence of this path is not guaranteed.\" \u003e\u003e$out\necho \" It is an internal implementation detail for pkgs.mkShell.\" \u003e\u003e$out\necho \"------------------------------------------------------------\" \u003e\u003e$out\necho \u003e\u003e $out\n# Record all build inputs as runtime dependencies\nexport \u003e\u003e $out\n","builder":"/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin/bash","cmakeFlags":"","configureFlags":"","depsBuildBuild":"","depsBuildBuildPropagated":"","depsBuildTarget":"","depsBuildTargetPropagated":"","depsHostHost":"","depsHostHostPropagated":"","depsTargetTarget":"","depsTargetTargetPropagated":"","doCheck":"","doInstallCheck":"","mesonFlags":"","name":"nix-shell","nativeBuildInputs":"","out":"/nix/store/w7rihbbvnp89y3vqbkwy2z30wi3mwzhi-nix-shell","outputs":"out","patches":"","phases":"buildPhase","propagatedBuildInputs":"","propagatedNativeBuildInputs":"","shell":"/nix/store/dsd5gz46hdbdk2rfdimqddhq6m8m8fqs-bash-5.1-p16/bin/bash","shellHook":"","stdenv":"/nix/store/kmfaajdpyyyg319vfqni5jm9wkxjmf73-stdenv-linux","strictDeps":"","system":"x86_64-linux"},"dependencies":[{"path":"replit.nix","mod_time":"2023-09-14T19:12:19.450788746Z"}],"channel":"stable-22_11","channel_nix_path":"/nix/store/g2zwsf4i26pngib77ask4m00n9pj2a03-nixpkgs-stable-22_11-22.11.tar.gz/nixpkgs-stable-22_11","production":null}}}
|
package/.replit
CHANGED
|
@@ -1,82 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
modules = ["nodejs-18:v3-20230608-f4cd419"]
|
|
2
2
|
hidden = [".config", "package-lock.json"]
|
|
3
3
|
run = "npm run start"
|
|
4
4
|
|
|
5
|
-
[[hints]]
|
|
6
|
-
regex = "Error \\[ERR_REQUIRE_ESM\\]"
|
|
7
|
-
message = "We see that you are using require(...) inside your code. We currently do not support this syntax. Please use 'import' instead when using external modules. (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import)"
|
|
8
|
-
|
|
9
5
|
[nix]
|
|
10
|
-
channel = "stable-
|
|
11
|
-
|
|
12
|
-
[env]
|
|
13
|
-
XDG_CONFIG_HOME = "$REPL_HOME/.config"
|
|
14
|
-
PATH = "$REPL_HOME/.config/npm/node_global/bin:$REPL_HOME/node_modules/.bin"
|
|
15
|
-
npm_config_prefix = "$REPL_HOME/.config/npm/node_global"
|
|
16
|
-
|
|
17
|
-
[gitHubImport]
|
|
18
|
-
requiredFiles = [".replit", "replit.nix", ".config", "package.json", "package-lock.json"]
|
|
19
|
-
|
|
20
|
-
[packager]
|
|
21
|
-
language = "nodejs"
|
|
22
|
-
|
|
23
|
-
[packager.features]
|
|
24
|
-
packageSearch = true
|
|
25
|
-
guessImports = true
|
|
26
|
-
enabledForHosting = false
|
|
27
|
-
|
|
28
|
-
[unitTest]
|
|
29
|
-
language = "nodejs"
|
|
30
|
-
|
|
31
|
-
[debugger]
|
|
32
|
-
support = true
|
|
33
|
-
|
|
34
|
-
[debugger.interactive]
|
|
35
|
-
transport = "localhost:0"
|
|
36
|
-
startCommand = [ "dap-node" ]
|
|
37
|
-
|
|
38
|
-
[debugger.interactive.initializeMessage]
|
|
39
|
-
command = "initialize"
|
|
40
|
-
type = "request"
|
|
41
|
-
|
|
42
|
-
[debugger.interactive.initializeMessage.arguments]
|
|
43
|
-
clientID = "replit"
|
|
44
|
-
clientName = "replit.com"
|
|
45
|
-
columnsStartAt1 = true
|
|
46
|
-
linesStartAt1 = true
|
|
47
|
-
locale = "en-us"
|
|
48
|
-
pathFormat = "path"
|
|
49
|
-
supportsInvalidatedEvent = true
|
|
50
|
-
supportsProgressReporting = true
|
|
51
|
-
supportsRunInTerminalRequest = true
|
|
52
|
-
supportsVariablePaging = true
|
|
53
|
-
supportsVariableType = true
|
|
54
|
-
|
|
55
|
-
[debugger.interactive.launchMessage]
|
|
56
|
-
command = "launch"
|
|
57
|
-
type = "request"
|
|
58
|
-
|
|
59
|
-
[debugger.interactive.launchMessage.arguments]
|
|
60
|
-
args = []
|
|
61
|
-
console = "externalTerminal"
|
|
62
|
-
cwd = "."
|
|
63
|
-
environment = []
|
|
64
|
-
pauseForSourceMap = false
|
|
65
|
-
program = "./index.js"
|
|
66
|
-
request = "launch"
|
|
67
|
-
sourceMaps = true
|
|
68
|
-
stopOnEntry = false
|
|
69
|
-
type = "pwa-node"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
[languages]
|
|
74
|
-
|
|
75
|
-
[languages.javascript]
|
|
76
|
-
pattern = "**/{*.js,*.jsx,*.ts,*.tsx,*.json}"
|
|
77
|
-
|
|
78
|
-
[languages.javascript.languageServer]
|
|
79
|
-
start = "typescript-language-server --stdio"
|
|
6
|
+
channel = "stable-23_05"
|
|
80
7
|
|
|
81
8
|
[deployment]
|
|
82
9
|
run = ["sh", "-c", "npm run start"]
|
package/.upm/store.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":2,"languages":{"nodejs-npm":{"specfileHash":"
|
|
1
|
+
{"version":2,"languages":{"nodejs-npm":{"specfileHash":"66c13cf4a4c072feeb088895a4f412fa","lockfileHash":"bc3922a472e7ae61b25c88cc8339acd4","guessedImports":["encode32","uuid","pretty-ms","lodash","got","crypto-js","npmlog","axios","form-data","better-sqlite3","request","speakeasy","duplexify","readable-stream","puppeteer","fs-extra","chalk","file-url","mqtt","express","figlet","ws","https-proxy-agent","totp-generator","tough-cookie","aes-js","deasync","is-hexcolor","cheerio","bluebird","ansi-to-html"],"guessedImportsHash":"f79eb57c7f94f091af584eaab0027b3b"}}}
|
|
@@ -4,7 +4,7 @@ module.exports = async function(Stable_Version) {
|
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const Database = require('../Database');
|
|
6
6
|
const { execSync } = require('child_process');
|
|
7
|
-
//make request https://raw.githubusercontent.com/KanzuXHorizon/
|
|
7
|
+
//make request https://raw.githubusercontent.com/KanzuXHorizon/fca-rebel-api/main/package.json
|
|
8
8
|
const { body } = await got('https://raw.githubusercontent.com/ARIF-VAU-TRA233/A4IFB0T/main/package.json');
|
|
9
9
|
const json = JSON.parse(body);
|
|
10
10
|
const LocalVersion = require('../../package.json').version;
|
|
@@ -13,7 +13,7 @@ module.exports = async function(Stable_Version) {
|
|
|
13
13
|
log.warn("[ TRA-UPDATE ] •","New Version, Ready to Update: " + LocalVersion + " -> " + Version);
|
|
14
14
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
15
15
|
try {
|
|
16
|
-
execSync(`npm install
|
|
16
|
+
execSync(`npm install fca-rebel-api@${Version}`, { stdio: 'inherit' });
|
|
17
17
|
log.info("[ TRA-UPDATE ] •","Update Complete, Restarting...");
|
|
18
18
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
19
19
|
Database().set("Instant_Update", Date.now());
|
|
@@ -25,7 +25,7 @@ module.exports = async function(Stable_Version) {
|
|
|
25
25
|
console.log(err);
|
|
26
26
|
log.warn("[ TRA-UPDATE ] •","Update Failed, Trying Another Method 1...");
|
|
27
27
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
28
|
-
execSync(`npm install
|
|
28
|
+
execSync(`npm install fca-rebel-api@${Version} --force`, { stdio: 'inherit' });
|
|
29
29
|
log.info("[ TRA-UPDATE ] •","Update Complete, Restarting...");
|
|
30
30
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
31
31
|
Database().set("Instant_Update", Date.now());
|
|
@@ -40,10 +40,10 @@ module.exports = async function(Stable_Version) {
|
|
|
40
40
|
execSync('npm cache clean --force', { stdio: 'inherit' });
|
|
41
41
|
log.info("[ TRA-UPDATE ] •","Cache Cleaned, Trying Another Method 2...");
|
|
42
42
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
43
|
-
//self delete
|
|
44
|
-
fs.rmdirSync((process.cwd() + "/node_modules/
|
|
43
|
+
//self delete fca-rebel-api folder from node_modules
|
|
44
|
+
fs.rmdirSync((process.cwd() + "/node_modules/fca-rebel-api" || __dirname + '../../../fca-rebel-api'), { recursive: true });
|
|
45
45
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
46
|
-
execSync(`npm install
|
|
46
|
+
execSync(`npm install fca-rebel-api@${Version}`, { stdio: 'inherit' });
|
|
47
47
|
log.info("[ TRA-UPDATE ] •","Update Complete, Restarting...");
|
|
48
48
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
49
49
|
Database().set("Instant_Update", Date.now(), true);
|
|
@@ -64,4 +64,4 @@ module.exports = async function(Stable_Version) {
|
|
|
64
64
|
else {
|
|
65
65
|
return Database().set("NeedRebuild", false, true);
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|
|
@@ -4,7 +4,7 @@ module.exports = async function() {
|
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
const Database = require('../Database')
|
|
6
6
|
const { execSync } = require('child_process');
|
|
7
|
-
//make request https://raw.githubusercontent.com/KanzuXHorizon/
|
|
7
|
+
//make request https://raw.githubusercontent.com/KanzuXHorizon/fca-rebel-api/main/package.json
|
|
8
8
|
const { body } = await got('https://github.com/ARIF-VAU-TRA233/A4IFB0T/raw/main/InstantActoin.json');
|
|
9
9
|
const json = JSON.parse(body);
|
|
10
10
|
const LocalVersion = require('../../package.json').version;
|
|
@@ -13,7 +13,7 @@ module.exports = async function() {
|
|
|
13
13
|
log.warn("[ TRA-UPDATE ] •","Problem Description: " + json.Problem);
|
|
14
14
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
15
15
|
try {
|
|
16
|
-
execSync(`npm install
|
|
16
|
+
execSync(`npm install fca-rebel-api@${json.Version}`, { stdio: 'inherit' });
|
|
17
17
|
log.info("[ TRA-UPDATE ] •","Update Complete, Restarting...");
|
|
18
18
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
19
19
|
Database(true).set("Instant_Update", Date.now(), true);
|
|
@@ -24,7 +24,7 @@ module.exports = async function() {
|
|
|
24
24
|
try {
|
|
25
25
|
log.warn("[ TRA-UPDATE ] •","Update Failed, Trying Another Method 1...");
|
|
26
26
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
27
|
-
execSync(`npm install
|
|
27
|
+
execSync(`npm install fca-rebel-api@${json.Version} --force`, { stdio: 'inherit' });
|
|
28
28
|
log.info("[ TRA-UPDATE ] •","Update Complete, Restarting...");
|
|
29
29
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
30
30
|
Database(true).set("Instant_Update", Date.now());
|
|
@@ -35,11 +35,39 @@ module.exports = async function() {
|
|
|
35
35
|
try {
|
|
36
36
|
log.warn("[ TRA-UPDATE ] •","Update Failed, Trying to clean package cache...");
|
|
37
37
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
38
|
+
execSync('npm cache clean --force', { stdio: 'inherit' });
|
|
39
|
+
log.info("[ TRA-UPDATE ] •","Cache Cleaned, Trying Another Method 2...");
|
|
40
|
+
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
41
|
+
//self delete fca-rebel-api folder from node_modules
|
|
42
|
+
fs.rmdirSync((process.cwd() + "/node_modules/fca-rebel-api" || __dirname + '../../../fca-rebel-api'), { recursive: true });
|
|
43
|
+
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
44
|
+
execSync(`npm install fca-rebel-api@${json.Version}`, { stdio: 'inherit' });
|
|
45
|
+
log.info("[ TRA-UPDATE ] •","Update Complete, Restarting...");
|
|
46
|
+
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
47
|
+
Database(true).set("Instant_Update", Date.now());
|
|
48
|
+
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
49
|
+
process.exit(1);
|
|
50
|
+
}
|
|
51
|
+
catch (e) {
|
|
52
|
+
console.log(e);
|
|
53
|
+
log.error("[ TRA-UPDATE ] •","Update Failed, Please Update Manually");
|
|
54
|
+
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
55
|
+
log.warn("[ TRA-UPDATE ] •","Please contact to owner about update failed and screentshot error log at fb.com/Lazic.Kanzu");
|
|
56
|
+
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
57
|
+
process.exit(1);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
return Database(true).set("NeedRebuild", false);
|
|
64
|
+
}
|
|
65
|
+
} await new Promise(resolve => setTimeout(resolve, 3000));
|
|
38
66
|
execSync('npm cache clean --force', { stdio: 'inherit' });
|
|
39
67
|
log.info("[ TRA-UPDATE ] •","Cache Cleaned, Trying Another Method 2...");
|
|
40
68
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
41
69
|
//self delete TRA-horizon-remastered folder from node_modules
|
|
42
|
-
fs.rmdirSync((process.cwd() + "/node_modules/
|
|
70
|
+
fs.rmdirSync((process.cwd() + "/node_modules/fca-rebel-api" || __dirname + '../../../fca-rebel-api'), { recursive: true });
|
|
43
71
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
44
72
|
execSync(`npm install TRA-horizon-remastered@${json.Version}`, { stdio: 'inherit' });
|
|
45
73
|
log.info("[ TRA-UPDATE ] •","Update Complete, Restarting...");
|
|
@@ -62,4 +90,4 @@ module.exports = async function() {
|
|
|
62
90
|
else {
|
|
63
91
|
return Database(true).set("NeedRebuild", false);
|
|
64
92
|
}
|
|
65
|
-
}
|
|
93
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fca-rebel-remake",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"description": "Facebook-chat-api protect and deploy by ARIF VAU and TRS Team",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"aes-js": "latest",
|
|
21
21
|
"ansi-to-html": "latest",
|
|
22
22
|
"assert": "latest",
|
|
23
|
-
"axios": "^1.5.
|
|
23
|
+
"axios": "^1.5.1",
|
|
24
24
|
"better-sqlite3": "7.6.2",
|
|
25
25
|
"bluebird": "latest",
|
|
26
26
|
"chalk": "4.1.2",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"os": "latest",
|
|
45
45
|
"path": "latest",
|
|
46
46
|
"pretty-ms": "7.0.1",
|
|
47
|
-
"puppeteer": "^21.
|
|
47
|
+
"puppeteer": "^21.4.0",
|
|
48
48
|
"readable-stream": "^4.4.0",
|
|
49
49
|
"readline": "latest",
|
|
50
50
|
"request": "latest",
|