Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/strapi-plugin-sentry/node_modules/@sentry/node/dist/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /**
* stack-trace - Parses node.js stack traces
*
* This was originally forked to fix this issue:
* https://github.com/felixge/node-stack-trace/issues/31
*
* Mar 19,2019 - #4fd379e
*
* https://github.com/felixge/node-stack-trace/
* @license MIT
*/
Object.defineProperty(exports, "__esModule", { value: true });
/** Extracts StackFrames from the Error */
function parse(err) {
if (!err.stack) {
return [];
}
var lines = err.stack.split('\n').slice(1);
return lines
.map(function (line) {
if (line.match(/^\s*[-]{4,}$/)) {
return {
columnNumber: null,
fileName: line,
functionName: null,
lineNumber: null,
methodName: null,
native: null,
typeName: null,
};
}
var lineMatch = line.match(/at (?:(.+?)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);
if (!lineMatch) {
return undefined;
}
var object = null;
var method = null;
var functionName = null;
var typeName = null;
var methodName = null;
var isNative = lineMatch[5] === 'native';
if (lineMatch[1]) {
functionName = lineMatch[1];
var methodStart = functionName.lastIndexOf('.');
if (functionName[methodStart - 1] === '.') {
// eslint-disable-next-line no-plusplus
methodStart--;
}
if (methodStart > 0) {
object = functionName.substr(0, methodStart);
method = functionName.substr(methodStart + 1);
var objectEnd = object.indexOf('.Module');
if (objectEnd > 0) {
functionName = functionName.substr(objectEnd + 1);
object = object.substr(0, objectEnd);
}
}
typeName = null;
}
if (method) {
typeName = object;
methodName = method;
}
if (method === '<anonymous>') {
methodName = null;
functionName = null;
}
var properties = {
columnNumber: parseInt(lineMatch[4], 10) || null,
fileName: lineMatch[2] || null,
functionName: functionName,
lineNumber: parseInt(lineMatch[3], 10) || null,
methodName: methodName,
native: isNative,
typeName: typeName,
};
return properties;
})
.filter(function (callSite) { return !!callSite; });
}
exports.parse = parse;
//# sourceMappingURL=stacktrace.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0163 ]-- |