@ngn-net/nestjs-telescope 0.2.14 → 0.2.15

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.
@@ -1644,7 +1644,34 @@
1644
1644
  {content.user && (
1645
1645
  <div className="key-val-row" style={{ flexDirection: 'column', display: 'flex', gap: '8px' }}>
1646
1646
  <div className="key-val-label" style={{ color: '#10b981', fontWeight: '600' }}>Authenticated User</div>
1647
- <pre className="json-code" style={{ borderColor: 'rgba(16, 185, 129, 0.3)', color: '#10b981', backgroundColor: 'rgba(16, 185, 129, 0.03)' }}>{JSON.stringify(content.user, null, 2)}</pre>
1647
+ <div className="json-code" style={{ borderColor: 'rgba(16, 185, 129, 0.3)', color: '#10b981', backgroundColor: 'rgba(16, 185, 129, 0.03)', padding: '12px', overflow: 'hidden' }}>
1648
+ <table style={{ width: '100%', borderCollapse: 'collapse', margin: 0 }}>
1649
+ <tbody>
1650
+ {Object.entries(content.user).map(([key, value]) => {
1651
+ let displayKey = key;
1652
+ if (key === 'id' || key === 'sub' || key === 'userId') displayKey = 'ID';
1653
+ else if (key === 'email') displayKey = 'Email Address';
1654
+ else displayKey = key.charAt(0).toUpperCase() + key.slice(1).replace(/([A-Z])/g, ' $1').trim();
1655
+
1656
+ let displayValue = String(value);
1657
+ if (typeof value === 'object' && value !== null) {
1658
+ displayValue = JSON.stringify(value);
1659
+ }
1660
+
1661
+ return (
1662
+ <tr key={key} style={{ borderBottom: '1px solid rgba(16, 185, 129, 0.1)', backgroundColor: 'transparent' }}>
1663
+ <td style={{ padding: '8px', width: '200px', fontWeight: '600', color: '#10b981', borderBottom: 'none', textTransform: 'none', letterSpacing: 'normal', backgroundColor: 'transparent' }}>
1664
+ {displayKey}
1665
+ </td>
1666
+ <td style={{ padding: '8px', color: '#e2e8f0', borderBottom: 'none' }}>
1667
+ {displayValue}
1668
+ </td>
1669
+ </tr>
1670
+ );
1671
+ })}
1672
+ </tbody>
1673
+ </table>
1674
+ </div>
1648
1675
  </div>
1649
1676
  )}
1650
1677
  </React.Fragment>
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ngn-net/nestjs-telescope",
3
- "version": "0.2.14",
4
- "builtAt": "2026-06-08T13:06:16.924Z"
3
+ "version": "0.2.15",
4
+ "builtAt": "2026-06-08T13:13:50.492Z"
5
5
  }
@@ -64,6 +64,7 @@ let HttpRequestWatcher = class HttpRequestWatcher {
64
64
  statusCode,
65
65
  body: responseBody,
66
66
  },
67
+ user,
67
68
  duration,
68
69
  },
69
70
  }).catch(() => { });
@@ -83,6 +84,7 @@ let HttpRequestWatcher = class HttpRequestWatcher {
83
84
  error: error.name || 'Error',
84
85
  },
85
86
  },
87
+ user,
86
88
  duration,
87
89
  },
88
90
  }).catch(() => { });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngn-net/nestjs-telescope",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/ui/index.html CHANGED
@@ -1644,7 +1644,34 @@
1644
1644
  {content.user && (
1645
1645
  <div className="key-val-row" style={{ flexDirection: 'column', display: 'flex', gap: '8px' }}>
1646
1646
  <div className="key-val-label" style={{ color: '#10b981', fontWeight: '600' }}>Authenticated User</div>
1647
- <pre className="json-code" style={{ borderColor: 'rgba(16, 185, 129, 0.3)', color: '#10b981', backgroundColor: 'rgba(16, 185, 129, 0.03)' }}>{JSON.stringify(content.user, null, 2)}</pre>
1647
+ <div className="json-code" style={{ borderColor: 'rgba(16, 185, 129, 0.3)', color: '#10b981', backgroundColor: 'rgba(16, 185, 129, 0.03)', padding: '12px', overflow: 'hidden' }}>
1648
+ <table style={{ width: '100%', borderCollapse: 'collapse', margin: 0 }}>
1649
+ <tbody>
1650
+ {Object.entries(content.user).map(([key, value]) => {
1651
+ let displayKey = key;
1652
+ if (key === 'id' || key === 'sub' || key === 'userId') displayKey = 'ID';
1653
+ else if (key === 'email') displayKey = 'Email Address';
1654
+ else displayKey = key.charAt(0).toUpperCase() + key.slice(1).replace(/([A-Z])/g, ' $1').trim();
1655
+
1656
+ let displayValue = String(value);
1657
+ if (typeof value === 'object' && value !== null) {
1658
+ displayValue = JSON.stringify(value);
1659
+ }
1660
+
1661
+ return (
1662
+ <tr key={key} style={{ borderBottom: '1px solid rgba(16, 185, 129, 0.1)', backgroundColor: 'transparent' }}>
1663
+ <td style={{ padding: '8px', width: '200px', fontWeight: '600', color: '#10b981', borderBottom: 'none', textTransform: 'none', letterSpacing: 'normal', backgroundColor: 'transparent' }}>
1664
+ {displayKey}
1665
+ </td>
1666
+ <td style={{ padding: '8px', color: '#e2e8f0', borderBottom: 'none' }}>
1667
+ {displayValue}
1668
+ </td>
1669
+ </tr>
1670
+ );
1671
+ })}
1672
+ </tbody>
1673
+ </table>
1674
+ </div>
1648
1675
  </div>
1649
1676
  )}
1650
1677
  </React.Fragment>