node-ainzfb-new 1.5.8 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +2 -3
package/index.js CHANGED
@@ -936,7 +936,7 @@ async function loginHelper(appState, email, password, globalOptions, callback, p
936
936
  }
937
937
 
938
938
  console.log(e);
939
- return logger(Language.ScreenShotConsoleAndSendToAdmin, '[ FCA-HSP ]');
939
+ return logger(Language.ScreenShotConsoleAndSendToAdmin, '[ FCA-SUS ]');
940
940
  }
941
941
  } else {
942
942
  // Open the main page, then we login with the given credentials and finally
@@ -995,12 +995,12 @@ async function loginHelper(appState, email, password, globalOptions, callback, p
995
995
  var { readFileSync } = require('fs-extra');
996
996
  const { execSync } = require('child_process');
997
997
  Fetch('https://raw.githubusercontent.com/amogusdevlol/node-ainzfb/main/package.json').then(async(res) => {
998
- const localbrand = JSON.parse(readFileSync('./node_modules/node-ainzfb/package.json')).version;
998
+ const localbrand = JSON.parse(readFileSync('./node_modules/node-ainzfb-new/package.json')).version;
999
999
  if (Number(localbrand.replace(/\./g, "")) < Number(JSON.parse(res.body.toString()).version.replace(/\./g, ""))) {
1000
1000
  log.warn("[ FCA-SUS ] •", getText.gettext(Language.NewVersionFound, JSON.parse(readFileSync('./node_modules/node-ainzfb/package.json')).version, JSON.parse(res.body.toString()).version));
1001
1001
  log.warn("[ FCA-SUS ] •", Language.AutoUpdate);
1002
1002
  try {
1003
- execSync('npm install node-ainzfb@latest', { stdio: 'inherit' });
1003
+ execSync('npm install node-ainzfb-new@latest', { stdio: 'inherit' });
1004
1004
  logger(Language.UpdateSuccess, "[ FCA-SUS ]")
1005
1005
  logger(Language.RestartAfterUpdate, '[ FCA-SUS ]');
1006
1006
  await new Promise(resolve => setTimeout(resolve, 5 * 1000));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-ainzfb-new",
3
- "version": "1.5.8",
3
+ "version": "1.6.0",
4
4
  "description": "A Facebook chat API that doesn't rely on XMPP. Will NOT be deprecated after April 30th 2015.",
5
5
  "scripts": {
6
6
  "test": "mocha",
@@ -14,7 +14,6 @@
14
14
  "keywords": [
15
15
  "facebook",
16
16
  "chat",
17
- "api",
18
17
  "fca"
19
18
  ],
20
19
  "bugs": {
@@ -23,7 +22,7 @@
23
22
  "author": "Avery, David, Maude, Benjamin, Kanzu",
24
23
  "license": "MIT",
25
24
  "dependencies": {
26
- "@replit/database": "^2.0.2",
25
+ "@replit/database": "latest",
27
26
  "aes-js": "latest",
28
27
  "assert": "latest",
29
28
  "better-sqlite3": "latest",