@honeybadger-io/js 6.5.2 → 6.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -857,7 +857,7 @@
857
857
  this.__notifier = {
858
858
  name: '@honeybadger-io/core',
859
859
  url: 'https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/core',
860
- version: '6.5.2'
860
+ version: '6.6.0'
861
861
  };
862
862
  this.config = __assign({ apiKey: null, endpoint: 'https://api.honeybadger.io', environment: null, hostname: null, projectRoot: null, component: null, action: null, revision: null, reportData: null, breadcrumbsEnabled: true, maxBreadcrumbs: 40, maxObjectDepth: 8, logger: console, developmentEnvironments: ['dev', 'development', 'test'], debug: false, tags: null, enableUncaught: true, enableUnhandledRejection: true, afterUncaught: function () { return true; }, filters: ['creditcard', 'password'], __plugins: [] }, opts);
863
863
  this.__initStore();
@@ -1992,8 +1992,14 @@
1992
1992
  return Object.entries(obj);
1993
1993
  }
1994
1994
  var BrowserTransport = /** @class */ (function () {
1995
- function BrowserTransport() {
1995
+ function BrowserTransport(headers) {
1996
+ if (headers === void 0) { headers = {}; }
1997
+ this.headers = {};
1998
+ this.headers = headers;
1996
1999
  }
2000
+ BrowserTransport.prototype.defaultHeaders = function () {
2001
+ return this.headers;
2002
+ };
1997
2003
  BrowserTransport.prototype.send = function (options, payload) {
1998
2004
  return __awaiter(this, void 0, void 0, function () {
1999
2005
  var headerArray, headers, requestInit, response, body;
@@ -2001,7 +2007,7 @@
2001
2007
  switch (_a.label) {
2002
2008
  case 0:
2003
2009
  headerArray = options.headers ? objectEntries(options.headers) : [];
2004
- headers = {};
2010
+ headers = this.defaultHeaders();
2005
2011
  headerArray.forEach(function (_a) {
2006
2012
  var key = _a[0], value = _a[1];
2007
2013
  if (key != null && value != null) {
@@ -2333,7 +2339,7 @@
2333
2339
  var NOTIFIER = {
2334
2340
  name: '@honeybadger-io/js',
2335
2341
  url: 'https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/js',
2336
- version: '6.5.2'
2342
+ version: '6.6.0'
2337
2343
  };
2338
2344
  singleton.setNotifier(NOTIFIER);
2339
2345
  var core_2 = src;