@goliapkg/sentori-react-native 0.9.9 → 0.9.10
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/expo-module.config.json +2 -1
- package/lib/replay.d.ts.map +1 -1
- package/lib/replay.js +9 -12
- package/lib/replay.js.map +1 -1
- package/package.json +1 -1
- package/src/replay.ts +9 -12
package/expo-module.config.json
CHANGED
package/lib/replay.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../src/replay.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../src/replay.ts"],"names":[],"mappings":"AA8CA,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC;IAC3B,mCAAmC;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,wBAAgB,WAAW,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,CAkCrD;AAED,wBAAgB,UAAU,IAAI,IAAI,CAOjC;AA6CD;;2BAE2B;AAC3B,wBAAgB,WAAW,IAAI,MAAM,CAKpC;AAED,wBAAgB,qBAAqB,IAAI,IAAI,CAG5C"}
|
package/lib/replay.js
CHANGED
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
import { startSpan } from '@goliapkg/sentori-core';
|
|
20
20
|
import { getRegisteredMaskQuery } from './mask';
|
|
21
21
|
import { describeWireframeNative } from './native';
|
|
22
|
-
import { isNativeModuleLinked } from './native-loader';
|
|
23
22
|
const TICK_INTERVAL_MS = 1000;
|
|
24
23
|
const RING_SIZE = 60;
|
|
25
24
|
/** Floor on tick period. < 250 ms (4 Hz) the native view-tree walk
|
|
@@ -41,23 +40,21 @@ export function startReplay(opts) {
|
|
|
41
40
|
return;
|
|
42
41
|
if (opts.mode !== 'wireframe')
|
|
43
42
|
return;
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
|
|
43
|
+
// v0.9.10 — gate via expo-modules-core's registry (same path the
|
|
44
|
+
// screenshot capture uses). The previous `isNativeModuleLinked`
|
|
45
|
+
// check looked at the legacy `RN.NativeModules` map, but the
|
|
46
|
+
// Sentori module is registered through expo-modules-core; the
|
|
47
|
+
// legacy map never sees it, so this branch returned "not linked"
|
|
48
|
+
// forever even with the pod correctly attached (Insight 2026-05-17).
|
|
49
|
+
const info = describeWireframeNative();
|
|
50
|
+
if (!info.bound) {
|
|
48
51
|
if (typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
49
52
|
// eslint-disable-next-line no-console
|
|
50
|
-
console.warn('[sentori] replay: Sentori native module not
|
|
53
|
+
console.warn('[sentori] replay: Sentori native module not bound (expo-modules-core) — replay attachments will stay empty');
|
|
51
54
|
}
|
|
52
|
-
// Falls back silently. Replay rings stay empty; captureException
|
|
53
|
-
// simply doesn't attach a replay.
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
56
|
-
// v0.9.9 — log once per start so Insight (or anyone) can confirm
|
|
57
|
-
// whether the native module exposes captureWireframe at all,
|
|
58
|
-
// distinguishing this from "ring never filled because tick threw".
|
|
59
57
|
if (typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
60
|
-
const info = describeWireframeNative();
|
|
61
58
|
// eslint-disable-next-line no-console
|
|
62
59
|
console.warn('[sentori] replay: starting', 'bound=', info.bound, 'hasCaptureWireframe=', info.hasCaptureWireframe);
|
|
63
60
|
}
|
package/lib/replay.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay.js","sourceRoot":"","sources":["../src/replay.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,EAAE;AACF,mEAAmE;AACnE,mEAAmE;AACnE,kEAAkE;AAClE,kEAAkE;AAClE,4DAA4D;AAC5D,EAAE;AACF,gCAAgC;AAChC,kEAAkE;AAClE,iEAAiE;AACjE,+DAA+D;AAC/D,6DAA6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CAAC;IAClC,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7B,KAAK,GAAG,EAAE,CAAC;IACX,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,qBAAqB;IACnC,UAAU,EAAE,CAAC;IACb,KAAK,GAAG,EAAE,CAAC;AACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goliapkg/sentori-react-native",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.10",
|
|
4
4
|
"description": "Sentori SDK for React Native \u2014 JS-layer error capture, native crash handlers (iOS / Android), batched transport, fetch + react-navigation tracing.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://sentori.golia.jp",
|
package/src/replay.ts
CHANGED
|
@@ -21,7 +21,6 @@ import { startSpan } from '@goliapkg/sentori-core';
|
|
|
21
21
|
|
|
22
22
|
import { getRegisteredMaskQuery } from './mask';
|
|
23
23
|
import { describeWireframeNative } from './native';
|
|
24
|
-
import { isNativeModuleLinked } from './native-loader';
|
|
25
24
|
|
|
26
25
|
declare const __DEV__: boolean | undefined;
|
|
27
26
|
|
|
@@ -54,25 +53,23 @@ export type ReplayOptions = {
|
|
|
54
53
|
export function startReplay(opts: ReplayOptions): void {
|
|
55
54
|
if (_running) return;
|
|
56
55
|
if (opts.mode !== 'wireframe') return;
|
|
57
|
-
//
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
|
|
56
|
+
// v0.9.10 — gate via expo-modules-core's registry (same path the
|
|
57
|
+
// screenshot capture uses). The previous `isNativeModuleLinked`
|
|
58
|
+
// check looked at the legacy `RN.NativeModules` map, but the
|
|
59
|
+
// Sentori module is registered through expo-modules-core; the
|
|
60
|
+
// legacy map never sees it, so this branch returned "not linked"
|
|
61
|
+
// forever even with the pod correctly attached (Insight 2026-05-17).
|
|
62
|
+
const info = describeWireframeNative();
|
|
63
|
+
if (!info.bound) {
|
|
61
64
|
if (typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
62
65
|
// eslint-disable-next-line no-console
|
|
63
66
|
console.warn(
|
|
64
|
-
'[sentori] replay: Sentori native module not
|
|
67
|
+
'[sentori] replay: Sentori native module not bound (expo-modules-core) — replay attachments will stay empty',
|
|
65
68
|
);
|
|
66
69
|
}
|
|
67
|
-
// Falls back silently. Replay rings stay empty; captureException
|
|
68
|
-
// simply doesn't attach a replay.
|
|
69
70
|
return;
|
|
70
71
|
}
|
|
71
|
-
// v0.9.9 — log once per start so Insight (or anyone) can confirm
|
|
72
|
-
// whether the native module exposes captureWireframe at all,
|
|
73
|
-
// distinguishing this from "ring never filled because tick threw".
|
|
74
72
|
if (typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
75
|
-
const info = describeWireframeNative();
|
|
76
73
|
// eslint-disable-next-line no-console
|
|
77
74
|
console.warn(
|
|
78
75
|
'[sentori] replay: starting',
|