fca-smart-shankar 12.0.0 → 13.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.
Files changed (285) hide show
  1. package/.replit +12 -3
  2. package/.upm/store.json +1 -0
  3. package/CHANGELOG.md +2 -0
  4. package/README.md +0 -1
  5. package/generated-icon.png +0 -0
  6. package/index.js +507 -437
  7. package/package.json +378 -42
  8. package/replit.nix +3 -1
  9. package/shankar-fca.json +4 -0
  10. package/src/addUserToGroup.js +3 -3
  11. package/src/changeAdminStatus.js +2 -2
  12. package/src/changeArchivedStatus.js +2 -2
  13. package/src/changeAvatar.js +8 -8
  14. package/src/changeAvatarV2.js +1 -1
  15. package/src/changeBio.js +4 -4
  16. package/src/changeBlockedStatus.js +2 -2
  17. package/src/changeCover.js +2 -2
  18. package/src/changeGroupImage.js +4 -4
  19. package/src/changeName.js +2 -2
  20. package/src/changeNickname.js +2 -2
  21. package/src/changeThreadColor.js +3 -3
  22. package/src/changeThreadEmoji.js +2 -2
  23. package/src/changeUsername.js +3 -3
  24. package/src/createCommentPost.js +5 -5
  25. package/src/createNewGroup.js +5 -5
  26. package/src/createPoll.js +2 -2
  27. package/src/createPost.js +6 -5
  28. package/src/deleteMessage.js +2 -2
  29. package/src/deleteThread.js +2 -2
  30. package/src/editMessage.js +30 -18
  31. package/src/follow.js +8 -8
  32. package/src/forwardAttachment.js +2 -2
  33. package/src/getAccess.js +2 -2
  34. package/src/getAvatarUser.js +2 -2
  35. package/src/getCurrentUserID.js +4 -4
  36. package/src/getFriendsList.js +3 -3
  37. package/src/getMessage.js +2 -2
  38. package/src/getThreadHistory.js +2 -2
  39. package/src/getThreadHistoryDeprecated.js +2 -2
  40. package/src/getThreadInfo.js +1 -1
  41. package/src/getThreadInfoDeprecated.js +2 -2
  42. package/src/getThreadList.js +3 -3
  43. package/src/getThreadListDeprecated.js +3 -3
  44. package/src/getThreadPictures.js +2 -2
  45. package/src/getUID.js +4 -4
  46. package/src/getUserID.js +3 -3
  47. package/src/getUserInfo.js +52 -18
  48. package/src/handleFriendRequest.js +5 -5
  49. package/src/handleMessageRequest.js +2 -2
  50. package/src/httpGet.js +3 -3
  51. package/src/httpPost.js +3 -3
  52. package/src/httpPostFormData.js +3 -3
  53. package/src/listenMqtt.js +648 -659
  54. package/src/listenNotification.js +1 -1
  55. package/src/logout.js +3 -3
  56. package/src/markAsDelivered.js +5 -2
  57. package/src/markAsRead.js +5 -2
  58. package/src/markAsReadAll.js +2 -2
  59. package/src/markAsSeen.js +2 -2
  60. package/src/muteThread.js +2 -2
  61. package/src/refreshFb_dtsg.js +3 -3
  62. package/src/removeUserFromGroup.js +2 -2
  63. package/src/resolvePhotoUrl.js +2 -2
  64. package/src/searchStickers.js +1 -1
  65. package/src/sendMessage.js +11 -8
  66. package/src/sendMessageMqtt.js +4 -4
  67. package/src/sendTypingIndicator.js +14 -5
  68. package/src/sendTypingIndicatorV2.js +1 -1
  69. package/src/setMessageReaction.js +3 -3
  70. package/src/setPostReaction.js +4 -4
  71. package/src/setProfileGuard.js +3 -3
  72. package/src/setStoryReaction.js +1 -1
  73. package/src/setTitle.js +3 -3
  74. package/src/shareContact.js +1 -1
  75. package/src/shareLink.js +1 -1
  76. package/src/stopListenMqtt.js +5 -2
  77. package/src/unfriend.js +2 -2
  78. package/src/unsendMessage.js +2 -2
  79. package/src/uploadAttachment.js +2 -2
  80. package/test/data/shareAttach.js +146 -0
  81. package/test/data/something.mov +0 -0
  82. package/test/data/test.png +0 -0
  83. package/test/data/test.txt +7 -0
  84. package/test/test-page.js +1 -1
  85. package/utils.js +564 -391
  86. package/.cache/nix/binary-cache-v6.sqlite +0 -0
  87. package/.cache/nix/binary-cache-v6.sqlite-journal +0 -0
  88. package/.cache/replit/env/latest +0 -125
  89. package/.cache/replit/env/latest.json +0 -1
  90. package/.cache/replit/modules/nix.res +0 -1
  91. package/.cache/replit/modules/nodejs-20.res +0 -1
  92. package/.cache/replit/modules/replit.res +0 -1
  93. package/.cache/replit/modules.stamp +0 -0
  94. package/.cache/replit/nix/env.json +0 -1
  95. package/.cache/typescript/5.6/node_modules/.package-lock.json +0 -171
  96. package/.cache/typescript/5.6/node_modules/@types/bluebird/LICENSE +0 -21
  97. package/.cache/typescript/5.6/node_modules/@types/bluebird/README.md +0 -15
  98. package/.cache/typescript/5.6/node_modules/@types/bluebird/index.d.ts +0 -1365
  99. package/.cache/typescript/5.6/node_modules/@types/bluebird/package.json +0 -25
  100. package/.cache/typescript/5.6/node_modules/@types/caseless/LICENSE +0 -21
  101. package/.cache/typescript/5.6/node_modules/@types/caseless/README.md +0 -48
  102. package/.cache/typescript/5.6/node_modules/@types/caseless/index.d.ts +0 -29
  103. package/.cache/typescript/5.6/node_modules/@types/caseless/package.json +0 -35
  104. package/.cache/typescript/5.6/node_modules/@types/cheerio/LICENSE +0 -21
  105. package/.cache/typescript/5.6/node_modules/@types/cheerio/README.md +0 -15
  106. package/.cache/typescript/5.6/node_modules/@types/cheerio/index.d.ts +0 -318
  107. package/.cache/typescript/5.6/node_modules/@types/cheerio/package.json +0 -71
  108. package/.cache/typescript/5.6/node_modules/@types/mocha/LICENSE +0 -21
  109. package/.cache/typescript/5.6/node_modules/@types/mocha/README.md +0 -15
  110. package/.cache/typescript/5.6/node_modules/@types/mocha/index.d.ts +0 -2929
  111. package/.cache/typescript/5.6/node_modules/@types/mocha/package.json +0 -56
  112. package/.cache/typescript/5.6/node_modules/@types/node/LICENSE +0 -21
  113. package/.cache/typescript/5.6/node_modules/@types/node/README.md +0 -15
  114. package/.cache/typescript/5.6/node_modules/@types/node/assert/strict.d.ts +0 -8
  115. package/.cache/typescript/5.6/node_modules/@types/node/assert.d.ts +0 -1040
  116. package/.cache/typescript/5.6/node_modules/@types/node/async_hooks.d.ts +0 -541
  117. package/.cache/typescript/5.6/node_modules/@types/node/buffer.buffer.d.ts +0 -385
  118. package/.cache/typescript/5.6/node_modules/@types/node/buffer.d.ts +0 -1933
  119. package/.cache/typescript/5.6/node_modules/@types/node/child_process.d.ts +0 -1549
  120. package/.cache/typescript/5.6/node_modules/@types/node/cluster.d.ts +0 -579
  121. package/.cache/typescript/5.6/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  122. package/.cache/typescript/5.6/node_modules/@types/node/compatibility/index.d.ts +0 -9
  123. package/.cache/typescript/5.6/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  124. package/.cache/typescript/5.6/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  125. package/.cache/typescript/5.6/node_modules/@types/node/console.d.ts +0 -452
  126. package/.cache/typescript/5.6/node_modules/@types/node/constants.d.ts +0 -19
  127. package/.cache/typescript/5.6/node_modules/@types/node/crypto.d.ts +0 -4475
  128. package/.cache/typescript/5.6/node_modules/@types/node/dgram.d.ts +0 -596
  129. package/.cache/typescript/5.6/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  130. package/.cache/typescript/5.6/node_modules/@types/node/dns/promises.d.ts +0 -476
  131. package/.cache/typescript/5.6/node_modules/@types/node/dns.d.ts +0 -865
  132. package/.cache/typescript/5.6/node_modules/@types/node/dom-events.d.ts +0 -124
  133. package/.cache/typescript/5.6/node_modules/@types/node/domain.d.ts +0 -170
  134. package/.cache/typescript/5.6/node_modules/@types/node/events.d.ts +0 -931
  135. package/.cache/typescript/5.6/node_modules/@types/node/fs/promises.d.ts +0 -1275
  136. package/.cache/typescript/5.6/node_modules/@types/node/fs.d.ts +0 -4396
  137. package/.cache/typescript/5.6/node_modules/@types/node/globals.d.ts +0 -566
  138. package/.cache/typescript/5.6/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  139. package/.cache/typescript/5.6/node_modules/@types/node/http.d.ts +0 -1958
  140. package/.cache/typescript/5.6/node_modules/@types/node/http2.d.ts +0 -2558
  141. package/.cache/typescript/5.6/node_modules/@types/node/https.d.ts +0 -543
  142. package/.cache/typescript/5.6/node_modules/@types/node/index.d.ts +0 -92
  143. package/.cache/typescript/5.6/node_modules/@types/node/inspector.d.ts +0 -3966
  144. package/.cache/typescript/5.6/node_modules/@types/node/module.d.ts +0 -402
  145. package/.cache/typescript/5.6/node_modules/@types/node/net.d.ts +0 -1001
  146. package/.cache/typescript/5.6/node_modules/@types/node/os.d.ts +0 -495
  147. package/.cache/typescript/5.6/node_modules/@types/node/package.json +0 -220
  148. package/.cache/typescript/5.6/node_modules/@types/node/path.d.ts +0 -200
  149. package/.cache/typescript/5.6/node_modules/@types/node/perf_hooks.d.ts +0 -965
  150. package/.cache/typescript/5.6/node_modules/@types/node/process.d.ts +0 -1963
  151. package/.cache/typescript/5.6/node_modules/@types/node/punycode.d.ts +0 -117
  152. package/.cache/typescript/5.6/node_modules/@types/node/querystring.d.ts +0 -153
  153. package/.cache/typescript/5.6/node_modules/@types/node/readline/promises.d.ts +0 -162
  154. package/.cache/typescript/5.6/node_modules/@types/node/readline.d.ts +0 -589
  155. package/.cache/typescript/5.6/node_modules/@types/node/repl.d.ts +0 -430
  156. package/.cache/typescript/5.6/node_modules/@types/node/sea.d.ts +0 -153
  157. package/.cache/typescript/5.6/node_modules/@types/node/sqlite.d.ts +0 -213
  158. package/.cache/typescript/5.6/node_modules/@types/node/stream/consumers.d.ts +0 -12
  159. package/.cache/typescript/5.6/node_modules/@types/node/stream/promises.d.ts +0 -90
  160. package/.cache/typescript/5.6/node_modules/@types/node/stream/web.d.ts +0 -609
  161. package/.cache/typescript/5.6/node_modules/@types/node/stream.d.ts +0 -1726
  162. package/.cache/typescript/5.6/node_modules/@types/node/string_decoder.d.ts +0 -67
  163. package/.cache/typescript/5.6/node_modules/@types/node/test.d.ts +0 -2248
  164. package/.cache/typescript/5.6/node_modules/@types/node/timers/promises.d.ts +0 -97
  165. package/.cache/typescript/5.6/node_modules/@types/node/timers.d.ts +0 -240
  166. package/.cache/typescript/5.6/node_modules/@types/node/tls.d.ts +0 -1226
  167. package/.cache/typescript/5.6/node_modules/@types/node/trace_events.d.ts +0 -197
  168. package/.cache/typescript/5.6/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -385
  169. package/.cache/typescript/5.6/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  170. package/.cache/typescript/5.6/node_modules/@types/node/ts5.6/index.d.ts +0 -92
  171. package/.cache/typescript/5.6/node_modules/@types/node/tty.d.ts +0 -208
  172. package/.cache/typescript/5.6/node_modules/@types/node/url.d.ts +0 -972
  173. package/.cache/typescript/5.6/node_modules/@types/node/util.d.ts +0 -2371
  174. package/.cache/typescript/5.6/node_modules/@types/node/v8.d.ts +0 -808
  175. package/.cache/typescript/5.6/node_modules/@types/node/vm.d.ts +0 -976
  176. package/.cache/typescript/5.6/node_modules/@types/node/wasi.d.ts +0 -181
  177. package/.cache/typescript/5.6/node_modules/@types/node/worker_threads.d.ts +0 -745
  178. package/.cache/typescript/5.6/node_modules/@types/node/zlib.d.ts +0 -539
  179. package/.cache/typescript/5.6/node_modules/@types/request/LICENSE +0 -21
  180. package/.cache/typescript/5.6/node_modules/@types/request/README.md +0 -15
  181. package/.cache/typescript/5.6/node_modules/@types/request/index.d.ts +0 -395
  182. package/.cache/typescript/5.6/node_modules/@types/request/package.json +0 -70
  183. package/.cache/typescript/5.6/node_modules/@types/tough-cookie/LICENSE +0 -21
  184. package/.cache/typescript/5.6/node_modules/@types/tough-cookie/README.md +0 -15
  185. package/.cache/typescript/5.6/node_modules/@types/tough-cookie/index.d.ts +0 -321
  186. package/.cache/typescript/5.6/node_modules/@types/tough-cookie/package.json +0 -35
  187. package/.cache/typescript/5.6/node_modules/asynckit/LICENSE +0 -21
  188. package/.cache/typescript/5.6/node_modules/asynckit/README.md +0 -233
  189. package/.cache/typescript/5.6/node_modules/asynckit/bench.js +0 -76
  190. package/.cache/typescript/5.6/node_modules/asynckit/index.js +0 -6
  191. package/.cache/typescript/5.6/node_modules/asynckit/lib/abort.js +0 -29
  192. package/.cache/typescript/5.6/node_modules/asynckit/lib/async.js +0 -34
  193. package/.cache/typescript/5.6/node_modules/asynckit/lib/defer.js +0 -26
  194. package/.cache/typescript/5.6/node_modules/asynckit/lib/iterate.js +0 -75
  195. package/.cache/typescript/5.6/node_modules/asynckit/lib/readable_asynckit.js +0 -91
  196. package/.cache/typescript/5.6/node_modules/asynckit/lib/readable_parallel.js +0 -25
  197. package/.cache/typescript/5.6/node_modules/asynckit/lib/readable_serial.js +0 -25
  198. package/.cache/typescript/5.6/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
  199. package/.cache/typescript/5.6/node_modules/asynckit/lib/state.js +0 -37
  200. package/.cache/typescript/5.6/node_modules/asynckit/lib/streamify.js +0 -141
  201. package/.cache/typescript/5.6/node_modules/asynckit/lib/terminator.js +0 -29
  202. package/.cache/typescript/5.6/node_modules/asynckit/package.json +0 -63
  203. package/.cache/typescript/5.6/node_modules/asynckit/parallel.js +0 -43
  204. package/.cache/typescript/5.6/node_modules/asynckit/serial.js +0 -17
  205. package/.cache/typescript/5.6/node_modules/asynckit/serialOrdered.js +0 -75
  206. package/.cache/typescript/5.6/node_modules/asynckit/stream.js +0 -21
  207. package/.cache/typescript/5.6/node_modules/combined-stream/License +0 -19
  208. package/.cache/typescript/5.6/node_modules/combined-stream/Readme.md +0 -138
  209. package/.cache/typescript/5.6/node_modules/combined-stream/lib/combined_stream.js +0 -208
  210. package/.cache/typescript/5.6/node_modules/combined-stream/package.json +0 -25
  211. package/.cache/typescript/5.6/node_modules/combined-stream/yarn.lock +0 -17
  212. package/.cache/typescript/5.6/node_modules/delayed-stream/License +0 -19
  213. package/.cache/typescript/5.6/node_modules/delayed-stream/Makefile +0 -7
  214. package/.cache/typescript/5.6/node_modules/delayed-stream/Readme.md +0 -141
  215. package/.cache/typescript/5.6/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
  216. package/.cache/typescript/5.6/node_modules/delayed-stream/package.json +0 -27
  217. package/.cache/typescript/5.6/node_modules/form-data/License +0 -19
  218. package/.cache/typescript/5.6/node_modules/form-data/Readme.md +0 -350
  219. package/.cache/typescript/5.6/node_modules/form-data/index.d.ts +0 -51
  220. package/.cache/typescript/5.6/node_modules/form-data/lib/browser.js +0 -2
  221. package/.cache/typescript/5.6/node_modules/form-data/lib/form_data.js +0 -484
  222. package/.cache/typescript/5.6/node_modules/form-data/lib/populate.js +0 -10
  223. package/.cache/typescript/5.6/node_modules/form-data/package.json +0 -72
  224. package/.cache/typescript/5.6/node_modules/mime-db/HISTORY.md +0 -507
  225. package/.cache/typescript/5.6/node_modules/mime-db/LICENSE +0 -23
  226. package/.cache/typescript/5.6/node_modules/mime-db/README.md +0 -100
  227. package/.cache/typescript/5.6/node_modules/mime-db/db.json +0 -8519
  228. package/.cache/typescript/5.6/node_modules/mime-db/index.js +0 -12
  229. package/.cache/typescript/5.6/node_modules/mime-db/package.json +0 -60
  230. package/.cache/typescript/5.6/node_modules/mime-types/HISTORY.md +0 -397
  231. package/.cache/typescript/5.6/node_modules/mime-types/LICENSE +0 -23
  232. package/.cache/typescript/5.6/node_modules/mime-types/README.md +0 -113
  233. package/.cache/typescript/5.6/node_modules/mime-types/index.js +0 -188
  234. package/.cache/typescript/5.6/node_modules/mime-types/package.json +0 -44
  235. package/.cache/typescript/5.6/node_modules/safe-buffer/LICENSE +0 -21
  236. package/.cache/typescript/5.6/node_modules/safe-buffer/README.md +0 -584
  237. package/.cache/typescript/5.6/node_modules/safe-buffer/index.d.ts +0 -187
  238. package/.cache/typescript/5.6/node_modules/safe-buffer/index.js +0 -65
  239. package/.cache/typescript/5.6/node_modules/safe-buffer/package.json +0 -51
  240. package/.cache/typescript/5.6/node_modules/types-registry/README.md +0 -2
  241. package/.cache/typescript/5.6/node_modules/types-registry/index.json +0 -1
  242. package/.cache/typescript/5.6/node_modules/types-registry/package.json +0 -20
  243. package/.cache/typescript/5.6/node_modules/undici-types/LICENSE +0 -21
  244. package/.cache/typescript/5.6/node_modules/undici-types/README.md +0 -6
  245. package/.cache/typescript/5.6/node_modules/undici-types/agent.d.ts +0 -31
  246. package/.cache/typescript/5.6/node_modules/undici-types/api.d.ts +0 -43
  247. package/.cache/typescript/5.6/node_modules/undici-types/balanced-pool.d.ts +0 -29
  248. package/.cache/typescript/5.6/node_modules/undici-types/cache.d.ts +0 -36
  249. package/.cache/typescript/5.6/node_modules/undici-types/client.d.ts +0 -108
  250. package/.cache/typescript/5.6/node_modules/undici-types/connector.d.ts +0 -34
  251. package/.cache/typescript/5.6/node_modules/undici-types/content-type.d.ts +0 -21
  252. package/.cache/typescript/5.6/node_modules/undici-types/cookies.d.ts +0 -28
  253. package/.cache/typescript/5.6/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  254. package/.cache/typescript/5.6/node_modules/undici-types/dispatcher.d.ts +0 -255
  255. package/.cache/typescript/5.6/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  256. package/.cache/typescript/5.6/node_modules/undici-types/errors.d.ts +0 -149
  257. package/.cache/typescript/5.6/node_modules/undici-types/eventsource.d.ts +0 -61
  258. package/.cache/typescript/5.6/node_modules/undici-types/fetch.d.ts +0 -209
  259. package/.cache/typescript/5.6/node_modules/undici-types/file.d.ts +0 -39
  260. package/.cache/typescript/5.6/node_modules/undici-types/filereader.d.ts +0 -54
  261. package/.cache/typescript/5.6/node_modules/undici-types/formdata.d.ts +0 -108
  262. package/.cache/typescript/5.6/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  263. package/.cache/typescript/5.6/node_modules/undici-types/global-origin.d.ts +0 -7
  264. package/.cache/typescript/5.6/node_modules/undici-types/handlers.d.ts +0 -15
  265. package/.cache/typescript/5.6/node_modules/undici-types/header.d.ts +0 -4
  266. package/.cache/typescript/5.6/node_modules/undici-types/index.d.ts +0 -71
  267. package/.cache/typescript/5.6/node_modules/undici-types/interceptors.d.ts +0 -17
  268. package/.cache/typescript/5.6/node_modules/undici-types/mock-agent.d.ts +0 -50
  269. package/.cache/typescript/5.6/node_modules/undici-types/mock-client.d.ts +0 -25
  270. package/.cache/typescript/5.6/node_modules/undici-types/mock-errors.d.ts +0 -12
  271. package/.cache/typescript/5.6/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  272. package/.cache/typescript/5.6/node_modules/undici-types/mock-pool.d.ts +0 -25
  273. package/.cache/typescript/5.6/node_modules/undici-types/package.json +0 -55
  274. package/.cache/typescript/5.6/node_modules/undici-types/patch.d.ts +0 -33
  275. package/.cache/typescript/5.6/node_modules/undici-types/pool-stats.d.ts +0 -19
  276. package/.cache/typescript/5.6/node_modules/undici-types/pool.d.ts +0 -39
  277. package/.cache/typescript/5.6/node_modules/undici-types/proxy-agent.d.ts +0 -28
  278. package/.cache/typescript/5.6/node_modules/undici-types/readable.d.ts +0 -60
  279. package/.cache/typescript/5.6/node_modules/undici-types/retry-agent.d.ts +0 -8
  280. package/.cache/typescript/5.6/node_modules/undici-types/retry-handler.d.ts +0 -116
  281. package/.cache/typescript/5.6/node_modules/undici-types/util.d.ts +0 -18
  282. package/.cache/typescript/5.6/node_modules/undici-types/webidl.d.ts +0 -222
  283. package/.cache/typescript/5.6/node_modules/undici-types/websocket.d.ts +0 -150
  284. package/.cache/typescript/5.6/package-lock.json +0 -183
  285. package/.cache/typescript/5.6/package.json +0 -1
package/package.json CHANGED
@@ -1,44 +1,380 @@
1
1
  {
2
- "name": "fca-smart-shankar",
3
- "version": "12.0.0",
4
- "description": "The most advanced next-generation Facebook Chat API (FCA) by SMART SHANKAR",
5
- "main": "index.js",
6
- "scripts": {
7
- "start": "node index.js"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/SHANKAR-PROJECT/fca-smart-shankar"
12
- },
13
- "author": "SMART SHANKAR",
14
- "license": "MIT",
15
- "bugs": {
16
- "url": ""
17
- },
18
- "homepage": "",
19
- "keywords": [
20
- "facebook",
21
- "chat",
22
- "api",
23
- "fca",
24
- "fca-smart-shankar",
25
- "fca-shankar-bot"
26
- ],
27
- "dependencies": {
28
- "axios": "^1.6.5",
29
- "bluebird": "^3.7.2",
30
- "cheerio": "^0.22.0",
31
- "https-proxy-agent": "^4.0.0",
32
- "mqtt": "^3.0.0",
33
- "request": "^2.88.2",
34
- "websocket-stream": "^5.5.0"
35
- },
36
- "devDependencies": {
37
- "eslint": "^7.5.0",
38
- "mocha": "^7.0.1",
39
- "prettier": "^1.11.1"
40
- },
41
- "engines": {
42
- "node": ">=10.x"
43
- }
2
+ "name": "fca-smart-shankar",
3
+ "version": "13.0.0",
4
+ "description": "---",
5
+ "main": "index.js",
6
+ "directories": {
7
+ "test": "test"
8
+ },
9
+ "dependencies": {
10
+ "acorn": "^7.4.1",
11
+ "acorn-jsx": "^5.3.2",
12
+ "agent-base": "^5.1.1",
13
+ "ajv": "^6.12.6",
14
+ "ansi": "^0.3.1",
15
+ "ansi-colors": "^4.1.3",
16
+ "ansi-regex": "^5.0.1",
17
+ "ansi-styles": "^4.3.0",
18
+ "anymatch": "^3.1.3",
19
+ "are-we-there-yet": "^1.0.6",
20
+ "argparse": "^1.0.10",
21
+ "array-buffer-byte-length": "^1.0.1",
22
+ "array.prototype.reduce": "^1.0.7",
23
+ "arraybuffer.prototype.slice": "^1.0.3",
24
+ "asn1": "^0.2.6",
25
+ "assert-plus": "^1.0.0",
26
+ "astral-regex": "^2.0.0",
27
+ "async-limiter": "^1.0.1",
28
+ "asynckit": "^0.4.0",
29
+ "available-typed-arrays": "^1.0.7",
30
+ "aws-sign2": "^0.7.0",
31
+ "aws4": "^1.13.2",
32
+ "axios": "^1.7.9",
33
+ "balanced-match": "^1.0.2",
34
+ "base64-js": "^1.5.1",
35
+ "bcrypt-pbkdf": "^1.0.2",
36
+ "binary-extensions": "^2.3.0",
37
+ "bl": "^4.1.0",
38
+ "bluebird": "^3.7.2",
39
+ "boolbase": "^1.0.0",
40
+ "brace-expansion": "^1.1.11",
41
+ "braces": "^3.0.3",
42
+ "browser-stdout": "^1.3.1",
43
+ "buffer": "^5.7.1",
44
+ "buffer-from": "^1.1.2",
45
+ "call-bind": "^1.0.8",
46
+ "call-bind-apply-helpers": "^1.0.1",
47
+ "call-bound": "^1.0.2",
48
+ "callback-stream": "^1.1.0",
49
+ "callsites": "^3.1.0",
50
+ "camelcase": "^5.3.1",
51
+ "caseless": "^0.12.0",
52
+ "chalk": "^4.1.2",
53
+ "cheerio": "^0.22.0",
54
+ "chokidar": "^3.3.0",
55
+ "cliui": "^5.0.0",
56
+ "color-convert": "^2.0.1",
57
+ "color-name": "^1.1.4",
58
+ "combined-stream": "^1.0.8",
59
+ "commist": "^1.1.0",
60
+ "concat-map": "^0.0.1",
61
+ "concat-stream": "^1.6.2",
62
+ "core-util-is": "^1.0.2",
63
+ "cross-spawn": "^7.0.6",
64
+ "css-select": "^1.2.0",
65
+ "css-what": "^2.1.3",
66
+ "d": "^1.0.2",
67
+ "dashdash": "^1.14.1",
68
+ "data-view-buffer": "^1.0.1",
69
+ "data-view-byte-length": "^1.0.1",
70
+ "data-view-byte-offset": "^1.0.0",
71
+ "debug": "^4.4.0",
72
+ "decamelize": "^1.2.0",
73
+ "deep-is": "^0.1.4",
74
+ "define-data-property": "^1.1.4",
75
+ "define-properties": "^1.2.1",
76
+ "delayed-stream": "^1.0.0",
77
+ "delegates": "^1.0.0",
78
+ "diff": "^3.5.0",
79
+ "doctrine": "^3.0.0",
80
+ "dom-serializer": "^0.1.1",
81
+ "domelementtype": "^1.3.1",
82
+ "domhandler": "^2.4.2",
83
+ "domutils": "^1.5.1",
84
+ "dunder-proto": "^1.0.0",
85
+ "duplexify": "^3.7.1",
86
+ "ecc-jsbn": "^0.1.2",
87
+ "emoji-regex": "^8.0.0",
88
+ "end-of-stream": "^1.4.4",
89
+ "enquirer": "^2.4.1",
90
+ "entities": "^1.1.2",
91
+ "es-abstract": "^1.23.5",
92
+ "es-array-method-boxes-properly": "^1.0.0",
93
+ "es-define-property": "^1.0.1",
94
+ "es-errors": "^1.3.0",
95
+ "es-object-atoms": "^1.0.0",
96
+ "es-set-tostringtag": "^2.0.3",
97
+ "es-to-primitive": "^1.3.0",
98
+ "es5-ext": "^0.10.64",
99
+ "es6-iterator": "^2.0.3",
100
+ "es6-map": "^0.1.5",
101
+ "es6-set": "^0.1.6",
102
+ "es6-symbol": "^3.1.4",
103
+ "escape-string-regexp": "^4.0.0",
104
+ "eslint": "^7.32.0",
105
+ "eslint-scope": "^5.1.1",
106
+ "eslint-utils": "^2.1.0",
107
+ "eslint-visitor-keys": "^2.1.0",
108
+ "esniff": "^2.0.1",
109
+ "espree": "^7.3.1",
110
+ "esprima": "^4.0.1",
111
+ "esquery": "^1.6.0",
112
+ "esrecurse": "^4.3.0",
113
+ "estraverse": "^4.3.0",
114
+ "esutils": "^2.0.3",
115
+ "event-emitter": "^0.3.5",
116
+ "ext": "^1.7.0",
117
+ "extend": "^3.0.2",
118
+ "extsprintf": "^1.3.0",
119
+ "fast-deep-equal": "^3.1.3",
120
+ "fast-json-stable-stringify": "^2.1.0",
121
+ "fast-levenshtein": "^2.0.6",
122
+ "fast-uri": "^3.0.3",
123
+ "file-entry-cache": "^6.0.1",
124
+ "fill-range": "^7.1.1",
125
+ "find-up": "^3.0.0",
126
+ "flat": "^4.1.1",
127
+ "flat-cache": "^3.2.0",
128
+ "flatted": "^3.3.2",
129
+ "follow-redirects": "^1.15.9",
130
+ "for-each": "^0.3.3",
131
+ "forever-agent": "^0.6.1",
132
+ "form-data": "^2.3.3",
133
+ "fs.realpath": "^1.0.0",
134
+ "function-bind": "^1.1.2",
135
+ "function.prototype.name": "^1.1.6",
136
+ "functional-red-black-tree": "^1.0.1",
137
+ "functions-have-names": "^1.2.3",
138
+ "gauge": "^1.2.7",
139
+ "get-caller-file": "^2.0.5",
140
+ "get-intrinsic": "^1.2.6",
141
+ "get-symbol-description": "^1.0.2",
142
+ "getpass": "^0.1.7",
143
+ "glob": "^7.1.3",
144
+ "glob-parent": "^5.1.2",
145
+ "glob-stream": "^6.1.0",
146
+ "globals": "^13.24.0",
147
+ "globalthis": "^1.0.4",
148
+ "gopd": "^1.2.0",
149
+ "growl": "^1.10.5",
150
+ "har-schema": "^2.0.0",
151
+ "har-validator": "^5.1.5",
152
+ "has-bigints": "^1.0.2",
153
+ "has-flag": "^4.0.0",
154
+ "has-property-descriptors": "^1.0.2",
155
+ "has-proto": "^1.2.0",
156
+ "has-symbols": "^1.1.0",
157
+ "has-tostringtag": "^1.0.2",
158
+ "has-unicode": "^2.0.1",
159
+ "hasown": "^2.0.2",
160
+ "he": "^1.2.0",
161
+ "help-me": "^1.1.0",
162
+ "htmlparser2": "^3.10.1",
163
+ "http-signature": "^1.2.0",
164
+ "https-proxy-agent": "^4.0.0",
165
+ "ieee754": "^1.2.1",
166
+ "ignore": "^4.0.6",
167
+ "import-fresh": "^3.3.0",
168
+ "imurmurhash": "^0.1.4",
169
+ "inflight": "^1.0.6",
170
+ "inherits": "^2.0.4",
171
+ "internal-slot": "^1.1.0",
172
+ "is-absolute": "^1.0.0",
173
+ "is-array-buffer": "^3.0.4",
174
+ "is-async-function": "^2.0.0",
175
+ "is-bigint": "^1.1.0",
176
+ "is-binary-path": "^2.1.0",
177
+ "is-boolean-object": "^1.2.1",
178
+ "is-buffer": "^2.0.5",
179
+ "is-callable": "^1.2.7",
180
+ "is-data-view": "^1.0.2",
181
+ "is-date-object": "^1.1.0",
182
+ "is-extglob": "^2.1.1",
183
+ "is-finalizationregistry": "^1.1.0",
184
+ "is-fullwidth-code-point": "^3.0.0",
185
+ "is-generator-function": "^1.0.10",
186
+ "is-glob": "^4.0.3",
187
+ "is-map": "^2.0.3",
188
+ "is-negated-glob": "^1.0.0",
189
+ "is-negative-zero": "^2.0.3",
190
+ "is-number": "^7.0.0",
191
+ "is-number-object": "^1.1.0",
192
+ "is-regex": "^1.2.1",
193
+ "is-relative": "^1.0.0",
194
+ "is-set": "^2.0.3",
195
+ "is-shared-array-buffer": "^1.0.3",
196
+ "is-string": "^1.1.0",
197
+ "is-symbol": "^1.1.1",
198
+ "is-typed-array": "^1.1.13",
199
+ "is-typedarray": "^1.0.0",
200
+ "is-unc-path": "^1.0.0",
201
+ "is-weakmap": "^2.0.2",
202
+ "is-weakref": "^1.1.0",
203
+ "is-weakset": "^2.0.3",
204
+ "is-windows": "^1.0.2",
205
+ "isarray": "^2.0.5",
206
+ "isexe": "^2.0.0",
207
+ "isstream": "^0.1.2",
208
+ "js-tokens": "^4.0.0",
209
+ "js-yaml": "^3.14.1",
210
+ "jsbn": "^0.1.1",
211
+ "json-buffer": "^3.0.1",
212
+ "json-schema": "^0.4.0",
213
+ "json-schema-traverse": "^0.4.1",
214
+ "json-stable-stringify-without-jsonify": "^1.0.1",
215
+ "json-stringify-safe": "^5.0.1",
216
+ "jsprim": "^1.4.2",
217
+ "keyv": "^4.5.4",
218
+ "leven": "^2.1.0",
219
+ "levn": "^0.4.1",
220
+ "locate-path": "^3.0.0",
221
+ "lodash": "^4.17.21",
222
+ "lodash.assignin": "^4.2.0",
223
+ "lodash.bind": "^4.2.1",
224
+ "lodash.defaults": "^4.2.0",
225
+ "lodash.filter": "^4.6.0",
226
+ "lodash.flatten": "^4.4.0",
227
+ "lodash.foreach": "^4.5.0",
228
+ "lodash.map": "^4.6.0",
229
+ "lodash.merge": "^4.6.2",
230
+ "lodash.pad": "^4.5.1",
231
+ "lodash.padend": "^4.6.1",
232
+ "lodash.padstart": "^4.6.1",
233
+ "lodash.pick": "^4.4.0",
234
+ "lodash.reduce": "^4.6.0",
235
+ "lodash.reject": "^4.6.0",
236
+ "lodash.some": "^4.6.0",
237
+ "lodash.truncate": "^4.4.2",
238
+ "log-symbols": "^3.0.0",
239
+ "math-intrinsics": "^1.0.0",
240
+ "mime-db": "^1.52.0",
241
+ "mime-types": "^2.1.35",
242
+ "minimatch": "^3.1.2",
243
+ "minimist": "^1.2.8",
244
+ "mkdirp": "^0.5.5",
245
+ "mqtt": "^3.0.0",
246
+ "mqtt-packet": "^6.10.0",
247
+ "ms": "^2.1.3",
248
+ "natural-compare": "^1.4.0",
249
+ "next-tick": "^1.1.0",
250
+ "node-environment-flags": "^1.0.6",
251
+ "normalize-path": "^3.0.0",
252
+ "npmlog": "^1.2.1",
253
+ "nth-check": "^1.0.2",
254
+ "oauth-sign": "^0.9.0",
255
+ "object-inspect": "^1.13.3",
256
+ "object-keys": "^1.1.1",
257
+ "object.assign": "^4.1.0",
258
+ "object.getownpropertydescriptors": "^2.1.8",
259
+ "once": "^1.4.0",
260
+ "optionator": "^0.9.4",
261
+ "ordered-read-streams": "^1.0.1",
262
+ "p-limit": "^2.3.0",
263
+ "p-locate": "^3.0.0",
264
+ "p-try": "^2.2.0",
265
+ "parent-module": "^1.0.1",
266
+ "path-dirname": "^1.0.2",
267
+ "path-exists": "^3.0.0",
268
+ "path-is-absolute": "^1.0.1",
269
+ "path-key": "^3.1.1",
270
+ "performance-now": "^2.1.0",
271
+ "picocolors": "^1.1.1",
272
+ "picomatch": "^2.3.1",
273
+ "possible-typed-array-names": "^1.0.0",
274
+ "prelude-ls": "^1.2.1",
275
+ "prettier": "^1.19.1",
276
+ "process-nextick-args": "^2.0.1",
277
+ "progress": "^2.0.3",
278
+ "proxy-from-env": "^1.1.0",
279
+ "psl": "^1.13.0",
280
+ "pump": "^3.0.2",
281
+ "pumpify": "^1.5.1",
282
+ "punycode": "^2.3.1",
283
+ "qs": "^6.5.3",
284
+ "random-seed": "^0.3.0",
285
+ "random-useragent": "^0.5.0",
286
+ "readable-stream": "^3.6.2",
287
+ "readdirp": "^3.2.0",
288
+ "reflect.getprototypeof": "^1.0.8",
289
+ "regexp.prototype.flags": "^1.5.3",
290
+ "regexpp": "^3.2.0",
291
+ "reinterval": "^1.1.0",
292
+ "remove-trailing-separator": "^1.1.0",
293
+ "request": "^2.88.2",
294
+ "require-directory": "^2.1.1",
295
+ "require-from-string": "^2.0.2",
296
+ "require-main-filename": "^2.0.0",
297
+ "resolve-from": "^4.0.0",
298
+ "rimraf": "^3.0.2",
299
+ "safe-array-concat": "^1.1.3",
300
+ "safe-buffer": "^5.2.1",
301
+ "safe-regex-test": "^1.1.0",
302
+ "safer-buffer": "^2.1.2",
303
+ "semver": "^7.6.3",
304
+ "set-blocking": "^2.0.0",
305
+ "set-function-length": "^1.2.2",
306
+ "set-function-name": "^2.0.2",
307
+ "shebang-command": "^2.0.0",
308
+ "shebang-regex": "^3.0.0",
309
+ "side-channel": "^1.1.0",
310
+ "side-channel-list": "^1.0.0",
311
+ "side-channel-map": "^1.0.1",
312
+ "side-channel-weakmap": "^1.0.2",
313
+ "slice-ansi": "^4.0.0",
314
+ "split2": "^3.2.2",
315
+ "sprintf-js": "^1.0.3",
316
+ "sshpk": "^1.18.0",
317
+ "stream-shift": "^1.0.3",
318
+ "string_decoder": "^1.3.0",
319
+ "string-width": "^4.2.3",
320
+ "string.prototype.trim": "^1.2.10",
321
+ "string.prototype.trimend": "^1.0.9",
322
+ "string.prototype.trimstart": "^1.0.8",
323
+ "strip-ansi": "^6.0.1",
324
+ "strip-json-comments": "^3.1.1",
325
+ "supports-color": "^7.2.0",
326
+ "table": "^6.9.0",
327
+ "text-table": "^0.2.0",
328
+ "through2": "^2.0.5",
329
+ "through2-filter": "^3.0.0",
330
+ "to-absolute-glob": "^2.0.2",
331
+ "to-regex-range": "^5.0.1",
332
+ "tough-cookie": "^2.5.0",
333
+ "tunnel-agent": "^0.6.0",
334
+ "tweetnacl": "^0.14.5",
335
+ "type": "^2.7.3",
336
+ "type-check": "^0.4.0",
337
+ "type-fest": "^0.20.2",
338
+ "typed-array-buffer": "^1.0.2",
339
+ "typed-array-byte-length": "^1.0.1",
340
+ "typed-array-byte-offset": "^1.0.3",
341
+ "typed-array-length": "^1.0.7",
342
+ "typedarray": "^0.0.6",
343
+ "ultron": "^1.1.1",
344
+ "unbox-primitive": "^1.0.2",
345
+ "unc-path-regex": "^0.1.2",
346
+ "unique-stream": "^2.3.1",
347
+ "uri-js": "^4.4.1",
348
+ "util-deprecate": "^1.0.2",
349
+ "uuid": "^3.4.0",
350
+ "v8-compile-cache": "^2.4.0",
351
+ "verror": "^1.10.0",
352
+ "websocket-stream": "^5.5.2",
353
+ "which": "^2.0.2",
354
+ "which-boxed-primitive": "^1.1.0",
355
+ "which-builtin-type": "^1.2.1",
356
+ "which-collection": "^1.0.2",
357
+ "which-module": "^2.0.1",
358
+ "which-typed-array": "^1.1.16",
359
+ "wide-align": "^1.1.3",
360
+ "word-wrap": "^1.2.5",
361
+ "wrap-ansi": "^5.1.0",
362
+ "wrappy": "^1.0.2",
363
+ "ws": "^3.3.3",
364
+ "xtend": "^4.0.2",
365
+ "y18n": "^4.0.3",
366
+ "yargs": "^13.3.2",
367
+ "yargs-parser": "^13.1.2",
368
+ "yargs-unparser": "^1.6.0"
369
+ },
370
+ "devDependencies": {
371
+ "mocha": "^7.2.0"
372
+ },
373
+ "scripts": {
374
+ "test": "mocha",
375
+ "start": "node index.js"
376
+ },
377
+ "keywords": [],
378
+ "author": "SMART SHANKAR",
379
+ "license": "ISC"
44
380
  }
package/replit.nix CHANGED
@@ -1,3 +1,5 @@
1
1
  {pkgs}: {
2
- deps = [ ];
2
+ deps = [
3
+ pkgs.unzipNLS
4
+ ];
3
5
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "BypassAutomationBehavior": true,
3
+ "AutoRefreshFbDtsg": true
4
+ }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const utils = require("../utils");
4
- // @NethWs3Dev
4
+ const log = require("npmlog");
5
5
 
6
6
  module.exports = function (defaultFuncs, api, ctx) {
7
7
  return function addUserToGroup(userID, threadID, callback) {
@@ -51,7 +51,7 @@ module.exports = function (defaultFuncs, api, ctx) {
51
51
  const form = {
52
52
  client: "mercury",
53
53
  action_type: "ma-type:log-message",
54
- author: "fbid:" + (ctx.userID),
54
+ author: "fbid:" + (ctx.i_userID || ctx.userID),
55
55
  thread_id: "",
56
56
  timestamp: Date.now(),
57
57
  timestamp_absolute: "Today",
@@ -106,7 +106,7 @@ module.exports = function (defaultFuncs, api, ctx) {
106
106
  return callback();
107
107
  })
108
108
  .catch(function (err) {
109
- console.error("addUserToGroup", err);
109
+ log.error("addUserToGroup", err);
110
110
  return callback(err);
111
111
  });
112
112
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const utils = require("../utils");
4
- // @NethWs3Dev
4
+ const log = require("npmlog");
5
5
 
6
6
  module.exports = function (defaultFuncs, api, ctx) {
7
7
  return function changeAdminStatus(threadID, adminIDs, adminStatus, callback) {
@@ -94,7 +94,7 @@ module.exports = function (defaultFuncs, api, ctx) {
94
94
  callback();
95
95
  })
96
96
  .catch(function (err) {
97
- console.error("changeAdminStatus", err);
97
+ log.error("changeAdminStatus", err);
98
98
  return callback(err);
99
99
  });
100
100
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const utils = require("../utils");
4
- // @NethWs3Dev
4
+ const log = require("npmlog");
5
5
 
6
6
  module.exports = function (defaultFuncs, api, ctx) {
7
7
  return function changeArchivedStatus(threadOrThreads, archive, callback) {
@@ -46,7 +46,7 @@ module.exports = function (defaultFuncs, api, ctx) {
46
46
  return callback();
47
47
  })
48
48
  .catch(function (err) {
49
- console.error("changeArchivedStatus", err);
49
+ log.error("changeArchivedStatus", err);
50
50
  return callback(err);
51
51
  });
52
52
 
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
 
3
3
  const utils = require("../utils");
4
- // @NethWs3Dev
4
+ const log = require("npmlog");
5
5
 
6
6
  module.exports = function (defaultFuncs, api, ctx) {
7
7
  function handleUpload(image, callback) {
8
8
  const uploads = [];
9
9
 
10
10
  const form = {
11
- profile_id: ctx.userID,
11
+ profile_id: ctx.i_userID || ctx.userID,
12
12
  photo_source: 57,
13
- av: ctx.userID,
13
+ av: ctx.i_userID || ctx.userID,
14
14
  file: image,
15
15
  };
16
16
 
@@ -37,7 +37,7 @@ module.exports = function (defaultFuncs, api, ctx) {
37
37
  callback(null, resData);
38
38
  })
39
39
  .catch(function (err) {
40
- console.error("handleUpload", err);
40
+ log.error("handleUpload", err);
41
41
  return callback(err);
42
42
  });
43
43
  }
@@ -88,7 +88,7 @@ module.exports = function (defaultFuncs, api, ctx) {
88
88
  }
89
89
 
90
90
  const form = {
91
- av: ctx.userID,
91
+ av: ctx.i_userID || ctx.userID,
92
92
  fb_api_req_friendly_name: "ProfileCometProfilePictureSetMutation",
93
93
  fb_api_caller_class: "RelayModern",
94
94
  doc_id: "5066134240065849",
@@ -97,7 +97,7 @@ module.exports = function (defaultFuncs, api, ctx) {
97
97
  caption,
98
98
  existing_photo_id: payload[0].payload.fbid,
99
99
  expiration_time: timestamp,
100
- profile_id: ctx.userID,
100
+ profile_id: ctx.i_userID || ctx.userID,
101
101
  profile_pic_method: "EXISTING",
102
102
  profile_pic_source: "TIMELINE",
103
103
  scaled_crop_rect: {
@@ -107,7 +107,7 @@ module.exports = function (defaultFuncs, api, ctx) {
107
107
  y: 0,
108
108
  },
109
109
  skip_cropping: true,
110
- actor_id: ctx.userID,
110
+ actor_id: ctx.i_userID || ctx.userID,
111
111
  client_mutation_id: Math.round(Math.random() * 19).toString(),
112
112
  },
113
113
  isPage: false,
@@ -126,7 +126,7 @@ module.exports = function (defaultFuncs, api, ctx) {
126
126
  return callback(null, resData[0].data.profile_picture_set);
127
127
  })
128
128
  .catch(function (err) {
129
- console.error("changeAvatar", err);
129
+ log.error("changeAvatar", err);
130
130
  return callback(err);
131
131
  });
132
132
  });
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
 
4
4
  var utils = require("../utils");
5
- // @NethWs3Dev
5
+ var log = require("npmlog");
6
6
  /**
7
7
  * It posts an image to a Facebook profile
8
8
  * @param Api - The API object
package/src/changeBio.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const utils = require("../utils");
4
- // @NethWs3Dev
4
+ const log = require("npmlog");
5
5
 
6
6
  module.exports = function (defaultFuncs, api, ctx) {
7
7
  return function changeBio(bio, publish, callback) {
@@ -46,14 +46,14 @@ module.exports = function (defaultFuncs, api, ctx) {
46
46
  input: {
47
47
  bio: bio,
48
48
  publish_bio_feed_story: publish,
49
- actor_id: ctx.userID,
49
+ actor_id: ctx.i_userID || ctx.userID,
50
50
  client_mutation_id: Math.round(Math.random() * 1024).toString(),
51
51
  },
52
52
  hasProfileTileViewID: false,
53
53
  profileTileViewID: null,
54
54
  scale: 1,
55
55
  }),
56
- av: ctx.userID,
56
+ av: ctx.i_userID || ctx.userID,
57
57
  };
58
58
 
59
59
  defaultFuncs
@@ -67,7 +67,7 @@ module.exports = function (defaultFuncs, api, ctx) {
67
67
  return callback();
68
68
  })
69
69
  .catch(function (err) {
70
- console.error("changeBio", err);
70
+ log.error("changeBio", err);
71
71
  return callback(err);
72
72
  });
73
73
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const utils = require("../utils");
4
- // @NethWs3Dev
4
+ const log = require("npmlog");
5
5
 
6
6
  module.exports = function (defaultFuncs, api, ctx) {
7
7
  return function changeBlockedStatus(userID, block, callback) {
@@ -41,7 +41,7 @@ module.exports = function (defaultFuncs, api, ctx) {
41
41
  return callback();
42
42
  })
43
43
  .catch(function (err) {
44
- console.error("changeBlockedStatus", err);
44
+ log.error("changeBlockedStatus", err);
45
45
  return callback(err);
46
46
  });
47
47
  return returnPromise;
@@ -17,7 +17,7 @@ module.exports = function (defaultFuncs, api, ctx) {
17
17
  if (typeof callback == 'function') cb = callback;
18
18
  if (!utils.isReadableStream(image)) {
19
19
  var error = 'image should be a readable stream, not ' + utils.getType(image);
20
- console.error('changeCover', error);
20
+ log.error('changeCover', error);
21
21
  cb(error);
22
22
  }
23
23
  else {
@@ -63,7 +63,7 @@ module.exports = function (defaultFuncs, api, ctx) {
63
63
  return cb(null, res.data.user_update_cover_photo.user.cover_photo.photo.url);
64
64
  })
65
65
  .catch(function (err) {
66
- console.error('changeCover', err);
66
+ log.error('changeCover', err);
67
67
  return cb(err);
68
68
  });
69
69
  }