@honeybadger-io/react-native 0.0.11 → 4.7.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/CHANGELOG.md +19 -2
- package/{LICENSE → MIT-LICENSE} +0 -0
- package/README.md +15 -15
- package/example/App.js +12 -12
- package/example/index.js +2 -2
- package/example/package-lock.json +19186 -7509
- package/example/package.json +1 -1
- package/example/yarn.lock +6316 -6198
- package/index.d.ts +38 -38
- package/index.js +413 -412
- package/ios/HoneybadgerReactNative.m +1 -1
- package/package.json +9 -7
package/index.d.ts
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
export default honeybadger;
|
|
2
2
|
declare namespace honeybadger {
|
|
3
3
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
* Initialize and configure the Honeybadger React Native library.
|
|
5
|
+
* @param {string} apiKey - Your Honeybadger API key.
|
|
6
|
+
* @param {boolean} [reportErrors=true] reportErrors - Whether to send error reports to Honeybadger (disable for dev environments, etc.)
|
|
7
|
+
* @param {string=} revision - The git revision of the current build.
|
|
8
|
+
* @param {string=} projectRoot - The path to the project root.
|
|
9
|
+
*/
|
|
10
10
|
function configure(apiKey: string, reportErrors?: boolean, revision?: string, projectRoot?: string): void;
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
* Initialize and configure the Honeybadger React Native library.
|
|
13
|
+
* @param {string} apiKey - Your Honeybadger API key.
|
|
14
|
+
* @param {boolean} [reportErrors=true] reportErrors - Whether to send error reports to Honeybadger (disable for dev environments, etc.)
|
|
15
|
+
* @param {string=} revision - The git revision of the current build.
|
|
16
|
+
* @param {string=} projectRoot - The path to the project root.
|
|
17
|
+
*/
|
|
18
18
|
function configure(apiKey: string, reportErrors?: boolean, revision?: string, projectRoot?: string): void;
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
* Send any kind of error, exception, object, String, etc. to Honeybadger.
|
|
21
|
+
* @param {string|object} err - The error string or object.
|
|
22
|
+
* @param {string|object} additionalData - Additional data to include with the error.
|
|
23
|
+
*/
|
|
24
24
|
function notify(err: any, additionalData: any): void;
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
* Send any kind of error, exception, object, String, etc. to Honeybadger.
|
|
27
|
+
* @param {string|object} err - The error string or object.
|
|
28
|
+
* @param {string|object} additionalData - Additional data to include with the error.
|
|
29
|
+
*/
|
|
30
30
|
function notify(err: any, additionalData: any): void;
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
* Include additional data whenever an error or an exception occurs. This can be called as many times as needed. New context data will be merged with any previously-set context data.
|
|
33
|
+
* @param {object} context - Additional data to include with all errors and exceptions.
|
|
34
|
+
*/
|
|
35
35
|
function setContext(context: any): void;
|
|
36
36
|
/**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
* Include additional data whenever an error or an exception occurs. This can be called as many times as needed. New context data will be merged with any previously-set context data.
|
|
38
|
+
* @param {object} context - Additional data to include with all errors and exceptions.
|
|
39
|
+
*/
|
|
40
40
|
function setContext(context: any): void;
|
|
41
41
|
/**
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
* Clears/resets any data previously set through setContext().
|
|
43
|
+
* @param {object=} context - Optional new context to set.
|
|
44
|
+
*/
|
|
45
45
|
function resetContext(context?: any): void;
|
|
46
46
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
* Clears/resets any data previously set through setContext().
|
|
48
|
+
* @param {object=} context - Optional new context to set.
|
|
49
|
+
*/
|
|
50
50
|
function resetContext(context?: any): void;
|
|
51
51
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
* Sets the logging level for the Honeybadger library.
|
|
53
|
+
* @param {('debug'|'warning'|'error')} [level=warning] - The logging level.
|
|
54
|
+
*/
|
|
55
55
|
function setLogLevel(level?: "error" | "warning" | "debug"): void;
|
|
56
56
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
* Sets the logging level for the Honeybadger library.
|
|
58
|
+
* @param {('debug'|'warning'|'error')} [level=warning] - The logging level.
|
|
59
|
+
*/
|
|
60
60
|
function setLogLevel(level?: "error" | "warning" | "debug"): void;
|
|
61
61
|
}
|