soundbip 2.3.0 → 2.4.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/index.js +10 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ const https = require('https');
|
|
|
4
4
|
// child_process used in openBrowser()
|
|
5
5
|
|
|
6
6
|
const API_URL = 'api.dltpays.com';
|
|
7
|
-
const VERSION = '2.
|
|
7
|
+
const VERSION = '2.4.0';
|
|
8
8
|
|
|
9
9
|
// Colors
|
|
10
10
|
const c = {
|
|
@@ -637,8 +637,16 @@ async function main() {
|
|
|
637
637
|
|
|
638
638
|
stopSpinner(spin);
|
|
639
639
|
|
|
640
|
+
// Handle errors (duplicate name, email, URL, address, etc.)
|
|
641
|
+
if (result?.error) {
|
|
642
|
+
console.log(`\n${c.red} ✗ ${result.error}${c.reset}`);
|
|
643
|
+
console.log(`${c.dim} Please go back and change the field, or run npx soundbip again.${c.reset}\n`);
|
|
644
|
+
rl.close();
|
|
645
|
+
return;
|
|
646
|
+
}
|
|
647
|
+
|
|
640
648
|
if (!result || !result.store_id) {
|
|
641
|
-
console.log(`\n${c.red} ✗
|
|
649
|
+
console.log(`\n${c.red} ✗ Registration failed — unexpected server response${c.reset}\n`);
|
|
642
650
|
rl.close();
|
|
643
651
|
return;
|
|
644
652
|
}
|