@react-navigation/devtools
Advanced tools
Comparing version 6.0.0-next.18 to 6.0.0-next.19
@@ -28,3 +28,3 @@ "use strict"; | ||
const symbolicate = async stack => { | ||
var _frames$0$file; | ||
var _frames$, _frames$$file; | ||
@@ -50,3 +50,3 @@ if (stack == null) { | ||
}).filter(Boolean); | ||
const urlMatch = (_frames$0$file = frames[0].file) === null || _frames$0$file === void 0 ? void 0 : _frames$0$file.match(/^https?:\/\/.+(:\d+)?\//); | ||
const urlMatch = (_frames$ = frames[0]) === null || _frames$ === void 0 ? void 0 : (_frames$$file = _frames$.file) === null || _frames$$file === void 0 ? void 0 : _frames$$file.match(/^https?:\/\/.+(:\d+)?\//); | ||
@@ -82,3 +82,9 @@ if (!urlMatch) { | ||
if (data.stack) { | ||
const stack = await symbolicate(data.stack); | ||
let stack; | ||
try { | ||
stack = await symbolicate(data.stack); | ||
} catch (err) {// Ignore errors from symbolicate | ||
} | ||
callbackRef.current({ ...data, | ||
@@ -85,0 +91,0 @@ stack |
@@ -13,3 +13,3 @@ import deepEqual from 'deep-equal'; | ||
const symbolicate = async stack => { | ||
var _frames$0$file; | ||
var _frames$, _frames$$file; | ||
@@ -35,3 +35,3 @@ if (stack == null) { | ||
}).filter(Boolean); | ||
const urlMatch = (_frames$0$file = frames[0].file) === null || _frames$0$file === void 0 ? void 0 : _frames$0$file.match(/^https?:\/\/.+(:\d+)?\//); | ||
const urlMatch = (_frames$ = frames[0]) === null || _frames$ === void 0 ? void 0 : (_frames$$file = _frames$.file) === null || _frames$$file === void 0 ? void 0 : _frames$$file.match(/^https?:\/\/.+(:\d+)?\//); | ||
@@ -67,3 +67,9 @@ if (!urlMatch) { | ||
if (data.stack) { | ||
const stack = await symbolicate(data.stack); | ||
let stack; | ||
try { | ||
stack = await symbolicate(data.stack); | ||
} catch (err) {// Ignore errors from symbolicate | ||
} | ||
callbackRef.current({ ...data, | ||
@@ -70,0 +76,0 @@ stack |
{ | ||
"name": "@react-navigation/devtools", | ||
"description": "Developer tools for React Navigation", | ||
"version": "6.0.0-next.18", | ||
"version": "6.0.0-next.19", | ||
"keywords": [ | ||
@@ -70,3 +70,3 @@ "react", | ||
}, | ||
"gitHead": "42a875212c5071b12e92eaf159ef488365413ab8" | ||
"gitHead": "e3c514d6840500be17410de6ed753c2b28a15d1b" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83265
990