@logbrew/react-native 0.1.39 → 0.1.40
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/android-native-diagnostics.d.ts +15 -5
- package/android-native-diagnostics.js +170 -94
- package/apollo.cjs +435 -226
- package/apollo.d.cts +2 -70
- package/apollo.d.ts +24 -12
- package/apollo.js +438 -221
- package/apple-native-diagnostics-config.js +176 -0
- package/apple-native-diagnostics-context.js +232 -0
- package/apple-native-diagnostics-module.js +229 -0
- package/apple-native-diagnostics.d.ts +42 -11
- package/apple-native-diagnostics.js +60 -389
- package/expo.cjs +29 -16
- package/expo.d.ts +10 -9
- package/expo.js +4 -3
- package/fatal-admission.cjs +113 -0
- package/fatal-record.cjs +317 -0
- package/fatal-replay.cjs +297 -508
- package/global-errors-capture.cjs +369 -0
- package/global-errors-event.cjs +174 -0
- package/global-errors-support.cjs +128 -0
- package/global-errors.cjs +75 -351
- package/global-errors.d.cts +29 -278
- package/global-errors.d.ts +57 -27
- package/global-errors.js +7 -2
- package/global-errors.native.js +83 -48
- package/index-breadcrumbs.cjs +139 -0
- package/index-errors.cjs +167 -0
- package/index-events.cjs +365 -0
- package/index-navigation.cjs +327 -0
- package/index-random.cjs +120 -0
- package/index-react.cjs +189 -0
- package/index-spans.cjs +190 -0
- package/index-trace-fetch.cjs +322 -0
- package/index-trace.cjs +335 -0
- package/index-transport.cjs +201 -0
- package/index-values.cjs +232 -0
- package/index.cjs +95 -1243
- package/index.d.cts +2 -505
- package/index.d.ts +130 -469
- package/index.native.d.ts +146 -22
- package/index.native.js +184 -159
- package/instrumentation-fetch.cjs +113 -0
- package/instrumentation-install.cjs +241 -0
- package/instrumentation-runtime.cjs +65 -0
- package/instrumentation-teardown.cjs +93 -0
- package/instrumentation-values.cjs +282 -0
- package/instrumentation-xhr-request.cjs +298 -0
- package/instrumentation-xhr.cjs +233 -0
- package/instrumentation.cjs +110 -599
- package/instrumentation.d.cts +2 -84
- package/instrumentation.d.ts +22 -8
- package/ios/AppleDiagnostics/LBRNAppleNativeDiagnostics.swift +1 -1
- package/lifecycle.cjs +181 -78
- package/lifecycle.d.cts +1 -50
- package/lifecycle.d.ts +17 -6
- package/metadata.cjs +279 -114
- package/metro-debug-id.cjs +296 -0
- package/metro-serializer.cjs +219 -0
- package/metro.cjs +153 -297
- package/metro.d.cts +2 -57
- package/metro.d.ts +27 -13
- package/metro.js +2 -3
- package/native-bridge-async.cjs +165 -0
- package/native-bridge-scope.cjs +148 -0
- package/native-bridge.cjs +83 -186
- package/native-bridge.d.cts +2 -94
- package/native-bridge.d.ts +28 -15
- package/native-client-bindings.js +230 -0
- package/native-diagnostics-values.js +120 -0
- package/native-module-lookup.js +31 -0
- package/native-null.js +3 -0
- package/null-value.cjs +4 -0
- package/package.json +43 -1
- package/persistent-delivery-store.js +247 -0
- package/persistent-delivery.native.js +183 -261
- package/promise-rejection-handlers.cjs +368 -0
- package/promise-rejections.cjs +169 -361
- package/react-native.config.js +3 -1
- package/release-artifacts-files.cjs +94 -0
- package/release-artifacts-options.cjs +182 -0
- package/release-artifacts.cjs +278 -207
- package/release-artifacts.d.cts +2 -55
- package/release-artifacts.d.ts +18 -7
- package/release-artifacts.js +2 -4
- package/resource-fetch-graphql.cjs +265 -0
- package/resource-fetch-size.cjs +156 -0
- package/resource-fetch.cjs +227 -428
- package/resource-fetch.d.cts +1 -60
- package/resource-fetch.d.ts +17 -6
- package/scripts/sync-apple-native-sources.mjs +101 -53
- package/types/capture.d.ts +95 -0
- package/types/config.d.ts +85 -0
- package/types/defaults.d.ts +55 -0
- package/types/events.d.ts +203 -0
- package/types/provider.d.ts +81 -0
- package/types/trace.d.ts +104 -0
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { isRecord, readField } from "./native-diagnostics-values.js";
|
|
2
|
+
import { DeviceEventEmitter } from "react-native";
|
|
3
|
+
import { NATIVE_CLEAR } from "./native-null.js";
|
|
4
|
+
import { platformOS } from "./native-module-lookup.js";
|
|
5
|
+
import { syncLogBrewAppleNativeCrashBreadcrumbs } from "./apple-native-diagnostics-module.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @import { LogBrewClient, Transport, TransportResponse } from "@logbrew/sdk"
|
|
9
|
+
* @typedef {readonly [readonly unknown[], unknown]} BreadcrumbState
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const SCHEMA_VERSION = 1;
|
|
13
|
+
const NO_BREADCRUMBS = 0;
|
|
14
|
+
const FIRST_INDEX = 0;
|
|
15
|
+
const IGNORED_SYNC_CODES = new Set(["native_diagnostics_not_installed", "native_diagnostics_unavailable"]);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @param {unknown} value
|
|
19
|
+
* @returns {value is unknown[]}
|
|
20
|
+
*/
|
|
21
|
+
function isMutableList(value) {
|
|
22
|
+
return Array.isArray(value);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @param {unknown} value
|
|
27
|
+
* @returns {value is object}
|
|
28
|
+
*/
|
|
29
|
+
function isObjectLike(value) {
|
|
30
|
+
return value !== null && (typeof value === "object" || typeof value === "function");
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @param {Readonly<LogBrewClient>} client
|
|
35
|
+
* @returns {unknown[]}
|
|
36
|
+
*/
|
|
37
|
+
function issueBreadcrumbs(client) {
|
|
38
|
+
/** @type {unknown} */
|
|
39
|
+
const breadcrumbs = Reflect.get(client, "issueBreadcrumbs");
|
|
40
|
+
if (!isMutableList(breadcrumbs)) {
|
|
41
|
+
throw new TypeError("client issueBreadcrumbs must be an array");
|
|
42
|
+
}
|
|
43
|
+
return breadcrumbs;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @param {Readonly<LogBrewClient>} client
|
|
48
|
+
* @returns {unknown}
|
|
49
|
+
*/
|
|
50
|
+
function issueBreadcrumbsTruncated(client) {
|
|
51
|
+
/** @type {unknown} */
|
|
52
|
+
const truncated = Reflect.get(client, "issueBreadcrumbsTruncated");
|
|
53
|
+
return truncated;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @param {unknown} entry
|
|
58
|
+
* @returns {Record<string, unknown>}
|
|
59
|
+
*/
|
|
60
|
+
function snapshotBreadcrumb(entry) {
|
|
61
|
+
if (!isRecord(entry)) {
|
|
62
|
+
throw new TypeError("client breadcrumbs must be objects");
|
|
63
|
+
}
|
|
64
|
+
const { data, ...breadcrumb } = entry;
|
|
65
|
+
if (data === undefined) {
|
|
66
|
+
return { ...breadcrumb };
|
|
67
|
+
}
|
|
68
|
+
return { ...breadcrumb, data: isObjectLike(data) ? { ...data } : {} };
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @param {Readonly<LogBrewClient>} client
|
|
73
|
+
*/
|
|
74
|
+
function syncAppleNativeCrashBreadcrumbs(client) {
|
|
75
|
+
const breadcrumbs = issueBreadcrumbs(client);
|
|
76
|
+
const snapshot = breadcrumbs.length === NO_BREADCRUMBS
|
|
77
|
+
? NATIVE_CLEAR
|
|
78
|
+
: {
|
|
79
|
+
breadcrumbs: breadcrumbs.map(entry => snapshotBreadcrumb(entry)),
|
|
80
|
+
schemaVersion: SCHEMA_VERSION,
|
|
81
|
+
truncated: issueBreadcrumbsTruncated(client)
|
|
82
|
+
};
|
|
83
|
+
try {
|
|
84
|
+
syncLogBrewAppleNativeCrashBreadcrumbs(snapshot);
|
|
85
|
+
} catch (error) {
|
|
86
|
+
const code = readField(error, "code");
|
|
87
|
+
if (typeof code !== "string" || !IGNORED_SYNC_CODES.has(code)) {
|
|
88
|
+
throw error;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @param {Readonly<LogBrewClient>} client
|
|
95
|
+
* @param {BreadcrumbState} previous
|
|
96
|
+
*/
|
|
97
|
+
function restoreBreadcrumbs(client, previous) {
|
|
98
|
+
const [breadcrumbs, truncated] = previous;
|
|
99
|
+
const current = issueBreadcrumbs(client);
|
|
100
|
+
current.splice(FIRST_INDEX, current.length, ...breadcrumbs);
|
|
101
|
+
Reflect.set(client, "issueBreadcrumbsTruncated", truncated);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @template T
|
|
106
|
+
* @param {Readonly<LogBrewClient>} client
|
|
107
|
+
* @param {() => T} update
|
|
108
|
+
* @returns {T}
|
|
109
|
+
*/
|
|
110
|
+
function updateAppleNativeBreadcrumbs(client, update) {
|
|
111
|
+
/** @type {BreadcrumbState} */
|
|
112
|
+
const previous = [[...issueBreadcrumbs(client)], issueBreadcrumbsTruncated(client)];
|
|
113
|
+
const result = update();
|
|
114
|
+
try {
|
|
115
|
+
syncAppleNativeCrashBreadcrumbs(client);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
restoreBreadcrumbs(client, previous);
|
|
118
|
+
throw error;
|
|
119
|
+
}
|
|
120
|
+
return result;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @param {Readonly<LogBrewClient>} client
|
|
125
|
+
* @param {(...args: readonly never[]) => unknown} addBreadcrumb
|
|
126
|
+
* @returns {(...args: readonly unknown[]) => void}
|
|
127
|
+
*/
|
|
128
|
+
function breadcrumbAdder(client, addBreadcrumb) {
|
|
129
|
+
return (...args) => {
|
|
130
|
+
updateAppleNativeBreadcrumbs(client, () => {
|
|
131
|
+
Reflect.apply(addBreadcrumb, undefined, args);
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @param {Readonly<LogBrewClient>} client
|
|
138
|
+
* @param {() => number} clearBreadcrumbs
|
|
139
|
+
* @returns {() => number}
|
|
140
|
+
*/
|
|
141
|
+
function breadcrumbClearer(client, clearBreadcrumbs) {
|
|
142
|
+
return () => updateAppleNativeBreadcrumbs(client, clearBreadcrumbs);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @param {LogBrewClient} client
|
|
147
|
+
* @returns {LogBrewClient}
|
|
148
|
+
*/
|
|
149
|
+
function bindAppleNativeCrashBreadcrumbs(client) {
|
|
150
|
+
if (platformOS() !== "ios") {
|
|
151
|
+
return client;
|
|
152
|
+
}
|
|
153
|
+
const addBreadcrumb = client.addBreadcrumb.bind(client);
|
|
154
|
+
const clearBreadcrumbs = client.clearBreadcrumbs.bind(client);
|
|
155
|
+
client.addBreadcrumb = breadcrumbAdder(client, addBreadcrumb);
|
|
156
|
+
client.clearBreadcrumbs = breadcrumbClearer(client, clearBreadcrumbs);
|
|
157
|
+
syncAppleNativeCrashBreadcrumbs(client);
|
|
158
|
+
return client;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @param {Readonly<LogBrewClient>} client
|
|
163
|
+
* @returns {Promise<void>}
|
|
164
|
+
*/
|
|
165
|
+
async function flushQuietly(client) {
|
|
166
|
+
try {
|
|
167
|
+
await client.flush();
|
|
168
|
+
} catch {
|
|
169
|
+
return undefined;
|
|
170
|
+
}
|
|
171
|
+
return undefined;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @param {unknown} subscription
|
|
176
|
+
*/
|
|
177
|
+
function removeSubscription(subscription) {
|
|
178
|
+
const remove = readField(subscription, "remove");
|
|
179
|
+
if (remove === undefined || remove === null) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
if (typeof remove !== "function") {
|
|
183
|
+
throw new TypeError("subscription.remove is not a function");
|
|
184
|
+
}
|
|
185
|
+
Reflect.apply(remove, subscription, []);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @param {Readonly<LogBrewClient>} client
|
|
190
|
+
* @param {(...args: readonly Transport[]) => Promise<TransportResponse>} shutdown
|
|
191
|
+
* @param {unknown} subscription
|
|
192
|
+
* @returns {(...args: readonly Transport[]) => Promise<TransportResponse>}
|
|
193
|
+
*/
|
|
194
|
+
function closingShutdown(client, shutdown, subscription) {
|
|
195
|
+
return async (...args) => {
|
|
196
|
+
try {
|
|
197
|
+
return await shutdown(...args);
|
|
198
|
+
} finally {
|
|
199
|
+
if (client.deliveryHealth().lifecycle === "closed") {
|
|
200
|
+
removeSubscription(subscription);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @param {LogBrewClient} client
|
|
208
|
+
* @param {boolean} durable
|
|
209
|
+
* @returns {LogBrewClient}
|
|
210
|
+
*/
|
|
211
|
+
function bindAndroidNativeDelivery(client, durable) {
|
|
212
|
+
/** @type {unknown} */
|
|
213
|
+
const emitter = DeviceEventEmitter;
|
|
214
|
+
const addListener = readField(emitter, "addListener");
|
|
215
|
+
if (!durable || platformOS() !== "android" || typeof addListener !== "function") {
|
|
216
|
+
return client;
|
|
217
|
+
}
|
|
218
|
+
/** @type {unknown} */
|
|
219
|
+
const subscription = Reflect.apply(addListener, emitter, [
|
|
220
|
+
"logbrewAndroidDiagnosticPersisted",
|
|
221
|
+
() => {
|
|
222
|
+
void flushQuietly(client);
|
|
223
|
+
}
|
|
224
|
+
]);
|
|
225
|
+
const shutdown = client.shutdown.bind(client);
|
|
226
|
+
client.shutdown = closingShutdown(client, shutdown, subscription);
|
|
227
|
+
return client;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export { bindAndroidNativeDelivery, bindAppleNativeCrashBreadcrumbs };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
const FIRST_CODE_POINT = 0;
|
|
2
|
+
const LAST_C0_CONTROL = 0x1F;
|
|
3
|
+
const FIRST_C1_CONTROL = 0x7F;
|
|
4
|
+
const LAST_C1_CONTROL = 0x9F;
|
|
5
|
+
const ONE_BYTE_LIMIT = 0x7F;
|
|
6
|
+
const TWO_BYTE_LIMIT = 0x7_FF;
|
|
7
|
+
const THREE_BYTE_LIMIT = 0xFF_FF;
|
|
8
|
+
const ONE_BYTE = 1;
|
|
9
|
+
const TWO_BYTES = 2;
|
|
10
|
+
const THREE_BYTES = 3;
|
|
11
|
+
const FOUR_BYTES = 4;
|
|
12
|
+
const NO_BYTES = 0;
|
|
13
|
+
const MIN_COUNT = 0;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @param {unknown} value
|
|
17
|
+
* @returns {value is Readonly<Record<string, unknown>>}
|
|
18
|
+
*/
|
|
19
|
+
function isRecord(value) {
|
|
20
|
+
return value !== null && !Array.isArray(value) && typeof value === "object";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @param {unknown} value
|
|
25
|
+
* @returns {value is number}
|
|
26
|
+
*/
|
|
27
|
+
function isCount(value) {
|
|
28
|
+
return Number.isSafeInteger(value) && typeof value === "number" && value >= MIN_COUNT;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @param {unknown} value
|
|
33
|
+
* @param {string} key
|
|
34
|
+
* @returns {unknown}
|
|
35
|
+
*/
|
|
36
|
+
function readField(value, key) {
|
|
37
|
+
return (typeof value === "object" && value !== null) || typeof value === "function"
|
|
38
|
+
? Reflect.get(value, key)
|
|
39
|
+
: undefined;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @param {object} value
|
|
44
|
+
* @param {string} key
|
|
45
|
+
* @returns {boolean}
|
|
46
|
+
*/
|
|
47
|
+
function hasOwnKey(value, key) {
|
|
48
|
+
return Object.getOwnPropertyDescriptor(value, key) !== undefined;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @param {string} character
|
|
53
|
+
* @returns {number}
|
|
54
|
+
*/
|
|
55
|
+
function codePointOf(character) {
|
|
56
|
+
return character.codePointAt(FIRST_CODE_POINT) ?? FIRST_CODE_POINT;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @param {string} value
|
|
61
|
+
* @returns {boolean}
|
|
62
|
+
*/
|
|
63
|
+
function hasControlCharacter(value) {
|
|
64
|
+
for (const scalar of value) {
|
|
65
|
+
const codePoint = codePointOf(scalar);
|
|
66
|
+
if (codePoint <= LAST_C0_CONTROL || (codePoint >= FIRST_C1_CONTROL && codePoint <= LAST_C1_CONTROL)) {
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @param {number} codePoint
|
|
75
|
+
* @returns {number}
|
|
76
|
+
*/
|
|
77
|
+
function scalarBytes(codePoint) {
|
|
78
|
+
if (codePoint <= ONE_BYTE_LIMIT) {
|
|
79
|
+
return ONE_BYTE;
|
|
80
|
+
}
|
|
81
|
+
if (codePoint <= TWO_BYTE_LIMIT) {
|
|
82
|
+
return TWO_BYTES;
|
|
83
|
+
}
|
|
84
|
+
return codePoint <= THREE_BYTE_LIMIT ? THREE_BYTES : FOUR_BYTES;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @param {string} value
|
|
89
|
+
* @returns {number}
|
|
90
|
+
*/
|
|
91
|
+
function utf8Length(value) {
|
|
92
|
+
let bytes = NO_BYTES;
|
|
93
|
+
for (const scalar of value) {
|
|
94
|
+
bytes += scalarBytes(codePointOf(scalar));
|
|
95
|
+
}
|
|
96
|
+
return bytes;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @param {unknown} target
|
|
101
|
+
* @param {string} method
|
|
102
|
+
* @param {readonly unknown[]} args
|
|
103
|
+
* @returns {{ found: false } | { found: true, call: () => unknown }}
|
|
104
|
+
*/
|
|
105
|
+
function nativeMethod(target, method, args) {
|
|
106
|
+
const candidate = readField(target, method);
|
|
107
|
+
if (typeof candidate !== "function") {
|
|
108
|
+
return { found: false };
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
call() {
|
|
112
|
+
/** @type {unknown} */
|
|
113
|
+
const result = Reflect.apply(candidate, target, args);
|
|
114
|
+
return result;
|
|
115
|
+
},
|
|
116
|
+
found: true
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export { hasControlCharacter, hasOwnKey, isCount, isRecord, nativeMethod, readField, utf8Length };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { NativeModules, Platform, TurboModuleRegistry } from "react-native";
|
|
2
|
+
import { readField } from "./native-diagnostics-values.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @param {string} name
|
|
6
|
+
* @returns {unknown}
|
|
7
|
+
*/
|
|
8
|
+
function lookupNativeModule(name) {
|
|
9
|
+
/** @type {unknown} */
|
|
10
|
+
const registry = TurboModuleRegistry;
|
|
11
|
+
const get = readField(registry, "get");
|
|
12
|
+
if (get !== undefined && get !== null && typeof get !== "function") {
|
|
13
|
+
throw new TypeError("TurboModuleRegistry.get is not a function");
|
|
14
|
+
}
|
|
15
|
+
/** @type {unknown} */
|
|
16
|
+
const fromRegistry = typeof get === "function" ? Reflect.apply(get, registry, [name]) : undefined;
|
|
17
|
+
/** @type {unknown} */
|
|
18
|
+
const legacy = NativeModules;
|
|
19
|
+
return fromRegistry ?? readField(legacy, name);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @returns {unknown}
|
|
24
|
+
*/
|
|
25
|
+
function platformOS() {
|
|
26
|
+
/** @type {unknown} */
|
|
27
|
+
const platform = Platform;
|
|
28
|
+
return readField(platform, "OS");
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { lookupNativeModule, platformOS };
|
package/native-null.js
ADDED
package/null-value.cjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logbrew/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"description": "React Native offline delivery, native diagnostics, screen, error, trace, action, and network timeline helpers for LogBrew.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.cjs",
|
|
@@ -151,16 +151,35 @@
|
|
|
151
151
|
},
|
|
152
152
|
"files": [
|
|
153
153
|
"index.cjs",
|
|
154
|
+
"index-values.cjs",
|
|
155
|
+
"index-random.cjs",
|
|
156
|
+
"index-trace.cjs",
|
|
157
|
+
"index-transport.cjs",
|
|
158
|
+
"index-trace-fetch.cjs",
|
|
159
|
+
"index-breadcrumbs.cjs",
|
|
160
|
+
"index-events.cjs",
|
|
161
|
+
"index-spans.cjs",
|
|
162
|
+
"index-navigation.cjs",
|
|
163
|
+
"index-errors.cjs",
|
|
164
|
+
"index-react.cjs",
|
|
154
165
|
"index.js",
|
|
155
166
|
"index.native.js",
|
|
156
167
|
"index.native.d.ts",
|
|
157
168
|
"index.d.ts",
|
|
158
169
|
"index.d.cts",
|
|
170
|
+
"types",
|
|
159
171
|
"apollo.cjs",
|
|
160
172
|
"apollo.js",
|
|
161
173
|
"apollo.d.ts",
|
|
162
174
|
"apollo.d.cts",
|
|
163
175
|
"instrumentation.cjs",
|
|
176
|
+
"instrumentation-teardown.cjs",
|
|
177
|
+
"instrumentation-fetch.cjs",
|
|
178
|
+
"instrumentation-install.cjs",
|
|
179
|
+
"instrumentation-runtime.cjs",
|
|
180
|
+
"instrumentation-values.cjs",
|
|
181
|
+
"instrumentation-xhr-request.cjs",
|
|
182
|
+
"instrumentation-xhr.cjs",
|
|
164
183
|
"instrumentation.js",
|
|
165
184
|
"instrumentation.d.ts",
|
|
166
185
|
"instrumentation.d.cts",
|
|
@@ -169,34 +188,57 @@
|
|
|
169
188
|
"lifecycle.d.ts",
|
|
170
189
|
"lifecycle.d.cts",
|
|
171
190
|
"global-errors.cjs",
|
|
191
|
+
"global-errors-capture.cjs",
|
|
192
|
+
"global-errors-event.cjs",
|
|
193
|
+
"global-errors-support.cjs",
|
|
172
194
|
"promise-rejections.cjs",
|
|
195
|
+
"promise-rejection-handlers.cjs",
|
|
173
196
|
"fatal-replay.cjs",
|
|
197
|
+
"fatal-admission.cjs",
|
|
198
|
+
"fatal-record.cjs",
|
|
174
199
|
"persistent-delivery.native.js",
|
|
200
|
+
"persistent-delivery-store.js",
|
|
175
201
|
"global-errors.js",
|
|
176
202
|
"global-errors.native.js",
|
|
177
203
|
"global-errors.d.ts",
|
|
178
204
|
"global-errors.d.cts",
|
|
179
205
|
"metadata.cjs",
|
|
206
|
+
"null-value.cjs",
|
|
180
207
|
"metadata.js",
|
|
181
208
|
"native-bridge.cjs",
|
|
209
|
+
"native-bridge-async.cjs",
|
|
210
|
+
"native-bridge-scope.cjs",
|
|
182
211
|
"native-bridge.js",
|
|
183
212
|
"native-bridge.d.ts",
|
|
184
213
|
"native-bridge.d.cts",
|
|
185
214
|
"resource-fetch.cjs",
|
|
215
|
+
"resource-fetch-graphql.cjs",
|
|
216
|
+
"resource-fetch-size.cjs",
|
|
186
217
|
"resource-fetch.js",
|
|
187
218
|
"resource-fetch.d.ts",
|
|
188
219
|
"resource-fetch.d.cts",
|
|
189
220
|
"release-artifacts.cjs",
|
|
221
|
+
"release-artifacts-files.cjs",
|
|
222
|
+
"release-artifacts-options.cjs",
|
|
190
223
|
"release-artifacts.js",
|
|
191
224
|
"release-artifacts.d.ts",
|
|
192
225
|
"release-artifacts.d.cts",
|
|
193
226
|
"metro.cjs",
|
|
227
|
+
"metro-debug-id.cjs",
|
|
228
|
+
"metro-serializer.cjs",
|
|
194
229
|
"metro.js",
|
|
195
230
|
"metro.d.ts",
|
|
196
231
|
"metro.d.cts",
|
|
197
232
|
"apple-native-diagnostics.js",
|
|
233
|
+
"apple-native-diagnostics-config.js",
|
|
234
|
+
"apple-native-diagnostics-context.js",
|
|
235
|
+
"apple-native-diagnostics-module.js",
|
|
198
236
|
"apple-native-diagnostics.d.ts",
|
|
199
237
|
"android-native-diagnostics.js",
|
|
238
|
+
"native-client-bindings.js",
|
|
239
|
+
"native-diagnostics-values.js",
|
|
240
|
+
"native-module-lookup.js",
|
|
241
|
+
"native-null.js",
|
|
200
242
|
"android-native-diagnostics.d.ts",
|
|
201
243
|
"expo.cjs",
|
|
202
244
|
"expo.js",
|