@drenso/homey-log 10.32.1 → 10.34.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/README.md +4 -2
- package/build/index.d.ts +9 -8
- package/build/index.js +26 -26
- package/build/index.mjs +26 -26
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Homey Log
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@drenso/homey-log)
|
|
3
|
+
[](https://www.npmjs.com/package/@drenso/homey-log)
|
|
4
|
+
[](https://github.com/Drenso/node-homey-log/actions/workflows/deploy.yml)
|
|
5
|
+
[](https://github.com/Drenso/homey-log/actions/workflows/docs.yml)
|
|
4
6
|
|
|
5
7
|
This module can be used in a Homey App to send events to [Sentry](http://sentry.io/).
|
|
6
8
|
|
|
@@ -64,6 +66,6 @@ This version has replaced the raven SDK with [@sentry/node](https://docs.sentry.
|
|
|
64
66
|
- If you were passing custom options, you will need to review them.
|
|
65
67
|
- `setExtra` is deprecated by Sentry and has been removed.
|
|
66
68
|
|
|
67
|
-
### 8._ / 9._
|
|
69
|
+
### 8._ / 9._ / 10._
|
|
68
70
|
|
|
69
71
|
This package will now follow the Sentry version included.
|
package/build/index.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* class MyApp extends Homey.App {
|
|
4
|
+
* onInit() {
|
|
5
|
+
* this.homeyLog = new Log({ homey: this.homey });
|
|
6
|
+
* }
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
1
9
|
export class Log {
|
|
2
10
|
/**
|
|
3
11
|
* Mimic SDK log method.
|
|
@@ -25,16 +33,9 @@ export class Log {
|
|
|
25
33
|
* Construct a new Log instance.
|
|
26
34
|
* @param {object} args
|
|
27
35
|
* @param {import('homey/lib/Homey').default} args.homey - `this.homey` instance in
|
|
28
|
-
* your app (e.g. `App#homey
|
|
36
|
+
* your app (e.g. `App#homey`, `Driver#homey` or `Device#homey`).
|
|
29
37
|
*
|
|
30
38
|
* @param {object} [args.options] - Additional options for Sentry
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* class MyApp extends Homey.App {
|
|
34
|
-
* onInit() {
|
|
35
|
-
* this.homeyLog = new Log({ homey: this.homey });
|
|
36
|
-
* }
|
|
37
|
-
* }
|
|
38
39
|
*/
|
|
39
40
|
constructor({ homey, options }: {
|
|
40
41
|
homey: import('homey/lib/Homey').default;
|