Skip to content

Commit e6e5693

Browse files
chore: bump version to 1.0.2, applied prettier fixes (#4)
* chore: bump version to 1.0.2 * chore: bump version to 1.0.2 and applied prettier fixes
1 parent 1ba06ac commit e6e5693

9 files changed

Lines changed: 62 additions & 55 deletions

File tree

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default defineConfig([
2121
rules: {
2222
'react/react-in-jsx-scope': 'off',
2323
'prettier/prettier': 'error',
24+
'react-hooks/exhaustive-deps': 'warn',
2425
},
2526
},
2627
{

example/src/ExampleScreen.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ export function ExampleScreen() {
188188
<View style={styles.infoBanner}>
189189
<Text style={styles.infoBannerText}>
190190
<Text style={styles.infoBannerBold}>Automatic Interception:</Text>{' '}
191-
Just add the{' '}
192-
<Text style={styles.infoBannerCode}>BugBubble</Text>{' '}
191+
Just add the <Text style={styles.infoBannerCode}>BugBubble</Text>{' '}
193192
component, and everything should automatically start working for
194193
you. Your console logs, network requests, and WebSocket events will
195194
be automatically intercepted and logged. But if you still need to
@@ -293,9 +292,7 @@ export function ExampleScreen() {
293292
<Text style={styles.sectionTitle}>📊 Analytics Events</Text>
294293
<Text style={styles.sectionDescription}>
295294
Analytics events must be logged explicitly using{' '}
296-
<Text style={styles.codeText}>
297-
BugBubbleLogger.logAnalytics()
298-
</Text>
295+
<Text style={styles.codeText}>BugBubbleLogger.logAnalytics()</Text>
299296
</Text>
300297
<TouchableOpacity
301298
style={styles.button}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lokal-dev/react-native-bugbubble",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "React Native in-app debugging tool - Monitor network requests, WebSocket events, console logs, and analytics in real-time. Zero configuration, TypeScript support, draggable UI.",
55
"main": "./lib/module/index.js",
66
"types": "./lib/typescript/src/index.d.ts",

src/components/BugBubble.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,3 @@ const styles = StyleSheet.create({
4949
zIndex: 9999,
5050
},
5151
});
52-

src/components/FloatingButton.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ export const FloatingButton: React.FC<FloatingButtonProps> = ({ style }) => {
4141
right: config.floatingButtonPosition.right ?? 20,
4242
});
4343
}
44-
}, [config?.floatingButtonPosition?.top, config?.floatingButtonPosition?.right]);
44+
}, [
45+
config?.floatingButtonPosition?.top,
46+
config?.floatingButtonPosition?.right,
47+
]);
4548

4649
const panResponder = useRef(
4750
PanResponder.create({

src/components/LogEntry/expanded/WebSocketExpanded.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ const getEventColor = (event: string): string => {
2525

2626
export const WebSocketExpanded = memo<WebSocketExpandedProps>(({ log }) => {
2727
const eventColor = getEventColor(log.event || 'unknown');
28-
const eventText = log.event && typeof log.event === 'string'
29-
? log.event.toUpperCase()
30-
: 'UNKNOWN';
28+
const eventText =
29+
log.event && typeof log.event === 'string'
30+
? log.event.toUpperCase()
31+
: 'UNKNOWN';
3132

3233
return (
3334
<View style={styles.container}>

src/components/LogList.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ export const LogList: React.FC<LogListProps> = React.memo(({ type }) => {
4040
<View style={styles.container}>
4141
<View style={styles.header}>
4242
<Text style={styles.title}>
43-
{type && typeof type === 'string'
44-
? `${type.charAt(0).toUpperCase()}${type.slice(1)} Logs (${logs.length})`
43+
{type && typeof type === 'string'
44+
? `${type.charAt(0).toUpperCase()}${type.slice(1)} Logs (${
45+
logs.length
46+
})`
4547
: `Logs (${logs.length})`}
4648
</Text>
4749
<TouchableOpacity

src/utils/searchUtils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ export const filterLogsBySearch = (
3232
*/
3333
const matchesSearchQuery = (log: LogEntry, query: string): boolean => {
3434
// Search in message
35-
if (log.message && typeof log.message === 'string' && log.message.toLowerCase().includes(query)) {
35+
if (
36+
log.message &&
37+
typeof log.message === 'string' &&
38+
log.message.toLowerCase().includes(query)
39+
) {
3640
return true;
3741
}
3842

yarn.lock

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,6 +2347,31 @@ __metadata:
23472347
languageName: node
23482348
linkType: hard
23492349

2350+
"@lokal-dev/react-native-bugbubble@workspace:.":
2351+
version: 0.0.0-use.local
2352+
resolution: "@lokal-dev/react-native-bugbubble@workspace:."
2353+
dependencies:
2354+
"@eslint/compat": "npm:^1.3.2"
2355+
"@eslint/eslintrc": "npm:^3.3.1"
2356+
"@eslint/js": "npm:^9.35.0"
2357+
"@react-native/babel-preset": "npm:0.81.1"
2358+
"@react-native/eslint-config": "npm:^0.81.1"
2359+
"@types/react": "npm:^19.1.12"
2360+
del-cli: "npm:^6.0.0"
2361+
eslint: "npm:^9.35.0"
2362+
eslint-config-prettier: "npm:^10.1.8"
2363+
eslint-plugin-prettier: "npm:^5.5.4"
2364+
prettier: "npm:^2.8.8"
2365+
react: "npm:19.1.0"
2366+
react-native: "npm:0.81.5"
2367+
react-native-builder-bob: "npm:^0.40.15"
2368+
typescript: "npm:^5.9.2"
2369+
peerDependencies:
2370+
react: "*"
2371+
react-native: "*"
2372+
languageName: unknown
2373+
linkType: soft
2374+
23502375
"@nicolo-ribaudo/eslint-scope-5-internals@npm:5.1.1-v1":
23512376
version: 5.1.1-v1
23522377
resolution: "@nicolo-ribaudo/eslint-scope-5-internals@npm:5.1.1-v1"
@@ -8422,6 +8447,22 @@ __metadata:
84228447
languageName: node
84238448
linkType: hard
84248449

8450+
"react-native-bugbubble-example@workspace:example":
8451+
version: 0.0.0-use.local
8452+
resolution: "react-native-bugbubble-example@workspace:example"
8453+
dependencies:
8454+
"@expo/metro-runtime": "npm:~6.1.2"
8455+
expo: "npm:~54.0.25"
8456+
expo-status-bar: "npm:~3.0.8"
8457+
react: "npm:19.1.0"
8458+
react-dom: "npm:19.1.0"
8459+
react-native: "npm:0.81.5"
8460+
react-native-builder-bob: "npm:^0.40.15"
8461+
react-native-monorepo-config: "npm:^0.1.9"
8462+
react-native-web: "npm:~0.21.0"
8463+
languageName: unknown
8464+
linkType: soft
8465+
84258466
"react-native-builder-bob@npm:^0.40.15":
84268467
version: 0.40.15
84278468
resolution: "react-native-builder-bob@npm:0.40.15"
@@ -8454,47 +8495,6 @@ __metadata:
84548495
languageName: node
84558496
linkType: hard
84568497

8457-
"react-native-in-app-devtools-example@workspace:example":
8458-
version: 0.0.0-use.local
8459-
resolution: "react-native-in-app-devtools-example@workspace:example"
8460-
dependencies:
8461-
"@expo/metro-runtime": "npm:~6.1.2"
8462-
expo: "npm:~54.0.25"
8463-
expo-status-bar: "npm:~3.0.8"
8464-
react: "npm:19.1.0"
8465-
react-dom: "npm:19.1.0"
8466-
react-native: "npm:0.81.5"
8467-
react-native-builder-bob: "npm:^0.40.15"
8468-
react-native-monorepo-config: "npm:^0.1.9"
8469-
react-native-web: "npm:~0.21.0"
8470-
languageName: unknown
8471-
linkType: soft
8472-
8473-
"react-native-in-app-devtools@workspace:.":
8474-
version: 0.0.0-use.local
8475-
resolution: "react-native-in-app-devtools@workspace:."
8476-
dependencies:
8477-
"@eslint/compat": "npm:^1.3.2"
8478-
"@eslint/eslintrc": "npm:^3.3.1"
8479-
"@eslint/js": "npm:^9.35.0"
8480-
"@react-native/babel-preset": "npm:0.81.1"
8481-
"@react-native/eslint-config": "npm:^0.81.1"
8482-
"@types/react": "npm:^19.1.12"
8483-
del-cli: "npm:^6.0.0"
8484-
eslint: "npm:^9.35.0"
8485-
eslint-config-prettier: "npm:^10.1.8"
8486-
eslint-plugin-prettier: "npm:^5.5.4"
8487-
prettier: "npm:^2.8.8"
8488-
react: "npm:19.1.0"
8489-
react-native: "npm:0.81.5"
8490-
react-native-builder-bob: "npm:^0.40.15"
8491-
typescript: "npm:^5.9.2"
8492-
peerDependencies:
8493-
react: "*"
8494-
react-native: "*"
8495-
languageName: unknown
8496-
linkType: soft
8497-
84988498
"react-native-is-edge-to-edge@npm:^1.2.1":
84998499
version: 1.2.1
85008500
resolution: "react-native-is-edge-to-edge@npm:1.2.1"

0 commit comments

Comments
 (0)