@honeybadger-io/react-native 0.0.12 → 4.7.1
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 +24 -3
- package/{LICENSE → MIT-LICENSE} +0 -0
- package/README.md +14 -14
- package/example/App.js +12 -12
- package/example/index.js +2 -2
- package/example/package-lock.json +17691 -6526
- package/example/package.json +1 -1
- package/example/yarn.lock +1458 -2720
- package/index.d.ts +38 -38
- package/index.js +413 -412
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
2
3
|
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [4.7.1](https://github.com/honeybadger-io/honeybadger-js/compare/v4.7.0...v4.7.1) (2022-11-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @honeybadger-io/react-native
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [4.7.0](https://github.com/honeybadger-io/honeybadger-js/compare/v4.6.2...v4.7.0) (2022-11-01)
|
|
3
15
|
|
|
4
|
-
|
|
5
|
-
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* migrate honeybadger-react-native to monorepo ([#901](https://github.com/honeybadger-io/honeybadger-js/issues/901)) ([46f3d7e](https://github.com/honeybadger-io/honeybadger-js/commit/46f3d7e0db7c4c18698fb2044802351efbbdbab9))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# Changelog
|
|
26
|
+
All notable changes to this project will be documented in this file.
|
|
6
27
|
|
|
7
28
|
## [0.0.12] - 2022-09-02
|
|
8
29
|
### Added
|
package/{LICENSE → MIT-LICENSE}
RENAMED
|
File without changes
|
package/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Honeybadger for React Native
|
|
2
|
+

|
|
2
3
|
[](https://badge.fury.io/js/%40honeybadger-io%2Freact-native)
|
|
4
|
+
[](https://www.npmjs.com/package/@honeybadger-io/react-native)
|
|
5
|
+
[](https://www.npmjs.com/package/@honeybadger-io/react-native)
|
|
3
6
|
|
|
4
7
|
A React Native library for integrating [Honeybadger](https://honeybadger.io) into your React Native iOS and Android apps.
|
|
5
8
|
|
|
@@ -34,12 +37,12 @@ You can log into your [Honeybadger](https://honeybadger.io) account to obtain yo
|
|
|
34
37
|
|
|
35
38
|
The configure method takes additional configuration options.
|
|
36
39
|
|
|
37
|
-
| Name
|
|
38
|
-
|
|
39
|
-
| apiKey
|
|
40
|
-
| reportErrors | Boolean | NO
|
|
41
|
-
| revision
|
|
42
|
-
| projectRoot
|
|
40
|
+
| Name | Type | Required | Default | Example |
|
|
41
|
+
|--------------|---------|----------|---------|----------------------|
|
|
42
|
+
| apiKey | String | YES | `""` | `"hb-api-key-1234"` |
|
|
43
|
+
| reportErrors | Boolean | NO | true | |
|
|
44
|
+
| revision | String | NO | `""` | `"8afb34a"` |
|
|
45
|
+
| projectRoot | String | NO | `""` | `"/path/to/project"` |
|
|
43
46
|
|
|
44
47
|
```js
|
|
45
48
|
Honeybadger.configure(
|
|
@@ -85,17 +88,14 @@ Sets the logging level for the Honeybadger library.
|
|
|
85
88
|
|
|
86
89
|
The following values are accepted:
|
|
87
90
|
|
|
88
|
-
| Value
|
|
89
|
-
|
|
90
|
-
| "debug"
|
|
91
|
+
| Value | Meaning |
|
|
92
|
+
|-----------|------------------------------------------|
|
|
93
|
+
| "debug" | Everything will be logged to console. |
|
|
91
94
|
| "warning" | Only warnings will be logged to console. |
|
|
92
|
-
| "error"
|
|
93
|
-
|
|
95
|
+
| "error" | Only errors will be logged to console. |
|
|
94
96
|
|
|
95
97
|
The default logging level is "warning".
|
|
96
98
|
|
|
97
|
-
|
|
98
|
-
|
|
99
99
|
## Source Maps
|
|
100
100
|
|
|
101
101
|
This package includes a script that will help you generate source maps for your project. To generate source maps for both iOS and Android, run the following from your project root directory.
|
|
@@ -119,4 +119,4 @@ npx react-native run-ios
|
|
|
119
119
|
|
|
120
120
|
## License
|
|
121
121
|
|
|
122
|
-
The Honeybadger React Native library is MIT-licensed. See the LICENSE file in this
|
|
122
|
+
The Honeybadger React Native library is MIT-licensed. See the [MIT-LICENSE](./MIT-LICENSE) file in this folder for details.
|
package/example/App.js
CHANGED
|
@@ -14,17 +14,17 @@ import Honeybadger from '@honeybadger-io/react-native';
|
|
|
14
14
|
|
|
15
15
|
export default function App() {
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
const HONEYBADGER_API_KEY = '<Your Honeybadger.io API key>'; // TODO
|
|
18
|
+
Honeybadger.configure(HONEYBADGER_API_KEY);
|
|
19
|
+
|
|
20
|
+
function onBtnClicked() {
|
|
21
|
+
throw ( new Error('This is a test error!') );
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<SafeAreaView>
|
|
26
|
+
<Button onPress={ onBtnClicked } title="Click me!" />
|
|
27
|
+
</SafeAreaView>
|
|
28
|
+
);
|
|
29
29
|
|
|
30
30
|
}
|
package/example/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @format
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {AppRegistry} from 'react-native';
|
|
5
|
+
import { AppRegistry } from 'react-native';
|
|
6
6
|
import App from './App';
|
|
7
|
-
import {name as appName} from './app.json';
|
|
7
|
+
import { name as appName } from './app.json';
|
|
8
8
|
|
|
9
9
|
AppRegistry.registerComponent(appName, () => App);
|