Skip to content

Commit 4606b21

Browse files
committed
chore: release v2.0.3
* (foxriver76) provide default and named export
1 parent 1060e3a commit 4606b21

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ This should cause the adapter to crash and the exception to be shown in the sent
147147
-->
148148

149149
## Changelog
150+
### 2.0.3 (2024-06-01)
151+
* (foxriver76) provide default and named export
152+
150153
### 2.0.2 (2024-06-01)
151154
* (foxriver76) changed export to named export
152155

build/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PluginBase } from '@iobroker/plugin-base';
2-
export declare class SentryPlugin extends PluginBase {
2+
export default class SentryPlugin extends PluginBase {
33
/** The Sentry instance */
44
Sentry: typeof import('@sentry/node');
55
/** If plugin is enabled after all checks */
@@ -17,3 +17,5 @@ export declare class SentryPlugin extends PluginBase {
1717
*/
1818
getSentryObject(): typeof this.Sentry;
1919
}
20+
/** Type for a Sentry Instance */
21+
export type SentryInstance = InstanceType<typeof SentryPlugin>;

build/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.SentryPlugin = void 0;
43
const plugin_base_1 = require("@iobroker/plugin-base");
54
class SentryPlugin extends plugin_base_1.PluginBase {
65
constructor() {
@@ -233,4 +232,4 @@ class SentryPlugin extends plugin_base_1.PluginBase {
233232
return this.Sentry;
234233
}
235234
}
236-
exports.SentryPlugin = SentryPlugin;
235+
exports.default = SentryPlugin;

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@iobroker/plugin-sentry",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "Sentry module for plugins for js-controller and adapters",
55
"author": {
66
"name": "Ingo Fischer",

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { PluginBase } from '@iobroker/plugin-base';
22

3-
export class SentryPlugin extends PluginBase {
3+
export default class SentryPlugin extends PluginBase {
44
/** The Sentry instance */
55
Sentry: typeof import('@sentry/node');
66
/** If plugin is enabled after all checks */
@@ -272,3 +272,6 @@ export class SentryPlugin extends PluginBase {
272272
return this.Sentry;
273273
}
274274
}
275+
276+
/** Type for a Sentry Instance */
277+
export type SentryInstance = InstanceType<typeof SentryPlugin>;

0 commit comments

Comments
 (0)