You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/resolveStackTrace.mjs
+21-17Lines changed: 21 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
-
constfs=require('fs');
2
-
const{ SourceMapConsumer }=require('source-map');
3
-
constpath=require('path');
1
+
importfsfrom'fs';
2
+
import{SourceMapConsumer}from'source-map';
3
+
importpathfrom'path';
4
+
import{fileURLToPath}from'url';
4
5
5
6
constUSAGE_GUIDE=`This script is intended to be used manually.
6
7
It makes JavaScript errors from user logs more readable by converting the stacktrace references from minified file addresses to source code addresses.
@@ -20,29 +21,31 @@ Examples:
20
21
21
22
npm run resolve-stacktrace "Error: Test\n at t.BitBuilder.writeVarUint (https://mytonwallet.local/941.c17ba5754ec7f174fec2.js:2:25840)\n at t.BitBuilder.writeCoins (https://mytonwallet.local/941.c17ba5754ec7f174fec2.js:2:26382)"`;
0 commit comments