Socket
Socket
Sign inDemoInstall

@sentry/integrations

Package Overview
Dependencies
Maintainers
12
Versions
385
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/integrations - npm Package Compare versions

Comparing version 5.8.0-beta.1 to 5.8.0

9

build/angular.js

@@ -88,5 +88,10 @@ (function (__window) {

/// <reference lib="dom" />
/**
* Checks whether given value's type is one of a few Error or Error-like
* {@link isError}.
*
* @param wat A value to be checked.
* @returns A boolean representing the result.
*/
/// <reference lib="dom" />
/**

@@ -93,0 +98,0 @@ * Checks whether we're in the Node.js or Browser environment

@@ -183,3 +183,2 @@ (function (__window) {

/// <reference lib="dom" />
/**

@@ -268,3 +267,2 @@ * Checks whether given value's type is one of a few Error or Error-like

/// <reference lib="dom" />
/**

@@ -363,3 +361,4 @@ * Checks whether we're in the Node.js or Browser environment

*/
function _htmlElementAsString(elem) {
function _htmlElementAsString(el) {
var elem = el;
var out = [];

@@ -599,9 +598,10 @@ var className;

if (isEvent(value)) {
var event_1 = value;
var source = {};
source.type = value.type;
source.type = event_1.type;
// Accessing event.target can throw (see getsentry/raven-js#838, #768)
try {
source.target = isElement(value.target)
? htmlTreeAsString(value.target)
: Object.prototype.toString.call(value.target);
source.target = isElement(event_1.target)
? htmlTreeAsString(event_1.target)
: Object.prototype.toString.call(event_1.target);
}

@@ -612,5 +612,5 @@ catch (_oO) {

try {
source.currentTarget = isElement(value.currentTarget)
? htmlTreeAsString(value.currentTarget)
: Object.prototype.toString.call(value.currentTarget);
source.currentTarget = isElement(event_1.currentTarget)
? htmlTreeAsString(event_1.currentTarget)
: Object.prototype.toString.call(event_1.currentTarget);
}

@@ -622,7 +622,7 @@ catch (_oO) {

if (typeof CustomEvent !== 'undefined' && value instanceof CustomEvent) {
source.detail = value.detail;
source.detail = event_1.detail;
}
for (var i in value) {
if (Object.prototype.hasOwnProperty.call(value, i)) {
source[i] = value[i];
for (var i in event_1) {
if (Object.prototype.hasOwnProperty.call(event_1, i)) {
source[i] = event_1;
}

@@ -661,3 +661,3 @@ }

function normalizeValue(value, key) {
if (key === 'domain' && typeof value === 'object' && value._events) {
if (key === 'domain' && value && typeof value === 'object' && value._events) {
return '[Domain]';

@@ -664,0 +664,0 @@ }

@@ -1,2 +0,2 @@

!function(t){var e,n,r,o={};Object.defineProperty(o,"__esModule",{value:!0}),function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(e||(e={})),function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(n||(n={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(n||(n={})),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(r||(r={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(r||(r={}));var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});!function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,a(r,n.prototype),r}(function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(e,t)}(Error);function c(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function u(t){return"undefined"!=typeof Element&&t instanceof Element}function s(t){return function(t){return"[object Object]"===Object.prototype.toString.call(t)}(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}var f={};function l(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function p(t){var e=l();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}function y(t){try{for(var e=t,n=[],r=0,o=0,i=" > ".length,a=void 0;e&&r++<5&&!("html"===(a=_(e))||r>1&&o+n.length*i+a.length>=80);)n.push(a),o+=a.length,e=e.parentNode;return n.reverse().join(" > ")}catch(t){return"<unknown>"}}function _(t){var e,n,r,o,i,a,c=[];if(!t||!t.tagName)return"";if(c.push(t.tagName.toLowerCase()),t.id&&c.push("#"+t.id),(e=t.className)&&(a=e,"[object String]"===Object.prototype.toString.call(a)))for(n=e.split(/\s+/),i=0;i<n.length;i++)c.push("."+n[i]);var u=["type","name","title","alt"];for(i=0;i<u.length;i++)r=u[i],(o=t.getAttribute(r))&&c.push("["+r+'="'+o+'"]');return c.join("")}var g=l(),d="Sentry Logger ",h=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&p(function(){g.console.log(d+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&p(function(){g.console.warn(d+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&p(function(){g.console.error(d+"[Error]: "+t.join(" "))})},t}();g.__SENTRY__=g.__SENTRY__||{};g.__SENTRY__.logger||(g.__SENTRY__.logger=new h);var v,b=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var e=0;e<this._inner.length;e++){if(this._inner[e]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var e=0;e<this._inner.length;e++)if(this._inner[e]===t){this._inner.splice(e,1);break}},t}();function m(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var o=t[r];try{n.push(String(o))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function E(t){if(function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}(t)){var e=t,n={message:e.message,name:e.name,stack:e.stack};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}if(i=t,"undefined"!=typeof Event&&i instanceof Event){var o={};o.type=t.type;try{o.target=u(t.target)?y(t.target):Object.prototype.toString.call(t.target)}catch(t){o.target="<unknown>"}try{o.currentTarget=u(t.currentTarget)?y(t.currentTarget):Object.prototype.toString.call(t.currentTarget)}catch(t){o.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&t instanceof CustomEvent&&(o.detail=t.detail),t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o}var i;return t}function w(t,e){return"domain"===e&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":s(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+(t.name||"<unknown-function-name>")+"]":t}function S(t,e,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new b),0===n)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=w(t);return c(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var o=w(e,t);if(c(o))return o;var i=E(e),a=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=S(u,i[u],n-1,r));return r.unmemoize(e),a}function j(t,e){try{return JSON.parse(JSON.stringify(t,function(t,n){return S(t,n,e)}))}catch(t){return"**non-serializable**"}}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(v||(v={}));var O=l(),N=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return t.prototype.setupOnce=function(e,r){"console"in O&&this._levels.forEach(function(e){e in O.console&&function(t,e,n){if(e in t){var r=t[e],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:r},__sentry_wrapped__:{enumerable:!1,value:o}})}catch(t){}t[e]=o}}(O.console,e,function(o){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var c=r();c.getIntegration(t)&&c.withScope(function(t){t.setLevel(n.fromString(e)),t.setExtra("arguments",j(i,3)),t.addEventProcessor(function(t){return t.logger="console",t});var r=m(i," ");"assert"===e?!1===i[0]&&(r="Assertion failed: "+(m(i.slice(1)," ")||"console.assert"),t.setExtra("arguments",j(i.slice(1),3)),c.captureMessage(r)):c.captureMessage(r)}),o&&Function.prototype.apply.call(o,O.console,i)}})})},t.id="CaptureConsole",t}();for(var k in o.CaptureConsole=N,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},o)Object.prototype.hasOwnProperty.call(o,k)&&(t.Sentry.Integrations[k]=o[k])}(window);
!function(t){var e,n,r,o={};Object.defineProperty(o,"__esModule",{value:!0}),function(t){t[t.None=0]="None",t[t.Error=1]="Error",t[t.Debug=2]="Debug",t[t.Verbose=3]="Verbose"}(e||(e={})),function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(n||(n={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(n||(n={})),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(r||(r={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(r||(r={}));var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});!function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,a(r,n.prototype),r}(function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)})(e,t)}(Error);function c(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function u(t){return"undefined"!=typeof Element&&t instanceof Element}function s(t){return function(t){return"[object Object]"===Object.prototype.toString.call(t)}(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}var f={};function l(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function p(t){var e=l();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}function y(t){try{for(var e=t,n=[],r=0,o=0,i=" > ".length,a=void 0;e&&r++<5&&!("html"===(a=_(e))||r>1&&o+n.length*i+a.length>=80);)n.push(a),o+=a.length,e=e.parentNode;return n.reverse().join(" > ")}catch(t){return"<unknown>"}}function _(t){var e,n,r,o,i,a,c=t,u=[];if(!c||!c.tagName)return"";if(u.push(c.tagName.toLowerCase()),c.id&&u.push("#"+c.id),(e=c.className)&&(a=e,"[object String]"===Object.prototype.toString.call(a)))for(n=e.split(/\s+/),i=0;i<n.length;i++)u.push("."+n[i]);var s=["type","name","title","alt"];for(i=0;i<s.length;i++)r=s[i],(o=c.getAttribute(r))&&u.push("["+r+'="'+o+'"]');return u.join("")}var g=l(),d="Sentry Logger ",h=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&p(function(){g.console.log(d+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&p(function(){g.console.warn(d+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&p(function(){g.console.error(d+"[Error]: "+t.join(" "))})},t}();g.__SENTRY__=g.__SENTRY__||{};g.__SENTRY__.logger||(g.__SENTRY__.logger=new h);var v,b=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var e=0;e<this._inner.length;e++){if(this._inner[e]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var e=0;e<this._inner.length;e++)if(this._inner[e]===t){this._inner.splice(e,1);break}},t}();function m(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var o=t[r];try{n.push(String(o))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function E(t){if(function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}(t)){var e=t,n={message:e.message,name:e.name,stack:e.stack};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}if(a=t,"undefined"!=typeof Event&&a instanceof Event){var o=t,i={};i.type=o.type;try{i.target=u(o.target)?y(o.target):Object.prototype.toString.call(o.target)}catch(t){i.target="<unknown>"}try{i.currentTarget=u(o.currentTarget)?y(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(t){i.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&t instanceof CustomEvent&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o);return i}var a;return t}function w(t,e){return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":s(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+(t.name||"<unknown-function-name>")+"]":t}function S(t,e,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new b),0===n)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=w(t);return c(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var o=w(e,t);if(c(o))return o;var i=E(e),a=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=S(u,i[u],n-1,r));return r.unmemoize(e),a}function j(t,e){try{return JSON.parse(JSON.stringify(t,function(t,n){return S(t,n,e)}))}catch(t){return"**non-serializable**"}}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(v||(v={}));var O=l(),N=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return t.prototype.setupOnce=function(e,r){"console"in O&&this._levels.forEach(function(e){e in O.console&&function(t,e,n){if(e in t){var r=t[e],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:r},__sentry_wrapped__:{enumerable:!1,value:o}})}catch(t){}t[e]=o}}(O.console,e,function(o){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var c=r();c.getIntegration(t)&&c.withScope(function(t){t.setLevel(n.fromString(e)),t.setExtra("arguments",j(i,3)),t.addEventProcessor(function(t){return t.logger="console",t});var r=m(i," ");"assert"===e?!1===i[0]&&(r="Assertion failed: "+(m(i.slice(1)," ")||"console.assert"),t.setExtra("arguments",j(i.slice(1),3)),c.captureMessage(r)):c.captureMessage(r)}),o&&Function.prototype.apply.call(o,O.console,i)}})})},t.id="CaptureConsole",t}();for(var k in o.CaptureConsole=N,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},o)Object.prototype.hasOwnProperty.call(o,k)&&(t.Sentry.Integrations[k]=o[k])}(window);
//# sourceMappingURL=captureconsole.min.js.map

@@ -88,5 +88,10 @@ (function (__window) {

/// <reference lib="dom" />
/**
* Checks whether given value's type is one of a few Error or Error-like
* {@link isError}.
*
* @param wat A value to be checked.
* @returns A boolean representing the result.
*/
/// <reference lib="dom" />
/**

@@ -93,0 +98,0 @@ * Checks whether we're in the Node.js or Browser environment

@@ -77,5 +77,10 @@ (function (__window) {

/// <reference lib="dom" />
/**
* Checks whether given value's type is one of a few Error or Error-like
* {@link isError}.
*
* @param wat A value to be checked.
* @returns A boolean representing the result.
*/
/// <reference lib="dom" />
/**

@@ -82,0 +87,0 @@ * Checks whether we're in the Node.js or Browser environment

@@ -99,3 +99,2 @@ (function (__window) {

/// <reference lib="dom" />
/**

@@ -184,3 +183,2 @@ * Checks whether given value's type is one of a few Error or Error-like

/// <reference lib="dom" />
/**

@@ -279,3 +277,4 @@ * Checks whether we're in the Node.js or Browser environment

*/
function _htmlElementAsString(elem) {
function _htmlElementAsString(el) {
var elem = el;
var out = [];

@@ -449,9 +448,10 @@ var className;

if (isEvent(value)) {
var event_1 = value;
var source = {};
source.type = value.type;
source.type = event_1.type;
// Accessing event.target can throw (see getsentry/raven-js#838, #768)
try {
source.target = isElement(value.target)
? htmlTreeAsString(value.target)
: Object.prototype.toString.call(value.target);
source.target = isElement(event_1.target)
? htmlTreeAsString(event_1.target)
: Object.prototype.toString.call(event_1.target);
}

@@ -462,5 +462,5 @@ catch (_oO) {

try {
source.currentTarget = isElement(value.currentTarget)
? htmlTreeAsString(value.currentTarget)
: Object.prototype.toString.call(value.currentTarget);
source.currentTarget = isElement(event_1.currentTarget)
? htmlTreeAsString(event_1.currentTarget)
: Object.prototype.toString.call(event_1.currentTarget);
}

@@ -472,7 +472,7 @@ catch (_oO) {

if (typeof CustomEvent !== 'undefined' && value instanceof CustomEvent) {
source.detail = value.detail;
source.detail = event_1.detail;
}
for (var i in value) {
if (Object.prototype.hasOwnProperty.call(value, i)) {
source[i] = value[i];
for (var i in event_1) {
if (Object.prototype.hasOwnProperty.call(event_1, i)) {
source[i] = event_1;
}

@@ -511,3 +511,3 @@ }

function normalizeValue(value, key) {
if (key === 'domain' && typeof value === 'object' && value._events) {
if (key === 'domain' && value && typeof value === 'object' && value._events) {
return '[Domain]';

@@ -514,0 +514,0 @@ }

@@ -1,2 +0,2 @@

!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var r=function(){return(r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var e in n)t.hasOwnProperty(e)||(t[e]=n[e]);return t});!function(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,o(r,e.prototype),r}(function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,t)}(Error);function i(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function a(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function c(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return"undefined"!=typeof Element&&t instanceof Element}var f={};function s(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function l(t){var n=s();if(!("console"in n))return t();var e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&e[t].__sentry__&&(r[t]=e[t].__sentry_wrapped__,e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}function p(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=y(n))||r>1&&o+e.length*i+a.length>=80);)e.push(a),o+=a.length,n=n.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function y(t){var n,e,r,o,i,a,c=[];if(!t||!t.tagName)return"";if(c.push(t.tagName.toLowerCase()),t.id&&c.push("#"+t.id),(n=t.className)&&(a=n,"[object String]"===Object.prototype.toString.call(a)))for(e=n.split(/\s+/),i=0;i<e.length;i++)c.push("."+e[i]);var u=["type","name","title","alt"];for(i=0;i<u.length;i++)r=u[i],(o=t.getAttribute(r))&&c.push("["+r+'="'+o+'"]');return c.join("")}var h=s(),_="Sentry Logger ",g=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&l(function(){h.console.log(_+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&l(function(){h.console.warn(_+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&l(function(){h.console.error(_+"[Error]: "+t.join(" "))})},t}();h.__SENTRY__=h.__SENTRY__||{};var v,d=h.__SENTRY__.logger||(h.__SENTRY__.logger=new g),b=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++){if(this._inner[n]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}();function m(t){if(i(t)){var n=t,e={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}if(a=t,"undefined"!=typeof Event&&a instanceof Event){var o={};o.type=t.type;try{o.target=u(t.target)?p(t.target):Object.prototype.toString.call(t.target)}catch(t){o.target="<unknown>"}try{o.currentTarget=u(t.currentTarget)?p(t.currentTarget):Object.prototype.toString.call(t.currentTarget)}catch(t){o.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&t instanceof CustomEvent&&(o.detail=t.detail),t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r]);return o}var a;return t}function E(t,n){return"domain"===n&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":c(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+(t.name||"<unknown-function-name>")+"]":t;var e}function O(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new b),0===e)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var e=E(t);return a(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=E(n,t);if(a(o))return o;var i=m(n),c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(c[u]=O(u,i[u],e-1,r));return r.unmemoize(n),c}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(v||(v={}));var j=function(){function t(n){void 0===n&&(n={depth:3}),this._options=n,this.name=t.id}return t.prototype.setupOnce=function(n,e){n(function(n,r){var o=e().getIntegration(t);return o?o.enhanceEventWithErrorData(n,r):n})},t.prototype.enhanceEventWithErrorData=function(t,n){var e;if(!n||!n.originalException||!i(n.originalException))return t;var o=n.originalException.name||n.originalException.constructor.name,a=this._extractErrorData(n.originalException);if(a){var u=r({},t.contexts),f=function(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return O(t,e,n)}))}catch(t){return"**non-serializable**"}}(a,this._options.depth);return c(f)&&(u=r({},t.contexts,((e={})[o]=r({},f),e))),r({},t,{contexts:u})}return t},t.prototype._extractErrorData=function(t){var n,e,r=null;try{var o=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],a=Object.getOwnPropertyNames(t).filter(function(t){return-1===o.indexOf(t)});if(a.length){var c={};try{for(var u=function(t){var n="function"==typeof Symbol&&t[Symbol.iterator],e=0;return n?n.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}(a),f=u.next();!f.done;f=u.next()){var s=f.value,l=t[s];i(l)&&(l=l.toString()),c[s]=l}}catch(t){n={error:t}}finally{try{f&&!f.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}r=c}}catch(t){d.error("Unable to extract extra data from the Error object:",t)}return r},t.id="ExtraErrorData",t}();for(var w in n.ExtraErrorData=j,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,w)&&(t.Sentry.Integrations[w]=n[w])}(window);
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var r=function(){return(r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var e in n)t.hasOwnProperty(e)||(t[e]=n[e]);return t});!function(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,o(r,e.prototype),r}(function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,t)}(Error);function i(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function a(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function c(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t){return"undefined"!=typeof Element&&t instanceof Element}var f={};function s(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function l(t){var n=s();if(!("console"in n))return t();var e=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&e[t].__sentry__&&(r[t]=e[t].__sentry_wrapped__,e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}function p(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=y(n))||r>1&&o+e.length*i+a.length>=80);)e.push(a),o+=a.length,n=n.parentNode;return e.reverse().join(" > ")}catch(t){return"<unknown>"}}function y(t){var n,e,r,o,i,a,c=t,u=[];if(!c||!c.tagName)return"";if(u.push(c.tagName.toLowerCase()),c.id&&u.push("#"+c.id),(n=c.className)&&(a=n,"[object String]"===Object.prototype.toString.call(a)))for(e=n.split(/\s+/),i=0;i<e.length;i++)u.push("."+e[i]);var f=["type","name","title","alt"];for(i=0;i<f.length;i++)r=f[i],(o=c.getAttribute(r))&&u.push("["+r+'="'+o+'"]');return u.join("")}var h=s(),_="Sentry Logger ",g=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&l(function(){h.console.log(_+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&l(function(){h.console.warn(_+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&l(function(){h.console.error(_+"[Error]: "+t.join(" "))})},t}();h.__SENTRY__=h.__SENTRY__||{};var v,d=h.__SENTRY__.logger||(h.__SENTRY__.logger=new g),b=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++){if(this._inner[n]===t)return!0}return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}();function m(t){if(i(t)){var n=t,e={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}if(c=t,"undefined"!=typeof Event&&c instanceof Event){var o=t,a={};a.type=o.type;try{a.target=u(o.target)?p(o.target):Object.prototype.toString.call(o.target)}catch(t){a.target="<unknown>"}try{a.currentTarget=u(o.currentTarget)?p(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(t){a.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&t instanceof CustomEvent&&(a.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,r)&&(a[r]=o);return a}var c;return t}function E(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":c(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+(t.name||"<unknown-function-name>")+"]":t;var e}function O(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new b),0===e)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var e=E(t);return a(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=E(n,t);if(a(o))return o;var i=m(n),c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(c[u]=O(u,i[u],e-1,r));return r.unmemoize(n),c}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(v||(v={}));var j=function(){function t(n){void 0===n&&(n={depth:3}),this._options=n,this.name=t.id}return t.prototype.setupOnce=function(n,e){n(function(n,r){var o=e().getIntegration(t);return o?o.enhanceEventWithErrorData(n,r):n})},t.prototype.enhanceEventWithErrorData=function(t,n){var e;if(!n||!n.originalException||!i(n.originalException))return t;var o=n.originalException.name||n.originalException.constructor.name,a=this._extractErrorData(n.originalException);if(a){var u=r({},t.contexts),f=function(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return O(t,e,n)}))}catch(t){return"**non-serializable**"}}(a,this._options.depth);return c(f)&&(u=r({},t.contexts,((e={})[o]=r({},f),e))),r({},t,{contexts:u})}return t},t.prototype._extractErrorData=function(t){var n,e,r=null;try{var o=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],a=Object.getOwnPropertyNames(t).filter(function(t){return-1===o.indexOf(t)});if(a.length){var c={};try{for(var u=function(t){var n="function"==typeof Symbol&&t[Symbol.iterator],e=0;return n?n.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}(a),f=u.next();!f.done;f=u.next()){var s=f.value,l=t[s];i(l)&&(l=l.toString()),c[s]=l}}catch(t){n={error:t}}finally{try{f&&!f.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}r=c}}catch(t){d.error("Unable to extract extra data from the Error object:",t)}return r},t.id="ExtraErrorData",t}();for(var w in n.ExtraErrorData=j,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,w)&&(t.Sentry.Integrations[w]=n[w])}(window);
//# sourceMappingURL=extraerrordata.min.js.map

@@ -88,5 +88,10 @@ (function (__window) {

/// <reference lib="dom" />
/**
* Checks whether given value's type is one of a few Error or Error-like
* {@link isError}.
*
* @param wat A value to be checked.
* @returns A boolean representing the result.
*/
/// <reference lib="dom" />
/**

@@ -93,0 +98,0 @@ * Checks whether we're in the Node.js or Browser environment

@@ -77,5 +77,10 @@ (function (__window) {

/// <reference lib="dom" />
/**
* Checks whether given value's type is one of a few Error or Error-like
* {@link isError}.
*
* @param wat A value to be checked.
* @returns A boolean representing the result.
*/
/// <reference lib="dom" />
/**

@@ -376,4 +381,3 @@ * Checks whether we're in the Node.js or Browser environment

try {
// tslint:disable-next-line:no-unsafe-any
return exception.values[0].stacktrace.frames;
return exception.values && exception.values[0].stacktrace && exception.values[0].stacktrace.frames;
}

@@ -380,0 +384,0 @@ catch (_oO) {

@@ -1,2 +0,2 @@

!function(t){var r={};Object.defineProperty(r,"__esModule",{value:!0});var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)};var n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,r){return t.__proto__=r,t}:function(t,r){for(var e in r)t.hasOwnProperty(e)||(t[e]=r[e]);return t});!function(t){function r(r){var e=this.constructor,o=t.call(this,r)||this;return o.message=r,o.name=e.prototype.constructor.name,n(o,e.prototype),o}(function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)})(r,t)}(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 a(t){var r=i();if(!("console"in r))return t();var e=r.console,n={};["debug","info","warn","error","log","assert"].forEach(function(t){t in r.console&&e[t].__sentry__&&(n[t]=e[t].__sentry_wrapped__,e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(n).forEach(function(t){e[t]=n[t]}),o}var s=i(),c="Sentry Logger ",f=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._enabled&&a(function(){s.console.log(c+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._enabled&&a(function(){s.console.warn(c+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._enabled&&a(function(){s.console.error(c+"[Error]: "+t.join(" "))})},t}();s.__SENTRY__=s.__SENTRY__||{};s.__SENTRY__.logger||(s.__SENTRY__.logger=new f);var u,l=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function _(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var e="",n=!1,o=t.length-1;o>=-1&&!n;o--){var i=o>=0?t[o]:"/";i&&(e=i+"/"+e,n="/"===i.charAt(0))}return(n?"/":"")+(e=function(t,r){for(var e=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),e++):e&&(t.splice(n,1),e--)}if(r)for(;e--;e)t.unshift("..");return t}(e.split("/").filter(function(t){return!!t}),!n).join("/"))||"."}function p(t){for(var r=0;r<t.length&&""===t[r];r++);for(var e=t.length-1;e>=0&&""===t[e];e--);return r>e?[]:t.slice(r,e-r+1)}function h(t,r){var e,n,o=(e=t,n=l.exec(e),n?n.slice(1):[])[2];return r&&o.substr(-1*r.length)===r&&(o=o.substr(0,o.length-r.length)),o}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(u||(u={}));var v=function(){function t(r){var e=this;void 0===r&&(r={}),this.name=t.id,this._iteratee=function(t){if(t.filename&&t.filename.startsWith("/")){var r=e._root?function(t,r){t=_(t).substr(1),r=_(r).substr(1);for(var e=p(t.split("/")),n=p(r.split("/")),o=Math.min(e.length,n.length),i=o,a=0;a<o;a++)if(e[a]!==n[a]){i=a;break}var s=[];for(a=i;a<e.length;a++)s.push("..");return(s=s.concat(n.slice(i))).join("/")}(e._root,t.filename):h(t.filename);t.filename="app:///"+r}return t},r.root&&(this._root=r.root),r.iteratee&&(this._iteratee=r.iteratee)}return t.prototype.setupOnce=function(r,e){r(function(r){var n=e().getIntegration(t);return n?n.process(r):r})},t.prototype.process=function(t){var r=this._getFramesFromEvent(t);if(r)for(var e in r)r[e]=this._iteratee(r[e]);return t},t.prototype._getFramesFromEvent=function(t){var r=t.exception;if(r)try{return r.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames},t.id="RewriteFrames",t}();for(var y in r.RewriteFrames=v,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},r)Object.prototype.hasOwnProperty.call(r,y)&&(t.Sentry.Integrations[y]=r[y])}(window);
!function(t){var r={};Object.defineProperty(r,"__esModule",{value:!0});var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)};var n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,r){return t.__proto__=r,t}:function(t,r){for(var e in r)t.hasOwnProperty(e)||(t[e]=r[e]);return t});!function(t){function r(r){var e=this.constructor,o=t.call(this,r)||this;return o.message=r,o.name=e.prototype.constructor.name,n(o,e.prototype),o}(function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)})(r,t)}(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 a(t){var r=i();if(!("console"in r))return t();var e=r.console,n={};["debug","info","warn","error","log","assert"].forEach(function(t){t in r.console&&e[t].__sentry__&&(n[t]=e[t].__sentry_wrapped__,e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(n).forEach(function(t){e[t]=n[t]}),o}var s=i(),c="Sentry Logger ",f=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._enabled&&a(function(){s.console.log(c+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._enabled&&a(function(){s.console.warn(c+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._enabled&&a(function(){s.console.error(c+"[Error]: "+t.join(" "))})},t}();s.__SENTRY__=s.__SENTRY__||{};s.__SENTRY__.logger||(s.__SENTRY__.logger=new f);var u,l=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function _(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var e="",n=!1,o=t.length-1;o>=-1&&!n;o--){var i=o>=0?t[o]:"/";i&&(e=i+"/"+e,n="/"===i.charAt(0))}return(n?"/":"")+(e=function(t,r){for(var e=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),e++):e&&(t.splice(n,1),e--)}if(r)for(;e--;e)t.unshift("..");return t}(e.split("/").filter(function(t){return!!t}),!n).join("/"))||"."}function p(t){for(var r=0;r<t.length&&""===t[r];r++);for(var e=t.length-1;e>=0&&""===t[e];e--);return r>e?[]:t.slice(r,e-r+1)}function h(t,r){var e,n,o=(e=t,n=l.exec(e),n?n.slice(1):[])[2];return r&&o.substr(-1*r.length)===r&&(o=o.substr(0,o.length-r.length)),o}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(u||(u={}));var v=function(){function t(r){var e=this;void 0===r&&(r={}),this.name=t.id,this._iteratee=function(t){if(t.filename&&t.filename.startsWith("/")){var r=e._root?function(t,r){t=_(t).substr(1),r=_(r).substr(1);for(var e=p(t.split("/")),n=p(r.split("/")),o=Math.min(e.length,n.length),i=o,a=0;a<o;a++)if(e[a]!==n[a]){i=a;break}var s=[];for(a=i;a<e.length;a++)s.push("..");return(s=s.concat(n.slice(i))).join("/")}(e._root,t.filename):h(t.filename);t.filename="app:///"+r}return t},r.root&&(this._root=r.root),r.iteratee&&(this._iteratee=r.iteratee)}return t.prototype.setupOnce=function(r,e){r(function(r){var n=e().getIntegration(t);return n?n.process(r):r})},t.prototype.process=function(t){var r=this._getFramesFromEvent(t);if(r)for(var e in r)r[e]=this._iteratee(r[e]);return t},t.prototype._getFramesFromEvent=function(t){var r=t.exception;if(r)try{return r.values&&r.values[0].stacktrace&&r.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames},t.id="RewriteFrames",t}();for(var y in r.RewriteFrames=v,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},r)Object.prototype.hasOwnProperty.call(r,y)&&(t.Sentry.Integrations[y]=r[y])}(window);
//# sourceMappingURL=rewriteframes.min.js.map

@@ -111,4 +111,10 @@ (function (__window) {

/// <reference lib="dom" />
/**
* Checks whether given value's type is one of a few Error or Error-like
* {@link isError}.
*
* @param wat A value to be checked.
* @returns A boolean representing the result.
*/
/**
* Checks whether given value's type is an regexp

@@ -124,3 +130,2 @@ * {@link isRegExp}.

/// <reference lib="dom" />
/**

@@ -403,4 +408,25 @@ * Checks whether we're in the Node.js or Browser environment

}
if (this._options.autoStartOnDomReady !== false) {
getGlobalObject().addEventListener('DOMContentLoaded', function () {
Tracing.startTrace(getCurrentHub(), getGlobalObject().location.href);
});
getGlobalObject().document.onreadystatechange = function () {
if (document.readyState === 'complete') {
Tracing.startTrace(getCurrentHub(), getGlobalObject().location.href);
}
};
}
};
/**
* Starts a new trace
* @param hub The hub to start the trace on
* @param transaction Optional transaction
*/
Tracing.startTrace = function (hub, transaction) {
hub.configureScope(function (scope) {
scope.startSpan();
scope.setTransaction(transaction);
});
};
/**
* JSDoc

@@ -444,7 +470,2 @@ */

});
if (isMatchingPattern(url_1, 'sentry_key')) {
// If sentry_key is in the url, it's an internal store request to sentry
// we do not want to add the trace header to store requests
isWhitelisted = false;
}
if (isWhitelisted && this.setRequestHeader) {

@@ -476,29 +497,23 @@ Object.keys(headers_1).forEach(function (key) {

// @ts-ignore
var hub = getCurrentHub();
var self = hub.getIntegration(Tracing);
var self = getCurrentHub().getIntegration(Tracing);
if (self && self._options.tracingOrigins) {
var url_2 = args[0];
var options = (args[1] = args[1] || {});
var isWhitelisted_1 = false;
var whiteListed_1 = false;
self._options.tracingOrigins.forEach(function (whiteListUrl) {
if (!isWhitelisted_1) {
isWhitelisted_1 = isMatchingPattern(url_2, whiteListUrl);
if (!whiteListed_1) {
whiteListed_1 = isMatchingPattern(url_2, whiteListUrl);
}
});
if (isMatchingPattern(url_2, 'sentry_key')) {
// If sentry_key is in the url, it's an internal store request to sentry
// we do not want to add the trace header to store requests
isWhitelisted_1 = false;
}
if (isWhitelisted_1) {
if (whiteListed_1) {
if (options.headers) {
if (Array.isArray(options.headers)) {
options.headers = __spread(options.headers, Object.entries(hub.traceHeaders()));
options.headers = __spread(options.headers, Object.entries(getCurrentHub().traceHeaders()));
}
else {
options.headers = __assign({}, options.headers, hub.traceHeaders());
options.headers = __assign({}, options.headers, getCurrentHub().traceHeaders());
}
}
else {
options.headers = hub.traceHeaders();
options.headers = getCurrentHub().traceHeaders();
}

@@ -505,0 +520,0 @@ }

@@ -1,2 +0,2 @@

!function(t){var r={};Object.defineProperty(r,"__esModule",{value:!0});var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)};var n=function(){return(n=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t}).apply(this,arguments)};function o(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,i=e.call(t),a=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return a}var i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,r){return t.__proto__=r,t}:function(t,r){for(var e in r)t.hasOwnProperty(e)||(t[e]=r[e]);return t});!function(t){function r(r){var e=this.constructor,n=t.call(this,r)||this;return n.message=r,n.name=e.prototype.constructor.name,i(n,e.prototype),n}(function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)})(r,t)}(Error);var a={};function c(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function s(t){var r=c();if(!("console"in r))return t();var e=r.console,n={};["debug","info","warn","error","log","assert"].forEach(function(t){t in r.console&&e[t].__sentry__&&(n[t]=e[t].__sentry_wrapped__,e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(n).forEach(function(t){e[t]=n[t]}),o}var f=c(),u="Sentry Logger ",p=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._enabled&&s(function(){f.console.log(u+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._enabled&&s(function(){f.console.warn(u+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._enabled&&s(function(){f.console.error(u+"[Error]: "+t.join(" "))})},t}();f.__SENTRY__=f.__SENTRY__||{};var l,_=f.__SENTRY__.logger||(f.__SENTRY__.logger=new p);function y(t,r){return e=r,"[object RegExp]"===Object.prototype.toString.call(e)?r.test(t):"string"==typeof r&&-1!==t.indexOf(r);var e}function h(t,r,e){if(r in t){var n=t[r],o=e(n);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:n},__sentry_wrapped__:{enumerable:!1,value:o}})}catch(t){}t[r]=o}}function d(){if(!function(){if(!("fetch"in c()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}())return!1;var t=function(t){return-1!==t.toString().indexOf("native")},r=c(),e=null,n=r.document;if(n){var o=n.createElement("iframe");o.hidden=!0;try{n.head.appendChild(o),o.contentWindow&&o.contentWindow.fetch&&(e=t(o.contentWindow.fetch)),n.head.removeChild(o)}catch(t){_.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}}return null===e&&(e=t(r.fetch)),e}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(l||(l={}));var g=function(){function t(r){if(void 0===r&&(r={}),this._options=r,this.name=t.id,!Array.isArray(r.tracingOrigins)||0===r.tracingOrigins.length){var e=["localhost",/^\//];_.warn("Sentry: You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),_.warn("Sentry: We added a reasonable default for you: "+e),r.tracingOrigins=e}}return t.prototype.setupOnce=function(t,r){!1!==this._options.traceXHR&&this._traceXHR(r),!1!==this._options.traceFetch&&this._traceFetch(r)},t.prototype._traceXHR=function(r){if("XMLHttpRequest"in c()){var e=XMLHttpRequest.prototype;h(e,"open",function(e){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=r().getIntegration(t);return i&&(i._xhrUrl=n[1]),e.apply(this,n)}}),h(e,"send",function(e){return function(){for(var n=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var a=r().getIntegration(t);if(a&&a._xhrUrl&&a._options.tracingOrigins){var c=a._xhrUrl,s=r().traceHeaders(),f=a._options.tracingOrigins.some(function(t){return y(c,t)});y(c,"sentry_key")&&(f=!1),f&&this.setRequestHeader&&Object.keys(s).forEach(function(t){n.setRequestHeader(t,s[t])})}return e.apply(this,o)}})}},t.prototype._traceFetch=function(r){d()&&h(c(),"fetch",function(e){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=r(),f=s.getIntegration(t);if(f&&f._options.tracingOrigins){var u=i[0],p=i[1]=i[1]||{},l=!1;f._options.tracingOrigins.forEach(function(t){l||(l=y(u,t))}),y(u,"sentry_key")&&(l=!1),l&&(p.headers?Array.isArray(p.headers)?p.headers=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(o(arguments[r]));return t}(p.headers,Object.entries(s.traceHeaders())):p.headers=n({},p.headers,s.traceHeaders()):p.headers=s.traceHeaders())}return e.apply(c(),i)}})},t.id="Tracing",t}();for(var v in r.Tracing=g,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},r)Object.prototype.hasOwnProperty.call(r,v)&&(t.Sentry.Integrations[v]=r[v])}(window);
!function(t){var e={};Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n]);return t});!function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,i(r,n.prototype),r}(function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t)}(Error);var a={};function c(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function s(t){var e=c();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(t){t in e.console&&n[t].__sentry__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}var f=c(),u="Sentry Logger ",p=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){f.console.log(u+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){f.console.warn(u+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._enabled&&s(function(){f.console.error(u+"[Error]: "+t.join(" "))})},t}();f.__SENTRY__=f.__SENTRY__||{};var l,_=f.__SENTRY__.logger||(f.__SENTRY__.logger=new p);function h(t,e){return n=e,"[object RegExp]"===Object.prototype.toString.call(n)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e);var n}function d(t,e,n){if(e in t){var r=t[e],o=n(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:r},__sentry_wrapped__:{enumerable:!1,value:o}})}catch(t){}t[e]=o}}function y(){if(!function(){if(!("fetch"in c()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}())return!1;var t=function(t){return-1!==t.toString().indexOf("native")},e=c(),n=null,r=e.document;if(r){var o=r.createElement("iframe");o.hidden=!0;try{r.head.appendChild(o),o.contentWindow&&o.contentWindow.fetch&&(n=t(o.contentWindow.fetch)),r.head.removeChild(o)}catch(t){_.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}}return null===n&&(n=t(e.fetch)),n}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(l||(l={}));var g=function(){function t(e){if(void 0===e&&(e={}),this._options=e,this.name=t.id,!Array.isArray(e.tracingOrigins)||0===e.tracingOrigins.length){var n=["localhost",/^\//];_.warn("Sentry: You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),_.warn("Sentry: We added a reasonable default for you: "+n),e.tracingOrigins=n}}return t.prototype.setupOnce=function(e,n){!1!==this._options.traceXHR&&this._traceXHR(n),!1!==this._options.traceFetch&&this._traceFetch(n),!1!==this._options.autoStartOnDomReady&&(c().addEventListener("DOMContentLoaded",function(){t.startTrace(n(),c().location.href)}),c().document.onreadystatechange=function(){"complete"===document.readyState&&t.startTrace(n(),c().location.href)})},t.startTrace=function(t,e){t.configureScope(function(t){t.startSpan(),t.setTransaction(e)})},t.prototype._traceXHR=function(e){if("XMLHttpRequest"in c()){var n=XMLHttpRequest.prototype;d(n,"open",function(n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=e().getIntegration(t);return i&&(i._xhrUrl=r[1]),n.apply(this,r)}}),d(n,"send",function(n){return function(){for(var r=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var a=e().getIntegration(t);if(a&&a._xhrUrl&&a._options.tracingOrigins){var c=a._xhrUrl,s=e().traceHeaders();a._options.tracingOrigins.some(function(t){return h(c,t)})&&this.setRequestHeader&&Object.keys(s).forEach(function(t){r.setRequestHeader(t,s[t])})}return n.apply(this,o)}})}},t.prototype._traceFetch=function(e){y()&&d(c(),"fetch",function(n){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=e().getIntegration(t);if(s&&s._options.tracingOrigins){var f=i[0],u=i[1]=i[1]||{},p=!1;s._options.tracingOrigins.forEach(function(t){p||(p=h(f,t))}),p&&(u.headers?Array.isArray(u.headers)?u.headers=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t}(u.headers,Object.entries(e().traceHeaders())):u.headers=r({},u.headers,e().traceHeaders()):u.headers=e().traceHeaders())}return n.apply(c(),i)}})},t.id="Tracing",t}();for(var v in e.Tracing=g,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},e)Object.prototype.hasOwnProperty.call(e,v)&&(t.Sentry.Integrations[v]=e[v])}(window);
//# sourceMappingURL=tracing.min.js.map

@@ -77,4 +77,10 @@ (function (__window) {

/// <reference lib="dom" />
/**
* Checks whether given value's type is one of a few Error or Error-like
* {@link isError}.
*
* @param wat A value to be checked.
* @returns A boolean representing the result.
*/
/**
* Checks whether given value's type is an object literal

@@ -90,3 +96,2 @@ * {@link isPlainObject}.

/// <reference lib="dom" />
/**

@@ -93,0 +98,0 @@ * Checks whether we're in the Node.js or Browser environment

@@ -6,3 +6,2 @@ export { Angular } from './angular';

export { Ember } from './ember';
export { Express } from './express';
export { ExtraErrorData } from './extraerrordata';

@@ -14,3 +13,2 @@ export { ReportingObserver } from './reportingobserver';

export { Transaction } from './transaction';
export { TransactionActivity } from './transactionactivity';
export { Vue } from './vue';

@@ -12,4 +12,2 @@ Object.defineProperty(exports, "__esModule", { value: true });

exports.Ember = ember_1.Ember;
var express_1 = require("./express");
exports.Express = express_1.Express;
var extraerrordata_1 = require("./extraerrordata");

@@ -27,6 +25,4 @@ exports.ExtraErrorData = extraerrordata_1.ExtraErrorData;

exports.Transaction = transaction_1.Transaction;
var transactionactivity_1 = require("./transactionactivity");
exports.TransactionActivity = transactionactivity_1.TransactionActivity;
var vue_1 = require("./vue");
exports.Vue = vue_1.Vue;
//# sourceMappingURL=index.js.map

@@ -60,4 +60,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

try {
// tslint:disable-next-line:no-unsafe-any
return exception.values[0].stacktrace.frames;
return exception.values && exception.values[0].stacktrace && exception.values[0].stacktrace.frames;
}

@@ -64,0 +63,0 @@ catch (_oO) {

@@ -7,2 +7,3 @@ import { EventProcessor, Hub, Integration } from '@sentry/types';

traceXHR?: boolean;
autoStartOnDomReady?: boolean;
}

@@ -38,2 +39,8 @@ /**

/**
* Starts a new trace
* @param hub The hub to start the trace on
* @param transaction Optional transaction
*/
static startTrace(hub: Hub, transaction?: string): void;
/**
* JSDoc

@@ -40,0 +47,0 @@ */

@@ -37,4 +37,25 @@ Object.defineProperty(exports, "__esModule", { value: true });

}
if (this._options.autoStartOnDomReady !== false) {
utils_1.getGlobalObject().addEventListener('DOMContentLoaded', function () {
Tracing.startTrace(getCurrentHub(), utils_1.getGlobalObject().location.href);
});
utils_1.getGlobalObject().document.onreadystatechange = function () {
if (document.readyState === 'complete') {
Tracing.startTrace(getCurrentHub(), utils_1.getGlobalObject().location.href);
}
};
}
};
/**
* Starts a new trace
* @param hub The hub to start the trace on
* @param transaction Optional transaction
*/
Tracing.startTrace = function (hub, transaction) {
hub.configureScope(function (scope) {
scope.startSpan();
scope.setTransaction(transaction);
});
};
/**
* JSDoc

@@ -78,7 +99,2 @@ */

});
if (utils_1.isMatchingPattern(url_1, 'sentry_key')) {
// If sentry_key is in the url, it's an internal store request to sentry
// we do not want to add the trace header to store requests
isWhitelisted = false;
}
if (isWhitelisted && this.setRequestHeader) {

@@ -110,29 +126,23 @@ Object.keys(headers_1).forEach(function (key) {

// @ts-ignore
var hub = getCurrentHub();
var self = hub.getIntegration(Tracing);
var self = getCurrentHub().getIntegration(Tracing);
if (self && self._options.tracingOrigins) {
var url_2 = args[0];
var options = (args[1] = args[1] || {});
var isWhitelisted_1 = false;
var whiteListed_1 = false;
self._options.tracingOrigins.forEach(function (whiteListUrl) {
if (!isWhitelisted_1) {
isWhitelisted_1 = utils_1.isMatchingPattern(url_2, whiteListUrl);
if (!whiteListed_1) {
whiteListed_1 = utils_1.isMatchingPattern(url_2, whiteListUrl);
}
});
if (utils_1.isMatchingPattern(url_2, 'sentry_key')) {
// If sentry_key is in the url, it's an internal store request to sentry
// we do not want to add the trace header to store requests
isWhitelisted_1 = false;
}
if (isWhitelisted_1) {
if (whiteListed_1) {
if (options.headers) {
if (Array.isArray(options.headers)) {
options.headers = tslib_1.__spread(options.headers, Object.entries(hub.traceHeaders()));
options.headers = tslib_1.__spread(options.headers, Object.entries(getCurrentHub().traceHeaders()));
}
else {
options.headers = tslib_1.__assign({}, options.headers, hub.traceHeaders());
options.headers = tslib_1.__assign({}, options.headers, getCurrentHub().traceHeaders());
}
}
else {
options.headers = hub.traceHeaders();
options.headers = getCurrentHub().traceHeaders();
}

@@ -139,0 +149,0 @@ }

@@ -6,3 +6,2 @@ export { Angular } from './angular';

export { Ember } from './ember';
export { Express } from './express';
export { ExtraErrorData } from './extraerrordata';

@@ -14,3 +13,2 @@ export { ReportingObserver } from './reportingobserver';

export { Transaction } from './transaction';
export { TransactionActivity } from './transactionactivity';
export { Vue } from './vue';

@@ -6,3 +6,2 @@ export { Angular } from './angular';

export { Ember } from './ember';
export { Express } from './express';
export { ExtraErrorData } from './extraerrordata';

@@ -14,4 +13,3 @@ export { ReportingObserver } from './reportingobserver';

export { Transaction } from './transaction';
export { TransactionActivity } from './transactionactivity';
export { Vue } from './vue';
//# sourceMappingURL=index.js.map

@@ -59,4 +59,3 @@ import { basename, relative } from '@sentry/utils';

try {
// tslint:disable-next-line:no-unsafe-any
return exception.values[0].stacktrace.frames;
return exception.values && exception.values[0].stacktrace && exception.values[0].stacktrace.frames;
}

@@ -63,0 +62,0 @@ catch (_oO) {

@@ -7,2 +7,3 @@ import { EventProcessor, Hub, Integration } from '@sentry/types';

traceXHR?: boolean;
autoStartOnDomReady?: boolean;
}

@@ -38,2 +39,8 @@ /**

/**
* Starts a new trace
* @param hub The hub to start the trace on
* @param transaction Optional transaction
*/
static startTrace(hub: Hub, transaction?: string): void;
/**
* JSDoc

@@ -40,0 +47,0 @@ */

@@ -36,4 +36,25 @@ import * as tslib_1 from "tslib";

}
if (this._options.autoStartOnDomReady !== false) {
getGlobalObject().addEventListener('DOMContentLoaded', function () {
Tracing.startTrace(getCurrentHub(), getGlobalObject().location.href);
});
getGlobalObject().document.onreadystatechange = function () {
if (document.readyState === 'complete') {
Tracing.startTrace(getCurrentHub(), getGlobalObject().location.href);
}
};
}
};
/**
* Starts a new trace
* @param hub The hub to start the trace on
* @param transaction Optional transaction
*/
Tracing.startTrace = function (hub, transaction) {
hub.configureScope(function (scope) {
scope.startSpan();
scope.setTransaction(transaction);
});
};
/**
* JSDoc

@@ -77,7 +98,2 @@ */

});
if (isMatchingPattern(url_1, 'sentry_key')) {
// If sentry_key is in the url, it's an internal store request to sentry
// we do not want to add the trace header to store requests
isWhitelisted = false;
}
if (isWhitelisted && this.setRequestHeader) {

@@ -109,29 +125,23 @@ Object.keys(headers_1).forEach(function (key) {

// @ts-ignore
var hub = getCurrentHub();
var self = hub.getIntegration(Tracing);
var self = getCurrentHub().getIntegration(Tracing);
if (self && self._options.tracingOrigins) {
var url_2 = args[0];
var options = (args[1] = args[1] || {});
var isWhitelisted_1 = false;
var whiteListed_1 = false;
self._options.tracingOrigins.forEach(function (whiteListUrl) {
if (!isWhitelisted_1) {
isWhitelisted_1 = isMatchingPattern(url_2, whiteListUrl);
if (!whiteListed_1) {
whiteListed_1 = isMatchingPattern(url_2, whiteListUrl);
}
});
if (isMatchingPattern(url_2, 'sentry_key')) {
// If sentry_key is in the url, it's an internal store request to sentry
// we do not want to add the trace header to store requests
isWhitelisted_1 = false;
}
if (isWhitelisted_1) {
if (whiteListed_1) {
if (options.headers) {
if (Array.isArray(options.headers)) {
options.headers = tslib_1.__spread(options.headers, Object.entries(hub.traceHeaders()));
options.headers = tslib_1.__spread(options.headers, Object.entries(getCurrentHub().traceHeaders()));
}
else {
options.headers = tslib_1.__assign({}, options.headers, hub.traceHeaders());
options.headers = tslib_1.__assign({}, options.headers, getCurrentHub().traceHeaders());
}
}
else {
options.headers = hub.traceHeaders();
options.headers = getCurrentHub().traceHeaders();
}

@@ -138,0 +148,0 @@ }

{
"name": "@sentry/integrations",
"version": "5.8.0-beta.1",
"version": "5.8.0",
"description": "Pluggable integrations that can be used to enchance JS SDKs",

@@ -19,8 +19,7 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/types": "5.8.0-beta.1",
"@sentry/utils": "5.8.0-beta.1",
"@sentry/types": "5.7.1",
"@sentry/utils": "5.8.0",
"tslib": "^1.9.3"
},
"devDependencies": {
"@types/express": "^4.17.1",
"chai": "^4.1.2",

@@ -27,0 +26,0 @@ "jest": "^24.7.1",

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc