Skip to content

Commit

Permalink
Merge pull request #294 from MindscapeHQ/add-tag-for-unhandled-promis…
Browse files Browse the repository at this point in the history
…e-rejections

Add 'UnhandledPromiseRejection' tag
  • Loading branch information
BenjaminHarding committed Aug 27, 2018
2 parents 764ddbc + 5812037 commit 652f842
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 28 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
* v2.12.0
- Add `UnhandledPromiseRejection` tag to errors caught by the unhandled promise callback
- Fixes a bug where the `UnhandledException` tag would be added unnecessarily to subsequent errors
- Manually sending a error which is a string and not a Error object no longer results in a `Script error` being sent. Instead it uses the string as the error message

* v2.11.1
- Fixes bug with `ignore3rdPartyErrors` that could result in first party errors being ignored
- Fixes Typescript definitions for V2 API
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raygun4js",
"version": "2.11.2",
"version": "2.12.0",
"homepage": "http://raygun.io",
"authors": [
"Mindscape <hello@raygun.io>"
Expand Down
8 changes: 4 additions & 4 deletions dist/raygun.js

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

6 changes: 3 additions & 3 deletions dist/raygun.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/raygun.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/raygun.umd.js

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

6 changes: 3 additions & 3 deletions dist/raygun.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/raygun.umd.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/raygun.vanilla.js

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

6 changes: 3 additions & 3 deletions dist/raygun.vanilla.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/raygun.vanilla.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "dist/raygun.umd.js",
"title": "Raygun4js",
"description": "Raygun.io plugin for JavaScript",
"version": "2.11.2",
"version": "2.12.0",
"homepage": "https://github.com/MindscapeHQ/raygun4js",
"author": {
"name": "MindscapeHQ",
Expand Down
2 changes: 1 addition & 1 deletion raygun4js.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>raygun4js</id>
<version>2.11.2</version>
<version>2.12.0</version>
<title>Raygun4js</title>
<authors>Mindscape Limited</authors>
<owners>Mindscape Limited</owners>
Expand Down
2 changes: 1 addition & 1 deletion src/raygun.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ var raygunFactory = function(window, $, undefined) {
if(typeof error !== Error && typeof error === "string") {
error = new Error(error);
}
_publicRaygunFunctions.send(error);
_publicRaygunFunctions.send(error, undefined, ['UnhandledPromiseRejection']);
}

// Install global promise rejection handler.
Expand Down

0 comments on commit 652f842

Please sign in to comment.