@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.
- package/dist/ui/index.html +28 -1
- package/dist/ui/manifest.json +2 -2
- package/dist/watchers/http-request.watcher.js +2 -0
- package/package.json +1 -1
- package/ui/index.html +28 -1
package/dist/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
|
-
<
|
|
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>
|
package/dist/ui/manifest.json
CHANGED
|
@@ -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
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
|
-
<
|
|
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>
|