wsnipz 1.2.2 → 1.2.3
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/dist/prompts.js +10 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/prompts.js
CHANGED
|
@@ -212,6 +212,15 @@ async function runChecker(config, save) {
|
|
|
212
212
|
const stats = { available: 0, taken: 0, invalid: 0, errors: 0, total: usernames.length };
|
|
213
213
|
const spinner = (0, ora_1.default)({ text: 'Checking...', spinner: 'dots' }).start();
|
|
214
214
|
const purple = chalk_1.default.hex('#9B59B6').bold;
|
|
215
|
+
const statusReason = (r) => {
|
|
216
|
+
switch (r.status) {
|
|
217
|
+
case 'taken': return 'taken';
|
|
218
|
+
case 'invalid': return 'invalid';
|
|
219
|
+
case 'ratelimited': return 'rate-limited';
|
|
220
|
+
case 'error': return r.message || 'error';
|
|
221
|
+
default: return r.message || '';
|
|
222
|
+
}
|
|
223
|
+
};
|
|
215
224
|
const onProgress = (done, total, r) => {
|
|
216
225
|
if (r.status === 'available')
|
|
217
226
|
stats.available++;
|
|
@@ -226,7 +235,7 @@ async function runChecker(config, save) {
|
|
|
226
235
|
console.log(purple('[+] ') + chalk_1.default.white.bold(r.username));
|
|
227
236
|
}
|
|
228
237
|
else {
|
|
229
|
-
console.log(chalk_1.default.red('[-] ') + chalk_1.default.gray(r.username));
|
|
238
|
+
console.log(chalk_1.default.red('[-] ') + chalk_1.default.gray(r.username) + ' ' + chalk_1.default.dim.gray(statusReason(r)));
|
|
230
239
|
}
|
|
231
240
|
spinner.start();
|
|
232
241
|
spinner.text =
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "wsnipz", "version": "1.2.
|
|
1
|
+
{"name": "wsnipz", "version": "1.2.3", "description": "A modern Discord username availability checker CLI with rotating proxy support.", "main": "dist/index.js", "bin": {"wsniper": "dist/index.js", "wsnipz": "dist/index.js"}, "files": ["dist"], "scripts": {"build": "tsc", "dev": "ts-node src/index.ts", "start": "node dist/index.js", "prepublishOnly": "npm run build"}, "keywords": ["discord", "username", "checker", "sniper", "cli", "proxy", "availability", "wsnipz"], "author": "", "license": "MIT", "engines": {"node": ">=16"}, "dependencies": {"axios": "^1.7.7", "chalk": "^4.1.2", "cli-table3": "^0.6.5", "commander": "^11.1.0", "figlet": "^1.8.0", "inquirer": "^8.2.6", "ora": "^5.4.1", "proxy-agent": "^5.0.0"}, "devDependencies": {"@types/figlet": "^1.7.0", "@types/inquirer": "^8.2.10", "@types/node": "^20.16.0", "ts-node": "^10.9.2", "typescript": "^5.6.0"}}
|