Comparing version 1.3.2 to 1.4.0
Changelog | ||
========= | ||
1.4.0 | ||
----- | ||
- Don't send appVersion automatically | ||
1.3.2 | ||
@@ -5,0 +9,0 @@ ----- |
@@ -57,3 +57,2 @@ var Configuration, Logger, Utils, path; | ||
Configuration.configure = function(options) { | ||
var _ref1; | ||
if (options.logger) { | ||
@@ -82,10 +81,4 @@ Configuration.logger = options.logger; | ||
if ((options.packageJSON != null) && !Configuration.appVersion) { | ||
Configuration.appVersion = Utils.getPackageVersion(Utils.fullPath(options.packageJSON)); | ||
return Configuration.appVersion = Utils.getPackageVersion(Utils.fullPath(options.packageJSON)); | ||
} | ||
if (!Configuration.appVersion) { | ||
if (typeof require !== "undefined" && require !== null ? (_ref1 = require.main) != null ? _ref1.filename : void 0 : void 0) { | ||
Configuration.appVersion = Utils.getPackageVersion(path.join(path.dirname(require.main.filename), 'package.json')); | ||
} | ||
return Configuration.appVersion || (Configuration.appVersion = Utils.getPackageVersion(path.join(Configuration.projectRoot, 'package.json'))); | ||
} | ||
}; | ||
@@ -92,0 +85,0 @@ |
{ | ||
"name": "bugsnag", | ||
"description": "Bugsnag notifier for node.js scripts", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"main": "./lib/bugsnag.js", | ||
@@ -6,0 +6,0 @@ "homepage": "http://bugsnag.com", |
@@ -179,3 +179,3 @@ Bugsnag Notifier for Node.js | ||
The Bugsnag notifier will automatically use the version from your `package.json` file. If you want to override this behavior, you can set the `appVersion` option: | ||
If you use an appVersion to identify releases of your app you can send it to Bugsnag. When set errors will only unresolve when they re-occur in a newer appVersion. | ||
@@ -186,3 +186,3 @@ ```javascript | ||
### autoNotifyUncaught | ||
### autoNotify | ||
@@ -192,5 +192,7 @@ Bugsnag will automatically register for the `uncaughtexception` event. If you do not wish for this to happen, you can disable the functionality as part of the register call: | ||
```javascript | ||
bugsnag.register("your-api-key-here", { autoNotifyUncaught: false }); | ||
bugsnag.register("your-api-key-here", { autoNotify: false }); | ||
``` | ||
<!-- Custom anchor for linking from alerts --> | ||
<div id="set-project-root"></div> | ||
### projectRoot | ||
@@ -197,0 +199,0 @@ |
Sorry, the diff of this file is not supported yet
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
369
5
76670
604