/opt/canhelp/node_modules/next/dist/esm/next-devtools/server
NameSizeModeActions
font/-0755rm
dev-indicator-middleware.js12580644editdlrm
dev-indicator-middleware.js.map25980644editdlrm
devtools-config-middleware.js23730644editdlrm
devtools-config-middleware.js.map47760644editdlrm
get-next-error-feedback-middleware.js11470644editdlrm
get-next-error-feedback-middleware.js.map22290644editdlrm
launch-editor.js241050644editdlrm
launch-editor.js.map319400644editdlrm
middleware-response.js9880644editdlrm
middleware-response.js.map21770644editdlrm
restart-dev-server-middleware.js27530644editdlrm
restart-dev-server-middleware.js.map51550644editdlrm
shared.js18360644editdlrm
shared.js.map40980644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/next-devtools/server/shared.js (1836B)
import { codeFrameColumns } from 'next/dist/compiled/babel/code-frame'; import isInternal from '../../shared/lib/is-internal'; import { ignoreListAnonymousStackFramesIfSandwiched as ignoreListAnonymousStackFramesIfSandwichedGeneric } from '../../server/lib/source-maps'; export function ignoreListAnonymousStackFramesIfSandwiched(responses) { ignoreListAnonymousStackFramesIfSandwichedGeneric(responses, (response)=>{ return response.status === 'fulfilled' && response.value.originalStackFrame !== null && response.value.originalStackFrame.file === ''; }, (response)=>{ return response.status === 'fulfilled' && response.value.originalStackFrame !== null && response.value.originalStackFrame.ignored === true; }, (response)=>{ return response.status === 'fulfilled' && response.value.originalStackFrame !== null ? response.value.originalStackFrame.methodName : ''; }, (response)=>{ ; response.value.originalStackFrame.ignored = true; }); } /** * It looks up the code frame of the traced source. * @note It ignores Next.js/React internals, as these can often be huge bundled files. */ export function getOriginalCodeFrame(frame, source, colors) { if (colors === void 0) colors = process.stdout.isTTY; if (!source || isInternal(frame.file)) { return null; } var _frame_line1, _frame_column1; return codeFrameColumns(source, { start: { // 1-based, but -1 means start line without highlighting line: (_frame_line1 = frame.line1) != null ? _frame_line1 : -1, // 1-based, but 0 means whole line without column highlighting column: (_frame_column1 = frame.column1) != null ? _frame_column1 : 0 } }, { forceColor: colors }); } //# sourceMappingURL=shared.js.map