@blipit/react-native 0.2.0 → 0.3.0

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/index.d.cts CHANGED
@@ -1,7 +1,18 @@
1
1
  import { ReactNativeOptions } from '@sentry/react-native';
2
2
  export { addBreadcrumb, captureException, captureMessage, flush, setTag, setUser, wrap } from '@sentry/react-native';
3
+ import * as react from 'react';
4
+ import { ReactNode } from 'react';
5
+
6
+ declare function showReport(): void;
7
+ declare function BlipitReporter({ children, showButton }: {
8
+ children?: ReactNode;
9
+ showButton?: boolean;
10
+ }): react.JSX.Element;
3
11
 
4
12
  declare const DEFAULT_ENDPOINT = "https://in.blipit.io";
13
+ declare const VERSION = "0.3.0";
14
+ type BeforeSend = NonNullable<ReactNativeOptions["beforeSend"]>;
15
+ declare function withIdentity(user?: BeforeSend): BeforeSend;
5
16
  interface BlipitOptions extends Omit<ReactNativeOptions, "dsn"> {
6
17
  key?: string;
7
18
  publicKey?: string;
@@ -19,4 +30,4 @@ declare function dsn(key: string, project: string | number, endpoint?: string):
19
30
  declare function init(options: BlipitOptions): boolean;
20
31
  declare function captureSecurity(kind: string, actor: string, details?: SecurityDetails): void;
21
32
 
22
- export { type BlipitOptions, DEFAULT_ENDPOINT, type SecurityDetails, captureSecurity, dsn, init };
33
+ export { type BlipitOptions, BlipitReporter, DEFAULT_ENDPOINT, type SecurityDetails, VERSION, captureSecurity, dsn, init, showReport, withIdentity };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,18 @@
1
1
  import { ReactNativeOptions } from '@sentry/react-native';
2
2
  export { addBreadcrumb, captureException, captureMessage, flush, setTag, setUser, wrap } from '@sentry/react-native';
3
+ import * as react from 'react';
4
+ import { ReactNode } from 'react';
5
+
6
+ declare function showReport(): void;
7
+ declare function BlipitReporter({ children, showButton }: {
8
+ children?: ReactNode;
9
+ showButton?: boolean;
10
+ }): react.JSX.Element;
3
11
 
4
12
  declare const DEFAULT_ENDPOINT = "https://in.blipit.io";
13
+ declare const VERSION = "0.3.0";
14
+ type BeforeSend = NonNullable<ReactNativeOptions["beforeSend"]>;
15
+ declare function withIdentity(user?: BeforeSend): BeforeSend;
5
16
  interface BlipitOptions extends Omit<ReactNativeOptions, "dsn"> {
6
17
  key?: string;
7
18
  publicKey?: string;
@@ -19,4 +30,4 @@ declare function dsn(key: string, project: string | number, endpoint?: string):
19
30
  declare function init(options: BlipitOptions): boolean;
20
31
  declare function captureSecurity(kind: string, actor: string, details?: SecurityDetails): void;
21
32
 
22
- export { type BlipitOptions, DEFAULT_ENDPOINT, type SecurityDetails, captureSecurity, dsn, init };
33
+ export { type BlipitOptions, BlipitReporter, DEFAULT_ENDPOINT, type SecurityDetails, VERSION, captureSecurity, dsn, init, showReport, withIdentity };