fca-smart-shankar 10.9.1 → 12.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.
- package/.cache/nix/binary-cache-v6.sqlite +0 -0
- package/.cache/replit/env/latest +117 -48
- package/.cache/replit/env/latest.json +1 -1
- package/.cache/replit/modules/nix.res +1 -0
- package/.cache/replit/modules/nodejs-20.res +1 -0
- package/.cache/replit/nix/env.json +1 -0
- package/.cache/typescript/5.6/node_modules/.package-lock.json +171 -0
- package/.cache/typescript/5.6/node_modules/@types/bluebird/LICENSE +21 -0
- package/.cache/typescript/5.6/node_modules/@types/bluebird/README.md +15 -0
- package/.cache/typescript/5.6/node_modules/@types/bluebird/index.d.ts +1365 -0
- package/.cache/typescript/5.6/node_modules/@types/bluebird/package.json +25 -0
- package/.cache/typescript/5.6/node_modules/@types/caseless/LICENSE +21 -0
- package/.cache/typescript/5.6/node_modules/@types/caseless/README.md +48 -0
- package/.cache/typescript/5.6/node_modules/@types/caseless/index.d.ts +29 -0
- package/.cache/typescript/5.6/node_modules/@types/caseless/package.json +35 -0
- package/.cache/typescript/5.6/node_modules/@types/cheerio/LICENSE +21 -0
- package/.cache/typescript/5.6/node_modules/@types/cheerio/README.md +15 -0
- package/.cache/typescript/5.6/node_modules/@types/cheerio/index.d.ts +318 -0
- package/.cache/typescript/5.6/node_modules/@types/cheerio/package.json +71 -0
- package/.cache/typescript/5.6/node_modules/@types/mocha/LICENSE +21 -0
- package/.cache/typescript/5.6/node_modules/@types/mocha/README.md +15 -0
- package/.cache/typescript/5.6/node_modules/@types/mocha/index.d.ts +2929 -0
- package/.cache/typescript/5.6/node_modules/@types/mocha/package.json +56 -0
- package/.cache/typescript/5.6/node_modules/@types/node/LICENSE +21 -0
- package/.cache/typescript/5.6/node_modules/@types/node/README.md +15 -0
- package/.cache/typescript/5.6/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.6/node_modules/@types/node/assert.d.ts +1040 -0
- package/.cache/typescript/5.6/node_modules/@types/node/async_hooks.d.ts +541 -0
- package/.cache/typescript/5.6/node_modules/@types/node/buffer.buffer.d.ts +385 -0
- package/.cache/typescript/5.6/node_modules/@types/node/buffer.d.ts +1933 -0
- package/.cache/typescript/5.6/node_modules/@types/node/child_process.d.ts +1549 -0
- package/.cache/typescript/5.6/node_modules/@types/node/cluster.d.ts +579 -0
- package/.cache/typescript/5.6/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/.cache/typescript/5.6/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/.cache/typescript/5.6/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
- package/.cache/typescript/5.6/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/.cache/typescript/5.6/node_modules/@types/node/console.d.ts +452 -0
- package/.cache/typescript/5.6/node_modules/@types/node/constants.d.ts +19 -0
- package/.cache/typescript/5.6/node_modules/@types/node/crypto.d.ts +4475 -0
- package/.cache/typescript/5.6/node_modules/@types/node/dgram.d.ts +596 -0
- package/.cache/typescript/5.6/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
- package/.cache/typescript/5.6/node_modules/@types/node/dns/promises.d.ts +476 -0
- package/.cache/typescript/5.6/node_modules/@types/node/dns.d.ts +865 -0
- package/.cache/typescript/5.6/node_modules/@types/node/dom-events.d.ts +124 -0
- package/.cache/typescript/5.6/node_modules/@types/node/domain.d.ts +170 -0
- package/.cache/typescript/5.6/node_modules/@types/node/events.d.ts +931 -0
- package/.cache/typescript/5.6/node_modules/@types/node/fs/promises.d.ts +1275 -0
- package/.cache/typescript/5.6/node_modules/@types/node/fs.d.ts +4396 -0
- package/.cache/typescript/5.6/node_modules/@types/node/globals.d.ts +566 -0
- package/.cache/typescript/5.6/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/.cache/typescript/5.6/node_modules/@types/node/http.d.ts +1958 -0
- package/.cache/typescript/5.6/node_modules/@types/node/http2.d.ts +2558 -0
- package/.cache/typescript/5.6/node_modules/@types/node/https.d.ts +543 -0
- package/.cache/typescript/5.6/node_modules/@types/node/index.d.ts +92 -0
- package/.cache/typescript/5.6/node_modules/@types/node/inspector.d.ts +3966 -0
- package/.cache/typescript/5.6/node_modules/@types/node/module.d.ts +402 -0
- package/.cache/typescript/5.6/node_modules/@types/node/net.d.ts +1001 -0
- package/.cache/typescript/5.6/node_modules/@types/node/os.d.ts +495 -0
- package/.cache/typescript/5.6/node_modules/@types/node/package.json +220 -0
- package/.cache/typescript/5.6/node_modules/@types/node/path.d.ts +200 -0
- package/.cache/typescript/5.6/node_modules/@types/node/perf_hooks.d.ts +965 -0
- package/.cache/typescript/5.6/node_modules/@types/node/process.d.ts +1963 -0
- package/.cache/typescript/5.6/node_modules/@types/node/punycode.d.ts +117 -0
- package/.cache/typescript/5.6/node_modules/@types/node/querystring.d.ts +153 -0
- package/.cache/typescript/5.6/node_modules/@types/node/readline/promises.d.ts +162 -0
- package/.cache/typescript/5.6/node_modules/@types/node/readline.d.ts +589 -0
- package/.cache/typescript/5.6/node_modules/@types/node/repl.d.ts +430 -0
- package/.cache/typescript/5.6/node_modules/@types/node/sea.d.ts +153 -0
- package/.cache/typescript/5.6/node_modules/@types/node/sqlite.d.ts +213 -0
- package/.cache/typescript/5.6/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.6/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/.cache/typescript/5.6/node_modules/@types/node/stream/web.d.ts +609 -0
- package/.cache/typescript/5.6/node_modules/@types/node/stream.d.ts +1726 -0
- package/.cache/typescript/5.6/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.6/node_modules/@types/node/test.d.ts +2248 -0
- package/.cache/typescript/5.6/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/.cache/typescript/5.6/node_modules/@types/node/timers.d.ts +240 -0
- package/.cache/typescript/5.6/node_modules/@types/node/tls.d.ts +1226 -0
- package/.cache/typescript/5.6/node_modules/@types/node/trace_events.d.ts +197 -0
- package/.cache/typescript/5.6/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
- package/.cache/typescript/5.6/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/.cache/typescript/5.6/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/.cache/typescript/5.6/node_modules/@types/node/tty.d.ts +208 -0
- package/.cache/typescript/5.6/node_modules/@types/node/url.d.ts +972 -0
- package/.cache/typescript/5.6/node_modules/@types/node/util.d.ts +2371 -0
- package/.cache/typescript/5.6/node_modules/@types/node/v8.d.ts +808 -0
- package/.cache/typescript/5.6/node_modules/@types/node/vm.d.ts +976 -0
- package/.cache/typescript/5.6/node_modules/@types/node/wasi.d.ts +181 -0
- package/.cache/typescript/5.6/node_modules/@types/node/worker_threads.d.ts +745 -0
- package/.cache/typescript/5.6/node_modules/@types/node/zlib.d.ts +539 -0
- package/.cache/typescript/5.6/node_modules/@types/request/LICENSE +21 -0
- package/.cache/typescript/5.6/node_modules/@types/request/README.md +15 -0
- package/.cache/typescript/5.6/node_modules/@types/request/index.d.ts +395 -0
- package/.cache/typescript/5.6/node_modules/@types/request/package.json +70 -0
- package/.cache/typescript/5.6/node_modules/@types/tough-cookie/LICENSE +21 -0
- package/.cache/typescript/5.6/node_modules/@types/tough-cookie/README.md +15 -0
- package/.cache/typescript/5.6/node_modules/@types/tough-cookie/index.d.ts +321 -0
- package/.cache/typescript/5.6/node_modules/@types/tough-cookie/package.json +35 -0
- package/.cache/typescript/5.6/node_modules/asynckit/LICENSE +21 -0
- package/.cache/typescript/5.6/node_modules/asynckit/README.md +233 -0
- package/.cache/typescript/5.6/node_modules/asynckit/bench.js +76 -0
- package/.cache/typescript/5.6/node_modules/asynckit/index.js +6 -0
- package/.cache/typescript/5.6/node_modules/asynckit/lib/abort.js +29 -0
- package/.cache/typescript/5.6/node_modules/asynckit/lib/async.js +34 -0
- package/.cache/typescript/5.6/node_modules/asynckit/lib/defer.js +26 -0
- package/.cache/typescript/5.6/node_modules/asynckit/lib/iterate.js +75 -0
- package/.cache/typescript/5.6/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/.cache/typescript/5.6/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/.cache/typescript/5.6/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/.cache/typescript/5.6/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/.cache/typescript/5.6/node_modules/asynckit/lib/state.js +37 -0
- package/.cache/typescript/5.6/node_modules/asynckit/lib/streamify.js +141 -0
- package/.cache/typescript/5.6/node_modules/asynckit/lib/terminator.js +29 -0
- package/.cache/typescript/5.6/node_modules/asynckit/package.json +63 -0
- package/.cache/typescript/5.6/node_modules/asynckit/parallel.js +43 -0
- package/.cache/typescript/5.6/node_modules/asynckit/serial.js +17 -0
- package/.cache/typescript/5.6/node_modules/asynckit/serialOrdered.js +75 -0
- package/.cache/typescript/5.6/node_modules/asynckit/stream.js +21 -0
- package/.cache/typescript/5.6/node_modules/combined-stream/License +19 -0
- package/.cache/typescript/5.6/node_modules/combined-stream/Readme.md +138 -0
- package/.cache/typescript/5.6/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/.cache/typescript/5.6/node_modules/combined-stream/package.json +25 -0
- package/.cache/typescript/5.6/node_modules/combined-stream/yarn.lock +17 -0
- package/.cache/typescript/5.6/node_modules/delayed-stream/License +19 -0
- package/.cache/typescript/5.6/node_modules/delayed-stream/Makefile +7 -0
- package/.cache/typescript/5.6/node_modules/delayed-stream/Readme.md +141 -0
- package/.cache/typescript/5.6/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/.cache/typescript/5.6/node_modules/delayed-stream/package.json +27 -0
- package/.cache/typescript/5.6/node_modules/form-data/License +19 -0
- package/.cache/typescript/5.6/node_modules/form-data/Readme.md +350 -0
- package/.cache/typescript/5.6/node_modules/form-data/index.d.ts +51 -0
- package/.cache/typescript/5.6/node_modules/form-data/lib/browser.js +2 -0
- package/.cache/typescript/5.6/node_modules/form-data/lib/form_data.js +484 -0
- package/.cache/typescript/5.6/node_modules/form-data/lib/populate.js +10 -0
- package/.cache/typescript/5.6/node_modules/form-data/package.json +72 -0
- package/.cache/typescript/5.6/node_modules/mime-db/HISTORY.md +507 -0
- package/.cache/typescript/5.6/node_modules/mime-db/LICENSE +23 -0
- package/.cache/typescript/5.6/node_modules/mime-db/README.md +100 -0
- package/.cache/typescript/5.6/node_modules/mime-db/db.json +8519 -0
- package/.cache/typescript/5.6/node_modules/mime-db/index.js +12 -0
- package/.cache/typescript/5.6/node_modules/mime-db/package.json +60 -0
- package/.cache/typescript/5.6/node_modules/mime-types/HISTORY.md +397 -0
- package/.cache/typescript/5.6/node_modules/mime-types/LICENSE +23 -0
- package/.cache/typescript/5.6/node_modules/mime-types/README.md +113 -0
- package/.cache/typescript/5.6/node_modules/mime-types/index.js +188 -0
- package/.cache/typescript/5.6/node_modules/mime-types/package.json +44 -0
- package/.cache/typescript/5.6/node_modules/safe-buffer/LICENSE +21 -0
- package/.cache/typescript/5.6/node_modules/safe-buffer/README.md +584 -0
- package/.cache/typescript/5.6/node_modules/safe-buffer/index.d.ts +187 -0
- package/.cache/typescript/5.6/node_modules/safe-buffer/index.js +65 -0
- package/.cache/typescript/5.6/node_modules/safe-buffer/package.json +51 -0
- package/.cache/typescript/5.6/node_modules/types-registry/README.md +2 -0
- package/.cache/typescript/5.6/node_modules/types-registry/index.json +1 -0
- package/.cache/typescript/5.6/node_modules/types-registry/package.json +20 -0
- package/.cache/typescript/5.6/node_modules/undici-types/LICENSE +21 -0
- package/.cache/typescript/5.6/node_modules/undici-types/README.md +6 -0
- package/.cache/typescript/5.6/node_modules/undici-types/agent.d.ts +31 -0
- package/.cache/typescript/5.6/node_modules/undici-types/api.d.ts +43 -0
- package/.cache/typescript/5.6/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/.cache/typescript/5.6/node_modules/undici-types/cache.d.ts +36 -0
- package/.cache/typescript/5.6/node_modules/undici-types/client.d.ts +108 -0
- package/.cache/typescript/5.6/node_modules/undici-types/connector.d.ts +34 -0
- package/.cache/typescript/5.6/node_modules/undici-types/content-type.d.ts +21 -0
- package/.cache/typescript/5.6/node_modules/undici-types/cookies.d.ts +28 -0
- package/.cache/typescript/5.6/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/.cache/typescript/5.6/node_modules/undici-types/dispatcher.d.ts +255 -0
- package/.cache/typescript/5.6/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/.cache/typescript/5.6/node_modules/undici-types/errors.d.ts +149 -0
- package/.cache/typescript/5.6/node_modules/undici-types/eventsource.d.ts +61 -0
- package/.cache/typescript/5.6/node_modules/undici-types/fetch.d.ts +209 -0
- package/.cache/typescript/5.6/node_modules/undici-types/file.d.ts +39 -0
- package/.cache/typescript/5.6/node_modules/undici-types/filereader.d.ts +54 -0
- package/.cache/typescript/5.6/node_modules/undici-types/formdata.d.ts +108 -0
- package/.cache/typescript/5.6/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/.cache/typescript/5.6/node_modules/undici-types/global-origin.d.ts +7 -0
- package/.cache/typescript/5.6/node_modules/undici-types/handlers.d.ts +15 -0
- package/.cache/typescript/5.6/node_modules/undici-types/header.d.ts +4 -0
- package/.cache/typescript/5.6/node_modules/undici-types/index.d.ts +71 -0
- package/.cache/typescript/5.6/node_modules/undici-types/interceptors.d.ts +17 -0
- package/.cache/typescript/5.6/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/.cache/typescript/5.6/node_modules/undici-types/mock-client.d.ts +25 -0
- package/.cache/typescript/5.6/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/.cache/typescript/5.6/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/.cache/typescript/5.6/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/.cache/typescript/5.6/node_modules/undici-types/package.json +55 -0
- package/.cache/typescript/5.6/node_modules/undici-types/patch.d.ts +33 -0
- package/.cache/typescript/5.6/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/.cache/typescript/5.6/node_modules/undici-types/pool.d.ts +39 -0
- package/.cache/typescript/5.6/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/.cache/typescript/5.6/node_modules/undici-types/readable.d.ts +60 -0
- package/.cache/typescript/5.6/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/.cache/typescript/5.6/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/.cache/typescript/5.6/node_modules/undici-types/util.d.ts +18 -0
- package/.cache/typescript/5.6/node_modules/undici-types/webidl.d.ts +222 -0
- package/.cache/typescript/5.6/node_modules/undici-types/websocket.d.ts +150 -0
- package/.cache/typescript/5.6/package-lock.json +183 -0
- package/.cache/typescript/5.6/package.json +1 -0
- package/.replit +3 -3
- package/LICENSE-MIT +21 -0
- package/README.md +176 -30
- package/index.js +452 -425
- package/package.json +39 -90
- package/replit.nix +3 -0
- package/src/addExternalModule.js +14 -5
- package/src/addUserToGroup.js +57 -21
- package/src/changeAdminStatus.js +46 -22
- package/src/changeArchivedStatus.js +26 -12
- package/src/changeAvatar.js +136 -0
- package/src/{changeAvt.js → changeAvatarV2.js} +4 -3
- package/src/changeBio.js +26 -15
- package/src/changeBlockedStatus.js +22 -9
- package/src/changeBlockedStatusMqtt.js +80 -0
- package/src/changeCover.js +73 -0
- package/src/changeGroupImage.js +55 -26
- package/src/changeName.js +79 -0
- package/src/changeNickname.js +28 -14
- package/src/changeThreadColor.js +22 -19
- package/src/changeThreadEmoji.js +25 -12
- package/src/changeUsername.js +59 -0
- package/src/createCommentPost.js +230 -0
- package/src/createNewGroup.js +36 -18
- package/src/createPoll.js +28 -17
- package/src/createPost.js +276 -0
- package/src/data/getThreadInfo.json +1 -0
- package/src/deleteMessage.js +25 -14
- package/src/deleteThread.js +26 -13
- package/src/editMessage.js +56 -50
- package/src/editMessageOld.js +67 -0
- package/src/follow.js +74 -0
- package/src/forwardAttachment.js +28 -16
- package/src/getAccess.js +112 -0
- package/src/getAvatarUser.js +78 -0
- package/src/getCurrentUserID.js +3 -3
- package/src/getEmojiUrl.js +10 -8
- package/src/getFriendsList.js +25 -15
- package/src/getMessage.js +813 -81
- package/src/getRegion.js +7 -0
- package/src/getThreadHistory.js +241 -98
- package/src/getThreadHistoryDeprecated.js +93 -0
- package/src/getThreadInfo.js +90 -287
- package/src/getThreadInfoDeprecated.js +80 -0
- package/src/getThreadList.js +215 -158
- package/src/getThreadListDeprecated.js +75 -0
- package/src/getThreadPictures.js +40 -20
- package/src/getUID.js +113 -50
- package/src/getUserID.js +18 -14
- package/src/getUserInfo.js +35 -75
- package/src/handleFriendRequest.js +25 -14
- package/src/handleMessageRequest.js +37 -21
- package/src/httpGet.js +36 -20
- package/src/httpPost.js +37 -20
- package/src/httpPostFormData.js +53 -24
- package/src/listenMqtt.js +413 -666
- package/src/listenNotification.js +85 -0
- package/src/logout.js +24 -17
- package/src/markAsDelivered.js +23 -16
- package/src/markAsRead.js +43 -28
- package/src/markAsReadAll.js +22 -15
- package/src/markAsSeen.js +29 -19
- package/src/muteThread.js +18 -13
- package/src/pinMessage.js +59 -0
- package/src/refreshFb_dtsg.js +89 -0
- package/src/removeUserFromGroup.js +48 -18
- package/src/resolvePhotoUrl.js +22 -14
- package/src/searchForThread.js +23 -13
- package/src/searchStickers.js +53 -0
- package/src/sendMessage.js +180 -122
- package/src/sendMessageMqtt.js +322 -0
- package/src/sendTypingIndicator.js +42 -21
- package/src/sendTypingIndicatorV2.js +28 -0
- package/src/setMessageReaction.js +33 -20
- package/src/setMessageReactionMqtt.js +62 -0
- package/src/setPostReaction.js +105 -95
- package/src/setProfileGuard.js +45 -0
- package/src/setStoryReaction.js +64 -0
- package/src/setTitle.js +35 -19
- package/src/shareContact.js +92 -37
- package/src/shareLink.js +6 -5
- package/src/stopListenMqtt.js +23 -0
- package/src/threadColors.js +110 -18
- package/src/unfriend.js +20 -11
- package/src/unsendMessage.js +31 -34
- package/src/uploadAttachment.js +94 -0
- package/test/test-page.js +1 -1
- package/test/test.js +1 -1
- package/utils.js +1237 -2935
- package/.cache/replit/modules/nodejs-14.res +0 -1
- package/.cache/replit/modules/web.res +0 -1
- package/.cache/typescript/5.5/package.json +0 -1
- package/.config/configstore/update-notifier-npm.json +0 -4
- package/.gitattributes +0 -2
- package/.upm/store.json +0 -1
- package/Extra/Balancer.js +0 -49
- package/Extra/Bypass/956/index.js +0 -234
- package/Extra/Bypass/test/aaaa.json +0 -170
- package/Extra/Bypass/test/index.js +0 -188
- package/Extra/Database/index.js +0 -469
- package/Extra/ExtraAddons.js +0 -82
- package/Extra/ExtraFindUID.js +0 -62
- package/Extra/ExtraGetThread.js +0 -365
- package/Extra/ExtraScreenShot.js +0 -430
- package/Extra/ExtraUptimeRobot.js +0 -38
- package/Extra/Html/Classic/script.js +0 -119
- package/Extra/Html/Classic/style.css +0 -8
- package/Extra/Security/Base/Step_1.js +0 -6
- package/Extra/Security/Base/Step_2.js +0 -22
- package/Extra/Security/Base/Step_3.js +0 -22
- package/Extra/Security/Base/index.js +0 -191
- package/Extra/Security/Index.js +0 -5
- package/Extra/Security/Step_1.js +0 -6
- package/Extra/Security/Step_2.js +0 -22
- package/Extra/Security/Step_3.js +0 -22
- package/Extra/Src/Change_Environment.js +0 -24
- package/Extra/Src/Check_Update.js +0 -67
- package/Extra/Src/History.js +0 -115
- package/Extra/Src/Instant_Update.js +0 -65
- package/Extra/Src/Last-Run.js +0 -65
- package/Extra/Src/Premium.js +0 -81
- package/Extra/Src/Release_Memory.js +0 -160
- package/Extra/Src/Websocket.js +0 -213
- package/Extra/Src/image/checkmate.jpg +0 -0
- package/Extra/Src/test.js +0 -28
- package/Extra/Src/uuid.js +0 -137
- package/Func/AcceptAgreement.js +0 -31
- package/Func/ClearCache.js +0 -64
- package/Func/ReportV1.js +0 -54
- package/LICENSE +0 -678
- package/Language/index.json +0 -228
- package/Main.js +0 -1444
- package/SECURITY.md +0 -18
- package/broadcast.js +0 -44
- package/logger.js +0 -66
- package/src/Dev_Horizon_Data.js +0 -125
- package/src/Dev_getThreadInfoOLD.js +0 -422
- package/src/Dev_shareTest2.js +0 -68
- package/src/Dev_shareTest3.js +0 -71
- package/src/Premium.js +0 -25
- package/src/Screenshot.js +0 -83
- package/src/getAccessToken.js +0 -28
- package/src/getThreadInfoOLD.js +0 -422
- package/src/getThreadMain.js +0 -220
- package/src/getUserInfoMain.js +0 -65
- package/src/getUserInfoV2.js +0 -32
- package/src/getUserInfoV3.js +0 -63
- package/src/getUserInfoV4.js +0 -55
- package/src/getUserInfoV5.js +0 -61
- package/src/listenMqttV1.js +0 -846
- package/src/sendMqttMessage.js +0 -71
- package/src/unsendMqttMessage.js +0 -66
- package/test/Database_Test.js +0 -4
- package/test/Db2.js +0 -530
- package/test/Shankar_Database/A_README.md +0 -1
- package/test/Shankar_Database/Database.db +0 -0
- package/test/data/shareAttach.js +0 -146
- package/test/data/something.mov +0 -0
- package/test/data/test.png +0 -0
- package/test/data/test.txt +0 -7
- package/test/env/.env +0 -0
- package/test/example-db.db +0 -0
- package/test/memoryleak.js +0 -18
- package/test/testname.js +0 -1342
- package/test/testv2.js +0 -3
- /package/{Extra/Security/AES_256_GCM/index.js → .cache/nix/binary-cache-v6.sqlite-journal} +0 -0
@@ -0,0 +1,89 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
const utils = require("../utils");
|
4
|
+
// @NethWs3Dev
|
5
|
+
|
6
|
+
module.exports = function (defaultFuncs, api, ctx) {
|
7
|
+
/**
|
8
|
+
* Refreshes the fb_dtsg and jazoest values.
|
9
|
+
* @param {Function} callback
|
10
|
+
* @returns {Promise}
|
11
|
+
* @description if you don't update the value of fb_dtsg and jazoest for a long time an error "Please try closing and re-opening your browser window" will appear
|
12
|
+
* @description you should refresh it every 48h or less
|
13
|
+
*/
|
14
|
+
return function refreshFb_dtsg(obj, callback) {
|
15
|
+
let resolveFunc = function () {};
|
16
|
+
let rejectFunc = function () {};
|
17
|
+
const returnPromise = new Promise(function (resolve, reject) {
|
18
|
+
resolveFunc = resolve;
|
19
|
+
rejectFunc = reject;
|
20
|
+
});
|
21
|
+
|
22
|
+
if (
|
23
|
+
utils.getType(obj) === "Function" ||
|
24
|
+
utils.getType(obj) === "AsyncFunction"
|
25
|
+
) {
|
26
|
+
callback = obj;
|
27
|
+
obj = {};
|
28
|
+
}
|
29
|
+
|
30
|
+
if (!obj) {
|
31
|
+
obj = {};
|
32
|
+
}
|
33
|
+
|
34
|
+
if (utils.getType(obj) !== "Object") {
|
35
|
+
throw new utils.CustomError(
|
36
|
+
"the first parameter must be an object or a callback function",
|
37
|
+
);
|
38
|
+
}
|
39
|
+
|
40
|
+
if (!callback) {
|
41
|
+
callback = function (err, friendList) {
|
42
|
+
if (err) {
|
43
|
+
return rejectFunc(err);
|
44
|
+
}
|
45
|
+
resolveFunc(friendList);
|
46
|
+
};
|
47
|
+
}
|
48
|
+
|
49
|
+
if (Object.keys(obj).length == 0) {
|
50
|
+
utils
|
51
|
+
.get("https://m.facebook.com/", ctx.jar, null, ctx.globalOptions, {
|
52
|
+
noRef: true,
|
53
|
+
})
|
54
|
+
.then(function (resData) {
|
55
|
+
const html = resData.body;
|
56
|
+
const fb_dtsg = utils.getFrom(html, 'name="fb_dtsg" value="', '"');
|
57
|
+
const jazoest = utils.getFrom(html, 'name="jazoest" value="', '"');
|
58
|
+
if (!fb_dtsg) {
|
59
|
+
throw new utils.CustomError(
|
60
|
+
"Could not find fb_dtsg in HTML after requesting https://www.facebook.com/",
|
61
|
+
);
|
62
|
+
}
|
63
|
+
ctx.fb_dtsg = fb_dtsg;
|
64
|
+
ctx.jazoest = jazoest;
|
65
|
+
callback(null, {
|
66
|
+
data: {
|
67
|
+
fb_dtsg: fb_dtsg,
|
68
|
+
jazoest: jazoest,
|
69
|
+
},
|
70
|
+
message: "refreshed fb_dtsg and jazoest",
|
71
|
+
});
|
72
|
+
})
|
73
|
+
.catch(function (err) {
|
74
|
+
console.error("refreshFb_dtsg", err);
|
75
|
+
return callback(err);
|
76
|
+
});
|
77
|
+
} else {
|
78
|
+
Object.keys(obj).forEach(function (key) {
|
79
|
+
ctx[key] = obj[key];
|
80
|
+
});
|
81
|
+
callback(null, {
|
82
|
+
data: obj,
|
83
|
+
message: "refreshed " + Object.keys(obj).join(", "),
|
84
|
+
});
|
85
|
+
}
|
86
|
+
|
87
|
+
return returnPromise;
|
88
|
+
};
|
89
|
+
};
|
@@ -1,46 +1,76 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
const utils = require("../utils");
|
4
|
+
// @NethWs3Dev
|
5
5
|
|
6
6
|
module.exports = function (defaultFuncs, api, ctx) {
|
7
7
|
return function removeUserFromGroup(userID, threadID, callback) {
|
8
|
-
if (
|
9
|
-
|
10
|
-
|
8
|
+
if (
|
9
|
+
!callback &&
|
10
|
+
(utils.getType(threadID) === "Function" ||
|
11
|
+
utils.getType(threadID) === "AsyncFunction")
|
12
|
+
) {
|
13
|
+
throw { error: "please pass a threadID as a second argument." };
|
14
|
+
}
|
15
|
+
if (
|
16
|
+
utils.getType(threadID) !== "Number" &&
|
17
|
+
utils.getType(threadID) !== "String"
|
18
|
+
) {
|
19
|
+
throw {
|
20
|
+
error:
|
21
|
+
"threadID should be of type Number or String and not " +
|
22
|
+
utils.getType(threadID) +
|
23
|
+
".",
|
24
|
+
};
|
25
|
+
}
|
26
|
+
if (
|
27
|
+
utils.getType(userID) !== "Number" &&
|
28
|
+
utils.getType(userID) !== "String"
|
29
|
+
) {
|
30
|
+
throw {
|
31
|
+
error:
|
32
|
+
"userID should be of type Number or String and not " +
|
33
|
+
utils.getType(userID) +
|
34
|
+
".",
|
35
|
+
};
|
36
|
+
}
|
11
37
|
|
12
|
-
|
13
|
-
|
14
|
-
|
38
|
+
let resolveFunc = function () {};
|
39
|
+
let rejectFunc = function () {};
|
40
|
+
const returnPromise = new Promise(function (resolve, reject) {
|
15
41
|
resolveFunc = resolve;
|
16
42
|
rejectFunc = reject;
|
17
43
|
});
|
18
44
|
|
19
45
|
if (!callback) {
|
20
|
-
callback = function (err,
|
21
|
-
if (err)
|
22
|
-
|
23
|
-
|
46
|
+
callback = function (err, friendList) {
|
47
|
+
if (err) {
|
48
|
+
return rejectFunc(err);
|
49
|
+
}
|
50
|
+
resolveFunc(friendList);
|
24
51
|
};
|
25
52
|
}
|
26
53
|
|
27
|
-
|
54
|
+
const form = {
|
28
55
|
uid: userID,
|
29
|
-
tid: threadID
|
56
|
+
tid: threadID,
|
30
57
|
};
|
31
58
|
|
32
59
|
defaultFuncs
|
33
60
|
.post("https://www.facebook.com/chat/remove_participants", ctx.jar, form)
|
34
61
|
.then(utils.parseAndCheckLogin(ctx, defaultFuncs))
|
35
62
|
.then(function (resData) {
|
36
|
-
if (!resData)
|
37
|
-
|
38
|
-
|
63
|
+
if (!resData) {
|
64
|
+
throw { error: "Remove from group failed." };
|
65
|
+
}
|
66
|
+
if (resData.error) {
|
67
|
+
throw resData;
|
68
|
+
}
|
39
69
|
|
40
70
|
return callback();
|
41
71
|
})
|
42
72
|
.catch(function (err) {
|
43
|
-
|
73
|
+
console.error("removeUserFromGroup", err);
|
44
74
|
return callback(err);
|
45
75
|
});
|
46
76
|
|
package/src/resolvePhotoUrl.js
CHANGED
@@ -1,34 +1,42 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
const utils = require("../utils");
|
4
|
+
// @NethWs3Dev
|
5
5
|
|
6
6
|
module.exports = function (defaultFuncs, api, ctx) {
|
7
7
|
return function resolvePhotoUrl(photoID, callback) {
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
let resolveFunc = function () {};
|
9
|
+
let rejectFunc = function () {};
|
10
|
+
const returnPromise = new Promise(function (resolve, reject) {
|
11
11
|
resolveFunc = resolve;
|
12
12
|
rejectFunc = reject;
|
13
13
|
});
|
14
14
|
|
15
15
|
if (!callback) {
|
16
|
-
callback = function (err,
|
17
|
-
if (err)
|
18
|
-
|
16
|
+
callback = function (err, friendList) {
|
17
|
+
if (err) {
|
18
|
+
return rejectFunc(err);
|
19
|
+
}
|
20
|
+
resolveFunc(friendList);
|
19
21
|
};
|
20
22
|
}
|
21
23
|
|
22
24
|
defaultFuncs
|
23
|
-
.get("https://www.facebook.com/mercury/attachments/photo", ctx.jar, {
|
25
|
+
.get("https://www.facebook.com/mercury/attachments/photo", ctx.jar, {
|
26
|
+
photo_id: photoID,
|
27
|
+
})
|
24
28
|
.then(utils.parseAndCheckLogin(ctx, defaultFuncs))
|
25
|
-
.then(resData => {
|
26
|
-
if (resData.error)
|
27
|
-
|
29
|
+
.then((resData) => {
|
30
|
+
if (resData.error) {
|
31
|
+
throw resData;
|
32
|
+
}
|
33
|
+
|
34
|
+
const photoUrl = resData.jsmods.require[0][3][0];
|
35
|
+
|
28
36
|
return callback(null, photoUrl);
|
29
37
|
})
|
30
|
-
.catch(err => {
|
31
|
-
|
38
|
+
.catch((err) => {
|
39
|
+
console.error("resolvePhotoUrl", err);
|
32
40
|
return callback(err);
|
33
41
|
});
|
34
42
|
|
package/src/searchForThread.js
CHANGED
@@ -1,40 +1,50 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
|
3
|
+
const utils = require("../utils");
|
4
4
|
|
5
5
|
module.exports = function (defaultFuncs, api, ctx) {
|
6
6
|
return function searchForThread(name, callback) {
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
let resolveFunc = function () {};
|
8
|
+
let rejectFunc = function () {};
|
9
|
+
const returnPromise = new Promise(function (resolve, reject) {
|
10
10
|
resolveFunc = resolve;
|
11
11
|
rejectFunc = reject;
|
12
12
|
});
|
13
13
|
|
14
14
|
if (!callback) {
|
15
|
-
callback = function (err,
|
16
|
-
if (err)
|
17
|
-
|
15
|
+
callback = function (err, friendList) {
|
16
|
+
if (err) {
|
17
|
+
return rejectFunc(err);
|
18
|
+
}
|
19
|
+
resolveFunc(friendList);
|
18
20
|
};
|
19
21
|
}
|
20
22
|
|
21
|
-
|
23
|
+
const tmpForm = {
|
22
24
|
client: "web_messenger",
|
23
25
|
query: name,
|
24
26
|
offset: 0,
|
25
27
|
limit: 21,
|
26
|
-
index: "fbid"
|
28
|
+
index: "fbid",
|
27
29
|
};
|
28
30
|
|
29
31
|
defaultFuncs
|
30
|
-
.post(
|
32
|
+
.post(
|
33
|
+
"https://www.facebook.com/ajax/mercury/search_threads.php",
|
34
|
+
ctx.jar,
|
35
|
+
tmpForm,
|
36
|
+
)
|
31
37
|
.then(utils.parseAndCheckLogin(ctx, defaultFuncs))
|
32
38
|
.then(function (resData) {
|
33
|
-
if (resData.error)
|
34
|
-
|
39
|
+
if (resData.error) {
|
40
|
+
throw resData;
|
41
|
+
}
|
42
|
+
if (!resData.payload.mercury_payload.threads) {
|
43
|
+
return callback({ error: "Could not find thread `" + name + "`." });
|
44
|
+
}
|
35
45
|
return callback(
|
36
46
|
null,
|
37
|
-
resData.payload.mercury_payload.threads.map(utils.formatThread)
|
47
|
+
resData.payload.mercury_payload.threads.map(utils.formatThread),
|
38
48
|
);
|
39
49
|
});
|
40
50
|
|
@@ -0,0 +1,53 @@
|
|
1
|
+
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
var utils = require('../utils.js');
|
5
|
+
var log = require('npmlog');
|
6
|
+
|
7
|
+
module.exports = function (http, api, ctx) {
|
8
|
+
function formatData(res) {
|
9
|
+
return {
|
10
|
+
id: res.node.id,
|
11
|
+
image: res.node.image,
|
12
|
+
package: res.node.pack != null ? {
|
13
|
+
name: res.node.pack.name,
|
14
|
+
id: res.node.pack.id
|
15
|
+
} : {},
|
16
|
+
label: res.node.label
|
17
|
+
};
|
18
|
+
}
|
19
|
+
|
20
|
+
return function searchStickers(query = '', callback) {
|
21
|
+
var cb;
|
22
|
+
var returnPromise = new Promise(function (resolve, reject) {
|
23
|
+
cb = function (error, data) {
|
24
|
+
data ? resolve(data) : reject(error);
|
25
|
+
}
|
26
|
+
});
|
27
|
+
|
28
|
+
if (typeof callback == 'function') cb = callback;
|
29
|
+
|
30
|
+
var form = {
|
31
|
+
fb_api_req_friendly_name: 'StickersFlyoutTagSelectorQuery',
|
32
|
+
variables: JSON.stringify({
|
33
|
+
stickerWidth: 64,
|
34
|
+
stickerHeight: 64,
|
35
|
+
stickerInterface: 'messages',
|
36
|
+
query
|
37
|
+
}),
|
38
|
+
doc_id: '4642836929159953'
|
39
|
+
}
|
40
|
+
http
|
41
|
+
.post('https://www.facebook.com/api/graphql/', ctx.jar, form)
|
42
|
+
.then(utils.parseAndCheckLogin(ctx, http))
|
43
|
+
.then(function (res) {
|
44
|
+
return cb(null, res.data.sticker_search.sticker_results.edges.map(formatData));
|
45
|
+
})
|
46
|
+
.catch(function (err) {
|
47
|
+
console.error('searchStickers', err);
|
48
|
+
return cb(err);
|
49
|
+
});
|
50
|
+
return returnPromise;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|