Skip to content

Commit

Permalink
chore: release v2.0.3
Browse files Browse the repository at this point in the history
* (foxriver76) provide default and named export
  • Loading branch information
foxriver76 committed Jun 1, 2024
1 parent 1060e3a commit 4606b21
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ This should cause the adapter to crash and the exception to be shown in the sent
-->

## Changelog
### 2.0.3 (2024-06-01)
* (foxriver76) provide default and named export

### 2.0.2 (2024-06-01)
* (foxriver76) changed export to named export

Expand Down
4 changes: 3 additions & 1 deletion build/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PluginBase } from '@iobroker/plugin-base';
export declare class SentryPlugin extends PluginBase {
export default class SentryPlugin extends PluginBase {
/** The Sentry instance */
Sentry: typeof import('@sentry/node');
/** If plugin is enabled after all checks */
Expand All @@ -17,3 +17,5 @@ export declare class SentryPlugin extends PluginBase {
*/
getSentryObject(): typeof this.Sentry;
}
/** Type for a Sentry Instance */
export type SentryInstance = InstanceType<typeof SentryPlugin>;
3 changes: 1 addition & 2 deletions build/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SentryPlugin = void 0;
const plugin_base_1 = require("@iobroker/plugin-base");
class SentryPlugin extends plugin_base_1.PluginBase {
constructor() {
Expand Down Expand Up @@ -233,4 +232,4 @@ class SentryPlugin extends plugin_base_1.PluginBase {
return this.Sentry;
}
}
exports.SentryPlugin = SentryPlugin;
exports.default = SentryPlugin;
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iobroker/plugin-sentry",
"version": "2.0.2",
"version": "2.0.3",
"description": "Sentry module for plugins for js-controller and adapters",
"author": {
"name": "Ingo Fischer",
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PluginBase } from '@iobroker/plugin-base';

export class SentryPlugin extends PluginBase {
export default class SentryPlugin extends PluginBase {
/** The Sentry instance */
Sentry: typeof import('@sentry/node');
/** If plugin is enabled after all checks */
Expand Down Expand Up @@ -272,3 +272,6 @@ export class SentryPlugin extends PluginBase {
return this.Sentry;
}
}

/** Type for a Sentry Instance */
export type SentryInstance = InstanceType<typeof SentryPlugin>;

0 comments on commit 4606b21

Please sign in to comment.