honeybadger-js
Advanced tools
Comparing version 0.4.4 to 0.4.5
{ | ||
"name": "honeybadger", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"homepage": "https://github.com/honeybadger-io/honeybadger-js", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -8,2 +8,7 @@ # Change Log | ||
## [0.4.5] - 2017-02-23 | ||
### Fixed | ||
- Fix bug where default properties "name" and "message" on error objects were | ||
not reported by `Honeybadger.notify`. | ||
## [0.4.4] - 2017-02-23 | ||
@@ -10,0 +15,0 @@ ### Added |
/* | ||
honeybadger.js v0.4.4 | ||
honeybadger.js v0.4.5 | ||
A JavaScript Notifier for Honeybadger | ||
@@ -52,3 +52,3 @@ https://github.com/honeybadger-io/honeybadger-js | ||
}(this, function () { | ||
var VERSION = '0.4.3', | ||
var VERSION = '0.4.5', | ||
NOTIFIER = { | ||
@@ -258,3 +258,3 @@ name: 'honeybadger.js', | ||
var e = err; | ||
err = merge(err, {stack: stackTrace(e)}) | ||
err = merge(err, {name: e.name, message: e.message, stack: stackTrace(e)}) | ||
} | ||
@@ -387,3 +387,3 @@ | ||
var e = err; | ||
err = merge(err, {stack: stackTrace(e)}) | ||
err = merge(err, {name: e.name, message: e.message, stack: stackTrace(e)}) | ||
} | ||
@@ -390,0 +390,0 @@ |
{ | ||
"name": "honeybadger-js", | ||
"description": "A JavaScript library for integrating apps with the Honeybadger Rails Error Notifier.", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"homepage": "https://github.com/honeybadger-io/honeybadger-js", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -296,2 +296,21 @@ describe('Honeybadger', function() { | ||
it('reads default properties from error objects', function() { | ||
Honeybadger.configure({ | ||
api_key: 'asdf' | ||
}); | ||
var err = new Error("Test message"); | ||
try { | ||
throw err; | ||
} catch (e) { | ||
Honeybadger.notify(e); | ||
} | ||
afterNotify(function() { | ||
expect(requests.length).toEqual(1); | ||
expect(requests[0].url).toMatch('%5Bclass%5D=Error'); | ||
expect(requests[0].url).toMatch('%5Bmessage%5D=Test%20message'); | ||
}); | ||
}); | ||
it('reads metadata from error objects', function() { | ||
@@ -298,0 +317,0 @@ Honeybadger.configure({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
383812
9704