Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

honeybadger-js

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

honeybadger-js - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

bin/bump

4

bower.json
{
"name": "honeybadger",
"version": "0.4.6",
"version": "0.4.7",
"homepage": "https://github.com/honeybadger-io/honeybadger-js",

@@ -26,2 +26,2 @@ "authors": [

]
}
}

@@ -6,4 +6,9 @@ # Change Log

## [Unreleased][unreleased]
## [Unreleased]
## [0.4.7] - 2017-04-20
### Fixed
- Fixed a bug which caused config values read from the "data-apiKey" and
"data-projectRoot" attributes on script tag to be missing.
## [0.4.6] - 2017-03-27

@@ -10,0 +15,0 @@ ### Fixed

@@ -9,1 +9,3 @@ # Honeybadger Browserify Example

messages.
Note: for the error to be reported you need to access index.html through a valid host such as `127.0.0.1` or `localhost`. See [Development](https://github.com/honeybadger-io/honeybadger-js#development) to use our built-in development server.

@@ -8,1 +8,3 @@ # Honeybadger RequireJS Example

messages.
Note: for the error to be reported you need to access index.html through a valid host such as `127.0.0.1` or `localhost`. See [Development](https://github.com/honeybadger-io/honeybadger-js#development) to use our built-in development server.

@@ -9,1 +9,3 @@ # Honeybadger webpack Example

messages.
Note: for the error to be reported you need to access index.html through a valid host such as `127.0.0.1` or `localhost`. See [Development](https://github.com/honeybadger-io/honeybadger-js#development) to use our built-in development server.
/*
honeybadger.js v0.4.6
honeybadger.js v0.4.7
A JavaScript Notifier for Honeybadger

@@ -52,3 +52,3 @@ https://github.com/honeybadger-io/honeybadger-js

}(this, function () {
var VERSION = '0.4.6',
var VERSION = '0.4.7',
NOTIFIER = {

@@ -177,6 +177,4 @@ name: 'honeybadger.js',

function config(key, fallback) {
var value;
if (self[key] !== undefined) {
value = self[key];
}
var value = self[key];
if (value === undefined) { value = self[key.toLowerCase()] }
if (value === 'false') { value = false; }

@@ -183,0 +181,0 @@ if (value !== undefined) { return value; }

{
"name": "honeybadger-js",
"description": "A JavaScript library for integrating apps with the Honeybadger Rails Error Notifier.",
"version": "0.4.6",
"version": "0.4.7",
"homepage": "https://github.com/honeybadger-io/honeybadger-js",

@@ -19,3 +19,4 @@ "author": {

"scripts": {
"test": "make test"
"test": "make test",
"bump": "bin/bump"
},

@@ -28,3 +29,3 @@ "devDependencies": {

"grunt-contrib-watch": "~0.2.0",
"grunt-saucelabs": "~8.3.2",
"grunt-saucelabs": "~9.0.0",
"grunt-shell": "~1.1.2",

@@ -35,2 +36,2 @@ "phantomjs": "~1.9.0"

"typings": "./honeybadger-js.d.ts"
}
}

@@ -429,2 +429,4 @@ # Honeybadger Client-Side Javascript Library

If you host your assets on a CDN (or if the domain is different from where your HTML is served) you may need to enable CORS on your asset domain for the `window.onerror` errors to be reported. See https://developer.mozilla.org/en/docs/Web/API/GlobalEventHandlers/onerror#Notes for more info.
## Contributing

@@ -438,8 +440,10 @@

### Running the tests
### Development
To run the test suite, enter `make test` into the console.
First, install the required npm packages with `npm install`. After that you can run the dev server with `grunt dev`; this will launch a development server at *http://127.0.0.1:9999*. It will also run the test suite automatically when files change.
To run the test suite by itself, use `grunt jasmine`.
### License
The Honeybadger gem is MIT licensed. See the [MIT-LICENSE](https://raw.github.com/honeybadger-io/honeybadger-js/master/MIT-LICENSE) file in this repository for details.

@@ -122,4 +122,36 @@ var url = 'global';

describe('.notify', function() {
it('delivers the notice when enabled', function() {
it('delivers the notice when configured', function() {
Honeybadger.configure({
apiKey: 'asdf'
});
try {
throw new Error("Testing");
} catch (e) {
Honeybadger.notify(e);
}
afterNotify(function() {
expect(requests.length).toEqual(1);
});
});
it('delivers the notice when configured with lower case api key', function() {
Honeybadger.configure({
apikey: 'asdf'
});
try {
throw new Error("Testing");
} catch (e) {
Honeybadger.notify(e);
}
afterNotify(function() {
expect(requests.length).toEqual(1);
});
});
it('delivers the notice when configured with snake case api key', function() {
Honeybadger.configure({
api_key: 'asdf'

@@ -126,0 +158,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc