Skip to content

Commit

Permalink
* dep update
Browse files Browse the repository at this point in the history
* (Apollon77) Handle case gracefully when package.json is not available and so sentry plugin version can not be determined
  • Loading branch information
Apollon77 committed Jan 15, 2021
1 parent 8e692d6 commit c71e701
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 84 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: monthly
time: "04:00"
timezone: Europe/Berlin

- package-ecosystem: npm
directory: "/"
schedule:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ The adapter should crash in this place and the exception should be shown in the

## Changelog

### __WORK IN PROGRESS__
* (Apollon77) Handle case gracefully when package.json is not available and so sentry plugin version can not be determined

### 1.1.6 (2020-12-28)
* (Apollon77) add sentry-plugin version tag to the sentry events

Expand Down
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ class SentryPlugin extends PluginBase {
}
scope.setTag('osPlatform', process.platform);
scope.setTag('nodejsVersion', process.version);
scope.setTag('plugin-sentry', require('./package.json').version);
try {
scope.setTag('plugin-sentry', require('./package.json').version);
} catch {
// ignore
}
}

if (uuid) {
Expand Down
180 changes: 103 additions & 77 deletions package-lock.json

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

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"homepage": "https://github.com/ioBroker/plugin-sentry#readme",
"dependencies": {
"@iobroker/plugin-base": "^1.2.0",
"@sentry/node": "^5.19.2",
"@sentry/integrations": "^5.29.2",
"@sentry/node": "^5.30.0",
"@sentry/integrations": "^5.30.0",
"source-map-support": "^0.5.19"
},
"devDependencies": {
"@alcalzone/release-script": "^1.8.1",
"@types/node": "^14.14.17",
"eslint": "^7.16.0",
"@alcalzone/release-script": "^1.8.3",
"@types/node": "^14.14.21",
"eslint": "^7.17.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-prettier": "^3.3.0"
"eslint-plugin-prettier": "^3.3.1"
}
}

0 comments on commit c71e701

Please sign in to comment.