nayan-remake-api 0.0.1-security → 2.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 nayan-remake-api might be problematic. Click here for more details.

Files changed (70) hide show
  1. package/.cache/replit/__replit_disk_meta.json +1 -0
  2. package/.config/configstore/update-notifier-npm.json +4 -0
  3. package/.config/configstore/update-notifier-npm.json.1735545094 +4 -0
  4. package/.replit +80 -0
  5. package/CHANGELOG.md +2 -0
  6. package/DOCS.md +1947 -0
  7. package/LICENSE-MIT +21 -0
  8. package/README.md +198 -3
  9. package/index.js +641 -0
  10. package/package.json +69 -3
  11. package/replit.nix +8 -0
  12. package/src/addExternalModule.js +19 -0
  13. package/src/addUserToGroup.js +113 -0
  14. package/src/changeAdminStatus.js +79 -0
  15. package/src/changeArchivedStatus.js +55 -0
  16. package/src/changeAvatar.js +127 -0
  17. package/src/changeBio.js +77 -0
  18. package/src/changeBlockedStatus.js +47 -0
  19. package/src/changeGroupImage.js +133 -0
  20. package/src/changeNickname.js +59 -0
  21. package/src/changeThreadColor.js +65 -0
  22. package/src/changeThreadEmoji.js +55 -0
  23. package/src/createNewGroup.js +86 -0
  24. package/src/createPoll.js +71 -0
  25. package/src/deleteMessage.js +56 -0
  26. package/src/deleteThread.js +56 -0
  27. package/src/forwardAttachment.js +60 -0
  28. package/src/getCurrentUserID.js +7 -0
  29. package/src/getEmojiUrl.js +29 -0
  30. package/src/getFriendsList.js +84 -0
  31. package/src/getMessage.js +716 -0
  32. package/src/getThreadHistory.js +666 -0
  33. package/src/getThreadInfo.js +232 -0
  34. package/src/getThreadList.js +237 -0
  35. package/src/getThreadPictures.js +79 -0
  36. package/src/getUserID.js +66 -0
  37. package/src/getUserInfo.js +74 -0
  38. package/src/handleFriendRequest.js +61 -0
  39. package/src/handleMessageRequest.js +65 -0
  40. package/src/httpGet.js +57 -0
  41. package/src/httpPost.js +57 -0
  42. package/src/httpPostFormData.js +59 -0
  43. package/src/listenMqtt.js +862 -0
  44. package/src/logout.js +75 -0
  45. package/src/markAsDelivered.js +58 -0
  46. package/src/markAsRead.js +80 -0
  47. package/src/markAsReadAll.js +50 -0
  48. package/src/markAsSeen.js +59 -0
  49. package/src/muteThread.js +52 -0
  50. package/src/n +1 -0
  51. package/src/removeUserFromGroup.js +79 -0
  52. package/src/resolvePhotoUrl.js +45 -0
  53. package/src/searchForThread.js +53 -0
  54. package/src/sendMessage.js +449 -0
  55. package/src/sendTypingIndicator.js +103 -0
  56. package/src/setMessageReaction.js +117 -0
  57. package/src/setPostReaction.js +109 -0
  58. package/src/setTitle.js +86 -0
  59. package/src/threadColors.js +120 -0
  60. package/src/unfriend.js +52 -0
  61. package/src/unsendMessage.js +49 -0
  62. package/src/uploadAttachment.js +96 -0
  63. package/test/data/N +1 -0
  64. package/test/data/shareAttach.js +146 -0
  65. package/test/data/test.txt +7 -0
  66. package/test/example-config.json +18 -0
  67. package/test/n +1 -0
  68. package/test/test-page.js +140 -0
  69. package/test/test.js +387 -0
  70. package/utils.js +1451 -0
@@ -0,0 +1 @@
1
+ {"nonce":8017282298322646027,"last_updated":{"seconds":1686066430,"nanos":266829000}}
@@ -0,0 +1,4 @@
1
+ {
2
+ "optOut": false,
3
+ "lastUpdateCheck": 1686065926359
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "optOut": false,
3
+ "lastUpdateCheck": 1678825045705
4
+ }
package/.replit ADDED
@@ -0,0 +1,80 @@
1
+
2
+ hidden = [".config", "package-lock.json"]
3
+ run = "npm run start"
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
+ [nix]
10
+ channel = "stable-22_11"
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
+ [languages]
72
+
73
+ [languages.javascript]
74
+ pattern = "**/{*.js,*.jsx,*.ts,*.tsx,*.json}"
75
+
76
+ [languages.javascript.languageServer]
77
+ start = "typescript-language-server --stdio"
78
+
79
+ [deployment]
80
+ run = ["sh", "-c", "npm run start"]
package/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ # Changelog
2
+ Too lazy to write changelog, sorry! (will write changelog in the next release, through.)