@sentry/integrations
Advanced tools
Comparing version 5.2.0-beta.0 to 5.2.0
@@ -196,7 +196,7 @@ (function (__window) { | ||
/** Pending */ | ||
States["P"] = "P"; | ||
States["PENDING"] = "PENDING"; | ||
/** Resolved / OK */ | ||
States["O"] = "O"; | ||
States["RESOLVED"] = "RESOLVED"; | ||
/** Rejected / Error */ | ||
States["E"] = "E"; | ||
States["REJECTED"] = "REJECTED"; | ||
})(States || (States = {})); | ||
@@ -203,0 +203,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};var i=function(){return(i=Object.assign||function(n){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};!function(n){function t(t){var r=this.constructor,i=n.call(this,t)||this;return i.message=t,i.name=r.prototype.constructor.name,Object.setPrototypeOf(i,r.prototype),i}(function(n,t){function i(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)})(t,n)}(Error);var o={};function e(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function u(n){var t=e();if(!("console"in t))return n();var r=t.console,i={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].i&&(i[n]=r[n].o,r[n]=r[n].u)});var o=n();return Object.keys(i).forEach(function(n){r[n]=i[n]}),o}var c=e(),f="Sentry Logger ",a=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.error(f+"[Error]: "+n.join(" "))})},n}();c.v=c.v||{};var s;c.v.logger||(c.v.logger=new a);!function(n){n.P="P",n.O="O",n.E="E"}(s||(s={}));var v=/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/,h=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.h=t.angular||e().angular}return n.prototype.setupOnce=function(t,r){var i=this;this.h?(this.l=r,this.h.module(n.moduleName,[]).config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",i.g.bind(i)])}])):console.error("AngularIntegration is missing an Angular instance")},n.prototype.g=function(t){var r=this;return function(o,e){var u=r.l&&r.l();u&&u.getIntegration(n)&&u.withScope(function(n){e&&n.setExtra("cause",e),n.addEventProcessor(function(n){var t=n.exception&&n.exception.values&&n.exception.values[0];if(t){var r=v.exec(t.value||"");r&&(t.type=r[1],t.value=r[2],n.message=t.type+": "+t.value,n.extra=i({},n.extra,{angularDocs:r[3].substr(0,250)}))}return n}),u.captureException(o)}),t(o,e)}},n.id="AngularJS",n.moduleName="ngSentry",n}();t.Angular=h,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};var i=function(){return(i=Object.assign||function(n){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};!function(n){function t(t){var r=this.constructor,i=n.call(this,t)||this;return i.message=t,i.name=r.prototype.constructor.name,Object.setPrototypeOf(i,r.prototype),i}(function(n,t){function i(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)})(t,n)}(Error);var o={};function e(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function u(n){var t=e();if(!("console"in t))return n();var r=t.console,i={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].i&&(i[n]=r[n].o,r[n]=r[n].u)});var o=n();return Object.keys(i).forEach(function(n){r[n]=i[n]}),o}var c=e(),f="Sentry Logger ",a=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.error(f+"[Error]: "+n.join(" "))})},n}();c.v=c.v||{};var s;c.v.logger||(c.v.logger=new a);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(s||(s={}));var v=/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/,h=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.h=t.angular||e().angular}return n.prototype.setupOnce=function(t,r){var i=this;this.h?(this.l=r,this.h.module(n.moduleName,[]).config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",i.g.bind(i)])}])):console.error("AngularIntegration is missing an Angular instance")},n.prototype.g=function(t){var r=this;return function(o,e){var u=r.l&&r.l();u&&u.getIntegration(n)&&u.withScope(function(n){e&&n.setExtra("cause",e),n.addEventProcessor(function(n){var t=n.exception&&n.exception.values&&n.exception.values[0];if(t){var r=v.exec(t.value||"");r&&(t.type=r[1],t.value=r[2],n.message=t.type+": "+t.value,n.extra=i({},n.extra,{angularDocs:r[3].substr(0,250)}))}return n}),u.captureException(o)}),t(o,e)}},n.id="AngularJS",n.moduleName="ngSentry",n}();t.Angular=h,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
//# sourceMappingURL=angular.min.js.map |
@@ -8,65 +8,2 @@ (function (__window) { | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
/* global Reflect, Promise */ | ||
var extendStatics = function(d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
function __extends(d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
} | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(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 __assign.apply(this, arguments); | ||
}; | ||
function __read(o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
} | ||
function __spread() { | ||
for (var ar = [], i = 0; i < arguments.length; i++) | ||
ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
} | ||
/** Console logging verbosity for the SDK. */ | ||
@@ -178,2 +115,31 @@ var LogLevel; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
/* global Reflect, Promise */ | ||
var extendStatics = function(d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
function __extends(d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
} | ||
/** An error emitted by Sentry SDKs and related utilities. */ | ||
@@ -639,7 +605,7 @@ var SentryError = /** @class */ (function (_super) { | ||
/** Pending */ | ||
States["P"] = "P"; | ||
States["PENDING"] = "PENDING"; | ||
/** Resolved / OK */ | ||
States["O"] = "O"; | ||
States["RESOLVED"] = "RESOLVED"; | ||
/** Rejected / Error */ | ||
States["E"] = "E"; | ||
States["REJECTED"] = "REJECTED"; | ||
})(States || (States = {})); | ||
@@ -690,5 +656,2 @@ | ||
event.logger = 'console'; | ||
if (event.sdk) { | ||
event.sdk = __assign({}, event.sdk, { integrations: __spread((event.sdk.integrations || []), ['console']) }); | ||
} | ||
return event; | ||
@@ -695,0 +658,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};var e,i,o,u=function(){return(u=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function c(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var e,i,o=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(n){i={error:n}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function f(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(c(arguments[t]));return n}!function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(i||(i={})),function(n){n.fromString=function(t){switch(t){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(i||(i={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(o||(o={})),function(n){n.fromHttpCode=function(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(o||(o={}));!function(n){function t(t){var r=this.constructor,e=n.call(this,t)||this;return e.message=t,e.name=r.prototype.constructor.name,Object.setPrototypeOf(e,r.prototype),e}(function(n,t){function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)})(t,n)}(Error);function a(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function s(n){return function(n){return"[object Object]"===Object.prototype.toString.call(n)}(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}var l={};function v(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function b(n){var t=v();if(!("console"in t))return n();var r=t.console,e={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].i&&(e[n]=r[n].o,r[n]=r[n].u)});var i=n();return Object.keys(e).forEach(function(n){r[n]=e[n]}),i}var d=v(),h="Sentry Logger ",y=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&b(function(){d.console.log(h+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&b(function(){d.console.warn(h+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&b(function(){d.console.error(h+"[Error]: "+n.join(" "))})},n}();d.l=d.l||{};d.l.logger||(d.l.logger=new y);var p,j=function(){function n(){this.v="function"==typeof WeakSet,this.h=this.v?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.v)return!!this.h.has(n)||(this.h.add(n),!1);for(var t=0;t<this.h.length;t++){if(this.h[t]===n)return!0}return this.h.push(n),!1},n.prototype.unmemoize=function(n){if(this.v)this.h.delete(n);else for(var t=0;t<this.h.length;t++)if(this.h[t]===n){this.h.splice(t,1);break}},n}();function w(n,t){return"domain"===t&&"object"==typeof n&&n.p?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":s(n)?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"<unknown-function-name>")+"]":n}function g(n,t,r,e){if(void 0===r&&(r=1/0),void 0===e&&(e=new j),0===r)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=w(n);return a(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=w(t,n);if(a(i))return i;var o=function(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}(t):t,u=Array.isArray(t)?[]:{};if(e.memoize(t))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=g(c,o[c],r-1,e));return e.unmemoize(t),u}function O(n,t){try{return JSON.parse(JSON.stringify(n,function(n,r){return g(n,r,t)}))}catch(n){return"**non-serializable**"}}function m(n,t){if(!Array.isArray(n))return"";for(var r=[],e=0;e<n.length;e++){var i=n[e];try{r.push(String(i))}catch(n){r.push("[value cannot be serialized]")}}return r.join(t)}!function(n){n.P="P",n.O="O",n.E="E"}(p||(p={}));var _=v(),E=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.j=["log","info","warn","error","debug","assert"],t.levels&&(this.j=t.levels)}return n.prototype.setupOnce=function(t,r){"console"in _&&this.j.forEach(function(t){t in _.console&&function(n,t,r){if(t in n){var e=n[t],i=r(e);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{i:{enumerable:!1,value:!0},u:{enumerable:!1,value:e},o:{enumerable:!1,value:i}})}catch(n){}n[t]=i}}(_.console,t,function(e){return function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];var a=r();a.getIntegration(n)&&a.withScope(function(n){n.setLevel(i.fromString(t)),n.setExtra("arguments",O(o,3)),n.addEventProcessor(function(n){return n.logger="console",n.sdk&&(n.sdk=u({},n.sdk,{integrations:f(n.sdk.integrations||[],["console"])})),n});var r=m(o," ");"assert"===t?!1===o[0]&&(r="Assertion failed: "+(m(o.slice(1)," ")||"console.assert"),n.setExtra("arguments",O(o.slice(1),3)),a.captureMessage(r)):a.captureMessage(r)}),e&&Function.prototype.apply.call(e,_.console,o)}})})},n.id="CaptureConsole",n}();t.CaptureConsole=E,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
!function(n){"use strict";var t,e,r,i={};Object.defineProperty(i,"t",{value:!0}),function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(t||(t={})),function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(e||(e={})),function(n){n.fromString=function(t){switch(t){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(e||(e={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(r||(r={})),function(n){n.fromHttpCode=function(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(r||(r={}));var o=function(n,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,Object.setPrototypeOf(r,e.prototype),r}(function(n,t){function e(){this.constructor=n}o(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)})(t,n)}(Error);function u(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function c(n){return function(n){return"[object Object]"===Object.prototype.toString.call(n)}(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}var f={};function a(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function s(n){var t=a();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].i&&(r[n]=e[n].o,e[n]=e[n].u)});var i=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),i}var l=a(),v="Sentry Logger ",b=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&s(function(){l.console.log(v+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&s(function(){l.console.warn(v+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&s(function(){l.console.error(v+"[Error]: "+n.join(" "))})},n}();l.l=l.l||{};l.l.logger||(l.l.logger=new b);var d,h=function(){function n(){this.v="function"==typeof WeakSet,this.h=this.v?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.v)return!!this.h.has(n)||(this.h.add(n),!1);for(var t=0;t<this.h.length;t++){if(this.h[t]===n)return!0}return this.h.push(n),!1},n.prototype.unmemoize=function(n){if(this.v)this.h.delete(n);else for(var t=0;t<this.h.length;t++)if(this.h[t]===n){this.h.splice(t,1);break}},n}();function p(n,t){return"domain"===t&&"object"==typeof n&&n.p?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":c(n)?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"<unknown-function-name>")+"]":n}function y(n,t,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new h),0===e)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var e=p(n);return u(e)?e:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=p(t,n);if(u(i))return i;var o=function(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}(t):t,c=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(c[f]=y(f,o[f],e-1,r));return r.unmemoize(t),c}function j(n,t){try{return JSON.parse(JSON.stringify(n,function(n,e){return y(n,e,t)}))}catch(n){return"**non-serializable**"}}function w(n,t){if(!Array.isArray(n))return"";for(var e=[],r=0;r<n.length;r++){var i=n[r];try{e.push(String(i))}catch(n){e.push("[value cannot be serialized]")}}return e.join(t)}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(d||(d={}));var g=a(),O=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.j=["log","info","warn","error","debug","assert"],t.levels&&(this.j=t.levels)}return n.prototype.setupOnce=function(t,r){"console"in g&&this.j.forEach(function(t){t in g.console&&function(n,t,e){if(t in n){var r=n[t],i=e(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{i:{enumerable:!1,value:!0},u:{enumerable:!1,value:r},o:{enumerable:!1,value:i}})}catch(n){}n[t]=i}}(g.console,t,function(i){return function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];var c=r();c.getIntegration(n)&&c.withScope(function(n){n.setLevel(e.fromString(t)),n.setExtra("arguments",j(o,3)),n.addEventProcessor(function(n){return n.logger="console",n});var r=w(o," ");"assert"===t?!1===o[0]&&(r="Assertion failed: "+(w(o.slice(1)," ")||"console.assert"),n.setExtra("arguments",j(o.slice(1),3)),c.captureMessage(r)):c.captureMessage(r)}),i&&Function.prototype.apply.call(i,g.console,o)}})})},n.id="CaptureConsole",n}();i.CaptureConsole=O,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,i)}(window); | ||
//# sourceMappingURL=captureconsole.min.js.map |
@@ -196,7 +196,7 @@ (function (__window) { | ||
/** Pending */ | ||
States["P"] = "P"; | ||
States["PENDING"] = "PENDING"; | ||
/** Resolved / OK */ | ||
States["O"] = "O"; | ||
States["RESOLVED"] = "RESOLVED"; | ||
/** Rejected / Error */ | ||
States["E"] = "E"; | ||
States["REJECTED"] = "REJECTED"; | ||
})(States || (States = {})); | ||
@@ -203,0 +203,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var o=function(n,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o])})(n,t)};var r=function(){return(r=Object.assign||function(n){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};!function(n){function t(t){var o=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=o.prototype.constructor.name,Object.setPrototypeOf(r,o.prototype),r}(function(n,t){function r(){this.constructor=n}o(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);var i={};function e(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function u(n){var t=e();if(!("console"in t))return n();var o=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&o[n].o&&(r[n]=o[n].i,o[n]=o[n].u)});var i=n();return Object.keys(r).forEach(function(n){o[n]=r[n]}),i}var c=e(),f="Sentry Logger ",s=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.error(f+"[Error]: "+n.join(" "))})},n}();c.v=c.v||{};var a;c.v.logger||(c.v.logger=new s);!function(n){n.P="P",n.O="O",n.E="E"}(a||(a={}));var v=function(){function n(t){this.name=n.id,this.l=r({debugger:!1,stringify:!1},t)}return n.prototype.setupOnce=function(t,o){t(function(t,r){var i=o().getIntegration(n);return i&&(i.l.debugger,u(function(){i.l.stringify?(console.log(JSON.stringify(t,null,2)),r&&console.log(JSON.stringify(r,null,2))):(console.log(t),r&&console.log(r))})),t})},n.id="Debug",n}();t.Debug=v,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var o=function(n,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o])})(n,t)};var r=function(){return(r=Object.assign||function(n){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};!function(n){function t(t){var o=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=o.prototype.constructor.name,Object.setPrototypeOf(r,o.prototype),r}(function(n,t){function r(){this.constructor=n}o(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);var i={};function e(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function u(n){var t=e();if(!("console"in t))return n();var o=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&o[n].o&&(r[n]=o[n].i,o[n]=o[n].u)});var i=n();return Object.keys(r).forEach(function(n){o[n]=r[n]}),i}var c=e(),f="Sentry Logger ",s=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.error(f+"[Error]: "+n.join(" "))})},n}();c.v=c.v||{};var a;c.v.logger||(c.v.logger=new s);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(a||(a={}));var v=function(){function n(t){this.name=n.id,this.l=r({debugger:!1,stringify:!1},t)}return n.prototype.setupOnce=function(t,o){t(function(t,r){var i=o().getIntegration(n);return i&&(i.l.debugger,u(function(){i.l.stringify?(console.log(JSON.stringify(t,null,2)),r&&console.log(JSON.stringify(r,null,2))):(console.log(t),r&&console.log(r))})),t})},n.id="Debug",n}();t.Debug=v,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
//# sourceMappingURL=debug.min.js.map |
@@ -37,36 +37,2 @@ (function (__window) { | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(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 __assign.apply(this, arguments); | ||
}; | ||
function __read(o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
} | ||
function __spread() { | ||
for (var ar = [], i = 0; i < arguments.length; i++) | ||
ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
} | ||
/** An error emitted by Sentry SDKs and related utilities. */ | ||
@@ -220,7 +186,7 @@ var SentryError = /** @class */ (function (_super) { | ||
/** Pending */ | ||
States["P"] = "P"; | ||
States["PENDING"] = "PENDING"; | ||
/** Resolved / OK */ | ||
States["O"] = "O"; | ||
States["RESOLVED"] = "RESOLVED"; | ||
/** Rejected / Error */ | ||
States["E"] = "E"; | ||
States["REJECTED"] = "REJECTED"; | ||
})(States || (States = {})); | ||
@@ -255,6 +221,3 @@ | ||
if (getCurrentHub().getIntegration(Ember)) { | ||
getCurrentHub().withScope(function (scope) { | ||
_this._addIntegrationToSdkInfo(scope); | ||
getCurrentHub().captureException(error); | ||
}); | ||
getCurrentHub().captureException(error, { originalException: error }); | ||
} | ||
@@ -273,8 +236,6 @@ if (typeof oldOnError === 'function') { | ||
scope.setExtra('context', 'Unhandled Promise error detected'); | ||
_this._addIntegrationToSdkInfo(scope); | ||
getCurrentHub().captureException(reason); | ||
getCurrentHub().captureException(reason, { originalException: reason }); | ||
} | ||
else { | ||
scope.setExtra('reason', reason); | ||
_this._addIntegrationToSdkInfo(scope); | ||
getCurrentHub().captureMessage('Unhandled Promise error detected'); | ||
@@ -287,15 +248,2 @@ } | ||
/** | ||
* Appends SDK integrations | ||
* @param scope The scope currently used. | ||
*/ | ||
Ember.prototype._addIntegrationToSdkInfo = function (scope) { | ||
scope.addEventProcessor(function (event) { | ||
if (event.sdk) { | ||
var integrations = event.sdk.integrations || []; | ||
event.sdk = __assign({}, event.sdk, { integrations: __spread(integrations, ['ember']) }); | ||
} | ||
return event; | ||
}); | ||
}; | ||
/** | ||
* @inheritDoc | ||
@@ -302,0 +250,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};var o=function(){return(o=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function i(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var o,i,e=r.call(n),f=[];try{for(;(void 0===t||t-- >0)&&!(o=e.next()).done;)f.push(o.value)}catch(n){i={error:n}}finally{try{o&&!o.done&&(r=e.return)&&r.call(e)}finally{if(i)throw i.error}}return f}function e(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(i(arguments[t]));return n}!function(n){function t(t){var r=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=r.prototype.constructor.name,Object.setPrototypeOf(o,r.prototype),o}(function(n,t){function o(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)})(t,n)}(Error);var f={};function c(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function u(n){var t=c();if(!("console"in t))return n();var r=t.console,o={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].o&&(o[n]=r[n].i,r[n]=r[n].u)});var i=n();return Object.keys(o).forEach(function(n){r[n]=o[n]}),i}var s=c(),a="Sentry Logger ",v=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){s.console.log(a+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){s.console.warn(a+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){s.console.error(a+"[Error]: "+n.join(" "))})},n}();s.v=s.v||{};var h;s.v.logger||(s.v.logger=new v);!function(n){n.P="P",n.O="O",n.E="E"}(h||(h={}));var d=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.h=t.Ember||c().Ember}return n.prototype.setupOnce=function(t,r){var o=this;if(this.h){var i=this.h.onerror;this.h.onerror=function(t){if(r().getIntegration(n)&&r().withScope(function(n){o.l(n),r().captureException(t)}),"function"==typeof i)i.call(o.h,t);else if(o.h.testing)throw t},this.h.RSVP.on("error",function(t){r().getIntegration(n)&&r().withScope(function(n){t instanceof Error?(n.setExtra("context","Unhandled Promise error detected"),o.l(n),r().captureException(t)):(n.setExtra("reason",t),o.l(n),r().captureMessage("Unhandled Promise error detected"))})})}else console.error("EmberIntegration is missing an Ember instance")},n.prototype.l=function(n){n.addEventProcessor(function(n){if(n.sdk){var t=n.sdk.integrations||[];n.sdk=o({},n.sdk,{integrations:e(t,["ember"])})}return n})},n.id="Ember",n}();t.Ember=d,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var i=function(n,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)};!function(n){function t(t){var i=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=i.prototype.constructor.name,Object.setPrototypeOf(o,i.prototype),o}(function(n,t){function o(){this.constructor=n}i(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)})(t,n)}(Error);var o={};function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function e(n){var t=r();if(!("console"in t))return n();var i=t.console,o={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&i[n].i&&(o[n]=i[n].o,i[n]=i[n].u)});var e=n();return Object.keys(o).forEach(function(n){i[n]=o[n]}),e}var c=r(),f="Sentry Logger ",u=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&e(function(){c.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&e(function(){c.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&e(function(){c.console.error(f+"[Error]: "+n.join(" "))})},n}();c.h=c.h||{};var s;c.h.logger||(c.h.logger=new u);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(s||(s={}));var a=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.v=t.Ember||r().Ember}return n.prototype.setupOnce=function(t,i){var o=this;if(this.v){var r=this.v.onerror;this.v.onerror=function(t){if(i().getIntegration(n)&&i().captureException(t,{originalException:t}),"function"==typeof r)r.call(o.v,t);else if(o.v.testing)throw t},this.v.RSVP.on("error",function(t){i().getIntegration(n)&&i().withScope(function(n){t instanceof Error?(n.setExtra("context","Unhandled Promise error detected"),i().captureException(t,{originalException:t})):(n.setExtra("reason",t),i().captureMessage("Unhandled Promise error detected"))})})}else console.error("EmberIntegration is missing an Ember instance")},n.id="Ember",n}();t.Ember=a,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
//# sourceMappingURL=ember.min.js.map |
@@ -453,7 +453,7 @@ (function (__window) { | ||
/** Pending */ | ||
States["P"] = "P"; | ||
States["PENDING"] = "PENDING"; | ||
/** Resolved / OK */ | ||
States["O"] = "O"; | ||
States["RESOLVED"] = "RESOLVED"; | ||
/** Rejected / Error */ | ||
States["E"] = "E"; | ||
States["REJECTED"] = "REJECTED"; | ||
})(States || (States = {})); | ||
@@ -460,0 +460,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};var e=function(){return(e=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};!function(n){function t(t){var r=this.constructor,e=n.call(this,t)||this;return e.message=t,e.name=r.prototype.constructor.name,Object.setPrototypeOf(e,r.prototype),e}(function(n,t){function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)})(t,n)}(Error);function i(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}function o(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function u(n){return"[object Object]"===Object.prototype.toString.call(n)}var f={};function c(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function a(n){var t=c();if(!("console"in t))return n();var r=t.console,e={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].i&&(e[n]=r[n].o,r[n]=r[n].u)});var i=n();return Object.keys(e).forEach(function(n){r[n]=e[n]}),i}var s=c(),v="Sentry Logger ",b=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&a(function(){s.console.log(v+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&a(function(){s.console.warn(v+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&a(function(){s.console.error(v+"[Error]: "+n.join(" "))})},n}();s.v=s.v||{};s.v.logger||(s.v.logger=new b);var l,d=function(){function n(){this.l="function"==typeof WeakSet,this.h=this.l?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.l)return!!this.h.has(n)||(this.h.add(n),!1);for(var t=0;t<this.h.length;t++){if(this.h[t]===n)return!0}return this.h.push(n),!1},n.prototype.unmemoize=function(n){if(this.l)this.h.delete(n);else for(var t=0;t<this.h.length;t++)if(this.h[t]===n){this.h.splice(t,1);break}},n}();function h(n,t){return"domain"===t&&"object"==typeof n&&n.j?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":u(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"<unknown-function-name>")+"]":n;var r}function j(n,t,r,e){if(void 0===r&&(r=1/0),void 0===e&&(e=new d),0===r)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=h(n);return o(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var u=h(t,n);if(o(u))return u;var f=i(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}(t):t,c=Array.isArray(t)?[]:{};if(e.memoize(t))return"[Circular ~]";for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(c[a]=j(a,f[a],r-1,e));return e.unmemoize(t),c}!function(n){n.P="P",n.O="O",n.E="E"}(l||(l={}));var y=function(){function n(t){void 0===t&&(t={depth:3}),this.p=t,this.name=n.id}return n.prototype.setupOnce=function(t,r){t(function(t,e){var i=r().getIntegration(n);return i?i.enhanceEventWithErrorData(t,e):t})},n.prototype.enhanceEventWithErrorData=function(n,t){if(!t||!t.originalException||!i(t.originalException))return n;var r=this.m(t.originalException);if(r){var o=e({},n.extra),f=function(n,t){try{return JSON.parse(JSON.stringify(n,function(n,r){return j(n,r,t)}))}catch(n){return"**non-serializable**"}}(r,this.p.depth);return u(f)&&(o=e({},n.extra,f)),e({},n,{extra:o})}return n},n.prototype.m=function(n){var t,r,e,o=null;try{var u=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],f=n.name||n.constructor.name,c=Object.getOwnPropertyNames(n).filter(function(n){return-1===u.indexOf(n)});if(c.length){var a={};try{for(var s=function(n){var t="function"==typeof Symbol&&n[Symbol.iterator],r=0;return t?t.call(n):{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}}}(c),v=s.next();!v.done;v=s.next()){var b=v.value,l=n[b];i(l)&&(l=l.toString()),a[b]=l}}catch(n){t={error:n}}finally{try{v&&!v.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}(e={})[f]=a,o=e}}catch(n){console.error("Unable to extract extra data from the Error object:",n)}return o},n.id="ExtraErrorData",n}();t.ExtraErrorData=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};var e=function(){return(e=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};!function(n){function t(t){var r=this.constructor,e=n.call(this,t)||this;return e.message=t,e.name=r.prototype.constructor.name,Object.setPrototypeOf(e,r.prototype),e}(function(n,t){function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)})(t,n)}(Error);function i(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}function o(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function u(n){return"[object Object]"===Object.prototype.toString.call(n)}var f={};function c(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function a(n){var t=c();if(!("console"in t))return n();var r=t.console,e={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].i&&(e[n]=r[n].o,r[n]=r[n].u)});var i=n();return Object.keys(e).forEach(function(n){r[n]=e[n]}),i}var s=c(),v="Sentry Logger ",b=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&a(function(){s.console.log(v+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&a(function(){s.console.warn(v+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&a(function(){s.console.error(v+"[Error]: "+n.join(" "))})},n}();s.v=s.v||{};s.v.logger||(s.v.logger=new b);var l,d=function(){function n(){this.l="function"==typeof WeakSet,this.h=this.l?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.l)return!!this.h.has(n)||(this.h.add(n),!1);for(var t=0;t<this.h.length;t++){if(this.h[t]===n)return!0}return this.h.push(n),!1},n.prototype.unmemoize=function(n){if(this.l)this.h.delete(n);else for(var t=0;t<this.h.length;t++)if(this.h[t]===n){this.h.splice(t,1);break}},n}();function h(n,t){return"domain"===t&&"object"==typeof n&&n.j?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":u(r=n)&&"nativeEvent"in r&&"preventDefault"in r&&"stopPropagation"in r?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"<unknown-function-name>")+"]":n;var r}function j(n,t,r,e){if(void 0===r&&(r=1/0),void 0===e&&(e=new d),0===r)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=h(n);return o(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var u=h(t,n);if(o(u))return u;var f=i(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}(t):t,c=Array.isArray(t)?[]:{};if(e.memoize(t))return"[Circular ~]";for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(c[a]=j(a,f[a],r-1,e));return e.unmemoize(t),c}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));var y=function(){function n(t){void 0===t&&(t={depth:3}),this.p=t,this.name=n.id}return n.prototype.setupOnce=function(t,r){t(function(t,e){var i=r().getIntegration(n);return i?i.enhanceEventWithErrorData(t,e):t})},n.prototype.enhanceEventWithErrorData=function(n,t){if(!t||!t.originalException||!i(t.originalException))return n;var r=this.m(t.originalException);if(r){var o=e({},n.extra),f=function(n,t){try{return JSON.parse(JSON.stringify(n,function(n,r){return j(n,r,t)}))}catch(n){return"**non-serializable**"}}(r,this.p.depth);return u(f)&&(o=e({},n.extra,f)),e({},n,{extra:o})}return n},n.prototype.m=function(n){var t,r,e,o=null;try{var u=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],f=n.name||n.constructor.name,c=Object.getOwnPropertyNames(n).filter(function(n){return-1===u.indexOf(n)});if(c.length){var a={};try{for(var s=function(n){var t="function"==typeof Symbol&&n[Symbol.iterator],r=0;return t?t.call(n):{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}}}(c),v=s.next();!v.done;v=s.next()){var b=v.value,l=n[b];i(l)&&(l=l.toString()),a[b]=l}}catch(n){t={error:n}}finally{try{v&&!v.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}(e={})[f]=a,o=e}}catch(n){console.error("Unable to extract extra data from the Error object:",n)}return o},n.id="ExtraErrorData",n}();t.ExtraErrorData=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
//# sourceMappingURL=extraerrordata.min.js.map |
@@ -207,7 +207,7 @@ (function (__window) { | ||
/** Pending */ | ||
States["P"] = "P"; | ||
States["PENDING"] = "PENDING"; | ||
/** Resolved / OK */ | ||
States["O"] = "O"; | ||
States["RESOLVED"] = "RESOLVED"; | ||
/** Rejected / Error */ | ||
States["E"] = "E"; | ||
States["REJECTED"] = "REJECTED"; | ||
})(States || (States = {})); | ||
@@ -214,0 +214,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};!function(n){function t(t){var r=this.constructor,i=n.call(this,t)||this;return i.message=t,i.name=r.prototype.constructor.name,Object.setPrototypeOf(i,r.prototype),i}(function(n,t){function i(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)})(t,n)}(Error);var i={};function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function e(n){var t=o();if(!("console"in t))return n();var r=t.console,i={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].i&&(i[n]=r[n].o,r[n]=r[n].u)});var e=n();return Object.keys(i).forEach(function(n){r[n]=i[n]}),e}var f=o(),u="Sentry Logger ",c=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&e(function(){f.console.log(u+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&e(function(){f.console.warn(u+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&e(function(){f.console.error(u+"[Error]: "+n.join(" "))})},n}();f.v=f.v||{};var s,a;f.v.logger||(f.v.logger=new c);!function(n){n.P="P",n.O="O",n.E="E"}(s||(s={})),function(n){n.Crash="crash",n.Deprecation="deprecation",n.Intervention="intervention"}(a||(a={}));var v=function(){function n(t){void 0===t&&(t={types:[a.Crash,a.Deprecation,a.Intervention]}),this.l=t,this.name=n.id}return n.prototype.setupOnce=function(n,t){"ReportingObserver"in o()&&(this.h=t,new(o().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this.l.types}).observe())},n.prototype.handler=function(t){var r,i,o=this.h&&this.h();if(o&&o.getIntegration(n)){var e=function(n){o.withScope(function(t){t.setExtra("url",n.url);var r="ReportingObserver ["+n.type+"]",i="No details available";if(n.body){var e,f={};for(var u in n.body)f[u]=n.body[u];if(t.setExtra("body",f),n.type===a.Crash)i=[(e=n.body).crashId||"",e.reason||""].join(" ").trim()||i;else i=(e=n.body).message||i}o.captureMessage(r+": "+i)})};try{for(var f=function(n){var t="function"==typeof Symbol&&n[Symbol.iterator],r=0;return t?t.call(n):{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}}}(t),u=f.next();!u.done;u=f.next()){e(u.value)}}catch(n){r={error:n}}finally{try{u&&!u.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}},n.id="ReportingObserver",n}();t.ReportingObserver=v,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};!function(n){function t(t){var r=this.constructor,i=n.call(this,t)||this;return i.message=t,i.name=r.prototype.constructor.name,Object.setPrototypeOf(i,r.prototype),i}(function(n,t){function i(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)})(t,n)}(Error);var i={};function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function e(n){var t=o();if(!("console"in t))return n();var r=t.console,i={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].i&&(i[n]=r[n].o,r[n]=r[n].u)});var e=n();return Object.keys(i).forEach(function(n){r[n]=i[n]}),e}var f=o(),u="Sentry Logger ",c=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&e(function(){f.console.log(u+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&e(function(){f.console.warn(u+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&e(function(){f.console.error(u+"[Error]: "+n.join(" "))})},n}();f.v=f.v||{};var s,a;f.v.logger||(f.v.logger=new c);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(s||(s={})),function(n){n.Crash="crash",n.Deprecation="deprecation",n.Intervention="intervention"}(a||(a={}));var v=function(){function n(t){void 0===t&&(t={types:[a.Crash,a.Deprecation,a.Intervention]}),this.l=t,this.name=n.id}return n.prototype.setupOnce=function(n,t){"ReportingObserver"in o()&&(this.h=t,new(o().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this.l.types}).observe())},n.prototype.handler=function(t){var r,i,o=this.h&&this.h();if(o&&o.getIntegration(n)){var e=function(n){o.withScope(function(t){t.setExtra("url",n.url);var r="ReportingObserver ["+n.type+"]",i="No details available";if(n.body){var e,f={};for(var u in n.body)f[u]=n.body[u];if(t.setExtra("body",f),n.type===a.Crash)i=[(e=n.body).crashId||"",e.reason||""].join(" ").trim()||i;else i=(e=n.body).message||i}o.captureMessage(r+": "+i)})};try{for(var f=function(n){var t="function"==typeof Symbol&&n[Symbol.iterator],r=0;return t?t.call(n):{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}}}(t),u=f.next();!u.done;u=f.next()){e(u.value)}}catch(n){r={error:n}}finally{try{u&&!u.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}},n.id="ReportingObserver",n}();t.ReportingObserver=v,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
//# sourceMappingURL=reportingobserver.min.js.map |
@@ -296,7 +296,7 @@ (function (__window) { | ||
/** Pending */ | ||
States["P"] = "P"; | ||
States["PENDING"] = "PENDING"; | ||
/** Resolved / OK */ | ||
States["O"] = "O"; | ||
States["RESOLVED"] = "RESOLVED"; | ||
/** Rejected / Error */ | ||
States["E"] = "E"; | ||
States["REJECTED"] = "REJECTED"; | ||
})(States || (States = {})); | ||
@@ -303,0 +303,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){"use strict";var r={};Object.defineProperty(r,"t",{value:!0});var t=function(n,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)r.hasOwnProperty(t)&&(n[t]=r[t])})(n,r)};!function(n){function r(r){var t=this.constructor,i=n.call(this,r)||this;return i.message=r,i.name=t.prototype.constructor.name,Object.setPrototypeOf(i,t.prototype),i}(function(n,r){function i(){this.constructor=n}t(n,r),n.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)})(r,n)}(Error);var i={};function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function f(n){var r=o();if(!("console"in r))return n();var t=r.console,i={};["debug","info","warn","error","log","assert"].forEach(function(n){n in r.console&&t[n].i&&(i[n]=t[n].o,t[n]=t[n].u)});var f=n();return Object.keys(i).forEach(function(n){t[n]=i[n]}),f}var u=o(),e="Sentry Logger ",c=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.s&&f(function(){u.console.log(e+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.s&&f(function(){u.console.warn(e+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.s&&f(function(){u.console.error(e+"[Error]: "+n.join(" "))})},n}();u.v=u.v||{};u.v.logger||(u.v.logger=new c);var a,s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function v(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var t="",i=!1,o=n.length-1;o>=-1&&!i;o--){var f=o>=0?n[o]:"/";f&&(t=f+"/"+t,i="/"===f.charAt(0))}return(i?"/":"")+(t=function(n,r){for(var t=0,i=n.length-1;i>=0;i--){var o=n[i];"."===o?n.splice(i,1):".."===o?(n.splice(i,1),t++):t&&(n.splice(i,1),t--)}if(r)for(;t--;t)n.unshift("..");return n}(t.split("/").filter(function(n){return!!n}),!i).join("/"))||"."}function h(n){for(var r=0;r<n.length&&""===n[r];r++);for(var t=n.length-1;t>=0&&""===n[t];t--);return r>t?[]:n.slice(r,t-r+1)}function d(n,r){var t,i,o=(t=n,i=s.exec(t),i?i.slice(1):[])[2];return r&&o.substr(-1*r.length)===r&&(o=o.substr(0,o.length-r.length)),o}!function(n){n.P="P",n.O="O",n.E="E"}(a||(a={}));var b=function(){function n(r){var t=this;void 0===r&&(r={}),this.name=n.id,this.h=function(n){if(n.filename&&n.filename.startsWith("/")){var r=t.l?function(n,r){n=v(n).substr(1),r=v(r).substr(1);for(var t=h(n.split("/")),i=h(r.split("/")),o=Math.min(t.length,i.length),f=o,u=0;u<o;u++)if(t[u]!==i[u]){f=u;break}var e=[];for(u=f;u<t.length;u++)e.push("..");return(e=e.concat(i.slice(f))).join("/")}(t.l,n.filename):d(n.filename);n.filename="app:///"+r}return n},r.root&&(this.l=r.root),r.iteratee&&(this.h=r.iteratee)}return n.prototype.setupOnce=function(r,t){r(function(r){var i=t().getIntegration(n);return i?i.process(r):r})},n.prototype.process=function(n){var r=this.p(n);if(r)for(var t in r)r[t]=this.h(r[t]);return n},n.prototype.p=function(n){var r=n.exception;if(r)try{return r.values[0].stacktrace.frames}catch(n){return}else if(n.stacktrace)return n.stacktrace.frames},n.id="RewriteFrames",n}();r.RewriteFrames=b,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,r)}(window); | ||
!function(n){"use strict";var r={};Object.defineProperty(r,"t",{value:!0});var t=function(n,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)r.hasOwnProperty(t)&&(n[t]=r[t])})(n,r)};!function(n){function r(r){var t=this.constructor,i=n.call(this,r)||this;return i.message=r,i.name=t.prototype.constructor.name,Object.setPrototypeOf(i,t.prototype),i}(function(n,r){function i(){this.constructor=n}t(n,r),n.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)})(r,n)}(Error);var i={};function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function f(n){var r=o();if(!("console"in r))return n();var t=r.console,i={};["debug","info","warn","error","log","assert"].forEach(function(n){n in r.console&&t[n].i&&(i[n]=t[n].o,t[n]=t[n].u)});var f=n();return Object.keys(i).forEach(function(n){t[n]=i[n]}),f}var u=o(),e="Sentry Logger ",c=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.s&&f(function(){u.console.log(e+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.s&&f(function(){u.console.warn(e+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.s&&f(function(){u.console.error(e+"[Error]: "+n.join(" "))})},n}();u.v=u.v||{};u.v.logger||(u.v.logger=new c);var a,s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function v(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var t="",i=!1,o=n.length-1;o>=-1&&!i;o--){var f=o>=0?n[o]:"/";f&&(t=f+"/"+t,i="/"===f.charAt(0))}return(i?"/":"")+(t=function(n,r){for(var t=0,i=n.length-1;i>=0;i--){var o=n[i];"."===o?n.splice(i,1):".."===o?(n.splice(i,1),t++):t&&(n.splice(i,1),t--)}if(r)for(;t--;t)n.unshift("..");return n}(t.split("/").filter(function(n){return!!n}),!i).join("/"))||"."}function h(n){for(var r=0;r<n.length&&""===n[r];r++);for(var t=n.length-1;t>=0&&""===n[t];t--);return r>t?[]:n.slice(r,t-r+1)}function d(n,r){var t,i,o=(t=n,i=s.exec(t),i?i.slice(1):[])[2];return r&&o.substr(-1*r.length)===r&&(o=o.substr(0,o.length-r.length)),o}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(a||(a={}));var b=function(){function n(r){var t=this;void 0===r&&(r={}),this.name=n.id,this.h=function(n){if(n.filename&&n.filename.startsWith("/")){var r=t.l?function(n,r){n=v(n).substr(1),r=v(r).substr(1);for(var t=h(n.split("/")),i=h(r.split("/")),o=Math.min(t.length,i.length),f=o,u=0;u<o;u++)if(t[u]!==i[u]){f=u;break}var e=[];for(u=f;u<t.length;u++)e.push("..");return(e=e.concat(i.slice(f))).join("/")}(t.l,n.filename):d(n.filename);n.filename="app:///"+r}return n},r.root&&(this.l=r.root),r.iteratee&&(this.h=r.iteratee)}return n.prototype.setupOnce=function(r,t){r(function(r){var i=t().getIntegration(n);return i?i.process(r):r})},n.prototype.process=function(n){var r=this.p(n);if(r)for(var t in r)r[t]=this.h(r[t]);return n},n.prototype.p=function(n){var r=n.exception;if(r)try{return r.values[0].stacktrace.frames}catch(n){return}else if(n.stacktrace)return n.stacktrace.frames},n.id="RewriteFrames",n}();r.RewriteFrames=b,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,r)}(window); | ||
//# sourceMappingURL=rewriteframes.min.js.map |
@@ -301,7 +301,7 @@ (function (__window) { | ||
/** Pending */ | ||
States["P"] = "P"; | ||
States["PENDING"] = "PENDING"; | ||
/** Resolved / OK */ | ||
States["O"] = "O"; | ||
States["RESOLVED"] = "RESOLVED"; | ||
/** Rejected / Error */ | ||
States["E"] = "E"; | ||
States["REJECTED"] = "REJECTED"; | ||
})(States || (States = {})); | ||
@@ -324,4 +324,11 @@ | ||
this.name = Tracing.id; | ||
if (!_options.tracingOrigins || !Array.isArray(_options.tracingOrigins) || _options.tracingOrigins.length === 0) { | ||
throw new SentryError('You need to define `tracingOrigins` in the options. Set an array of urls to trace.'); | ||
if (!Array.isArray(_options.tracingOrigins) || _options.tracingOrigins.length === 0) { | ||
consoleSandbox(function () { | ||
var defaultTracingOrigins = ['localhost', /^\//]; | ||
// @ts-ignore | ||
console.warn('Sentry: You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.'); | ||
// @ts-ignore | ||
console.warn("Sentry: We added a reasonable default for you: " + defaultTracingOrigins); | ||
_options.tracingOrigins = defaultTracingOrigins; | ||
}); | ||
} | ||
@@ -343,2 +350,7 @@ } | ||
}); | ||
getGlobalObject().document.onreadystatechange = function () { | ||
if (document.readyState === 'complete') { | ||
Tracing.startTrace(getCurrentHub(), getGlobalObject().location.href); | ||
} | ||
}; | ||
} | ||
@@ -391,12 +403,7 @@ }; | ||
var headers_1 = getCurrentHub().traceHeaders(); | ||
var whiteListed = false; | ||
// tslint:disable-next-line: prefer-for-of | ||
for (var index = 0; index < self._options.tracingOrigins.length; index++) { | ||
var whiteListUrl = self._options.tracingOrigins[index]; | ||
whiteListed = isMatchingPattern(self._xhrUrl, whiteListUrl); | ||
if (whiteListed) { | ||
break; | ||
} | ||
} | ||
if (whiteListed && this.setRequestHeader) { | ||
var isWhitelisted = self._options.tracingOrigins.some(function (origin) { | ||
return isMatchingPattern(self._xhrUrl, origin); | ||
}); | ||
if (isWhitelisted && this.setRequestHeader) { | ||
Object.keys(headers_1).forEach(function (key) { | ||
@@ -403,0 +410,0 @@ _this.setRequestHeader(key, headers_1[key]); |
@@ -1,2 +0,2 @@ | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};var e=function(){return(e=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},i=function(n){function t(t){var r=this.constructor,e=n.call(this,t)||this;return e.message=t,e.name=r.prototype.constructor.name,Object.setPrototypeOf(e,r.prototype),e}return function(n,t){function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}(t,n),t}(Error);var o={};function u(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function f(n){var t=u();if(!("console"in t))return n();var r=t.console,e={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].i&&(e[n]=r[n].o,r[n]=r[n].u)});var i=n();return Object.keys(e).forEach(function(n){r[n]=e[n]}),i}var c=u(),a="Sentry Logger ",s=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&f(function(){c.console.log(a+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&f(function(){c.console.warn(a+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&f(function(){c.console.error(a+"[Error]: "+n.join(" "))})},n}();c.v=c.v||{};var v;c.v.logger||(c.v.logger=new s);function h(n,t,r){if(t in n){var e=n[t],i=r(e);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{i:{enumerable:!1,value:!0},u:{enumerable:!1,value:e},o:{enumerable:!1,value:i}})}catch(n){}n[t]=i}}function b(n,t){return r=t,"[object RegExp]"===Object.prototype.toString.call(r)?t.test(n):"string"==typeof t&&n.includes(t);var r}function l(){return!!function(){if(!("fetch"in u()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}()&&-1!==u().fetch.toString().indexOf("native")}!function(n){n.P="P",n.O="O",n.E="E"}(v||(v={}));var _=function(){function n(t){if(this.h=t,this.name=n.id,!t.tracingOrigins||!Array.isArray(t.tracingOrigins)||0===t.tracingOrigins.length)throw new i("You need to define `tracingOrigins` in the options. Set an array of urls to trace.")}return n.prototype.setupOnce=function(t,r){!1!==this.h.traceXHR&&this.l(r),!1!==this.h.traceFetch&&this._(r),!1!==this.h.autoStartOnDomReady&&u().addEventListener("DOMContentLoaded",function(){n.startTrace(r(),u().location.href)})},n.startTrace=function(n,t){n.configureScope(function(n){n.startSpan(),n.setTransaction(t)})},n.prototype.l=function(t){if("XMLHttpRequest"in global){var r=XMLHttpRequest.prototype;h(r,"open",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=t().getIntegration(n);return o&&(o.p=e[1]),r.apply(this,e)}}),h(r,"send",function(r){return function(){for(var e=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u=t().getIntegration(n);if(u&&u.p){for(var f=t().traceHeaders(),c=!1,a=0;a<u.h.tracingOrigins.length;a++){var s=u.h.tracingOrigins[a];if(c=b(u.p,s))break}c&&this.setRequestHeader&&Object.keys(f).forEach(function(n){e.setRequestHeader(n,f[n])})}return r.apply(this,i)}})}},n.prototype._=function(t){l()&&h(u(),"fetch",function(r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u=t().getIntegration(n);if(u){var f=i[0],c=i[1],a=!1;u.h.tracingOrigins.forEach(function(n){a||(a=b(f,n))}),c&&a&&(c.headers?c.headers=e({},c.headers,t().traceHeaders()):c.headers=t().traceHeaders())}return r.apply(global,i)}})},n.id="Tracing",n}();t.Tracing=_,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};var e=function(){return(e=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};!function(n){function t(t){var r=this.constructor,e=n.call(this,t)||this;return e.message=t,e.name=r.prototype.constructor.name,Object.setPrototypeOf(e,r.prototype),e}(function(n,t){function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)})(t,n)}(Error);var o={};function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function u(n){var t=i();if(!("console"in t))return n();var r=t.console,e={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].o&&(e[n]=r[n].i,r[n]=r[n].u)});var o=n();return Object.keys(e).forEach(function(n){r[n]=e[n]}),o}var c=i(),f="Sentry Logger ",a=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&u(function(){c.console.error(f+"[Error]: "+n.join(" "))})},n}();c.v=c.v||{};var s;c.v.logger||(c.v.logger=new a);function v(n,t,r){if(t in n){var e=n[t],o=r(e);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{o:{enumerable:!1,value:!0},u:{enumerable:!1,value:e},i:{enumerable:!1,value:o}})}catch(n){}n[t]=o}}function l(n,t){return r=t,"[object RegExp]"===Object.prototype.toString.call(r)?t.test(n):"string"==typeof t&&n.includes(t);var r}function h(){return!!function(){if(!("fetch"in i()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}()&&-1!==i().fetch.toString().indexOf("native")}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(s||(s={}));var d=function(){function n(t){this.l=t,this.name=n.id,Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length||u(function(){var n=["localhost",/^\//];console.warn("Sentry: You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),console.warn("Sentry: We added a reasonable default for you: "+n),t.tracingOrigins=n})}return n.prototype.setupOnce=function(t,r){!1!==this.l.traceXHR&&this.h(r),!1!==this.l.traceFetch&&this._(r),!1!==this.l.autoStartOnDomReady&&(i().addEventListener("DOMContentLoaded",function(){n.startTrace(r(),i().location.href)}),i().document.onreadystatechange=function(){"complete"===document.readyState&&n.startTrace(r(),i().location.href)})},n.startTrace=function(n,t){n.configureScope(function(n){n.startSpan(),n.setTransaction(t)})},n.prototype.h=function(t){if("XMLHttpRequest"in global){var r=XMLHttpRequest.prototype;v(r,"open",function(r){return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var i=t().getIntegration(n);return i&&(i.p=e[1]),r.apply(this,e)}}),v(r,"send",function(r){return function(){for(var e=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var u=t().getIntegration(n);if(u&&u.p){var c=t().traceHeaders();u.l.tracingOrigins.some(function(n){return l(u.p,n)})&&this.setRequestHeader&&Object.keys(c).forEach(function(n){e.setRequestHeader(n,c[n])})}return r.apply(this,o)}})}},n.prototype._=function(t){h()&&v(i(),"fetch",function(r){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var u=t().getIntegration(n);if(u){var c=o[0],f=o[1],a=!1;u.l.tracingOrigins.forEach(function(n){a||(a=l(c,n))}),f&&a&&(f.headers?f.headers=e({},f.headers,t().traceHeaders()):f.headers=t().traceHeaders())}return r.apply(global,o)}})},n.id="Tracing",n}();t.Tracing=d,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
//# sourceMappingURL=tracing.min.js.map |
@@ -37,36 +37,2 @@ (function (__window) { | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(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 __assign.apply(this, arguments); | ||
}; | ||
function __read(o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
} | ||
function __spread() { | ||
for (var ar = [], i = 0; i < arguments.length; i++) | ||
ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
} | ||
/** An error emitted by Sentry SDKs and related utilities. */ | ||
@@ -230,7 +196,7 @@ var SentryError = /** @class */ (function (_super) { | ||
/** Pending */ | ||
States["P"] = "P"; | ||
States["PENDING"] = "PENDING"; | ||
/** Resolved / OK */ | ||
States["O"] = "O"; | ||
States["RESOLVED"] = "RESOLVED"; | ||
/** Rejected / Error */ | ||
States["E"] = "E"; | ||
States["REJECTED"] = "REJECTED"; | ||
})(States || (States = {})); | ||
@@ -297,9 +263,2 @@ | ||
}); | ||
scope.addEventProcessor(function (event) { | ||
if (event.sdk) { | ||
var integrations = event.sdk.integrations || []; | ||
event.sdk = __assign({}, event.sdk, { integrations: __spread(integrations, ['vue']) }); | ||
} | ||
return event; | ||
}); | ||
getCurrentHub().captureException(error); | ||
@@ -306,0 +265,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};var o=function(){return(o=Object.assign||function(n){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function i(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var o,i,e=r.call(n),f=[];try{for(;(void 0===t||t-- >0)&&!(o=e.next()).done;)f.push(o.value)}catch(n){i={error:n}}finally{try{o&&!o.done&&(r=e.return)&&r.call(e)}finally{if(i)throw i.error}}return f}function e(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(i(arguments[t]));return n}!function(n){function t(t){var r=this.constructor,o=n.call(this,t)||this;return o.message=t,o.name=r.prototype.constructor.name,Object.setPrototypeOf(o,r.prototype),o}(function(n,t){function o(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)})(t,n)}(Error);var f={};function u(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function c(n){var t=u();if(!("console"in t))return n();var r=t.console,o={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].o&&(o[n]=r[n].i,r[n]=r[n].u)});var i=n();return Object.keys(o).forEach(function(n){r[n]=o[n]}),i}var s=u(),a="Sentry Logger ",v=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&c(function(){s.console.log(a+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&c(function(){s.console.warn(a+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&c(function(){s.console.error(a+"[Error]: "+n.join(" "))})},n}();s.v=s.v||{};var h;s.v.logger||(s.v.logger=new v);!function(n){n.P="P",n.O="O",n.E="E"}(h||(h={}));var b=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.h=!0,this.l=t.Vue||u().Vue,!1===t.attachProps&&(this.h=!1)}return n.prototype.j=function(n){if(n.$root===n)return"root instance";var t=n.p?n.$options.name||n.$options.g:n.name;return(t?"component <"+t+">":"anonymous component")+(n.p&&n.$options.m?" at "+n.$options.m:"")},n.prototype.setupOnce=function(t,r){var i=this;if(this.l&&this.l.config){var f=this.l.config.errorHandler;this.l.config.errorHandler=function(t,u,c){var s,a={};s=u,"[object Object]"===Object.prototype.toString.call(s)&&(a.componentName=i.j(u),i.h&&(a.propsData=u.$options.propsData)),void 0!==c&&(a.lifecycleHook=c),r().getIntegration(n)&&r().withScope(function(n){Object.keys(a).forEach(function(t){n.setExtra(t,a[t])}),n.addEventProcessor(function(n){if(n.sdk){var t=n.sdk.integrations||[];n.sdk=o({},n.sdk,{integrations:e(t,["vue"])})}return n}),r().captureException(t)}),"function"==typeof f&&f.call(i.l,t,u,c)}}else console.error("VueIntegration is missing a Vue instance")},n.id="Vue",n}();t.Vue=b,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var o=function(n,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o])})(n,t)};!function(n){function t(t){var o=this.constructor,i=n.call(this,t)||this;return i.message=t,i.name=o.prototype.constructor.name,Object.setPrototypeOf(i,o.prototype),i}(function(n,t){function i(){this.constructor=n}o(n,t),n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)})(t,n)}(Error);var i={};function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function e(n){var t=r();if(!("console"in t))return n();var o=t.console,i={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&o[n].o&&(i[n]=o[n].i,o[n]=o[n].u)});var e=n();return Object.keys(i).forEach(function(n){o[n]=i[n]}),e}var c=r(),u="Sentry Logger ",f=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&e(function(){c.console.log(u+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&e(function(){c.console.warn(u+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&e(function(){c.console.error(u+"[Error]: "+n.join(" "))})},n}();c.v=c.v||{};var s;c.v.logger||(c.v.logger=new f);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(s||(s={}));var a=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.h=!0,this.j=t.Vue||r().Vue,!1===t.attachProps&&(this.h=!1)}return n.prototype.l=function(n){if(n.$root===n)return"root instance";var t=n.O?n.$options.name||n.$options.p:n.name;return(t?"component <"+t+">":"anonymous component")+(n.O&&n.$options.g?" at "+n.$options.g:"")},n.prototype.setupOnce=function(t,o){var i=this;if(this.j&&this.j.config){var r=this.j.config.errorHandler;this.j.config.errorHandler=function(t,e,c){var u,f={};u=e,"[object Object]"===Object.prototype.toString.call(u)&&(f.componentName=i.l(e),i.h&&(f.propsData=e.$options.propsData)),void 0!==c&&(f.lifecycleHook=c),o().getIntegration(n)&&o().withScope(function(n){Object.keys(f).forEach(function(t){n.setExtra(t,f[t])}),o().captureException(t)}),"function"==typeof r&&r.call(i.j,t,e,c)}}else console.error("VueIntegration is missing a Vue instance")},n.id="Vue",n}();t.Vue=a,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window); | ||
//# sourceMappingURL=vue.min.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var types_1 = require("@sentry/types"); | ||
@@ -49,5 +48,2 @@ var utils_1 = require("@sentry/utils"); | ||
event.logger = 'console'; | ||
if (event.sdk) { | ||
event.sdk = tslib_1.__assign({}, event.sdk, { integrations: tslib_1.__spread((event.sdk.integrations || []), ['console']) }); | ||
} | ||
return event; | ||
@@ -54,0 +50,0 @@ }); |
@@ -26,7 +26,2 @@ import { EventProcessor, Hub, Integration } from '@sentry/types'; | ||
setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void; | ||
/** | ||
* Appends SDK integrations | ||
* @param scope The scope currently used. | ||
*/ | ||
private _addIntegrationToSdkInfo; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var utils_1 = require("@sentry/utils"); | ||
@@ -32,6 +31,3 @@ /** JSDoc */ | ||
if (getCurrentHub().getIntegration(Ember)) { | ||
getCurrentHub().withScope(function (scope) { | ||
_this._addIntegrationToSdkInfo(scope); | ||
getCurrentHub().captureException(error); | ||
}); | ||
getCurrentHub().captureException(error, { originalException: error }); | ||
} | ||
@@ -50,8 +46,6 @@ if (typeof oldOnError === 'function') { | ||
scope.setExtra('context', 'Unhandled Promise error detected'); | ||
_this._addIntegrationToSdkInfo(scope); | ||
getCurrentHub().captureException(reason); | ||
getCurrentHub().captureException(reason, { originalException: reason }); | ||
} | ||
else { | ||
scope.setExtra('reason', reason); | ||
_this._addIntegrationToSdkInfo(scope); | ||
getCurrentHub().captureMessage('Unhandled Promise error detected'); | ||
@@ -64,15 +58,2 @@ } | ||
/** | ||
* Appends SDK integrations | ||
* @param scope The scope currently used. | ||
*/ | ||
Ember.prototype._addIntegrationToSdkInfo = function (scope) { | ||
scope.addEventProcessor(function (event) { | ||
if (event.sdk) { | ||
var integrations = event.sdk.integrations || []; | ||
event.sdk = tslib_1.__assign({}, event.sdk, { integrations: tslib_1.__spread(integrations, ['ember']) }); | ||
} | ||
return event; | ||
}); | ||
}; | ||
/** | ||
* @inheritDoc | ||
@@ -79,0 +60,0 @@ */ |
@@ -20,4 +20,11 @@ "use strict"; | ||
this.name = Tracing.id; | ||
if (!_options.tracingOrigins || !Array.isArray(_options.tracingOrigins) || _options.tracingOrigins.length === 0) { | ||
throw new utils_1.SentryError('You need to define `tracingOrigins` in the options. Set an array of urls to trace.'); | ||
if (!Array.isArray(_options.tracingOrigins) || _options.tracingOrigins.length === 0) { | ||
utils_1.consoleSandbox(function () { | ||
var defaultTracingOrigins = ['localhost', /^\//]; | ||
// @ts-ignore | ||
console.warn('Sentry: You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.'); | ||
// @ts-ignore | ||
console.warn("Sentry: We added a reasonable default for you: " + defaultTracingOrigins); | ||
_options.tracingOrigins = defaultTracingOrigins; | ||
}); | ||
} | ||
@@ -39,2 +46,7 @@ } | ||
}); | ||
utils_1.getGlobalObject().document.onreadystatechange = function () { | ||
if (document.readyState === 'complete') { | ||
Tracing.startTrace(getCurrentHub(), utils_1.getGlobalObject().location.href); | ||
} | ||
}; | ||
} | ||
@@ -87,12 +99,7 @@ }; | ||
var headers_1 = getCurrentHub().traceHeaders(); | ||
var whiteListed = false; | ||
// tslint:disable-next-line: prefer-for-of | ||
for (var index = 0; index < self._options.tracingOrigins.length; index++) { | ||
var whiteListUrl = self._options.tracingOrigins[index]; | ||
whiteListed = utils_1.isMatchingPattern(self._xhrUrl, whiteListUrl); | ||
if (whiteListed) { | ||
break; | ||
} | ||
} | ||
if (whiteListed && this.setRequestHeader) { | ||
var isWhitelisted = self._options.tracingOrigins.some(function (origin) { | ||
return utils_1.isMatchingPattern(self._xhrUrl, origin); | ||
}); | ||
if (isWhitelisted && this.setRequestHeader) { | ||
Object.keys(headers_1).forEach(function (key) { | ||
@@ -99,0 +106,0 @@ _this.setRequestHeader(key, headers_1[key]); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var utils_1 = require("@sentry/utils"); | ||
@@ -64,9 +63,2 @@ /** JSDoc */ | ||
}); | ||
scope.addEventProcessor(function (event) { | ||
if (event.sdk) { | ||
var integrations = event.sdk.integrations || []; | ||
event.sdk = tslib_1.__assign({}, event.sdk, { integrations: tslib_1.__spread(integrations, ['vue']) }); | ||
} | ||
return event; | ||
}); | ||
getCurrentHub().captureException(error); | ||
@@ -73,0 +65,0 @@ }); |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { Severity } from '@sentry/types'; | ||
@@ -47,5 +46,2 @@ import { fill, getGlobalObject, normalize, safeJoin } from '@sentry/utils'; | ||
event.logger = 'console'; | ||
if (event.sdk) { | ||
event.sdk = tslib_1.__assign({}, event.sdk, { integrations: tslib_1.__spread((event.sdk.integrations || []), ['console']) }); | ||
} | ||
return event; | ||
@@ -52,0 +48,0 @@ }); |
@@ -26,7 +26,2 @@ import { EventProcessor, Hub, Integration } from '@sentry/types'; | ||
setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void; | ||
/** | ||
* Appends SDK integrations | ||
* @param scope The scope currently used. | ||
*/ | ||
private _addIntegrationToSdkInfo; | ||
} |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { getGlobalObject } from '@sentry/utils'; | ||
@@ -30,6 +29,3 @@ /** JSDoc */ | ||
if (getCurrentHub().getIntegration(Ember)) { | ||
getCurrentHub().withScope(function (scope) { | ||
_this._addIntegrationToSdkInfo(scope); | ||
getCurrentHub().captureException(error); | ||
}); | ||
getCurrentHub().captureException(error, { originalException: error }); | ||
} | ||
@@ -48,8 +44,6 @@ if (typeof oldOnError === 'function') { | ||
scope.setExtra('context', 'Unhandled Promise error detected'); | ||
_this._addIntegrationToSdkInfo(scope); | ||
getCurrentHub().captureException(reason); | ||
getCurrentHub().captureException(reason, { originalException: reason }); | ||
} | ||
else { | ||
scope.setExtra('reason', reason); | ||
_this._addIntegrationToSdkInfo(scope); | ||
getCurrentHub().captureMessage('Unhandled Promise error detected'); | ||
@@ -62,15 +56,2 @@ } | ||
/** | ||
* Appends SDK integrations | ||
* @param scope The scope currently used. | ||
*/ | ||
Ember.prototype._addIntegrationToSdkInfo = function (scope) { | ||
scope.addEventProcessor(function (event) { | ||
if (event.sdk) { | ||
var integrations = event.sdk.integrations || []; | ||
event.sdk = tslib_1.__assign({}, event.sdk, { integrations: tslib_1.__spread(integrations, ['ember']) }); | ||
} | ||
return event; | ||
}); | ||
}; | ||
/** | ||
* @inheritDoc | ||
@@ -77,0 +58,0 @@ */ |
import * as tslib_1 from "tslib"; | ||
import { fill, getGlobalObject, isMatchingPattern, SentryError, supportsNativeFetch } from '@sentry/utils'; | ||
import { consoleSandbox, fill, getGlobalObject, isMatchingPattern, supportsNativeFetch } from '@sentry/utils'; | ||
/** | ||
@@ -18,4 +18,11 @@ * Tracing Integration | ||
this.name = Tracing.id; | ||
if (!_options.tracingOrigins || !Array.isArray(_options.tracingOrigins) || _options.tracingOrigins.length === 0) { | ||
throw new SentryError('You need to define `tracingOrigins` in the options. Set an array of urls to trace.'); | ||
if (!Array.isArray(_options.tracingOrigins) || _options.tracingOrigins.length === 0) { | ||
consoleSandbox(function () { | ||
var defaultTracingOrigins = ['localhost', /^\//]; | ||
// @ts-ignore | ||
console.warn('Sentry: You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.'); | ||
// @ts-ignore | ||
console.warn("Sentry: We added a reasonable default for you: " + defaultTracingOrigins); | ||
_options.tracingOrigins = defaultTracingOrigins; | ||
}); | ||
} | ||
@@ -37,2 +44,7 @@ } | ||
}); | ||
getGlobalObject().document.onreadystatechange = function () { | ||
if (document.readyState === 'complete') { | ||
Tracing.startTrace(getCurrentHub(), getGlobalObject().location.href); | ||
} | ||
}; | ||
} | ||
@@ -85,12 +97,7 @@ }; | ||
var headers_1 = getCurrentHub().traceHeaders(); | ||
var whiteListed = false; | ||
// tslint:disable-next-line: prefer-for-of | ||
for (var index = 0; index < self._options.tracingOrigins.length; index++) { | ||
var whiteListUrl = self._options.tracingOrigins[index]; | ||
whiteListed = isMatchingPattern(self._xhrUrl, whiteListUrl); | ||
if (whiteListed) { | ||
break; | ||
} | ||
} | ||
if (whiteListed && this.setRequestHeader) { | ||
var isWhitelisted = self._options.tracingOrigins.some(function (origin) { | ||
return isMatchingPattern(self._xhrUrl, origin); | ||
}); | ||
if (isWhitelisted && this.setRequestHeader) { | ||
Object.keys(headers_1).forEach(function (key) { | ||
@@ -97,0 +104,0 @@ _this.setRequestHeader(key, headers_1[key]); |
@@ -1,2 +0,1 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { getGlobalObject, isPlainObject } from '@sentry/utils'; | ||
@@ -62,9 +61,2 @@ /** JSDoc */ | ||
}); | ||
scope.addEventProcessor(function (event) { | ||
if (event.sdk) { | ||
var integrations = event.sdk.integrations || []; | ||
event.sdk = tslib_1.__assign({}, event.sdk, { integrations: tslib_1.__spread(integrations, ['vue']) }); | ||
} | ||
return event; | ||
}); | ||
getCurrentHub().captureException(error); | ||
@@ -71,0 +63,0 @@ }); |
{ | ||
"name": "@sentry/integrations", | ||
"version": "5.2.0-beta.0", | ||
"version": "5.2.0", | ||
"description": "Pluggable integrations that can be used to enchance JS SDKs", | ||
@@ -19,4 +19,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/types": "5.2.0-beta.0", | ||
"@sentry/utils": "5.2.0-beta.0", | ||
"@sentry/types": "5.2.0", | ||
"@sentry/utils": "5.2.0", | ||
"tslib": "^1.9.3" | ||
@@ -23,0 +23,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
967377
6592
+ Added@sentry/types@5.2.0(transitive)
+ Added@sentry/utils@5.2.0(transitive)
- Removed@sentry/types@5.2.0-beta.0(transitive)
- Removed@sentry/utils@5.2.0-beta.0(transitive)
Updated@sentry/types@5.2.0
Updated@sentry/utils@5.2.0