wsnipz 1.2.1 → 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 CHANGED
@@ -211,6 +211,16 @@ async function runChecker(config, save) {
211
211
  console.log(chalk_1.default.cyan(`\nGenerating ${usernames.length} usernames (${(0, generators_1.patternLabel)(pattern)}, length ${length})...`));
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
+ 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
+ };
214
224
  const onProgress = (done, total, r) => {
215
225
  if (r.status === 'available')
216
226
  stats.available++;
@@ -220,17 +230,18 @@ async function runChecker(config, save) {
220
230
  stats.invalid++;
221
231
  else
222
232
  stats.errors++;
223
- spinner.text =
224
- `[${done}/${total}] ` +
225
- `${chalk_1.default.green('✓' + stats.available)} ` +
226
- `${chalk_1.default.red('✗' + stats.taken)} ` +
227
- `${chalk_1.default.yellow('!' + stats.invalid)} ` +
228
- `${chalk_1.default.gray('?' + stats.errors)}`;
233
+ spinner.stop();
229
234
  if (r.status === 'available') {
230
- spinner.stop();
231
- console.log(chalk_1.default.green.bold(' ✓ AVAILABLE: ') + chalk_1.default.white.bold(r.username));
232
- spinner.start();
235
+ console.log(purple('[+] ') + chalk_1.default.white.bold(r.username));
233
236
  }
237
+ else {
238
+ console.log(chalk_1.default.red('[-] ') + chalk_1.default.gray(r.username) + ' ' + chalk_1.default.dim.gray(statusReason(r)));
239
+ }
240
+ spinner.start();
241
+ spinner.text =
242
+ `[${done}/${total}] ` +
243
+ `${purple('+' + stats.available)} ` +
244
+ `${chalk_1.default.red('-' + (stats.taken + stats.invalid + stats.errors))}`;
234
245
  };
235
246
  const results = await (0, checker_1.checkUsernames)(usernames, {
236
247
  token,
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = exports.PACKAGE_NAME = void 0;
4
4
  exports.PACKAGE_NAME = 'wsnipz';
5
- exports.VERSION = '1.2.1';
5
+ exports.VERSION = '1.2.3';
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "wsnipz", "version": "1.2.1", "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"}}
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"}}