miaoda-expo-devkit 0.1.1-dev.development-build.5 → 0.1.1-dev.development-build.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miaoda-expo-devkit",
3
- "version": "0.1.1-dev.development-build.5",
3
+ "version": "0.1.1-dev.development-build.6",
4
4
  "description": "Expo 应用开发工具集:Sentry DSN 替换 stub、错误/网络捕获、Metro 符号化",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -1,3 +1,30 @@
1
+ diff --git a/Libraries/LogBox/Data/LogBoxData.js b/Libraries/LogBox/Data/LogBoxData.js
2
+ index 2ce92e0..56eb4f8 100644
3
+ --- a/Libraries/LogBox/Data/LogBoxData.js
4
+ +++ b/Libraries/LogBox/Data/LogBoxData.js
5
+ @@ -149,9 +149,17 @@ function appendNewLog(newLog: LogBoxLog) {
6
+ - // If the next log has the same category as the previous one
7
+ - // then roll it up into the last log in the list by incrementing
8
+ - // the count (similar to how Chrome does it).
9
+ + // Only merge logs with the same severity. A fatal exception must retain
10
+ + // its own stack and open the inspector even after a matching console error.
11
+ const lastLog = Array.from(logs).pop();
12
+ - if (lastLog && lastLog.category === newLog.category) {
13
+ + if (
14
+ + lastLog &&
15
+ + lastLog.category === newLog.category &&
16
+ + lastLog.level === newLog.level
17
+ + ) {
18
+ lastLog.incrementCount();
19
+ - handleUpdate();
20
+ + // A repeated uncaught exception must also reopen a hidden inspector.
21
+ + if (newLog.level === 'fatal' && _selectedIndex < 0) {
22
+ + setSelectedLog(logs.size - 1);
23
+ + } else {
24
+ + handleUpdate();
25
+ + }
26
+ return;
27
+ }
1
28
  diff --git a/Libraries/LogBox/UI/LogBoxInspector.js b/Libraries/LogBox/UI/LogBoxInspector.js
2
29
  --- a/Libraries/LogBox/UI/LogBoxInspector.js
3
30
  +++ b/Libraries/LogBox/UI/LogBoxInspector.js