@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
package/apollo.d.cts
CHANGED
|
@@ -1,70 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type ApolloOperationLike = {
|
|
5
|
-
operationName?: string;
|
|
6
|
-
query?: {
|
|
7
|
-
definitions?: ReadonlyArray<{
|
|
8
|
-
kind?: string;
|
|
9
|
-
operation?: string;
|
|
10
|
-
name?: { value?: string };
|
|
11
|
-
}>;
|
|
12
|
-
};
|
|
13
|
-
setContext?: (context: ((previous: { headers?: Record<string, string> }) => { headers?: Record<string, string> }) | { headers?: Record<string, string> }) => void;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type ApolloObserverLike<TValue = unknown> = {
|
|
17
|
-
next?: (value: TValue) => void;
|
|
18
|
-
error?: (error: unknown) => void;
|
|
19
|
-
complete?: () => void;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export type ApolloObservableLike<TValue = unknown> = {
|
|
23
|
-
subscribe: (
|
|
24
|
-
observerOrNext?: ApolloObserverLike<TValue> | ((value: TValue) => void),
|
|
25
|
-
onError?: (error: unknown) => void,
|
|
26
|
-
onComplete?: () => void
|
|
27
|
-
) => unknown;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export type ApolloForwardLike<TValue = unknown> = (operation: ApolloOperationLike) => ApolloObservableLike<TValue>;
|
|
31
|
-
|
|
32
|
-
export type ApolloLinkConstructor<TLink = unknown, TValue = unknown> = new (
|
|
33
|
-
request?: (...args: any[]) => any
|
|
34
|
-
) => TLink;
|
|
35
|
-
|
|
36
|
-
export type ReactNativeApolloMetadataFactoryContext = {
|
|
37
|
-
durationMs?: number;
|
|
38
|
-
error?: unknown;
|
|
39
|
-
operationName?: string;
|
|
40
|
-
operationType?: string;
|
|
41
|
-
screen?: string;
|
|
42
|
-
status: "ok" | "error";
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export type ReactNativeApolloLinkOptions<TLink = unknown, TValue = unknown> = {
|
|
46
|
-
ApolloLink: ApolloLinkConstructor<TLink, TValue>;
|
|
47
|
-
appState?: { currentState?: string };
|
|
48
|
-
metadata?: Metadata;
|
|
49
|
-
metadataFactory?: (context: ReactNativeApolloMetadataFactoryContext) => Metadata | undefined;
|
|
50
|
-
now?: () => string;
|
|
51
|
-
nowMs?: () => number;
|
|
52
|
-
platform?: { OS?: string; Version?: string | number; isPad?: boolean; constants?: { isTesting?: boolean } };
|
|
53
|
-
propagateTraceparent?: boolean;
|
|
54
|
-
randomValues?: (length: number) => Uint8Array;
|
|
55
|
-
screen?: string;
|
|
56
|
-
sessionId?: string;
|
|
57
|
-
trace?: ReactNativeTraceContext | string;
|
|
58
|
-
traceFlags?: string;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export function createReactNativeApolloLink<TLink = unknown, TValue = unknown>(
|
|
62
|
-
client: { span: (id: string, timestamp: string, attributes: any) => unknown },
|
|
63
|
-
options: ReactNativeApolloLinkOptions<TLink, TValue>
|
|
64
|
-
): TLink;
|
|
65
|
-
|
|
66
|
-
declare const _default: {
|
|
67
|
-
createReactNativeApolloLink: typeof createReactNativeApolloLink;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export default _default;
|
|
1
|
+
export * from "./apollo.js";
|
|
2
|
+
export { default } from "./apollo.js";
|
package/apollo.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import type { Metadata } from "@logbrew/sdk";
|
|
2
2
|
import type { ReactNativeTraceContext } from "./index.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
type ApolloOperationLike = {
|
|
5
5
|
operationName?: string;
|
|
6
6
|
query?: {
|
|
7
|
-
definitions?:
|
|
7
|
+
definitions?: readonly {
|
|
8
8
|
kind?: string;
|
|
9
9
|
operation?: string;
|
|
10
10
|
name?: { value?: string };
|
|
11
|
-
}
|
|
11
|
+
}[];
|
|
12
12
|
};
|
|
13
13
|
setContext?: (context: ((previous: { headers?: Record<string, string> }) => { headers?: Record<string, string> }) | { headers?: Record<string, string> }) => void;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
type ApolloObserverLike<TValue = unknown> = {
|
|
17
17
|
next?: (value: TValue) => void;
|
|
18
18
|
error?: (error: unknown) => void;
|
|
19
19
|
complete?: () => void;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
type ApolloObservableLike<TValue = unknown> = {
|
|
23
23
|
subscribe: (
|
|
24
24
|
observerOrNext?: ApolloObserverLike<TValue> | ((value: TValue) => void),
|
|
25
25
|
onError?: (error: unknown) => void,
|
|
@@ -27,13 +27,13 @@ export type ApolloObservableLike<TValue = unknown> = {
|
|
|
27
27
|
) => unknown;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
type ApolloForwardLike<TValue = unknown> = (operation: ApolloOperationLike) => ApolloObservableLike<TValue>;
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
type ApolloLinkConstructor<TLink = unknown, TValue = unknown> = new (
|
|
33
33
|
request?: (...args: any[]) => any
|
|
34
34
|
) => TLink;
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
type ReactNativeApolloMetadataFactoryContext = {
|
|
37
37
|
durationMs?: number;
|
|
38
38
|
error?: unknown;
|
|
39
39
|
operationName?: string;
|
|
@@ -42,7 +42,7 @@ export type ReactNativeApolloMetadataFactoryContext = {
|
|
|
42
42
|
status: "ok" | "error";
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
type ReactNativeApolloLinkOptions<TLink = unknown, TValue = unknown> = {
|
|
46
46
|
ApolloLink: ApolloLinkConstructor<TLink, TValue>;
|
|
47
47
|
appState?: { currentState?: string };
|
|
48
48
|
metadata?: Metadata;
|
|
@@ -58,13 +58,25 @@ export type ReactNativeApolloLinkOptions<TLink = unknown, TValue = unknown> = {
|
|
|
58
58
|
traceFlags?: string;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
declare function createReactNativeApolloLink<TLink = unknown, TValue = unknown>(
|
|
62
62
|
client: { span: (id: string, timestamp: string, attributes: any) => unknown },
|
|
63
63
|
options: ReactNativeApolloLinkOptions<TLink, TValue>
|
|
64
64
|
): TLink;
|
|
65
65
|
|
|
66
|
-
declare const
|
|
66
|
+
declare const defaultExport: {
|
|
67
67
|
createReactNativeApolloLink: typeof createReactNativeApolloLink;
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
export
|
|
70
|
+
export type {
|
|
71
|
+
ApolloForwardLike,
|
|
72
|
+
ApolloLinkConstructor,
|
|
73
|
+
ApolloObservableLike,
|
|
74
|
+
ApolloObserverLike,
|
|
75
|
+
ApolloOperationLike,
|
|
76
|
+
ReactNativeApolloLinkOptions,
|
|
77
|
+
ReactNativeApolloMetadataFactoryContext
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
createReactNativeApolloLink
|
|
81
|
+
};
|
|
82
|
+
export default defaultExport;
|