@betit/orion-node-sdk
Advanced tools
Comparing version 1.0.0-beta.24 to 1.0.0-beta.25
@@ -45,4 +45,18 @@ "use strict"; | ||
// 3 33 | ||
if (typeof e.stack !== 'string') { | ||
return { | ||
filepath: 'unknown_no_stack.js', | ||
line: '0', | ||
column: '0', | ||
}; | ||
} | ||
const regex = /\((.*):(\d+):(\d+)\)$/; | ||
const match = regex.exec(e.stack.split('\n')[1]); | ||
const match = regex.exec(e.stack.split('\n')[1] || ''); | ||
if (!match) { | ||
return { | ||
filepath: 'could_not_match ' + e.stack, | ||
line: '0', | ||
column: '0', | ||
}; | ||
} | ||
return { | ||
@@ -49,0 +63,0 @@ filepath: match[1], |
{ | ||
"name": "@betit/orion-node-sdk", | ||
"version": "1.0.0-beta.24", | ||
"version": "1.0.0-beta.25", | ||
"description": "SDK for orion", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1239040
2760