From 96b63dd0e64b8fddc58654ce249c986abf837120 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Wed, 7 Nov 2018 13:04:13 +0200 Subject: [PATCH] v1.6.0-beta --- bower.json | 2 +- dist/client.js | 775 ++++++++++++++-------------- dist/client.js.map | 2 +- dist/client.min.js | 4 +- dist/client.min.js.map | 2 +- dist/instrumentation/express.js | 19 +- dist/instrumentation/express.js.map | 2 +- dist/instrumentation/hapi.js | 2 +- package.json | 2 +- src/routes.ts | 2 +- 10 files changed, 405 insertions(+), 407 deletions(-) diff --git a/bower.json b/bower.json index da63eedd7..42113a1e0 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "airbrake-js-client", - "version": "1.5.0", + "version": "1.6.0-beta", "homepage": "https://github.com/airbrake/airbrake-js", "authors": ["Airbrake"], "description": "Notify Airbrake on JavaScript exceptions", diff --git a/dist/client.js b/dist/client.js index efedc7eb1..a06aaf944 100644 --- a/dist/client.js +++ b/dist/client.js @@ -1,4 +1,4 @@ -/*! airbrake-js v1.5.0 */ +/*! airbrake-js v1.6.0-beta */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory((function webpackLoadOptionalExternalModule() { try { return require("os"); } catch(e) {} }()), require("isomorphic-fetch")); @@ -1080,12 +1080,9 @@ var uncaught_message_1 = __importDefault(__webpack_require__(/*! ./filter/uncaug var angular_message_1 = __importDefault(__webpack_require__(/*! ./filter/angular_message */ "./src/filter/angular_message.ts")); var window_1 = __importDefault(__webpack_require__(/*! ./filter/window */ "./src/filter/window.ts")); var node_1 = __importDefault(__webpack_require__(/*! ./filter/node */ "./src/filter/node.ts")); -var reporter_1 = __webpack_require__(/*! ./reporter/reporter */ "./src/reporter/reporter.ts"); -var fetch_1 = __importDefault(__webpack_require__(/*! ./reporter/fetch */ "./src/reporter/fetch.ts")); -var request_1 = __importDefault(__webpack_require__(/*! ./reporter/request */ "./src/reporter/request.ts")); -var xhr_1 = __importDefault(__webpack_require__(/*! ./reporter/xhr */ "./src/reporter/xhr.ts")); -var jsonp_1 = __importDefault(__webpack_require__(/*! ./reporter/jsonp */ "./src/reporter/jsonp.ts")); -var historian_1 = __importDefault(__webpack_require__(/*! ./historian */ "./src/historian.ts")); +var http_req_1 = __webpack_require__(/*! ./http_req */ "./src/http_req/index.ts"); +var historian_1 = __webpack_require__(/*! ./historian */ "./src/historian.ts"); +var routes_1 = __webpack_require__(/*! ./routes */ "./src/routes.ts"); var Client = /** @class */ (function () { function Client(opts) { if (opts === void 0) { opts = {}; } @@ -1104,15 +1101,21 @@ var Client = /** @class */ (function () { /password/, /secret/, ]; - this.processor = opts.processor || stacktracejs_1.default; - this.setReporter(opts.reporter || reporter_1.defaultReporter(opts)); + this.url = this.opts.host + "/api/v3/projects/" + this.opts.projectId + "/notices?key=" + this.opts.projectKey; + this.processor = this.opts.processor || stacktracejs_1.default; + this.requester = http_req_1.makeRequester(this.opts); this.addFilter(ignore_1.default); this.addFilter(debounce_1.default()); this.addFilter(uncaught_message_1.default); this.addFilter(angular_message_1.default); - if (opts.environment) { + if (!this.opts.environment && + typeof process !== 'undefined' && + process.env.NODE_ENV) { + this.opts.environment = process.env.NODE_ENV; + } + if (this.opts.environment) { this.addFilter(function (notice) { - notice.context.environment = opts.environment; + notice.context.environment = _this.opts.environment; return notice; }); } @@ -1135,11 +1138,12 @@ var Client = /** @class */ (function () { else { this.addFilter(node_1.default); } - this.historian = historian_1.default.instance(); - this.historian.registerNotifier(this); - if (opts.unwrapConsole || isDevEnv(opts)) { - this.historian.unwrapConsole(); + var historianOpts = opts.instrumentation || {}; + if (typeof historianOpts.console === undefined) { + historianOpts.console = !isDevEnv(opts.environment); } + this.historian = historian_1.Historian.instance(historianOpts); + this.historian.registerNotifier(this); } Client.prototype.close = function () { for (var _i = 0, _a = this.onClose; _i < _a.length; _i++) { @@ -1148,27 +1152,6 @@ var Client = /** @class */ (function () { } this.historian.unregisterNotifier(this); }; - Client.prototype.setReporter = function (name) { - switch (name) { - case 'fetch': - this.reporter = fetch_1.default; - break; - case 'node': - this.reporter = fetch_1.default; - break; - case 'request': - this.reporter = request_1.default; - break; - case 'xhr': - this.reporter = xhr_1.default; - break; - case 'jsonp': - this.reporter = jsonp_1.default; - break; - default: - this.reporter = name; - } - }; Client.prototype.addFilter = function (filter) { this.filters.push(filter); }; @@ -1233,11 +1216,28 @@ var Client = /** @class */ (function () { notice.context.language = 'JavaScript'; notice.context.notifier = { name: 'airbrake-js', - version: "1.5.0", + version: "1.6.0-beta", url: 'https://github.com/airbrake/airbrake-js' }; - var payload = jsonify_notice_1.default(notice, { keysBlacklist: this.opts.keysBlacklist }); - return this.reporter(notice, payload, this.opts); + return this.sendNotice(notice); + }; + Client.prototype.sendNotice = function (notice) { + var body = jsonify_notice_1.default(notice, { keysBlacklist: this.opts.keysBlacklist }); + if (this.opts.reporter) { + return this.opts.reporter(notice); + } + var req = { + method: 'POST', + url: this.url, + body: body, + }; + return this.requester(req).then(function (resp) { + notice.id = resp.json.id; + return notice; + }).catch(function (err) { + notice.error = err; + return notice; + }); }; // TODO: fix wrapping for multiple clients Client.prototype.wrap = function (fn, props) { @@ -1293,6 +1293,12 @@ var Client = /** @class */ (function () { Client.prototype.onerror = function () { this.historian.onerror.apply(this.historian, arguments); }; + Client.prototype.incRequest = function (method, route, statusCode, time, ms) { + if (!this.routes) { + this.routes = new routes_1.Routes(this.opts); + } + this.routes.incRequest(method, route, statusCode, time, ms); + }; Client.prototype.onOnline = function () { this.offline = false; var _loop_1 = function (j) { @@ -1323,8 +1329,7 @@ var Client = /** @class */ (function () { }; return Client; }()); -function isDevEnv(opts) { - var env = opts.environment; +function isDevEnv(env) { return env && env.startsWith && env.startsWith('dev'); } module.exports = Client; @@ -1465,9 +1470,6 @@ function filter(notice) { if (!notice.context.rootDirectory) { notice.context.rootDirectory = process.cwd(); } - if (process.env.NODE_ENV) { - notice.context.environment = process.env.NODE_ENV; - } notice.params.process = { pid: process.pid, cwd: process.cwd(), @@ -1561,7 +1563,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); var dom_1 = __webpack_require__(/*! ./instrumentation/dom */ "./src/instrumentation/dom.ts"); var CONSOLE_METHODS = ['debug', 'log', 'info', 'warn', 'error']; var Historian = /** @class */ (function () { - function Historian() { + function Historian(opts) { + if (opts === void 0) { opts = {}; } var _this = this; this.historyMaxLen = 20; this.notifiers = []; @@ -1569,23 +1572,25 @@ var Historian = /** @class */ (function () { this.ignoreWindowError = 0; this.history = []; this.ignoreNextXHR = 0; - if (typeof console === 'object' && console.error) { + if (enabled(opts.console) && typeof console === 'object' && console.error) { this.consoleError = console.error; } if (typeof window === 'object') { - var self_1 = this; - var oldHandler_1 = window.onerror; - window.onerror = function () { - if (oldHandler_1) { - oldHandler_1.apply(this, arguments); - } - self_1.onerror.apply(self_1, arguments); - }; + if (enabled(opts.onerror)) { + var self_1 = this; + var oldHandler_1 = window.onerror; + window.onerror = function () { + if (oldHandler_1) { + oldHandler_1.apply(this, arguments); + } + self_1.onerror.apply(self_1, arguments); + }; + } this.domEvents(); - if (typeof fetch === 'function') { + if (enabled(opts.fetch) && typeof fetch === 'function') { this.fetch(); } - if (typeof history === 'object') { + if (enabled(opts.history) && typeof history === 'object') { this.location(); } } @@ -1617,16 +1622,17 @@ var Historian = /** @class */ (function () { }); }); } - if (typeof console === 'object') { + if (enabled(opts.console) && typeof console === 'object') { this.console(); } - if (typeof XMLHttpRequest !== 'undefined') { + if (enabled(opts.xhr) && typeof XMLHttpRequest !== 'undefined') { this.xhr(); } } - Historian.instance = function () { + Historian.instance = function (opts) { + if (opts === void 0) { opts = {}; } if (!Historian._instance) { - Historian._instance = new Historian(); + Historian._instance = new Historian(opts); } return Historian._instance; }; @@ -1899,7 +1905,206 @@ var Historian = /** @class */ (function () { }; return Historian; }()); -exports.default = Historian; +exports.Historian = Historian; +function enabled(v) { + return v === undefined || v === true; +} + + +/***/ }), + +/***/ "./src/http_req/fetch.ts": +/*!*******************************!*\ + !*** ./src/http_req/fetch.ts ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +__webpack_require__(/*! isomorphic-fetch */ "isomorphic-fetch"); +var index_1 = __webpack_require__(/*! ./index */ "./src/http_req/index.ts"); +var rateLimitReset = 0; +function request(req) { + var utime = Date.now() / 1000; + if (utime < rateLimitReset) { + return Promise.reject(index_1.errors.ipRateLimited); + } + var opt = { + method: req.method, + body: req.body, + }; + return fetch(req.url, opt).then(function (resp) { + if (resp.status === 401) { + throw index_1.errors.unauthorized; + } + if (resp.status === 429) { + var s = resp.headers.get('X-RateLimit-Delay'); + if (!s) { + throw index_1.errors.ipRateLimited; + } + var n = parseInt(s, 10); + if (n > 0) { + rateLimitReset = Date.now() / 1000 + n; + } + throw index_1.errors.ipRateLimited; + } + if (resp.status === 204) { + return { json: null }; + } + if (resp.status >= 200 && resp.status < 300) { + return resp.json().then(function (json) { + return { json: json }; + }); + } + if (resp.status >= 400 && resp.status < 500) { + return resp.json().then(function (json) { + var err = new Error(json.message); + throw err; + }); + } + return resp.text().then(function (body) { + var err = new Error("airbrake: fetch: unexpected response: code=" + resp.status + " body='" + body + "'"); + throw err; + }); + }); +} +exports.request = request; + + +/***/ }), + +/***/ "./src/http_req/index.ts": +/*!*******************************!*\ + !*** ./src/http_req/index.ts ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +var fetch_1 = __webpack_require__(/*! ./fetch */ "./src/http_req/fetch.ts"); +var node_1 = __webpack_require__(/*! ./node */ "./src/http_req/node.ts"); +function makeRequester(opts) { + if (opts.request) { + return node_1.makeRequester(opts.request); + } + return fetch_1.request; +} +exports.makeRequester = makeRequester; +exports.errors = { + unauthorized: new Error('airbrake: unauthorized: project id or key are wrong'), + ipRateLimited: new Error('airbrake: IP is rate limited'), +}; + + +/***/ }), + +/***/ "./src/http_req/node.ts": +/*!******************************!*\ + !*** ./src/http_req/node.ts ***! + \******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +var index_1 = __webpack_require__(/*! ./index */ "./src/http_req/index.ts"); +function makeRequester(api) { + return function (req) { + return request(req, api); + }; +} +exports.makeRequester = makeRequester; +var rateLimitReset = 0; +function request(req, api) { + var utime = Date.now() / 1000; + if (utime < rateLimitReset) { + return Promise.reject(index_1.errors.ipRateLimited); + } + return new Promise(function (resolve, reject) { + api({ + url: req.url, + method: req.method, + body: req.body, + headers: { + 'content-type': 'application/json' + }, + timeout: req.timeout + }, function (error, resp, body) { + if (error) { + reject(error); + return; + } + if (!resp.statusCode) { + var err_1 = new Error("airbrake: request: response statusCode is " + resp.statusCode); + reject(err_1); + return; + } + if (resp.statusCode === 401) { + reject(index_1.errors.unauthorized); + return; + } + if (resp.statusCode === 429) { + reject(index_1.errors.ipRateLimited); + var h = resp.headers['x-ratelimit-delay']; + if (!h) { + return; + } + var s = void 0; + if (typeof h === 'string') { + s = h; + } + else if (h instanceof Array) { + s = h[0]; + } + else { + return; + } + var n = parseInt(s, 10); + if (n > 0) { + rateLimitReset = Date.now() / 1000 + n; + } + return; + } + if (resp.statusCode === 204) { + resolve({ json: null }); + return; + } + if (resp.statusCode >= 200 && resp.statusCode < 300) { + var json = void 0; + try { + json = JSON.parse(body); + } + catch (err) { + reject(err); + return; + } + resolve(json); + return; + } + if (resp.statusCode >= 400 && resp.statusCode < 500) { + var json = void 0; + try { + json = JSON.parse(body); + } + catch (err) { + reject(err); + return; + } + var err_2 = new Error(json.message); + reject(err_2); + return; + } + body = body.trim(); + var err = new Error("airbrake: node: unexpected response: code=" + resp.statusCode + " body='" + body + "'"); + reject(err); + }); + }); +} /***/ }), @@ -1927,9 +2132,16 @@ function elemName(elem) { s.push('#'); s.push(elem.id); } - if (elem.className) { + if (elem.classList) { s.push('.'); - s.push(elem.className.split(' ').join('.')); + s.push(Array.from(elem.classList).join('.')); + } + else if (elem.className) { + var str = classNameString(elem.className); + if (str !== '') { + s.push('.'); + s.push(str); + } } if (elem.getAttribute) { for (var _i = 0, elemAttrs_1 = elemAttrs; _i < elemAttrs_1.length; _i++) { @@ -1942,6 +2154,16 @@ function elemName(elem) { } return s.join(''); } +function classNameString(name) { + if (name.split) { + return name.split(' ').join('.'); + } + if (name.baseVal && name.baseVal.split) { // SVGAnimatedString + return name.baseVal.split(' ').join('.'); + } + console.log('unsupported HTMLElement.className type', typeof (name)); + return ''; +} function elemPath(elem) { var maxLen = 10; var path = []; @@ -2313,351 +2535,114 @@ exports.default = processor; /***/ }), -/***/ "./src/reporter/fetch.ts": -/*!*******************************!*\ - !*** ./src/reporter/fetch.ts ***! - \*******************************/ +/***/ "./src/routes.ts": +/*!***********************!*\ + !*** ./src/routes.ts ***! + \***********************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -__webpack_require__(/*! isomorphic-fetch */ "isomorphic-fetch"); -var reporter_1 = __webpack_require__(/*! ./reporter */ "./src/reporter/reporter.ts"); -var rateLimitReset = 0; -function report(notice, payload, opts) { - var utime = Date.now() / 1000; - if (utime < rateLimitReset) { - notice.error = reporter_1.errors.ipRateLimited; - return Promise.resolve(notice); - } - var url = opts.host + "/api/v3/projects/" + opts.projectId + "/notices?key=" + opts.projectKey; - var opt = { - method: 'POST', - body: payload, +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; }; - return new Promise(function (resolve, _reject) { - fetch(url, opt).then(function (req) { - if (req.status === 401) { - notice.error = reporter_1.errors.unauthorized; - resolve(notice); - return; - } - if (req.status === 429) { - notice.error = reporter_1.errors.ipRateLimited; - resolve(notice); - var s = req.headers.get('X-RateLimit-Delay'); - if (!s) { - return; - } - var n = parseInt(s, 10); - if (n > 0) { - rateLimitReset = Date.now() / 1000 + n; - } - return; - } - if (req.status >= 200 && req.status < 500) { - var json = void 0; - try { - json = req.json(); - } - catch (err) { - notice.error = err; - resolve(notice); - return; - } - json.then(function (resp) { - if (resp.id) { - notice.id = resp.id; - resolve(notice); - return; - } - if (resp.message) { - notice.error = new Error(resp.message); - resolve(notice); - return; - } - }); - return; - } - req.text().then(function (body) { - notice.error = new Error("airbrake: fetch: unexpected response: code=" + req.status + " body='" + body + "'"); - resolve(notice); - }); - }).catch(function (err) { - notice.error = err; - resolve(notice); - }); - }); -} -exports.default = report; - - -/***/ }), - -/***/ "./src/reporter/jsonp.ts": -/*!*******************************!*\ - !*** ./src/reporter/jsonp.ts ***! - \*******************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -var cbCount = 0; -function report(notice, payload, opts) { - return new Promise(function (resolve, _reject) { - cbCount++; - var cbName = 'airbrakeCb' + String(cbCount); - window[cbName] = function (resp) { - try { - delete window[cbName]; - } - catch (_) { // IE - window[cbName] = undefined; - } - if (resp.id) { - notice.id = resp.id; - resolve(notice); - return; - } - if (resp.message) { - notice.error = new Error(resp.message); - resolve(notice); - return; - } - notice.error = new Error(resp); - resolve(notice); - }; - payload = encodeURIComponent(payload); - var url = opts.host + "/api/v3/projects/" + opts.projectId + "/create-notice?key=" + opts.projectKey + "&callback=" + cbName + "&body=" + payload; - var document = window.document; - var head = document.getElementsByTagName('head')[0]; - var script = document.createElement('script'); - script.src = url; - script.onload = function () { return head.removeChild(script); }; - script.onerror = function () { - head.removeChild(script); - notice.error = new Error('airbrake: JSONP script error'); - resolve(notice); - }; - head.appendChild(script); - }); -} -exports.default = report; - - -/***/ }), - -/***/ "./src/reporter/reporter.ts": -/*!**********************************!*\ - !*** ./src/reporter/reporter.ts ***! - \**********************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -function defaultReporter(opts) { - if (opts.request) { - return 'request'; - } - if (typeof fetch === 'function') { - return 'fetch'; - } - if (typeof XMLHttpRequest === 'function') { - return 'xhr'; - } - if (typeof window === 'object') { - return 'jsonp'; - } - return 'fetch'; -} -exports.defaultReporter = defaultReporter; -exports.errors = { - unauthorized: new Error('airbrake: unauthorized: project id or key are wrong'), - ipRateLimited: new Error('airbrake: IP is rate limited'), + return __assign.apply(this, arguments); }; - - -/***/ }), - -/***/ "./src/reporter/request.ts": -/*!*********************************!*\ - !*** ./src/reporter/request.ts ***! - \*********************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); -var reporter_1 = __webpack_require__(/*! ./reporter */ "./src/reporter/reporter.ts"); -var rateLimitReset = 0; -function report(notice, payload, opts) { - var utime = Date.now() / 1000; - if (utime < rateLimitReset) { - notice.error = reporter_1.errors.ipRateLimited; - return Promise.resolve(notice); +var http_req_1 = __webpack_require__(/*! ./http_req */ "./src/http_req/index.ts"); +var FLUSH_INTERVAL = 15000; +var Routes = /** @class */ (function () { + function Routes(opts) { + // TODO: use RouteKey as map key + this.m = {}; + this.opts = opts; + this.url = this.opts.host + "/api/v5/projects/" + this.opts.projectId + "/routes-stats?key=" + this.opts.projectKey; + this.requester = http_req_1.makeRequester(this.opts); } - var url = opts.host + "/api/v3/projects/" + opts.projectId + "/notices?key=" + opts.projectKey; - return new Promise(function (resolve, _reject) { - opts.request({ - url: url, - method: 'POST', - body: payload, - headers: { - 'content-type': 'application/json' - }, - timeout: opts.timeout - }, function (error, response, body) { - if (error) { - notice.error = error; - resolve(notice); - return; - } - if (!response.statusCode) { - notice.error = new Error('airbrake: node: statusCode is null or undefined'); - resolve(notice); - return; - } - if (response.statusCode === 401) { - notice.error = reporter_1.errors.unauthorized; - resolve(notice); - return; - } - if (response.statusCode === 429) { - notice.error = reporter_1.errors.ipRateLimited; - resolve(notice); - var h = response.headers['x-ratelimit-delay']; - if (!h) { - return; - } - var s = void 0; - if (typeof h === 'string') { - s = h; - } - else if (h instanceof Array) { - s = h[0]; - } - else { - return; - } - var n = parseInt(s, 10); - if (n > 0) { - rateLimitReset = Date.now() / 1000 + n; - } - return; + Routes.prototype.incRequest = function (method, route, statusCode, time, ms) { + var _this = this; + var minute = 60 * 1000; + time = new Date(Math.floor(time.getTime() / minute) * minute); + var key = { + method: method, + route: route, + status_code: statusCode, + time: time + }; + var keyStr = JSON.stringify(key); + var stat; + if (keyStr in this.m) { + stat = this.m[keyStr]; + } + else { + stat = { + count: 0, + sum: 0, + sumsq: 0 + }; + if (this.opts.tdigest) { + stat.tdigest = new this.opts.tdigest(); } - if (response.statusCode >= 200 && response.statusCode < 500) { - var resp = void 0; - try { - resp = JSON.parse(body); - } - catch (err) { - notice.error = err; - resolve(notice); - return; - } - if (resp.id) { - notice.id = resp.id; - resolve(notice); - return; - } - if (resp.message) { - notice.error = new Error(resp.message); - resolve(notice); - return; - } + this.m[keyStr] = stat; + } + stat.count++; + stat.sum += ms; + stat.sumsq += ms * ms; + if (stat.tdigest) { + stat.tdigest.push(ms); + } + if (this.timer) { + return; + } + this.timer = setTimeout(function () { _this.flush(); }, FLUSH_INTERVAL); + }; + Routes.prototype.flush = function () { + var routes = []; + for (var keyStr in this.m) { + var key = JSON.parse(keyStr); + var v = __assign({}, key, this.m[keyStr]); + if (v.tdigest) { + v.tdigest_centroids = this.tdigestCentroids(v.tdigest); + delete v.tdigest; + } + routes.push(v); + } + this.m = {}; + this.timer = null; + var req = { + method: 'POST', + url: this.url, + body: JSON.stringify({ routes: routes }), + }; + this.requester(req).then(function (_resp) { + // nothing + }).catch(function (err) { + if (console.error) { + console.error('can not report routes stats', err); } - body = body.trim(); - notice.error = new Error("airbrake: node: unexpected response: code=" + response.statusCode + " body='" + body + "'"); - resolve(notice); }); - }); -} -exports.default = report; - - -/***/ }), - -/***/ "./src/reporter/xhr.ts": -/*!*****************************!*\ - !*** ./src/reporter/xhr.ts ***! - \*****************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -var reporter_1 = __webpack_require__(/*! ./reporter */ "./src/reporter/reporter.ts"); -var rateLimitReset = 0; -function report(notice, payload, opts) { - var utime = Date.now() / 1000; - if (utime < rateLimitReset) { - notice.error = reporter_1.errors.ipRateLimited; - return Promise.resolve(notice); - } - var url = opts.host + "/api/v3/projects/" + opts.projectId + "/notices?key=" + opts.projectKey; - return new Promise(function (resolve, _reject) { - var req = new XMLHttpRequest(); - req.open('POST', url, true); - req.timeout = opts.timeout; - req.onreadystatechange = function () { - if (req.readyState !== 4) { - return; - } - if (req.status === 401) { - notice.error = reporter_1.errors.unauthorized; - resolve(notice); - return; - } - if (req.status === 429) { - notice.error = reporter_1.errors.ipRateLimited; - resolve(notice); - var s = req.getResponseHeader('X-RateLimit-Delay'); - if (!s) { - return; - } - var n = parseInt(s, 10); - if (n > 0) { - rateLimitReset = Date.now() / 1000 + n; - } - return; - } - if (req.status >= 200 && req.status < 500) { - var resp = void 0; - try { - resp = JSON.parse(req.responseText); - } - catch (err) { - notice.error = err; - resolve(notice); - return; - } - if (resp.id) { - notice.id = resp.id; - resolve(notice); - return; - } - if (resp.message) { - notice.error = new Error(resp.message); - resolve(notice); - return; - } - } - var body = req.responseText.trim(); - notice.error = new Error("airbrake: xhr: unexpected response: code=" + req.status + " body='" + body + "'"); - resolve(notice); + }; + Routes.prototype.tdigestCentroids = function (td) { + var means = [], counts = []; + td.centroids.each(function (c) { + means.push(c.mean); + counts.push(c.n); + }); + return { + mean: means, + count: counts, }; - req.send(payload); - }); -} -exports.default = report; + }; + return Routes; +}()); +exports.Routes = Routes; /***/ }), diff --git a/dist/client.js.map b/dist/client.js.map index 25c6eaae4..f48477942 100644 --- a/dist/client.js.map +++ b/dist/client.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://airbrakeJs.Client/webpack/universalModuleDefinition","webpack://airbrakeJs.Client/webpack/bootstrap","webpack://airbrakeJs.Client/./node_modules/error-stack-parser/error-stack-parser.js","webpack://airbrakeJs.Client/./node_modules/promise-polyfill/src/finally.js","webpack://airbrakeJs.Client/./node_modules/promise-polyfill/src/index.js","webpack://airbrakeJs.Client/./node_modules/promise-polyfill/src/polyfill.js","webpack://airbrakeJs.Client/./node_modules/setimmediate/setImmediate.js","webpack://airbrakeJs.Client/./node_modules/stackframe/stackframe.js","webpack://airbrakeJs.Client/./node_modules/timers-browserify/main.js","webpack://airbrakeJs.Client/(webpack)/buildin/global.js","webpack://airbrakeJs.Client/./src/client.ts","webpack://airbrakeJs.Client/./src/filter/angular_message.ts","webpack://airbrakeJs.Client/./src/filter/debounce.ts","webpack://airbrakeJs.Client/./src/filter/ignore.ts","webpack://airbrakeJs.Client/./src/filter/node.ts","webpack://airbrakeJs.Client/./src/filter/uncaught_message.ts","webpack://airbrakeJs.Client/./src/filter/window.ts","webpack://airbrakeJs.Client/./src/historian.ts","webpack://airbrakeJs.Client/./src/instrumentation/dom.ts","webpack://airbrakeJs.Client/./src/internal/compat.ts","webpack://airbrakeJs.Client/./src/jsonify_notice.ts","webpack://airbrakeJs.Client/./src/processor/stacktracejs.ts","webpack://airbrakeJs.Client/./src/reporter/fetch.ts","webpack://airbrakeJs.Client/./src/reporter/jsonp.ts","webpack://airbrakeJs.Client/./src/reporter/reporter.ts","webpack://airbrakeJs.Client/./src/reporter/request.ts","webpack://airbrakeJs.Client/./src/reporter/xhr.ts","webpack://airbrakeJs.Client/external {\"commonjs\":\"isomorphic-fetch\",\"commonjs2\":\"isomorphic-fetch\",\"amd\":\"isomorphic-fetch\",\"root\":\"fetch\"}","webpack://airbrakeJs.Client/external {\"commonjs\":\"os\",\"commonjs2\":\"os\",\"amd\":\"os\"}"],"names":[],"mappings":";AAAA;AACA;AACA,0EAA0E,MAAM,sBAAsB,EAAE,YAAY,EAAE;AACtH;AACA;AACA;AACA,6EAA6E,MAAM,sBAAsB,EAAE,YAAY,EAAE;AACzH;AACA,+CAA+C;AAC/C,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;AClFA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK,UAAU,IAA2B;AAC1C,iCAAiC,mBAAO,CAAC,2DAAY;AACrD,KAAK,MAAM,EAEN;AACL,CAAC;AACD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,MAAM;AACzB,oBAAoB,MAAM;AAC1B;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA,+CAA+C,SAAS;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA,+CAA+C,SAAS;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;;AAEA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,CAAC;;;;;;;;;;;;;;AClMD;AAAA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEe,iFAAkB,EAAC;;;;;;;;;;;;;ACnBlC;AAAA;AAAuC;;AAEvC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,aAAa,SAAS;AACtB;AACA,aAAa,kBAAkB;AAC/B;AACA,aAAa,kBAAkB;AAC/B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,+CAA+C,SAAS;AACxD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,+BAA+B,gDAAc;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,+DAA+D;AAC/D;AACA;;AAEe,sEAAO,EAAC;;;;;;;;;;;;;;AC/OvB;AAAA;AAAA;AAA8B;AACS;;AAEvC,eAAe,cAAc;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA,wBAAwB,8CAAO;AAC/B,CAAC;AACD,0CAA0C,gDAAc;AACxD;;;;;;;;;;;;;ACxBA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,iBAAiB;AACtC;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0CAA0C,sBAAsB,EAAE;AAClE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA,KAAK;AACL;AACA;;AAEA,KAAK;AACL;AACA;;AAEA,KAAK;AACL;AACA;;AAEA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,CAAC;;;;;;;;;;;;;ACzLD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK,UAAU,IAA2B;AAC1C;AACA,KAAK,MAAM,EAEN;AACL,CAAC;AACD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;AACT;AACA;AACA;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AU,IAAI,MAAG,CAAC,CAAC;YAC7E,OAAO,CAAC,MAAM,CAAC,CAAC;QACpB,CAAC,CAAC;QACF,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;AACP,CAAC;AApED,yBAoEC;;;;;;;;;;;;;;;;;;;;;;;;;AC5ED,8D;;;;;;;;;;;ACAA,2DAA2D,oDAAoD,6BAA6B;AAC5I,gD","file":"client.js","sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://airbrakeJs.Client/webpack/universalModuleDefinition","webpack://airbrakeJs.Client/webpack/bootstrap","webpack://airbrakeJs.Client/./node_modules/error-stack-parser/error-stack-parser.js","webpack://airbrakeJs.Client/./node_modules/promise-polyfill/src/finally.js","webpack://airbrakeJs.Client/./node_modules/promise-polyfill/src/index.js","webpack://airbrakeJs.Client/./node_modules/promise-polyfill/src/polyfill.js","webpack://airbrakeJs.Client/./node_modules/setimmediate/setImmediate.js","webpack://airbrakeJs.Client/./node_modules/stackframe/stackframe.js","webpack://airbrakeJs.Client/./node_modules/timers-browserify/main.js","webpack://airbrakeJs.Client/(webpack)/buildin/global.js","webpack://airbrakeJs.Client/./src/client.ts","webpack://airbrakeJs.Client/./src/filter/angular_message.ts","webpack://airbrakeJs.Client/./src/filter/debounce.ts","webpack://airbrakeJs.Client/./src/filter/ignore.ts","webpack://airbrakeJs.Client/./src/filter/node.ts","webpack://airbrakeJs.Client/./src/filter/uncaught_message.ts","webpack://airbrakeJs.Client/./src/filter/window.ts","webpack://airbrakeJs.Client/./src/historian.ts","webpack://airbrakeJs.Client/./src/http_req/fetch.ts","webpack://airbrakeJs.Client/./src/http_req/index.ts","webpack://airbrakeJs.Client/./src/http_req/node.ts","webpack://airbrakeJs.Client/./src/instrumentation/dom.ts","webpack://airbrakeJs.Client/./src/internal/compat.ts","webpack://airbrakeJs.Client/./src/jsonify_notice.ts","webpack://airbrakeJs.Client/./src/processor/stacktracejs.ts","webpack://airbrakeJs.Client/./src/routes.ts","webpack://airbrakeJs.Client/external {\"commonjs\":\"isomorphic-fetch\",\"commonjs2\":\"isomorphic-fetch\",\"amd\":\"isomorphic-fetch\",\"root\":\"fetch\"}","webpack://airbrakeJs.Client/external {\"commonjs\":\"os\",\"commonjs2\":\"os\",\"amd\":\"os\"}"],"names":[],"mappings":";AAAA;AACA;AACA,0EAA0E,MAAM,sBAAsB,EAAE,YAAY,EAAE;AACtH;AACA;AACA;AACA,6EAA6E,MAAM,sBAAsB,EAAE,YAAY,EAAE;AACzH;AACA,+CAA+C;AAC/C,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;AClFA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK,UAAU,IAA2B;AAC1C,iCAAiC,mBAAO,CAAC,2DAAY;AACrD,KAAK,MAAM,EAEN;AACL,CAAC;AACD;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,mBAAmB,MAAM;AACzB,oBAAoB,MAAM;AAC1B;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,aAAa;AACb,SAAS;;AAET;AACA;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA,+CAA+C,SAAS;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;;AAEA;AACA,SAAS;;AAET;AACA;AACA;AACA;;AAEA,+CAA+C,SAAS;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;;AAEA;AACA,SAAS;;AAET;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,CAAC;;;;;;;;;;;;;;AClMD;AAAA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,KAAK;AACL;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEe,iFAAkB,EAAC;;;;;;;;;;;;;ACnBlC;AAAA;AAAuC;;AAEvC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,WAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA,aAAa,SAAS;AACtB;AACA,aAAa,kBAAkB;AAC/B;AACA,aAAa,kBAAkB;AAC/B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA,+CAA+C,SAAS;AACxD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,+BAA+B,gDAAc;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA,mBAAmB,iBAAiB;AACpC;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA,wCAAwC,SAAS;AACjD;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,+DAA+D;AAC/D;AACA;;AAEe,sEAAO,EAAC;;;;;;;;;;;;;;AC/OvB;AAAA;AAAA;AAA8B;AACS;;AAEvC,eAAe,cAAc;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA,wBAAwB,8CAAO;AAC/B,CAAC;AACD,0CAA0C,gDAAc;AACxD;;;;;;;;;;;;;ACxBA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,iBAAiB;AACtC;AACA;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0CAA0C,sBAAsB,EAAE;AAClE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAU;AACV;AACA;;AAEA,KAAK;AACL;AACA;;AAEA,KAAK;AACL;AACA;;AAEA,KAAK;AACL;AACA;;AAEA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,CAAC;;;;;;;;;;;;;ACzLD;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK,UAAU,IAA2B;AAC1C;AACA,KAAK,MAAM,EAEN;AACL,CAAC;AACD;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,2BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,aAAa;AACb;AACA,aAAa;AACb;AACA;AACA,SAAS;;AAET;AACA,2DAA2D,UAAU;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA,mBAAmB,yBAAyB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA,mBAAmB,wBAAwB;AAC3C;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;;AAEA;AACA,CAAC;;;;;;;;;;;;;ACjHD;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA,mBAAO,CAAC,iEAAc;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC9DA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;;;;;;;;;;;ACnBA,4GAAuC;AAIvC,+GAA6C;AAG7C,6HAA6D;AAG7D,qGAA2C;AAC3C,2GAAmD;AACnD,mIAA8D;AAC9D,gIAA4D;AAC5D,qGAA2C;AAC3C,+FAAuC;AAEvC,kFAAoD;AAGpD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;QACF,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAC,KAAK;YAC3B,UAAU;QACd,CAAC,CAAC,CAAC,KAAK,CAAC,UAAC,GAAG;YACT,IAAI,OAAO,CAAC,KAAK,EAAE;gBACf,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAC;aACrD;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,iCAAgB,GAAxB,UAAyB,EAAW;QAChC,IAAI,KAAK,GAAa,EAAE,EAAE,MAAM,GAAa,EAAE,CAAC;QAChD,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,UAAC,CAAW;YAC1B,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YACnB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;QACH,OAAO;YACH,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,MAAM;SAChB,CAAC;IACN,CAAC;IACL,aAAC;AAAD,CAAC;AAnGY,wBAAM;;;;;;;;;;;;;;;;;;;;;;;;;AC/CnB,8D;;;;;;;;;;;ACAA,2DAA2D,oDAAoD,6BAA6B;AAC5I,gD","file":"client.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/client.min.js b/dist/client.min.js index 6665e6eef..720f7138a 100644 --- a/dist/client.min.js +++ b/dist/client.min.js @@ -1,3 +1,3 @@ -/*! airbrake-js v1.5.0 */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(function(){try{return require("os")}catch(e){}}(),require("isomorphic-fetch")):"function"==typeof define&&define.amd?define(["os","isomorphic-fetch"],t):"object"==typeof exports?exports.Client=t(function(){try{return require("os")}catch(e){}}(),require("isomorphic-fetch")):(e.airbrakeJs=e.airbrakeJs||{},e.airbrakeJs.Client=t(e[void 0],e.fetch))}("undefined"!=typeof self?self:this,function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultReporter=function(e){return e.request?"request":"function"==typeof fetch?"fetch":"function"==typeof XMLHttpRequest?"xhr":"object"==typeof window?"jsonp":"fetch"},t.errors={unauthorized:new Error("airbrake: unauthorized: project id or key are wrong"),ipRateLimited:new Error("airbrake: IP is rate limited")}},function(e,t,r){"use strict";t.a=function(e){var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){return t.reject(r)})})}},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";(function(e){var n=r(1),o=setTimeout;function i(){}function s(e){if(!(this instanceof s))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function a(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,s._immediateFn(function(){var r=1===e._state?t.onFulfilled:t.onRejected;if(null!==r){var n;try{n=r(e._value)}catch(e){return void u(t.promise,e)}c(t.promise,n)}else(1===e._state?c:u)(t.promise,e._value)})):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof s)return e._state=3,e._value=t,void f(e);if("function"==typeof r)return void l(function(e,t){return function(){e.apply(t,arguments)}}(r,t),e)}e._state=1,e._value=t,f(e)}catch(t){u(e,t)}}function u(e,t){e._state=2,e._value=t,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&s._immediateFn(function(){e._handled||s._unhandledRejectionFn(e._value)});for(var t=0,r=e._deferreds.length;t100;){var i=t.todo.shift();if(void 0===i)break;r.error=new Error("airbrake: offline queue is too large"),i.resolve(r)}});var n=this.historian.getHistory();n.length>0&&(r.context.history=n);var i=this.processor(e.error);r.errors.push(i);for(var s=0,a=this.filters;s=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(9),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(2))},function(e,t,r){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var r,n=1,o={},i=!1,s=e.document,a=Object.getPrototypeOf&&Object.getPrototypeOf(e);a=a&&a.setTimeout?a:e,"[object process]"==={}.toString.call(e.process)?r=function(e){process.nextTick(function(){u(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(r){r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&u(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),r=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){u(e.data)},r=function(t){e.port2.postMessage(t)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var e=s.documentElement;r=function(t){var r=s.createElement("script");r.onreadystatechange=function(){u(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():r=function(e){setTimeout(u,0,e)},a.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i>t||1}t.default=function(e,t){var r=void 0===t?{}:t,n=r.maxLength,o=void 0===n?64e3:n,a=r.keysBlacklist,c=void 0===a?[]:a;if(e.errors)for(var u in e.errors){var f=new i({keysBlacklist:c});e.errors[u]=f.truncate(e.errors[u])}for(var l="",h=["context","params","environment","session"],p=0;p<8;p++){for(var d={level:p,keysBlacklist:c},v=0,m=h;v=0)return"[Circular "+this.getPath(e)+"]";var n=function(e){return Object.prototype.toString.apply(e).slice("[object ".length,-1)}(e);if(++r>this.maxDepth)return"[Truncated "+n+"]";switch(this.keys.push(t),this.seen.push(e),n){case"Array":return this.truncateArray(e,r);case"Object":return this.truncateObject(e,r);default:var o=this.maxDepth;this.maxDepth=0;var i=this.truncateObject(e,r);return i.__type=n,this.maxDepth=o,i}},e.prototype.getPath=function(e){for(var t=this.seen.indexOf(e),r=[this.keys[t]],n=t;n>=0;n--){var o=this.seen[n];o&&a(o,r[0])===e&&(e=o,r.unshift(this.keys[n]))}return"~"+r.join(".")},e.prototype.truncateString=function(e){return e.length>this.maxStringLength?e.slice(0,this.maxStringLength)+"...":e},e.prototype.truncateArray=function(e,t){void 0===t&&(t=0);var r=0,n=[];for(var o in e){var i=e[o];if(n.push(this.truncate(i,o,t)),++r>=this.maxArrayLength)break}return n},e.prototype.truncateObject=function(e,t){void 0===t&&(t=0);var r=0,n={};for(var o in e)if(c(o,this.keysBlacklist))n[o]="[Filtered]";else{var i=a(e,o);if(void 0!==i&&"function"!=typeof i&&(n[o]=this.truncate(i,o,t),++r>=this.maxObjectLength))break}return n},e}();function s(e,t){return void 0===t&&(t={}),new i(t).truncate(e)}function a(e,t){try{return e[t]}catch(e){return}}function c(e,t){for(var r=0,n=t;r-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),n=this.extractLocation(r.pop()),o=r.join(" ")||void 0,i=["eval",""].indexOf(n[0])>-1?void 0:n[0];return new e({functionName:o,fileName:i,lineNumber:n[1],columnNumber:n[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter(function(e){return!e.match(n)},this).map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=t.match(r),o=n&&n[1]?n[1]:void 0,i=this.extractLocation(t.replace(r,""));return new e({functionName:o,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var r=/Line (\d+).*script (?:in )?(\S+)/i,n=t.message.split("\n"),o=[],i=2,s=n.length;i/,"$2").replace(/\([^\)]*\)/g,"")||void 0;i.match(/\(([^\)]*)\)/)&&(r=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var a=void 0===r||"[arguments not available]"===r?void 0:r.split(",");return new e({functionName:s,args:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})},this)}}})},function(e,t,r){!function(t,r){"use strict";e.exports=r()}(0,function(){"use strict";function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function r(e){return function(){return this[e]}}var n=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],i=["fileName","functionName","source"],s=n.concat(o,i,["args"]);function a(e){if(e instanceof Object)for(var r=0;r0&&""===t.backtrace[0].file?null:e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e,t;return function(r){var n=JSON.stringify(r.errors);return n===e?null:(t&&clearTimeout(t),e=n,t=setTimeout(function(){e=""},1e3),r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=new RegExp(["^","Uncaught\\s","(.+?)",":\\s","(.+)","$"].join(""));t.default=function(e){var t=e.errors[0];if(""!==t.type&&"Error"!==t.type)return e;var r=t.message.match(n);return null!==r&&(t.type=r[1],t.message=r[2]),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=new RegExp(["^","\\[(\\$.+)\\]","\\s","([\\s\\S]+)","$"].join(""));t.default=function(e){var t=e.errors[0];if(""!==t.type&&"Error"!==t.type)return e;var r=t.message.match(n);return null!==r&&(t.type=r[1],t.message=r[2]),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return window.navigator&&window.navigator.userAgent&&(e.context.userAgent=window.navigator.userAgent),window.location&&(e.context.url=String(window.location),e.context.rootDirectory=window.location.protocol+"//"+window.location.host),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;try{t=r(20)}catch(e){}if(t&&(e.context.os=t.type()+"/"+t.release(),e.context.architecture=t.arch(),e.context.hostname=t.hostname(),e.params.os={homedir:t.homedir(),uptime:t.uptime(),freemem:t.freemem(),totalmem:t.totalmem(),loadavg:t.loadavg()}),process)for(var n in e.context.platform=process.platform,e.context.rootDirectory||(e.context.rootDirectory=process.cwd()),process.env.NODE_ENV&&(e.context.environment=process.env.NODE_ENV),e.params.process={pid:process.pid,cwd:process.cwd(),execPath:process.execPath,argv:process.argv},["uptime","cpuUsage","memoryUsage"])process[n]&&(e.params.process[n]=process[n]());return e}},function(t,r){if(void 0===e){var n=new Error("Cannot find module 'undefined'");throw n.code="MODULE_NOT_FOUND",n}t.exports=e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(22);var n=r(0),o=0;t.default=function(e,t,r){if(Date.now()/1e3=200&&r.status<500){var i=void 0;try{i=r.json()}catch(r){return e.error=r,void t(e)}i.then(function(r){return r.id?(e.id=r.id,void t(e)):r.message?(e.error=new Error(r.message),void t(e)):void 0})}else r.text().then(function(n){e.error=new Error("airbrake: fetch: unexpected response: code="+r.status+" body='"+n+"'"),t(e)});else{e.error=n.errors.ipRateLimited,t(e);var s=r.headers.get("X-RateLimit-Delay");if(!s)return;var a=parseInt(s,10);a>0&&(o=Date.now()/1e3+a)}}).catch(function(r){e.error=r,t(e)})})}},function(e,r){e.exports=t},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=0;t.default=function(e,t,r){if(Date.now()/1e3=200&&r.statusCode<500){var a=void 0;try{a=JSON.parse(i)}catch(t){return e.error=t,void s(e)}if(a.id)return e.id=a.id,void s(e);if(a.message)return e.error=new Error(a.message),void s(e)}i=i.trim(),e.error=new Error("airbrake: node: unexpected response: code="+r.statusCode+" body='"+i+"'"),s(e)}else{e.error=n.errors.ipRateLimited,s(e);var c=r.headers["x-ratelimit-delay"];if(!c)return;var u=void 0;if("string"==typeof c)u=c;else{if(!(c instanceof Array))return;u=c[0]}var f=parseInt(u,10);f>0&&(o=Date.now()/1e3+f)}})})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),o=0;t.default=function(e,t,r){if(Date.now()/1e3=200&&c.status<500){var t=void 0;try{t=JSON.parse(c.responseText)}catch(t){return e.error=t,void s(e)}if(t.id)return e.id=t.id,void s(e);if(t.message)return e.error=new Error(t.message),void s(e)}var r=c.responseText.trim();e.error=new Error("airbrake: xhr: unexpected response: code="+c.status+" body='"+r+"'"),s(e)}else{e.error=n.errors.ipRateLimited,s(e);var i=c.getResponseHeader("X-RateLimit-Delay");if(!i)return;var a=parseInt(i,10);a>0&&(o=Date.now()/1e3+a)}}},c.send(t)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=0;t.default=function(e,t,r){return new Promise(function(o,i){var s="airbrakeCb"+String(++n);window[s]=function(t){try{delete window[s]}catch(e){window[s]=void 0}return t.id?(e.id=t.id,void o(e)):t.message?(e.error=new Error(t.message),void o(e)):(e.error=new Error(t),void o(e))},t=encodeURIComponent(t);var a=r.host+"/api/v3/projects/"+r.projectId+"/create-notice?key="+r.projectKey+"&callback="+s+"&body="+t,c=window.document,u=c.getElementsByTagName("head")[0],f=c.createElement("script");f.src=a,f.onload=function(){return u.removeChild(f)},f.onerror=function(){u.removeChild(f),e.error=new Error("airbrake: JSONP script error"),o(e)},u.appendChild(f)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(27),o=["debug","log","info","warn","error"],i=function(){function e(){var e=this;if(this.historyMaxLen=20,this.notifiers=[],this.errors=[],this.ignoreWindowError=0,this.history=[],this.ignoreNextXHR=0,"object"==typeof console&&console.error&&(this.consoleError=console.error),"object"==typeof window){var t=this,r=window.onerror;window.onerror=function(){r&&r.apply(this,arguments),t.onerror.apply(t,arguments)},this.domEvents(),"function"==typeof fetch&&this.fetch(),"object"==typeof history&&this.location()}"object"==typeof process&&"function"==typeof process.on&&(process.on("uncaughtException",function(t){e.notify(t).then(function(){1===process.listeners("uncaughtException").length&&(e.consoleError&&e.consoleError("uncaught exception",t),process.exit(1))})}),process.on("unhandledRejection",function(t,r){var n=t.message||String(t);n.indexOf&&0===n.indexOf("airbrake: ")||e.notify(t).then(function(){1===process.listeners("unhandledRejection").length&&(e.consoleError&&e.consoleError("unhandled rejection",t),process.exit(1))})})),"object"==typeof console&&this.console(),"undefined"!=typeof XMLHttpRequest&&this.xhr()}return e.instance=function(){return e._instance||(e._instance=new e),e._instance},e.prototype.registerNotifier=function(e){this.notifiers.push(e);for(var t=0,r=this.errors;t0?this.notifyNotifiers(e):(this.errors.push(e),this.errors.length>this.historyMaxLen&&(this.errors=this.errors.slice(-this.historyMaxLen)),Promise.resolve({}))},e.prototype.notifyNotifiers=function(e){for(var t=[],r=0,n=this.notifiers;r0||(o?this.notify({error:o,context:{windowError:!0}}):t&&r&&this.notify({error:{message:e,fileName:t,lineNumber:r,columnNumber:n,noStack:!0},context:{windowError:!0}}))},e.prototype.ignoreNextWindowError=function(){var e=this;this.ignoreWindowError++,setTimeout(function(){return e.ignoreWindowError--})},e.prototype.getHistory=function(){return this.history},e.prototype.pushHistory=function(e){this.isDupState(e)?this.lastState.num?this.lastState.num++:this.lastState.num=2:(e.date||(e.date=new Date),this.history.push(e),this.lastState=e,this.history.length>this.historyMaxLen&&(this.history=this.history.slice(-this.historyMaxLen)))},e.prototype.isDupState=function(e){if(!this.lastState)return!1;for(var t in e)if("date"!==t&&e[t]!==this.lastState[t])return!1;return!0},e.prototype.domEvents=function(){var e=n.makeEventHandler(this);window.addEventListener&&(window.addEventListener("load",e),window.addEventListener("error",function(t){"error"in t||e(t)},!0)),"object"==typeof document&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",e),document.addEventListener("click",e),document.addEventListener("keypress",e))},e.prototype.console=function(){for(var e=this,t=function(t){if(!(t in console))return"continue";var r=console[t],n=function(){r.apply(console,arguments),e.pushHistory({type:"log",severity:t,arguments:Array.prototype.slice.call(arguments)})};n.inner=r,console[t]=n},r=0,n=o;r=0?e=(t=(e=e.slice(t+3)).indexOf("/"))>=0?e.slice(t):"/":"/"!==e.charAt(0)&&(e="/"+e),this.pushHistory({type:"location",from:this.lastLocation,to:e}),this.lastLocation=e},e}();t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["type","name","src"];function o(e){if(!e)return"";var t=[];if(e.tagName&&t.push(e.tagName.toLowerCase()),e.id&&(t.push("#"),t.push(e.id)),e.className&&(t.push("."),t.push(e.className.split(" ").join("."))),e.getAttribute)for(var r=0,o=n;r10))break;r=r.parentNode}return 0===t.length?String(e):t.reverse().join(" > ")}(r)}catch(e){n.target="<"+e.toString()+">"}e.pushHistory(n)}}}}])}); +/*! airbrake-js v1.6.0-beta */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(function(){try{return require("os")}catch(t){}}(),require("isomorphic-fetch")):"function"==typeof define&&define.amd?define(["os","isomorphic-fetch"],e):"object"==typeof exports?exports.Client=e(function(){try{return require("os")}catch(t){}}(),require("isomorphic-fetch")):(t.airbrakeJs=t.airbrakeJs||{},t.airbrakeJs.Client=e(t[void 0],t.fetch))}("undefined"!=typeof self?self:this,function(t,e){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=4)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(21),o=r(23);e.makeRequester=function(t){return t.request?o.makeRequester(t.request):n.request},e.errors={unauthorized:new Error("airbrake: unauthorized: project id or key are wrong"),ipRateLimited:new Error("airbrake: IP is rate limited")}},function(t,e,r){"use strict";e.a=function(t){var e=this.constructor;return this.then(function(r){return e.resolve(t()).then(function(){return r})},function(r){return e.resolve(t()).then(function(){return e.reject(r)})})}},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";(function(t){var n=r(1),o=setTimeout;function i(){}function s(t){if(!(this instanceof s))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(t,this)}function a(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,s._immediateFn(function(){var r=1===t._state?e.onFulfilled:e.onRejected;if(null!==r){var n;try{n=r(t._value)}catch(t){return void c(e.promise,t)}u(e.promise,n)}else(1===t._state?u:c)(e.promise,t._value)})):t._deferreds.push(e)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if(e instanceof s)return t._state=3,t._value=e,void f(t);if("function"==typeof r)return void l(function(t,e){return function(){t.apply(e,arguments)}}(r,e),t)}t._state=1,t._value=e,f(t)}catch(e){c(t,e)}}function c(t,e){t._state=2,t._value=e,f(t)}function f(t){2===t._state&&0===t._deferreds.length&&s._immediateFn(function(){t._handled||s._unhandledRejectionFn(t._value)});for(var e=0,r=t._deferreds.length;e100;){var i=e.todo.shift();if(void 0===i)break;r.error=new Error("airbrake: offline queue is too large"),i.resolve(r)}});var n=this.historian.getHistory();n.length>0&&(r.context.history=n);var o=this.processor(t.error);r.errors.push(o);for(var i=0,s=this.filters;i=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r(9),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(2))},function(t,e,r){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var r,n=1,o={},i=!1,s=t.document,a=Object.getPrototypeOf&&Object.getPrototypeOf(t);a=a&&a.setTimeout?a:t,"[object process]"==={}.toString.call(t.process)?r=function(t){process.nextTick(function(){c(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(r){r.source===t&&"string"==typeof r.data&&0===r.data.indexOf(e)&&c(+r.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),r=function(r){t.postMessage(e+r,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){c(t.data)},r=function(e){t.port2.postMessage(e)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var t=s.documentElement;r=function(e){var r=s.createElement("script");r.onreadystatechange=function(){c(e),r.onreadystatechange=null,t.removeChild(r),r=null},t.appendChild(r)}}():r=function(t){setTimeout(c,0,t)},a.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i>e||1}e.default=function(t,e){var r=void 0===e?{}:e,n=r.maxLength,o=void 0===n?64e3:n,a=r.keysBlacklist,u=void 0===a?[]:a;if(t.errors)for(var c in t.errors){var f=new i({keysBlacklist:u});t.errors[c]=f.truncate(t.errors[c])}for(var l="",h=["context","params","environment","session"],p=0;p<8;p++){for(var d={level:p,keysBlacklist:u},m=0,v=h;m=0)return"[Circular "+this.getPath(t)+"]";var n=function(t){return Object.prototype.toString.apply(t).slice("[object ".length,-1)}(t);if(++r>this.maxDepth)return"[Truncated "+n+"]";switch(this.keys.push(e),this.seen.push(t),n){case"Array":return this.truncateArray(t,r);case"Object":return this.truncateObject(t,r);default:var o=this.maxDepth;this.maxDepth=0;var i=this.truncateObject(t,r);return i.__type=n,this.maxDepth=o,i}},t.prototype.getPath=function(t){for(var e=this.seen.indexOf(t),r=[this.keys[e]],n=e;n>=0;n--){var o=this.seen[n];o&&a(o,r[0])===t&&(t=o,r.unshift(this.keys[n]))}return"~"+r.join(".")},t.prototype.truncateString=function(t){return t.length>this.maxStringLength?t.slice(0,this.maxStringLength)+"...":t},t.prototype.truncateArray=function(t,e){void 0===e&&(e=0);var r=0,n=[];for(var o in t){var i=t[o];if(n.push(this.truncate(i,o,e)),++r>=this.maxArrayLength)break}return n},t.prototype.truncateObject=function(t,e){void 0===e&&(e=0);var r=0,n={};for(var o in t)if(u(o,this.keysBlacklist))n[o]="[Filtered]";else{var i=a(t,o);if(void 0!==i&&"function"!=typeof i&&(n[o]=this.truncate(i,o,e),++r>=this.maxObjectLength))break}return n},t}();function s(t,e){return void 0===e&&(e={}),new i(e).truncate(t)}function a(t,e){try{return t[e]}catch(t){return}}function u(t,e){for(var r=0,n=e;r-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var r=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").split(/\s+/).slice(1),n=this.extractLocation(r.pop()),o=r.join(" ")||void 0,i=["eval",""].indexOf(n[0])>-1?void 0:n[0];return new t({functionName:o,fileName:i,lineNumber:n[1],columnNumber:n[2],source:e})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(t){return!t.match(n)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new t({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(r),o=n&&n[1]?n[1]:void 0,i=this.extractLocation(e.replace(r,""));return new t({functionName:o,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:e})},this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(e){for(var r=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),o=[],i=2,s=n.length;i/,"$2").replace(/\([^\)]*\)/g,"")||void 0;i.match(/\(([^\)]*)\)/)&&(r=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var a=void 0===r||"[arguments not available]"===r?void 0:r.split(",");return new t({functionName:s,args:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:e})},this)}}})},function(t,e,r){!function(e,r){"use strict";t.exports=r()}(0,function(){"use strict";function t(t){return!isNaN(parseFloat(t))&&isFinite(t)}function e(t){return t.charAt(0).toUpperCase()+t.substring(1)}function r(t){return function(){return this[t]}}var n=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],i=["fileName","functionName","source"],s=n.concat(o,i,["args"]);function a(t){if(t instanceof Object)for(var r=0;r0&&""===e.backtrace[0].file?null:t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t,e;return function(r){var n=JSON.stringify(r.errors);return n===t?null:(e&&clearTimeout(e),t=n,e=setTimeout(function(){t=""},1e3),r)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=new RegExp(["^","Uncaught\\s","(.+?)",":\\s","(.+)","$"].join(""));e.default=function(t){var e=t.errors[0];if(""!==e.type&&"Error"!==e.type)return t;var r=e.message.match(n);return null!==r&&(e.type=r[1],e.message=r[2]),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=new RegExp(["^","\\[(\\$.+)\\]","\\s","([\\s\\S]+)","$"].join(""));e.default=function(t){var e=t.errors[0];if(""!==e.type&&"Error"!==e.type)return t;var r=e.message.match(n);return null!==r&&(e.type=r[1],e.message=r[2]),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return window.navigator&&window.navigator.userAgent&&(t.context.userAgent=window.navigator.userAgent),window.location&&(t.context.url=String(window.location),t.context.rootDirectory=window.location.protocol+"//"+window.location.host),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e;try{e=r(20)}catch(t){}if(e&&(t.context.os=e.type()+"/"+e.release(),t.context.architecture=e.arch(),t.context.hostname=e.hostname(),t.params.os={homedir:e.homedir(),uptime:e.uptime(),freemem:e.freemem(),totalmem:e.totalmem(),loadavg:e.loadavg()}),process)for(var n in t.context.platform=process.platform,t.context.rootDirectory||(t.context.rootDirectory=process.cwd()),t.params.process={pid:process.pid,cwd:process.cwd(),execPath:process.execPath,argv:process.argv},["uptime","cpuUsage","memoryUsage"])process[n]&&(t.params.process[n]=process[n]());return t}},function(e,r){if(void 0===t){var n=new Error("Cannot find module 'undefined'");throw n.code="MODULE_NOT_FOUND",n}e.exports=t},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(22);var n=r(0),o=0;e.request=function(t){if(Date.now()/1e30&&(o=Date.now()/1e3+r),n.errors.ipRateLimited}return 204===t.status?{json:null}:t.status>=200&&t.status<300?t.json().then(function(t){return{json:t}}):t.status>=400&&t.status<500?t.json().then(function(t){throw new Error(t.message)}):t.text().then(function(e){throw new Error("airbrake: fetch: unexpected response: code="+t.status+" body='"+e+"'")})})}},function(t,r){t.exports=e},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0);e.makeRequester=function(t){return function(e){return function(t,e){return Date.now()/1e3=200&&e.statusCode<300){var a=void 0;try{a=JSON.parse(s)}catch(c){return void i(c)}r(a)}else if(e.statusCode>=400&&e.statusCode<500){var a=void 0;try{a=JSON.parse(s)}catch(c){return void i(c)}var u=new Error(a.message);i(u)}else{s=s.trim();var c=new Error("airbrake: node: unexpected response: code="+e.statusCode+" body='"+s+"'");i(c)}else r({json:null});else{i(n.errors.ipRateLimited);var f=e.headers["x-ratelimit-delay"];if(!f)return;var l=void 0;if("string"==typeof f)l=f;else{if(!(f instanceof Array))return;l=f[0]}var h=parseInt(l,10);h>0&&(o=Date.now()/1e3+h)}else i(n.errors.unauthorized);else{var p=new Error("airbrake: request: response statusCode is "+e.statusCode);i(p)}})})}(e,t)}};var o=0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(25),o=["debug","log","info","warn","error"],i=function(){function t(t){void 0===t&&(t={});var e=this;if(this.historyMaxLen=20,this.notifiers=[],this.errors=[],this.ignoreWindowError=0,this.history=[],this.ignoreNextXHR=0,s(t.console)&&"object"==typeof console&&console.error&&(this.consoleError=console.error),"object"==typeof window){if(s(t.onerror)){var r=this,n=window.onerror;window.onerror=function(){n&&n.apply(this,arguments),r.onerror.apply(r,arguments)}}this.domEvents(),s(t.fetch)&&"function"==typeof fetch&&this.fetch(),s(t.history)&&"object"==typeof history&&this.location()}"object"==typeof process&&"function"==typeof process.on&&(process.on("uncaughtException",function(t){e.notify(t).then(function(){1===process.listeners("uncaughtException").length&&(e.consoleError&&e.consoleError("uncaught exception",t),process.exit(1))})}),process.on("unhandledRejection",function(t,r){var n=t.message||String(t);n.indexOf&&0===n.indexOf("airbrake: ")||e.notify(t).then(function(){1===process.listeners("unhandledRejection").length&&(e.consoleError&&e.consoleError("unhandled rejection",t),process.exit(1))})})),s(t.console)&&"object"==typeof console&&this.console(),s(t.xhr)&&"undefined"!=typeof XMLHttpRequest&&this.xhr()}return t.instance=function(e){return void 0===e&&(e={}),t._instance||(t._instance=new t(e)),t._instance},t.prototype.registerNotifier=function(t){this.notifiers.push(t);for(var e=0,r=this.errors;e0?this.notifyNotifiers(t):(this.errors.push(t),this.errors.length>this.historyMaxLen&&(this.errors=this.errors.slice(-this.historyMaxLen)),Promise.resolve({}))},t.prototype.notifyNotifiers=function(t){for(var e=[],r=0,n=this.notifiers;r0||(o?this.notify({error:o,context:{windowError:!0}}):e&&r&&this.notify({error:{message:t,fileName:e,lineNumber:r,columnNumber:n,noStack:!0},context:{windowError:!0}}))},t.prototype.ignoreNextWindowError=function(){var t=this;this.ignoreWindowError++,setTimeout(function(){return t.ignoreWindowError--})},t.prototype.getHistory=function(){return this.history},t.prototype.pushHistory=function(t){this.isDupState(t)?this.lastState.num?this.lastState.num++:this.lastState.num=2:(t.date||(t.date=new Date),this.history.push(t),this.lastState=t,this.history.length>this.historyMaxLen&&(this.history=this.history.slice(-this.historyMaxLen)))},t.prototype.isDupState=function(t){if(!this.lastState)return!1;for(var e in t)if("date"!==e&&t[e]!==this.lastState[e])return!1;return!0},t.prototype.domEvents=function(){var t=n.makeEventHandler(this);window.addEventListener&&(window.addEventListener("load",t),window.addEventListener("error",function(e){"error"in e||t(e)},!0)),"object"==typeof document&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",t),document.addEventListener("click",t),document.addEventListener("keypress",t))},t.prototype.console=function(){for(var t=this,e=function(e){if(!(e in console))return"continue";var r=console[e],n=function(){r.apply(console,arguments),t.pushHistory({type:"log",severity:e,arguments:Array.prototype.slice.call(arguments)})};n.inner=r,console[e]=n},r=0,n=o;r=0?t=(e=(t=t.slice(e+3)).indexOf("/"))>=0?t.slice(e):"/":"/"!==t.charAt(0)&&(t="/"+t),this.pushHistory({type:"location",from:this.lastLocation,to:t}),this.lastLocation=t},t}();function s(t){return void 0===t||!0===t}e.Historian=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=["type","name","src"];function o(t){if(!t)return"";var e=[];if(t.tagName&&e.push(t.tagName.toLowerCase()),t.id&&(e.push("#"),e.push(t.id)),t.classList)e.push("."),e.push(Array.from(t.classList).join("."));else if(t.className){var r=function(t){if(t.split)return t.split(" ").join(".");if(t.baseVal&&t.baseVal.split)return t.baseVal.split(" ").join(".");return console.log("unsupported HTMLElement.className type",typeof t),""}(t.className);""!==r&&(e.push("."),e.push(r))}if(t.getAttribute)for(var o=0,i=n;o10))break;r=r.parentNode}return 0===e.length?String(t):e.reverse().join(" > ")}(r)}catch(t){n.target="<"+t.toString()+">"}t.pushHistory(n)}}}},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r