Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
38
node_modules/next/dist/client/components/react-dev-overlay/server/shared.js
generated
vendored
Normal file
38
node_modules/next/dist/client/components/react-dev-overlay/server/shared.js
generated
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "getOriginalCodeFrame", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return getOriginalCodeFrame;
|
||||
}
|
||||
});
|
||||
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
||||
const _codeframe = require("next/dist/compiled/babel/code-frame");
|
||||
const _isinternal = /*#__PURE__*/ _interop_require_default._(require("../../../../shared/lib/is-internal"));
|
||||
function getOriginalCodeFrame(frame, source, colors) {
|
||||
if (colors === void 0) colors = process.stdout.isTTY;
|
||||
if (!source || (0, _isinternal.default)(frame.file)) {
|
||||
return null;
|
||||
}
|
||||
var _frame_lineNumber, _frame_column;
|
||||
return (0, _codeframe.codeFrameColumns)(source, {
|
||||
start: {
|
||||
// 1-based, but -1 means start line without highlighting
|
||||
line: (_frame_lineNumber = frame.lineNumber) != null ? _frame_lineNumber : -1,
|
||||
// 1-based, but 0 means whole line without column highlighting
|
||||
column: (_frame_column = frame.column) != null ? _frame_column : 0
|
||||
}
|
||||
}, {
|
||||
forceColor: colors
|
||||
});
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=shared.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue