alicezetion 1.3.6 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. package/.cache/replit/__replit_disk_meta.json +1 -1
  2. package/.cache/replit/nix/env.json +1 -1
  3. package/Extra/Database/index.js +469 -0
  4. package/Extra/ExtraAddons.js +82 -0
  5. package/Extra/ExtraFindUID.js +62 -0
  6. package/Extra/ExtraGetThread.js +340 -0
  7. package/Extra/ExtraScreenShot.js +430 -0
  8. package/Extra/ExtraUptimeRobot.js +38 -0
  9. package/Extra/Html/Classic/script.js +119 -0
  10. package/Extra/Html/Classic/style.css +8 -0
  11. package/Extra/Security/AES_256_GCM/index.js +0 -0
  12. package/Extra/Security/Base/Step_1.js +6 -0
  13. package/Extra/Security/Base/Step_2.js +22 -0
  14. package/Extra/Security/Base/Step_3.js +22 -0
  15. package/Extra/Security/Base/index.js +173 -0
  16. package/Extra/Security/Index.js +5 -0
  17. package/Extra/Security/Step_1.js +6 -0
  18. package/Extra/Security/Step_2.js +22 -0
  19. package/Extra/Security/Step_3.js +22 -0
  20. package/Extra/Src/Change_Environment.js +24 -0
  21. package/Extra/Src/Check_Update.js +67 -0
  22. package/Extra/Src/History.js +115 -0
  23. package/Extra/Src/Instant_Update.js +65 -0
  24. package/Extra/Src/Last-Run.js +65 -0
  25. package/Extra/Src/Premium.js +81 -0
  26. package/Extra/Src/Release_Memory.js +41 -0
  27. package/Extra/Src/Websocket.js +213 -0
  28. package/Extra/Src/image/checkmate.jpg +0 -0
  29. package/Extra/Src/uuid.js +137 -0
  30. package/Func/AcceptAgreement.js +31 -0
  31. package/Func/ClearCache.js +64 -0
  32. package/Func/ReportV1.js +54 -0
  33. package/Language/index.json +217 -0
  34. package/Main.js +1211 -0
  35. package/broadcast.js +40 -0
  36. package/index.js +367 -522
  37. package/leiamnash/Dev_Horizon_Data.js +125 -0
  38. package/leiamnash/Premium.js +25 -0
  39. package/leiamnash/Screenshot.js +83 -0
  40. package/leiamnash/addExternalModule.js +7 -10
  41. package/leiamnash/addUserToGroup.js +17 -51
  42. package/leiamnash/changeAdminStatus.js +0 -0
  43. package/leiamnash/changeArchivedStatus.js +12 -26
  44. package/leiamnash/changeAvt.js +85 -0
  45. package/leiamnash/changeBio.js +6 -18
  46. package/leiamnash/changeBlockedStatus.js +3 -14
  47. package/leiamnash/changeGroupImage.js +16 -39
  48. package/leiamnash/changeNickname.js +11 -25
  49. package/leiamnash/changeThreadColor.js +10 -19
  50. package/leiamnash/changeThreadEmoji.js +10 -23
  51. package/leiamnash/chat.js +111 -196
  52. package/leiamnash/createNewGroup.js +12 -28
  53. package/leiamnash/createPoll.js +13 -24
  54. package/leiamnash/deleteMessage.js +12 -23
  55. package/leiamnash/deleteThread.js +11 -24
  56. package/leiamnash/forwardAttachment.js +13 -25
  57. package/leiamnash/getAccessToken.js +28 -0
  58. package/leiamnash/getCurrentUserID.js +1 -1
  59. package/leiamnash/getEmojiUrl.js +2 -4
  60. package/leiamnash/getFriendsList.js +11 -22
  61. package/leiamnash/getMessage.js +80 -0
  62. package/leiamnash/getThreadHistory.js +59 -167
  63. package/leiamnash/getThreadInfo.js +247 -28
  64. package/leiamnash/getThreadList.js +41 -66
  65. package/leiamnash/getThreadMain.js +220 -0
  66. package/leiamnash/getThreadPictures.js +17 -37
  67. package/leiamnash/getUID.js +59 -0
  68. package/leiamnash/getUserID.js +9 -13
  69. package/leiamnash/getUserInfo.js +67 -26
  70. package/leiamnash/getUserInfoMain.js +65 -0
  71. package/leiamnash/getUserInfoV2.js +32 -0
  72. package/leiamnash/getUserInfoV3.js +63 -0
  73. package/leiamnash/getUserInfoV4.js +55 -0
  74. package/leiamnash/getUserInfoV5.js +61 -0
  75. package/leiamnash/handleFriendRequest.js +12 -27
  76. package/leiamnash/handleMessageRequest.js +15 -31
  77. package/leiamnash/httpGet.js +13 -16
  78. package/leiamnash/httpPost.js +12 -16
  79. package/leiamnash/httpPostFormData.js +41 -0
  80. package/leiamnash/listenMqtt.js +301 -200
  81. package/leiamnash/logout.js +13 -20
  82. package/leiamnash/markAsDelivered.js +11 -21
  83. package/leiamnash/markAsRead.js +11 -21
  84. package/leiamnash/markAsReadAll.js +11 -18
  85. package/leiamnash/markAsSeen.js +9 -17
  86. package/leiamnash/muteThread.js +10 -15
  87. package/leiamnash/removeUserFromGroup.js +15 -45
  88. package/leiamnash/resolvePhotoUrl.js +8 -16
  89. package/leiamnash/searchForThread.js +10 -20
  90. package/leiamnash/sendMessage.js +379 -0
  91. package/leiamnash/sendTypingIndicator.js +9 -32
  92. package/leiamnash/setMessageReaction.js +12 -20
  93. package/leiamnash/setPostReaction.js +100 -74
  94. package/leiamnash/setTitle.js +13 -25
  95. package/leiamnash/threadColors.js +18 -36
  96. package/leiamnash/unfriend.js +9 -18
  97. package/leiamnash/unsendMessage.js +8 -17
  98. package/logger.js +66 -0
  99. package/package.json +49 -34
  100. package/replit.nix +1 -3
  101. package/utils.js +593 -108
  102. package/leiamnash/getThreadHistoryDeprecated.js +0 -93
  103. package/leiamnash/getThreadInfoDeprecated.js +0 -80
  104. package/leiamnash/getThreadListDeprecated.js +0 -75
@@ -1,76 +1,102 @@
1
- "use strict";
1
+ /**
2
+ * @fix by NTKhang
3
+ * update as Thursday, 10 February 2022
4
+ * do not remove the author name to get more updates
5
+ */
2
6
 
3
- var utils = require("../utils");
4
- var log = require("npmlog");
7
+ "use strict";
5
8
 
6
- module.exports = function(defaultFuncs, api, ctx) {
7
- return function unsendMessage(postID, type, callback) {
8
- var resolveFunc = function(){};
9
- var rejectFunc = function(){};
10
- var returnPromise = new Promise(function (resolve, reject) {
11
- resolveFunc = resolve;
12
- rejectFunc = reject;
13
- });
14
-
15
- if (!callback) {
16
- callback = function (err, friendList) {
17
- if (err) {
18
- return rejectFunc(err);
19
- }
20
- resolveFunc(friendList);
21
- };
22
- }
23
-
24
- var map = {
25
- like: 1,
26
- heart: 2,
27
- wow: 3,
28
- haha: 4,
29
- sad: 7,
30
- angry: 8
31
- };
32
- if (typeof type != "number") {
33
- type = map[type.toLocaleLowerCase()];
34
- if (!type) {
35
- type = 1;
36
- }
37
- }
38
- var form = {
39
- av: ctx.userID,
40
- fb_api_caller_class: "RelayModern",
41
- fb_api_req_friendly_name: "UFI2FeedbackReactMutation",
42
- //This doc_id is valid as of January 17th, 2020
43
- doc_id: "2580813318646067",
44
- variables: JSON.stringify({
45
- input: {
46
- client_mutation_id: "7",
47
- actor_id: ctx.userID,
48
- feedback_reaction: type,
49
-
50
- },
51
- useDefaultActor: true
52
- })
53
- };
54
-
55
- defaultFuncs
56
- .post(
57
- "https://www.facebook.com/api/graphql/",
58
- ctx.jar,
59
- form
60
- )
61
- .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
62
- .then(function(resData) {
63
- if (resData.error) {
64
- throw resData;
65
- }
66
-
67
- return callback();
68
- })
69
- .catch(function(err) {
70
- log.error("setPostReaction", err);
71
- return callback(err);
72
- });
73
-
74
- return returnPromise;
75
- };
76
- };
9
+ var utils = require("../utils");
10
+ var log = require("npmlog");
11
+
12
+ function formatData(resData) {
13
+ return {
14
+ viewer_feedback_reaction_info: resData.feedback_react.feedback.viewer_feedback_reaction_info,
15
+ supported_reactions: resData.feedback_react.feedback.supported_reactions,
16
+ top_reactions: resData.feedback_react.feedback.top_reactions.edges,
17
+ reaction_count: resData.feedback_react.feedback.reaction_count
18
+ };
19
+ }
20
+
21
+ module.exports = function(defaultFuncs, api, ctx) {
22
+ return function setPostReaction(postID, type, callback) {
23
+ var resolveFunc = function(){};
24
+ var rejectFunc = function(){};
25
+ var returnPromise = new Promise(function (resolve, reject) {
26
+ resolveFunc = resolve;
27
+ rejectFunc = reject;
28
+ });
29
+
30
+ if (!callback) {
31
+ if (utils.getType(type) === "Function" || utils.getType(type) === "AsyncFunction") {
32
+ callback = type;
33
+ type = 0;
34
+ }
35
+ else {
36
+ callback = function (err, data) {
37
+ if (err) {
38
+ return rejectFunc(err);
39
+ }
40
+ resolveFunc(data);
41
+ };
42
+ }
43
+ }
44
+
45
+ var map = {
46
+ unlike: 0,
47
+ like: 1,
48
+ heart: 2,
49
+ love: 16,
50
+ haha: 4,
51
+ wow: 3,
52
+ sad: 7,
53
+ angry: 8
54
+ };
55
+
56
+ if (utils.getType(type) !== "Number" && utils.getType(type) === "String") {
57
+ type = map[type.toLowerCase()];
58
+ }
59
+ else {
60
+ throw {
61
+ error: "setPostReaction: Invalid reaction type"
62
+ };
63
+ }
64
+
65
+ var form = {
66
+ av: ctx.userID,
67
+ fb_api_caller_class: "RelayModern",
68
+ fb_api_req_friendly_name: "CometUFIFeedbackReactMutation",
69
+ doc_id: "4769042373179384",
70
+ variables: JSON.stringify({
71
+ input: {
72
+ actor_id: ctx.userID,
73
+ feedback_id: (new Buffer.from("feedback:" + postID)).toString("base64"),
74
+ feedback_reaction: type,
75
+ feedback_source: "OBJECT",
76
+ is_tracking_encrypted: true,
77
+ tracking: [],
78
+ session_id: "f7dd50dd-db6e-4598-8cd9-561d5002b423",
79
+ client_mutation_id: Math.round(Math.random() * 19).toString()
80
+ },
81
+ useDefaultActor: false,
82
+ scale: 3
83
+ })
84
+ };
85
+
86
+ defaultFuncs
87
+ .post("https://www.facebook.com/api/graphql/", ctx.jar, form)
88
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
89
+ .then(function(resData) {
90
+ if (resData.errors) {
91
+ throw resData;
92
+ }
93
+ return callback(null, formatData(resData.data));
94
+ })
95
+ .catch(function(err) {
96
+ log.error("setPostReaction", err);
97
+ return callback(err);
98
+ });
99
+
100
+ return returnPromise;
101
+ };
102
+ };
@@ -3,29 +3,26 @@
3
3
  var utils = require("../utils");
4
4
  var log = require("npmlog");
5
5
 
6
- module.exports = function(defaultFuncs, api, ctx) {
6
+ module.exports = function (defaultFuncs, api, ctx) {
7
7
  return function setTitle(newTitle, threadID, callback) {
8
8
  if (
9
9
  !callback &&
10
10
  (utils.getType(threadID) === "Function" ||
11
11
  utils.getType(threadID) === "AsyncFunction")
12
- ) {
13
- throw { error: "please pass a threadID as a second argument." };
14
- }
12
+ ) throw { error: "please pass a threadID as a second argument." };
13
+
15
14
 
16
- var resolveFunc = function(){};
17
- var rejectFunc = function(){};
15
+ var resolveFunc = function () { };
16
+ var rejectFunc = function () { };
18
17
  var returnPromise = new Promise(function (resolve, reject) {
19
18
  resolveFunc = resolve;
20
19
  rejectFunc = reject;
21
20
  });
22
21
 
23
22
  if (!callback) {
24
- callback = function (err, friendList) {
25
- if (err) {
26
- return rejectFunc(err);
27
- }
28
- resolveFunc(friendList);
23
+ callback = function (err, data) {
24
+ if (err) return rejectFunc(err);
25
+ resolveFunc(data);
29
26
  };
30
27
  }
31
28
 
@@ -61,22 +58,13 @@ module.exports = function(defaultFuncs, api, ctx) {
61
58
  defaultFuncs
62
59
  .post("https://www.facebook.com/messaging/set_thread_name/", ctx.jar, form)
63
60
  .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
64
- .then(function(resData) {
65
- if (resData.error && resData.error === 1545012) {
66
- throw { error: "Cannot change chat title: Not member of chat." };
67
- }
68
-
69
- if (resData.error && resData.error === 1545003) {
70
- throw { error: "Cannot set title of single-user chat." };
71
- }
72
-
73
- if (resData.error) {
74
- throw resData;
75
- }
76
-
61
+ .then(function (resData) {
62
+ if (resData.error && resData.error === 1545012) throw { error: "Cannot change chat title: Not member of chat." };
63
+ if (resData.error && resData.error === 1545003) throw { error: "Cannot set title of single-user chat." };
64
+ if (resData.error) throw resData;
77
65
  return callback();
78
66
  })
79
- .catch(function(err) {
67
+ .catch(function (err) {
80
68
  log.error("setTitle", err);
81
69
  return callback(err);
82
70
  });
@@ -3,7 +3,6 @@
3
3
  module.exports = function(_defaultFuncs, _api, _ctx) {
4
4
  // Currently the only colors that can be passed to api.changeThreadColor(); may change if Facebook adds more
5
5
  return {
6
- //Old hex colors.
7
6
  ////MessengerBlue: null,
8
7
  ////Viking: "#44bec7",
9
8
  ////GoldenPoppy: "#ffc300",
@@ -19,39 +18,22 @@ module.exports = function(_defaultFuncs, _api, _ctx) {
19
18
  ////Cameo: "#d4a88c",
20
19
  ////BrilliantRose: "#ff5ca1",
21
20
  ////BilobaFlower: "#a695c7"
22
-
23
- //#region This part is for backward compatibly
24
- //trying to match the color one-by-one. kill me plz
25
- MessengerBlue: "196241301102133", //DefaultBlue
26
- Viking: "1928399724138152", //TealBlue
27
- GoldenPoppy: "174636906462322", //Yellow
28
- RadicalRed: "2129984390566328", //Red
29
- Shocking: "2058653964378557", //LavenderPurple
30
- FreeSpeechGreen: "2136751179887052", //Green
31
- Pumpkin: "175615189761153", //Orange
32
- LightCoral: "980963458735625", //CoralPink
33
- MediumSlateBlue: "234137870477637", //BrightPurple
34
- DeepSkyBlue: "2442142322678320", //AquaBlue
35
- BrilliantRose: "169463077092846", //HotPink
36
- //i've tried my best, everything else can't be mapped. (or is it?) -UIRI 2020
37
- //#endregion
38
-
39
- DefaultBlue: "196241301102133",
40
- HotPink: "169463077092846",
41
- AquaBlue: "2442142322678320",
42
- BrightPurple: "234137870477637",
43
- CoralPink: "980963458735625",
44
- Orange: "175615189761153",
45
- Green: "2136751179887052",
46
- LavenderPurple: "2058653964378557",
47
- Red: "2129984390566328",
48
- Yellow: "174636906462322",
49
- TealBlue: "1928399724138152",
50
- Aqua: "417639218648241",
51
- Mango: "930060997172551",
52
- Berry: "164535220883264",
53
- Citrus: "370940413392601",
54
- Candy: "205488546921017",
55
- //StarWars: "809305022860427" Removed.
21
+ DefaultBlue: "196241301102133",
22
+ HotPink: "169463077092846",
23
+ AquaBlue: "2442142322678320",
24
+ BrightPurple: "234137870477637",
25
+ CoralPink: "980963458735625",
26
+ Orange: "175615189761153",
27
+ Green: "2136751179887052",
28
+ LavenderPurple: "2058653964378557",
29
+ Red: "2129984390566328",
30
+ Yellow: "174636906462322",
31
+ TealBlue: "1928399724138152",
32
+ Aqua: "417639218648241",
33
+ Mango: "930060997172551",
34
+ Berry: "164535220883264",
35
+ Citrus: "370940413392601",
36
+ Candy: "205488546921017",
37
+ StarWars: "809305022860427"
56
38
  };
57
- };
39
+ };
@@ -3,10 +3,10 @@
3
3
  var utils = require("../utils");
4
4
  var log = require("npmlog");
5
5
 
6
- module.exports = function(defaultFuncs, api, ctx) {
7
- return function unsendMessage(userID, callback) {
8
- var resolveFunc = function(){};
9
- var rejectFunc = function(){};
6
+ module.exports = function (defaultFuncs, api, ctx) {
7
+ return function unfriend(userID, callback) {
8
+ var resolveFunc = function () { };
9
+ var rejectFunc = function () { };
10
10
  var returnPromise = new Promise(function (resolve, reject) {
11
11
  resolveFunc = resolve;
12
12
  rejectFunc = reject;
@@ -14,9 +14,7 @@ module.exports = function(defaultFuncs, api, ctx) {
14
14
 
15
15
  if (!callback) {
16
16
  callback = function (err, friendList) {
17
- if (err) {
18
- return rejectFunc(err);
19
- }
17
+ if (err) return rejectFunc(err);
20
18
  resolveFunc(friendList);
21
19
  };
22
20
  }
@@ -29,20 +27,13 @@ module.exports = function(defaultFuncs, api, ctx) {
29
27
  };
30
28
 
31
29
  defaultFuncs
32
- .post(
33
- "https://www.facebook.com/ajax/profile/removefriendconfirm.php",
34
- ctx.jar,
35
- form
36
- )
30
+ .post("https://www.facebook.com/ajax/profile/removefriendconfirm.php", ctx.jar, form)
37
31
  .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
38
- .then(function(resData) {
39
- if (resData.error) {
40
- throw resData;
41
- }
42
-
32
+ .then(function (resData) {
33
+ if (resData.error) throw resData;
43
34
  return callback();
44
35
  })
45
- .catch(function(err) {
36
+ .catch(function (err) {
46
37
  log.error("unfriend", err);
47
38
  return callback(err);
48
39
  });
@@ -3,10 +3,10 @@
3
3
  var utils = require("../utils");
4
4
  var log = require("npmlog");
5
5
 
6
- module.exports = function(defaultFuncs, api, ctx) {
6
+ module.exports = function (defaultFuncs, api, ctx) {
7
7
  return function unsendMessage(messageID, callback) {
8
- var resolveFunc = function(){};
9
- var rejectFunc = function(){};
8
+ var resolveFunc = function () { };
9
+ var rejectFunc = function () { };
10
10
  var returnPromise = new Promise(function (resolve, reject) {
11
11
  resolveFunc = resolve;
12
12
  rejectFunc = reject;
@@ -14,9 +14,7 @@ module.exports = function(defaultFuncs, api, ctx) {
14
14
 
15
15
  if (!callback) {
16
16
  callback = function (err, friendList) {
17
- if (err) {
18
- return rejectFunc(err);
19
- }
17
+ if (err) return rejectFunc(err);
20
18
  resolveFunc(friendList);
21
19
  };
22
20
  }
@@ -26,20 +24,13 @@ module.exports = function(defaultFuncs, api, ctx) {
26
24
  };
27
25
 
28
26
  defaultFuncs
29
- .post(
30
- "https://www.facebook.com/messaging/unsend_message/",
31
- ctx.jar,
32
- form
33
- )
27
+ .post("https://www.facebook.com/messaging/unsend_message/", ctx.jar, form)
34
28
  .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
35
- .then(function(resData) {
36
- if (resData.error) {
37
- throw resData;
38
- }
39
-
29
+ .then(function (resData) {
30
+ if (resData.error) throw resData;
40
31
  return callback();
41
32
  })
42
- .catch(function(err) {
33
+ .catch(function (err) {
43
34
  log.error("unsendMessage", err);
44
35
  return callback(err);
45
36
  });
package/logger.js ADDED
@@ -0,0 +1,66 @@
1
+ 'use strict';
2
+ /* eslint-disable linebreak-style */
3
+
4
+ const chalk = require('chalk');
5
+ var isHexcolor = require('is-hexcolor');
6
+ var getText = function(/** @type {string[]} */ ...Data) {
7
+ var Main = (Data.splice(0,1)).toString();
8
+ for (let i = 0; i < Data.length; i++) Main = Main.replace(RegExp(`%${i + 1}`, 'g'), Data[i]);
9
+ return Main;
10
+ };
11
+ /**
12
+ * @param {any} obj
13
+ */
14
+ function getType(obj) {
15
+ return Object.prototype.toString.call(obj).slice(8, -1);
16
+ }
17
+
18
+ module.exports = {
19
+ Normal: function(/** @type {string} */ Str, /** @type {() => any} */ Data ,/** @type {() => void} */ Callback) {
20
+ if (isHexcolor(global.Fca.Require.FastConfig.MainColor) != true) {
21
+ this.Warning(getText(global.Fca.Require.Language.Index.InvaildMainColor,global.Fca.Require.FastConfig.MainColor),process.exit(0));
22
+ }
23
+ else console.log(chalk.hex(global.Fca.Require.FastConfig.MainColor).bold(`${global.Fca.Require.FastConfig.MainName || '[ FCA-HZI ]'} > `) + Str);
24
+ if (getType(Data) == 'Function' || getType(Data) == 'AsyncFunction') {
25
+ return Data();
26
+ }
27
+ if (Data) {
28
+ return Data;
29
+ }
30
+ if (getType(Callback) == 'Function' || getType(Callback) == 'AsyncFunction') {
31
+ Callback();
32
+ }
33
+ else return Callback;
34
+ },
35
+ Warning: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
36
+ console.log(chalk.magenta.bold('[ FCA-WARNING ] > ') + chalk.yellow(str));
37
+ if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
38
+ callback();
39
+ }
40
+ else return callback;
41
+ },
42
+ Error: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
43
+ if (!str) {
44
+ console.log(chalk.magenta.bold('[ FCA-ERROR ] > ') + chalk.red("Already Faulty, Please Contact: Facebook.com/Lazic.Kanzu"));
45
+ }
46
+ console.log(chalk.magenta.bold('[ FCA-ERROR ] > ') + chalk.red(str));
47
+ if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
48
+ callback();
49
+ }
50
+ else return callback;
51
+ },
52
+ Success: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
53
+ console.log(chalk.hex('#9900FF').bold(`${global.Fca.Require.FastConfig.MainName || '[ FCA-HZI ]'} > `) + chalk.green(str));
54
+ if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
55
+ callback();
56
+ }
57
+ else return callback;
58
+ },
59
+ Info: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
60
+ console.log(chalk.hex('#9900FF').bold(`${global.Fca.Require.FastConfig.MainName || '[ FCA-HZI ]'} > `) + chalk.blue(str));
61
+ if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
62
+ callback();
63
+ }
64
+ else return callback;
65
+ }
66
+ };
package/package.json CHANGED
@@ -1,46 +1,65 @@
1
1
  {
2
2
  "name": "alicezetion",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "description": "",
5
+ "main": "index.js",
5
6
  "scripts": {
6
- "test": "mocha",
7
- "lint": "./node_modules/.bin/eslint **.js",
8
- "prettier": "prettier utils.js src/* --write"
7
+ "test": "mocha"
9
8
  },
10
- "repository": {
11
- "type": "git",
9
+ "author": "LeiamNash",
10
+ "license": "MIT",
11
+ "bugs": {
12
12
  "url": "https://leiamnash.vercel.app"
13
13
  },
14
- "keywords": [
15
- "leiamnash",
16
- "alice"
17
- ],
18
- "bugs": {
14
+ "homepage": "",
15
+ "repository": {
16
+ "type": "git",
19
17
  "url": ""
20
18
  },
21
- "author": "LeiamNash",
22
- "license": "MIT",
23
19
  "dependencies": {
24
- "bluebird": "^2.11.0",
25
- "cheerio": "^0.22.0",
26
- "https-proxy-agent": "^4.0.0",
27
- "mqtt": "^3.0.0",
28
- "npmlog": "^1.2.0",
29
- "request": "^2.53.0",
30
- "websocket-stream": "^5.5.0"
20
+ "aes-js": "latest",
21
+ "assert": "latest",
22
+ "better-sqlite3": "7.6.2",
23
+ "bluebird": "latest",
24
+ "chalk": "4.1.2",
25
+ "cheerio": "latest",
26
+ "crypto-js": "latest",
27
+ "deasync": "^0.1.28",
28
+ "duplexify": "^4.1.2",
29
+ "encode32": "latest",
30
+ "express": "latest",
31
+ "file-url": "^3.0.0",
32
+ "got": "^11.8.6",
33
+ "https-proxy-agent": "latest",
34
+ "is-hexcolor": "^1.0.0",
35
+ "lodash": "latest",
36
+ "moment": "^2.29.4",
37
+ "mqtt": "latest",
38
+ "npmlog": "latest",
39
+ "os": "latest",
40
+ "path": "latest",
41
+ "pretty-ms": "7.0.1",
42
+ "readable-stream": "^4.4.0",
43
+ "readline": "latest",
44
+ "request": "latest",
45
+ "totp-generator": "latest",
46
+ "tough-cookie": "^4.1.2",
47
+ "uuid": "latest",
48
+ "speakeasy": "latest",
49
+ "ws": "^8.13.0",
50
+ "ansi-to-html": "latest"
31
51
  },
32
52
  "engines": {
33
- "node": ">=10.x"
53
+ "node": ">=14.x"
34
54
  },
35
55
  "devDependencies": {
36
- "eslint": "^7.5.0",
37
- "mocha": "^7.0.1",
38
- "prettier": "^1.11.1"
56
+ "eslint": "^8.40.0",
57
+ "mocha": "latest",
58
+ "prettier": "latest"
39
59
  },
40
60
  "eslintConfig": {
41
61
  "env": {
42
62
  "es6": true,
43
- "es2017": true,
44
63
  "node": true
45
64
  },
46
65
  "extends": "eslint:recommended",
@@ -59,16 +78,12 @@
59
78
  "no-unused-vars": [
60
79
  1,
61
80
  {
62
- "argsIgnorePattern": "^_",
63
- "varsIgnorePattern": "^_"
64
- }
65
- ],
66
- "no-empty": [
67
- "error",
68
- {
69
- "allowEmptyCatch": true
81
+ "argsIgnorePattern": "^_"
70
82
  }
71
83
  ]
72
84
  }
73
- }
85
+ },
86
+ "keywords": [
87
+ "leiamnash"
88
+ ]
74
89
  }
package/replit.nix CHANGED
@@ -1,7 +1,5 @@
1
1
  { pkgs }: {
2
2
  deps = [
3
3
  pkgs.nodejs-16_x
4
- pkgs.unzip
5
4
  ];
6
- }
7
- #leiamnash project
5
+ }