This commit is contained in:
Mosiur
2026-04-24 21:03:01 +06:00
parent ad313f3b21
commit c295362495
2709 changed files with 877549 additions and 162 deletions

12
server/node_modules/resolve/lib/caller.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
'use strict';
var $Error = require('es-errors');
module.exports = function () {
// see https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi
var origPrepareStackTrace = $Error.prepareStackTrace;
$Error.prepareStackTrace = function (_, stack) { return stack; };
var stack = (new $Error()).stack;
$Error.prepareStackTrace = origPrepareStackTrace;
return stack[2].getFileName();
};