nestjs-devtools 1.5.0 → 1.5.1
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/toolbar/profiler.js
CHANGED
|
@@ -243,7 +243,8 @@ const PROFILER_PAGE = (config) => {
|
|
|
243
243
|
'<div class="metric"><span class="label">Memory</span><span class="value">'+escape(dd.memory||'')+'</span></div>'+
|
|
244
244
|
'<div class="metric"><span class="label">Route</span><span class="value mono" style="font-size:10px">'+escape(dd.route||'')+'</span></div>';
|
|
245
245
|
}
|
|
246
|
-
}).catch(function(){
|
|
246
|
+
}).catch(function(e){
|
|
247
|
+
console.error('[Devtools] Failed to load profiler data:', e);
|
|
247
248
|
document.getElementById('panel-list').innerHTML = '<div class="panel"><div class="panel-body open" style="display:block"><span class="empty">Failed to load profiler data.</span></div></div>';
|
|
248
249
|
});
|
|
249
250
|
}
|
|
@@ -268,7 +269,8 @@ const PROFILER_PAGE = (config) => {
|
|
|
268
269
|
'<td style="padding:8px 12px;border-bottom:1px solid #eee;color:#888;font-family:SF Mono,Menlo,monospace">'+(r.duration!=null?r.duration.toFixed(1):'')+' ms</td>'+
|
|
269
270
|
'</tr>';
|
|
270
271
|
});
|
|
271
|
-
}).catch(function(){
|
|
272
|
+
}).catch(function(e){
|
|
273
|
+
console.error('[Devtools] Failed to load history:', e);
|
|
272
274
|
document.getElementById('history-body').innerHTML = '<tr><td colspan="5" style="padding:20px;text-align:center;color:#bbb">Failed to load history</td></tr>';
|
|
273
275
|
});
|
|
274
276
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiler.js","sourceRoot":"","sources":["../../toolbar/profiler.ts"],"names":[],"mappings":";;;AAIO,MAAM,aAAa,GAAG,CAAC,MAAoC,EAAE,EAAE;IACpE,MAAM,EAAE,KAAK,GAAG,MAAM,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;IAExC,OAAO
|
|
1
|
+
{"version":3,"file":"profiler.js","sourceRoot":"","sources":["../../toolbar/profiler.ts"],"names":[],"mappings":";;;AAIO,MAAM,aAAa,GAAG,CAAC,MAAoC,EAAE,EAAE;IACpE,MAAM,EAAE,KAAK,GAAG,MAAM,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;IAExC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAoRD,CAAC;AACT,CAAC,CAAC;AAxRW,QAAA,aAAa,iBAwRxB"}
|