@luciq/react-native 19.4.0-47163-SNAPSHOT → 19.4.0-47882-SNAPSHOT
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/dist/modules/Luciq.js +8 -0
- package/package.json +1 -1
- package/scripts/notify-github.sh +17 -8
- package/src/modules/Luciq.ts +10 -0
package/dist/modules/Luciq.js
CHANGED
|
@@ -55,6 +55,14 @@ export const init = (config) => {
|
|
|
55
55
|
// Add android feature flags listener for android
|
|
56
56
|
registerFeatureFlagsListener();
|
|
57
57
|
addOnFeatureUpdatedListener(config);
|
|
58
|
+
// Enable the JS XHR interceptor synchronously so cold-start requests
|
|
59
|
+
// (fired before LCQ_ON_FEATURES_UPDATED_CALLBACK arrives) are captured.
|
|
60
|
+
handleNetworkInterceptionMode(config);
|
|
61
|
+
setApmNetworkFlagsIfChanged({
|
|
62
|
+
isNativeInterceptionFeatureEnabled: isNativeInterceptionFeatureEnabled,
|
|
63
|
+
hasAPMNetworkPlugin: hasAPMNetworkPlugin,
|
|
64
|
+
shouldEnableNativeInterception: shouldEnableNativeInterception,
|
|
65
|
+
});
|
|
58
66
|
}
|
|
59
67
|
else {
|
|
60
68
|
isNativeInterceptionFeatureEnabled = NativeNetworkLogger.isNativeInterceptionEnabled();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luciq/react-native",
|
|
3
3
|
"description": "Luciq is the Agentic Observability Platform built for Mobile.",
|
|
4
|
-
"version": "19.4.0-
|
|
4
|
+
"version": "19.4.0-47882-SNAPSHOT",
|
|
5
5
|
"author": "Luciq (https://luciq.ai)",
|
|
6
6
|
"repository": "github:luciqai/luciq-reactnative-sdk",
|
|
7
7
|
"homepage": "https://www.luciq.ai/platforms/react-native",
|
package/scripts/notify-github.sh
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
+
set -euo pipefail
|
|
4
|
+
|
|
3
5
|
pr_url="https://api.github.com/repos/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/pulls?head=$CIRCLE_PROJECT_USERNAME:$CIRCLE_BRANCH&state=open"
|
|
4
6
|
pr_response=$(curl --location --request GET "$pr_url" --header "Authorization: Bearer $RELEASE_GITHUB_TOKEN")
|
|
5
7
|
|
|
6
|
-
if
|
|
7
|
-
echo "
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
if ! echo "$pr_response" | jq -e 'type == "array"' >/dev/null; then
|
|
9
|
+
echo "Unexpected GitHub API response (not an array):"
|
|
10
|
+
echo "$pr_response"
|
|
11
|
+
exit 1
|
|
12
|
+
fi
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
--data-raw "$1"
|
|
14
|
+
if [ "$(echo "$pr_response" | jq length)" -eq 0 ]; then
|
|
15
|
+
echo "No PR found to update"
|
|
16
|
+
exit 0
|
|
15
17
|
fi
|
|
18
|
+
|
|
19
|
+
pr_comment_url=$(echo "$pr_response" | jq -r ".[]._links.comments.href")
|
|
20
|
+
|
|
21
|
+
curl --location --request POST "$pr_comment_url" \
|
|
22
|
+
--header 'Content-Type: application/json' \
|
|
23
|
+
--header "Authorization: Bearer $RELEASE_GITHUB_TOKEN" \
|
|
24
|
+
--data-raw "$1"
|
package/src/modules/Luciq.ts
CHANGED
|
@@ -87,6 +87,16 @@ export const init = (config: LuciqConfig) => {
|
|
|
87
87
|
// Add android feature flags listener for android
|
|
88
88
|
registerFeatureFlagsListener();
|
|
89
89
|
addOnFeatureUpdatedListener(config);
|
|
90
|
+
|
|
91
|
+
// Enable the JS XHR interceptor synchronously so cold-start requests
|
|
92
|
+
// (fired before LCQ_ON_FEATURES_UPDATED_CALLBACK arrives) are captured.
|
|
93
|
+
handleNetworkInterceptionMode(config);
|
|
94
|
+
|
|
95
|
+
setApmNetworkFlagsIfChanged({
|
|
96
|
+
isNativeInterceptionFeatureEnabled: isNativeInterceptionFeatureEnabled,
|
|
97
|
+
hasAPMNetworkPlugin: hasAPMNetworkPlugin,
|
|
98
|
+
shouldEnableNativeInterception: shouldEnableNativeInterception,
|
|
99
|
+
});
|
|
90
100
|
} else {
|
|
91
101
|
isNativeInterceptionFeatureEnabled = NativeNetworkLogger.isNativeInterceptionEnabled();
|
|
92
102
|
|