@paychainly/cli 1.1.1 → 1.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paychainly/cli",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Paychainly CLI — relay webhooks to your localhost during development",
5
5
  "keywords": [
6
6
  "paychainly",
package/src/listen.js CHANGED
@@ -141,9 +141,10 @@ ${c.bold}${c.cyan} ╔═══════════════════
141
141
  reconnectionAttempts: Infinity,
142
142
  });
143
143
 
144
- socket.on('relay_connected', ({ userId, mode }) => {
144
+ socket.on('relay_connected', ({ userId, email, mode }) => {
145
145
  connected = true;
146
- console.log(` ${c.green}✓ Connected${c.reset} ${c.gray}(userId: ${userId}, mode: ${mode})${c.reset}`);
146
+ const identity = email || `userId: ${userId}`;
147
+ console.log(` ${c.green}✓ Connected${c.reset} ${c.gray}(${identity}, mode: ${mode})${c.reset}`);
147
148
  console.log(` ${c.gray}Waiting for webhooks... (Ctrl+C to stop)${c.reset}\n`);
148
149
  });
149
150
 
package/src/status.js CHANGED
@@ -41,9 +41,10 @@ module.exports = function status(argv) {
41
41
  timeout: 10000,
42
42
  });
43
43
 
44
- socket.on('relay_connected', ({ userId, mode }) => {
44
+ socket.on('relay_connected', ({ userId, email, mode }) => {
45
45
  process.stdout.write(' '.repeat(40) + '\r');
46
46
  console.log(` ${c.green}✓ API key valid${c.reset}`);
47
+ if (email) console.log(` ${c.gray}Email :${c.reset} ${email}`);
47
48
  console.log(` ${c.gray}User ID :${c.reset} ${userId}`);
48
49
  console.log(` ${c.gray}Mode :${c.reset} ${mode}\n`);
49
50
  socket.disconnect();