From d1457bbc9b8981d359e781219736973e097cfefe Mon Sep 17 00:00:00 2001 From: Cinnamon <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sun, 26 Jun 2022 10:06:05 +0700 Subject: [PATCH] chore(release): version Android (Termux) support (maybe) --- package-lock.json | 40 ++++++++++++++++++++++------------------ package.json | 5 ++--- src/util/RemoteAuth.js | 2 +- 3 files changed, 25 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index d069a1f..ef87bd7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,15 @@ { "name": "discord.js-selfbot-v13", - "version": "2.3.52", + "version": "2.3.53", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "discord.js-selfbot-v13", - "version": "2.3.52", + "version": "2.3.53", "license": "GNU General Public License v3.0", "dependencies": { + "@aikochan2k6/qrcode-terminal": "^0.12.0", "@discordjs/builders": "^0.15.0", "@discordjs/collection": "^0.7.0", "@discordjs/voice": "^0.10.0", @@ -24,10 +25,8 @@ "form-data": "^4.0.0", "json-bigint": "^1.0.0", "node-fetch": "^2.6.1", - "qrcode-terminal": "^0.12.0", "safe-base64": "^2.0.1-0", "string_decoder": "^1.3.0", - "utf-8-validate": "^5.0.9", "ws": "^8.8.0" }, "devDependencies": { @@ -56,6 +55,11 @@ "npm": ">=7.0.0" } }, + "node_modules/@aikochan2k6/qrcode-terminal": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@aikochan2k6/qrcode-terminal/-/qrcode-terminal-0.12.0.tgz", + "integrity": "sha512-mFBZyXJHP0R1aVtS/LnCpMMiY9wVLps98+ovgfYoKz/pNFhoiMwC3QFvSj8imwMIkukXeXcJYZXtzs1d1dxHAg==" + }, "node_modules/@ampproject/remapping": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", @@ -9248,6 +9252,8 @@ "version": "4.4.0", "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.4.0.tgz", "integrity": "sha512-amJnQCcgtRVw9SvoebO3BKGESClrfXGCUTX9hSn1OuGQTQBOZmVd0Z0OlecpuRksKvbsUqALE8jls/ErClAPuQ==", + "optional": true, + "peer": true, "bin": { "node-gyp-build": "bin.js", "node-gyp-build-optional": "optional.js", @@ -9945,14 +9951,6 @@ "teleport": ">=0.2.0" } }, - "node_modules/qrcode-terminal": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/qrcode-terminal/-/qrcode-terminal-0.12.0.tgz", - "integrity": "sha512-EXtzRZmC+YGmGlDFbXKxQiMZNwCLEO6BANKXG4iCtSIM0yqc/pappSx3RIKr4r0uh5JsBckOXeKrB3Iz7mdQpQ==", - "bin": { - "qrcode-terminal": "bin/qrcode-terminal.js" - } - }, "node_modules/qs": { "version": "6.5.3", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", @@ -12009,6 +12007,8 @@ "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.9.tgz", "integrity": "sha512-Yek7dAy0v3Kl0orwMlvi7TPtiCNrdfHNd7Gcc/pLq4BLXqfAmd0J7OWMizUQnTTJsyjKn02mU7anqwfmUP4J8Q==", "hasInstallScript": true, + "optional": true, + "peer": true, "dependencies": { "node-gyp-build": "^4.3.0" }, @@ -12463,6 +12463,11 @@ } }, "dependencies": { + "@aikochan2k6/qrcode-terminal": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@aikochan2k6/qrcode-terminal/-/qrcode-terminal-0.12.0.tgz", + "integrity": "sha512-mFBZyXJHP0R1aVtS/LnCpMMiY9wVLps98+ovgfYoKz/pNFhoiMwC3QFvSj8imwMIkukXeXcJYZXtzs1d1dxHAg==" + }, "@ampproject/remapping": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", @@ -19615,7 +19620,9 @@ "node-gyp-build": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.4.0.tgz", - "integrity": "sha512-amJnQCcgtRVw9SvoebO3BKGESClrfXGCUTX9hSn1OuGQTQBOZmVd0Z0OlecpuRksKvbsUqALE8jls/ErClAPuQ==" + "integrity": "sha512-amJnQCcgtRVw9SvoebO3BKGESClrfXGCUTX9hSn1OuGQTQBOZmVd0Z0OlecpuRksKvbsUqALE8jls/ErClAPuQ==", + "optional": true, + "peer": true }, "node-int64": { "version": "0.4.0", @@ -20107,11 +20114,6 @@ "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", "dev": true }, - "qrcode-terminal": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/qrcode-terminal/-/qrcode-terminal-0.12.0.tgz", - "integrity": "sha512-EXtzRZmC+YGmGlDFbXKxQiMZNwCLEO6BANKXG4iCtSIM0yqc/pappSx3RIKr4r0uh5JsBckOXeKrB3Iz7mdQpQ==" - }, "qs": { "version": "6.5.3", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", @@ -21685,6 +21687,8 @@ "version": "5.0.9", "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.9.tgz", "integrity": "sha512-Yek7dAy0v3Kl0orwMlvi7TPtiCNrdfHNd7Gcc/pLq4BLXqfAmd0J7OWMizUQnTTJsyjKn02mU7anqwfmUP4J8Q==", + "optional": true, + "peer": true, "requires": { "node-gyp-build": "^4.3.0" } diff --git a/package.json b/package.json index da0c829..8e3fe7d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord.js-selfbot-v13", - "version": "2.3.52", + "version": "2.3.53", "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]", "main": "./src/index.js", "types": "./typings/index.d.ts", @@ -51,6 +51,7 @@ }, "homepage": "https://github.com/aiko-chan-ai/discord.js-selfbot-v13#readme", "dependencies": { + "@aikochan2k6/qrcode-terminal": "^0.12.0", "@discordjs/builders": "^0.15.0", "@discordjs/collection": "^0.7.0", "@discordjs/voice": "^0.10.0", @@ -66,10 +67,8 @@ "form-data": "^4.0.0", "json-bigint": "^1.0.0", "node-fetch": "^2.6.1", - "qrcode-terminal": "^0.12.0", "safe-base64": "^2.0.1-0", "string_decoder": "^1.3.0", - "utf-8-validate": "^5.0.9", "ws": "^8.8.0" }, "engines": { diff --git a/src/util/RemoteAuth.js b/src/util/RemoteAuth.js index f52fadb..9934195 100644 --- a/src/util/RemoteAuth.js +++ b/src/util/RemoteAuth.js @@ -205,7 +205,7 @@ class DiscordAuthWebsocket { } generate_qr_code(fingerprint) { - require('qrcode-terminal').generate(`https://discord.com/ra/${fingerprint}`, { + require('@aikochan2k6/qrcode-terminal').generate(`https://discord.com/ra/${fingerprint}`, { small: true, }); }