Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(stackFrame => {
stackFrame = stackFrame[0];
let gps = new StackTraceGPS();
if (stackFrame.fileName) {
stackFrame.fileName = stackFrame.fileName.replace('https://127.0.0.1:3001/', location.origin + '/');
}
if (stackFrame.source) {
stackFrame.source = stackFrame.source.replace('https://127.0.0.1:3001/', location.origin + '/');
}
return gps.pinpoint(stackFrame);
})
.then(detailedError => {