react-native-test-adx 0.1.18 → 0.1.19

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.
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
 
3
3
  /** Keep in sync with package.json "version" (published npm packages ship lib/ only). */
4
- export const SDK_VERSION = '0.1.18';
4
+ export const SDK_VERSION = '0.1.19';
@@ -7,6 +7,9 @@ const DEFAULT_LEVEL = 'info';
7
7
 
8
8
  /** Milestones + native dev warn/error → Sentry Message when Logs are off. */
9
9
  const SENTRY_MESSAGE_EVENTS = new Set(['sdk.initialize.completed', 'sdk.initialize.failed', 'recommendation.response.received', 'ad.displayed', 'ad.dismissed', 'ad.show.failed']);
10
+
11
+ /** Native dev: avoid captureMessage during interstitial UI (fake Sentry Issues + bundle stacks). */
12
+ const NATIVE_DEV_BREADCRUMB_ONLY_EVENTS = new Set(['ad.show.started', 'ad.displayed', 'ad.dismissed']);
10
13
  let cachedSentryModule;
11
14
  let missingSentryPeerWarningShown = false;
12
15
  function isDevBuild() {
@@ -64,7 +67,10 @@ function planSentryDelivery(input, level, platform, sentStructuredLog, ownsSentr
64
67
  if (input.captureAsEvent && input.error === undefined) {
65
68
  sendMessage = true;
66
69
  } else if (SENTRY_MESSAGE_EVENTS.has(input.eventName)) {
67
- sendMessage = true;
70
+ const skipMessage = nativeDev && NATIVE_DEV_BREADCRUMB_ONLY_EVENTS.has(input.eventName);
71
+ if (!skipMessage) {
72
+ sendMessage = true;
73
+ }
68
74
  } else if (nativeDev && (level === 'warn' || level === 'error')) {
69
75
  sendMessage = true;
70
76
  }
@@ -1,3 +1,3 @@
1
1
  /** Keep in sync with package.json "version" (published npm packages ship lib/ only). */
2
- export declare const SDK_VERSION = "0.1.18";
2
+ export declare const SDK_VERSION = "0.1.19";
3
3
  //# sourceMappingURL=sdkVersion.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-test-adx",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Adaxon React Native / Expo SDK for event tracking and offer recommendations.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",