node-ainzfb-new 1.5.8 → 1.5.9

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 +1 -1
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.5.9",
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",