fca-nayan-api 4.5.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fca-nayan-api might be problematic. Click here for more details.

Files changed (136) hide show
  1. package/.cache/replit/__replit_disk_meta.json +1 -0
  2. package/.cache/replit/nix/env.json +1 -0
  3. package/.config/configstore/update-notifier-npm.json +4 -0
  4. package/.config/configstore/update-notifier-npm.json.1735545094 +4 -0
  5. package/.github/workflows/npm-publish.yml +33 -0
  6. package/.github/workflows/npm-publish2.yml +33 -0
  7. package/.github/workflows/publish.yml +20 -0
  8. package/.replit +80 -0
  9. package/.upm/store.json +1 -0
  10. package/CHANGELOG.md +2 -0
  11. package/DOCS.md +1947 -0
  12. package/Extra/Database/N +1 -0
  13. package/Extra/Database/index.js +469 -0
  14. package/Extra/ExtraAddons.js +82 -0
  15. package/Extra/ExtraFindUID.js +62 -0
  16. package/Extra/ExtraGetThread.js +340 -0
  17. package/Extra/ExtraScreenShot.js +430 -0
  18. package/Extra/ExtraUptimeRobot.js +38 -0
  19. package/Extra/Html/Classic/script.js +119 -0
  20. package/Extra/Html/Classic/style.css +1 -0
  21. package/Extra/N +1 -0
  22. package/Extra/Security/Index.js +173 -0
  23. package/Extra/Security/N +1 -0
  24. package/Extra/Security/Step_1.js +6 -0
  25. package/Extra/Security/Step_2.js +22 -0
  26. package/Extra/Security/Step_3.js +22 -0
  27. package/Extra/Src/Change_Environment.js +24 -0
  28. package/Extra/Src/Check_Update.js +67 -0
  29. package/Extra/Src/History.js +115 -0
  30. package/Extra/Src/Instant_Update.js +65 -0
  31. package/Extra/Src/Last-Run.js +65 -0
  32. package/Extra/Src/Premium.js +81 -0
  33. package/Extra/Src/Release_Memory.js +41 -0
  34. package/Extra/Src/Websocket.js +213 -0
  35. package/Extra/Src/uuid.js +137 -0
  36. package/Func/AcceptAgreement.js +31 -0
  37. package/Func/ClearCache.js +64 -0
  38. package/Func/N +1 -0
  39. package/Func/ReportV1.js +54 -0
  40. package/LICENSE +21 -0
  41. package/LICENSE-MIT +21 -0
  42. package/Language/index.js +1 -0
  43. package/Language/index.json +217 -0
  44. package/Main.js +1168 -0
  45. package/SECURITY.md +18 -0
  46. package/broadcast.js +40 -0
  47. package/index.js +383 -0
  48. package/logger.js +66 -0
  49. package/package.json +95 -0
  50. package/replit.nix +8 -0
  51. package/src/Dev_Horizon_Data.js +125 -0
  52. package/src/Premium.js +25 -0
  53. package/src/Screenshot.js +83 -0
  54. package/src/addExternalModule.js +16 -0
  55. package/src/addUserToGroup.js +79 -0
  56. package/src/changeAdminStatus.js +79 -0
  57. package/src/changeArchivedStatus.js +41 -0
  58. package/src/changeAvatar.js +127 -0
  59. package/src/changeAvt.js +85 -0
  60. package/src/changeBio.js +65 -0
  61. package/src/changeBlockedStatus.js +36 -0
  62. package/src/changeGroupImage.js +106 -0
  63. package/src/changeNickname.js +45 -0
  64. package/src/changeThreadColor.js +62 -0
  65. package/src/changeThreadEmoji.js +42 -0
  66. package/src/createNewGroup.js +70 -0
  67. package/src/createPoll.js +60 -0
  68. package/src/deleteMessage.js +45 -0
  69. package/src/deleteThread.js +43 -0
  70. package/src/forwardAttachment.js +48 -0
  71. package/src/getAccessToken.js +28 -0
  72. package/src/getCurrentUserID.js +7 -0
  73. package/src/getEmojiUrl.js +27 -0
  74. package/src/getFriendsList.js +73 -0
  75. package/src/getMessage.js +80 -0
  76. package/src/getThreadHistory.js +537 -0
  77. package/src/getThreadInfo.js +425 -0
  78. package/src/getThreadList.js +213 -0
  79. package/src/getThreadMain.js +220 -0
  80. package/src/getThreadPictures.js +59 -0
  81. package/src/getUID.js +59 -0
  82. package/src/getUserID.js +62 -0
  83. package/src/getUserInfo.js +113 -0
  84. package/src/getUserInfoMain.js +65 -0
  85. package/src/getUserInfoV2.js +32 -0
  86. package/src/getUserInfoV3.js +63 -0
  87. package/src/getUserInfoV4.js +55 -0
  88. package/src/getUserInfoV5.js +61 -0
  89. package/src/handleFriendRequest.js +46 -0
  90. package/src/handleMessageRequest.js +49 -0
  91. package/src/httpGet.js +49 -0
  92. package/src/httpPost.js +48 -0
  93. package/src/httpPostFormData.js +41 -0
  94. package/src/listenMqtt.js +787 -0
  95. package/src/logout.js +68 -0
  96. package/src/markAsDelivered.js +48 -0
  97. package/src/markAsRead.js +70 -0
  98. package/src/markAsReadAll.js +43 -0
  99. package/src/markAsSeen.js +51 -0
  100. package/src/muteThread.js +47 -0
  101. package/src/n +1 -0
  102. package/src/removeUserFromGroup.js +49 -0
  103. package/src/resolvePhotoUrl.js +37 -0
  104. package/src/searchForThread.js +43 -0
  105. package/src/sendMessage.js +379 -0
  106. package/src/sendTypingIndicator.js +80 -0
  107. package/src/setMessageReaction.js +109 -0
  108. package/src/setPostReaction.js +102 -0
  109. package/src/setTitle.js +74 -0
  110. package/src/threadColors.js +39 -0
  111. package/src/unfriend.js +43 -0
  112. package/src/unsendMessage.js +40 -0
  113. package/src/uploadAttachment.js +96 -0
  114. package/test/.env/.env +1 -0
  115. package/test/Database_Test.js +4 -0
  116. package/test/Db2.js +530 -0
  117. package/test/Horizon_Database/A_README.md +1 -0
  118. package/test/Horizon_Database/Database.db +0 -0
  119. package/test/Horizon_Database/N +1 -0
  120. package/test/Nayan_Database/A_README.md +1 -0
  121. package/test/Nayan_Database/Database.db +0 -0
  122. package/test/Nayan_Database/N +1 -0
  123. package/test/data/N +1 -0
  124. package/test/data/shareAttach.js +146 -0
  125. package/test/data/something.mov +0 -0
  126. package/test/data/test.png +0 -0
  127. package/test/data/test.txt +7 -0
  128. package/test/env.env +0 -0
  129. package/test/example-config.json +18 -0
  130. package/test/example-db.db +0 -0
  131. package/test/memoryleak.js +18 -0
  132. package/test/n +1 -0
  133. package/test/test-page.js +140 -0
  134. package/test/test.js +385 -0
  135. package/test/testv2.js +18 -0
  136. package/utils.js +1684 -0
@@ -0,0 +1 @@
1
+ {"nonce":3233707968151199181,"last_updated":{"seconds":1693127974,"nanos":854829000}}
@@ -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/7rfpsb04f2r6a755bqmmj1i90x8p1b18-typescript-language-server-3.1.0/bin:/nix/store/zdcnqq55qi214j46zgw2qa1jp4dpdf2m-yarn-1.22.19/bin:/nix/store/hqc964yg79161afx85fvcmg1a6879k5i-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":"8","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=7ya8xlq922 -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/7ya8xlq922h1fx115xra9kl0d0pfk2ab-nix-shell/lib64 -rpath /nix/store/7ya8xlq922h1fx115xra9kl0d0pfk2ab-nix-shell/lib ","NIX_STORE":"/nix/store","NM":"nm","NODE_PATH":"/nix/store/dj805sw07vvpbxx39c8g67x8qddg0ikw-nodejs-18.12.1/lib/node_modules:/nix/store/7rfpsb04f2r6a755bqmmj1i90x8p1b18-typescript-language-server-3.1.0/lib/node_modules:/nix/store/hqc964yg79161afx85fvcmg1a6879k5i-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/7rfpsb04f2r6a755bqmmj1i90x8p1b18-typescript-language-server-3.1.0/bin:/nix/store/zdcnqq55qi214j46zgw2qa1jp4dpdf2m-yarn-1.22.19/bin:/nix/store/hqc964yg79161afx85fvcmg1a6879k5i-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/7rfpsb04f2r6a755bqmmj1i90x8p1b18-typescript-language-server-3.1.0 /nix/store/zdcnqq55qi214j46zgw2qa1jp4dpdf2m-yarn-1.22.19 /nix/store/hqc964yg79161afx85fvcmg1a6879k5i-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/7ya8xlq922h1fx115xra9kl0d0pfk2ab-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-01-20T17:24:06.730825035Z"}],"channel":"stable-22_11","channel_nix_path":"/nix/store/1hxr7x3df6jw0h175dkd2qybvkdscsj1-nixpkgs-stable-22_11-22.11.tar.gz/nixpkgs-stable-22_11"}}}
@@ -0,0 +1,4 @@
1
+ {
2
+ "optOut": false,
3
+ "lastUpdateCheck": 1693126995955
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "optOut": false,
3
+ "lastUpdateCheck": 1678825045705
4
+ }
@@ -0,0 +1,33 @@
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name: Node.js Package
5
+
6
+ on:
7
+ release:
8
+ types: [created]
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: actions/setup-node@v3
16
+ with:
17
+ node-version: 16
18
+ - run: npm ci
19
+ - run: npm test
20
+
21
+ publish-npm:
22
+ needs: build
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: actions/checkout@v3
26
+ - uses: actions/setup-node@v3
27
+ with:
28
+ node-version: 16
29
+ registry-url: https://registry.npmjs.org/
30
+ - run: npm ci
31
+ - run: npm publish
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -0,0 +1,33 @@
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name: Node.js Package
5
+
6
+ on:
7
+ release:
8
+ types: []
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: actions/setup-node@v3
16
+ with:
17
+ node-version: 16
18
+ - run: npm ci
19
+ - run: npm test
20
+
21
+ publish-npm:
22
+ needs: build
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: actions/checkout@v3
26
+ - uses: actions/setup-node@v3
27
+ with:
28
+ node-version: 16
29
+ registry-url: https://registry.npmjs.org/
30
+ - run: npm ci
31
+ - run: npm publish
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -0,0 +1,20 @@
1
+ name: "publish npm"
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ publish:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: checkout
10
+ uses: actions/checkout@v2
11
+ - name: node
12
+ uses: actions/setup-node@v2
13
+ with:
14
+ node-version: 16
15
+ registry-url: https://registry.npmjs.org
16
+ - name: publish
17
+ run: npm publish --access public
18
+ working-directory: .npmignore
19
+ env:
20
+ NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
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"]
@@ -0,0 +1 @@
1
+ {"version":2,"languages":{"nodejs-npm":{"guessedImports":["better-sqlite3","crypto-js","puppeteer","form-data","mqtt","express","speakeasy","npmlog","https-proxy-agent","duplexify","axios","deasync","bluebird","tough-cookie","eval","encode32","fs-extra","aes-js","file-url","figlet","is-hexcolor","uuid","cheerio","ansi-to-html","pretty-ms","totp-generator","lodash","chalk","got","request","ws","readable-stream","process.cwd() + \""],"guessedImportsHash":"5127daab704efd5dd572bf6efd2bb2bc"}}}
package/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ qw# Changelog
2
+ Too lazy to write changelog, sorry! (will write changelog in the next release, through.)