@sentry/integrations
Advanced tools
Comparing version 5.10.0-beta.4 to 5.10.0-rc.0
@@ -103,3 +103,3 @@ (function (__window) { | ||
// tslint:disable:strict-type-predicates | ||
return (Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]"); | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
@@ -115,5 +115,5 @@ var fallbackGlobalObject = {}; | ||
? global | ||
: typeof window !== "undefined" | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== "undefined" | ||
: typeof self !== 'undefined' | ||
? self | ||
@@ -125,4 +125,4 @@ : fallbackGlobalObject); | ||
var global = getGlobalObject(); | ||
var levels = ["debug", "info", "warn", "error", "log", "assert"]; | ||
if (!("console" in global)) { | ||
var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert']; | ||
if (!('console' in global)) { | ||
return callback(); | ||
@@ -134,4 +134,3 @@ } | ||
levels.forEach(function (level) { | ||
if (level in global.console && | ||
originalConsole[level].__sentry__) { | ||
if (level in global.console && originalConsole[level].__sentry__) { | ||
wrappedLevels[level] = originalConsole[level].__sentry_wrapped__; | ||
@@ -228,2 +227,5 @@ originalConsole[level] = originalConsole[level].__sentry_original__; | ||
/* tslint:disable:only-arrow-functions no-unsafe-any */ | ||
var global$2 = getGlobalObject(); | ||
// See https://github.com/angular/angular.js/blob/v1.4.7/src/minErr.js | ||
@@ -230,0 +232,0 @@ var angularPattern = /^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/; |
@@ -1,2 +0,2 @@ | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=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)};var r=function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)},o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!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,o(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);var a={};function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function c(n){var t=i();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].__sentry__&&(r[n]=e[n].__sentry_wrapped__,e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var u=i(),s="Sentry Logger ",p=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};var l,f=u.__SENTRY__.logger||(u.__SENTRY__.logger=new p);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));var _=/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/,g=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this._angular=t.angular||i().angular}return n.prototype.setupOnce=function(t,e){var r=this;this._angular?(this._getCurrentHub=e,this._angular.module(n.moduleName,[]).config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",r._$exceptionHandlerDecorator.bind(r)])}])):f.error("AngularIntegration is missing an Angular instance")},n.prototype._$exceptionHandlerDecorator=function(t){var e=this;return function(o,a){var i=e._getCurrentHub&&e._getCurrentHub();i&&i.getIntegration(n)&&i.withScope(function(n){a&&n.setExtra("cause",a),n.addEventProcessor(function(n){var t=n.exception&&n.exception.values&&n.exception.values[0];if(t){var e=_.exec(t.value||"");e&&(t.type=e[1],t.value=e[2],n.message=t.type+": "+t.value,n.extra=r({},n.extra,{angularDocs:e[3].substr(0,250)}))}return n}),i.captureException(o)}),t(o,a)}},n.id="AngularJS",n.moduleName="ngSentry",n}();for(var y in t.Angular=g,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,y)&&(n.Sentry.Integrations[y]=t[y])}(window); | ||
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=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)};var r=function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)},o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!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,o(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);var a={};function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function c(n){var t=i();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].__sentry__&&(r[n]=e[n].__sentry_wrapped__,e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var u=i(),s="Sentry Logger ",p=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){u.console.error(s+"[Error]: "+n.join(" "))})},n}();u.__SENTRY__=u.__SENTRY__||{};var l,f=u.__SENTRY__.logger||(u.__SENTRY__.logger=new p);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));i();var _=/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/,g=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this._angular=t.angular||i().angular}return n.prototype.setupOnce=function(t,e){var r=this;this._angular?(this._getCurrentHub=e,this._angular.module(n.moduleName,[]).config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",r._$exceptionHandlerDecorator.bind(r)])}])):f.error("AngularIntegration is missing an Angular instance")},n.prototype._$exceptionHandlerDecorator=function(t){var e=this;return function(o,a){var i=e._getCurrentHub&&e._getCurrentHub();i&&i.getIntegration(n)&&i.withScope(function(n){a&&n.setExtra("cause",a),n.addEventProcessor(function(n){var t=n.exception&&n.exception.values&&n.exception.values[0];if(t){var e=_.exec(t.value||"");e&&(t.type=e[1],t.value=e[2],n.message=t.type+": "+t.value,n.extra=r({},n.extra,{angularDocs:e[3].substr(0,250)}))}return n}),i.captureException(o)}),t(o,a)}},n.id="AngularJS",n.moduleName="ngSentry",n}();for(var y in t.Angular=g,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,y)&&(n.Sentry.Integrations[y]=t[y])}(window); | ||
//# sourceMappingURL=angular.min.js.map |
@@ -69,2 +69,88 @@ (function (__window) { | ||
/** The status of an Span. */ | ||
var SpanStatus; | ||
(function (SpanStatus) { | ||
/** The operation completed successfully. */ | ||
SpanStatus["Ok"] = "ok"; | ||
/** Deadline expired before operation could complete. */ | ||
SpanStatus["DealineExceeded"] = "deadline_exceeded"; | ||
/** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */ | ||
SpanStatus["Unauthenticated"] = "unauthenticated"; | ||
/** 403 Forbidden */ | ||
SpanStatus["PermissionDenied"] = "permission_denied"; | ||
/** 404 Not Found. Some requested entity (file or directory) was not found. */ | ||
SpanStatus["NotFound"] = "not_found"; | ||
/** 429 Too Many Requests */ | ||
SpanStatus["ResourceExhausted"] = "resource_exhausted"; | ||
/** Client specified an invalid argument. 4xx. */ | ||
SpanStatus["InvalidArgument"] = "invalid_argument"; | ||
/** 501 Not Implemented */ | ||
SpanStatus["Unimplemented"] = "unimplemented"; | ||
/** 503 Service Unavailable */ | ||
SpanStatus["Unavailable"] = "unavailable"; | ||
/** Other/generic 5xx. */ | ||
SpanStatus["InternalError"] = "internal_error"; | ||
/** Unknown. Any non-standard HTTP status code. */ | ||
SpanStatus["UnknownError"] = "unknown_error"; | ||
/** The operation was cancelled (typically by the user). */ | ||
SpanStatus["Cancelled"] = "cancelled"; | ||
/** Already exists (409) */ | ||
SpanStatus["AlreadyExists"] = "already_exists"; | ||
/** Operation was rejected because the system is not in a state required for the operation's */ | ||
SpanStatus["FailedPrecondition"] = "failed_precondition"; | ||
/** The operation was aborted, typically due to a concurrency issue. */ | ||
SpanStatus["Aborted"] = "aborted"; | ||
/** Operation was attempted past the valid range. */ | ||
SpanStatus["OutOfRange"] = "out_of_range"; | ||
/** Unrecoverable data loss or corruption */ | ||
SpanStatus["DataLoss"] = "data_loss"; | ||
})(SpanStatus || (SpanStatus = {})); | ||
// tslint:disable:no-unnecessary-qualifier no-namespace | ||
(function (SpanStatus) { | ||
/** | ||
* Converts a HTTP status code into a {@link SpanStatus}. | ||
* | ||
* @param httpStatus The HTTP response status code. | ||
* @returns The span status or {@link SpanStatus.UnknownError}. | ||
*/ | ||
// tslint:disable-next-line:completed-docs | ||
function fromHttpCode(httpStatus) { | ||
if (httpStatus < 400) { | ||
return SpanStatus.Ok; | ||
} | ||
if (httpStatus >= 400 && httpStatus < 500) { | ||
switch (httpStatus) { | ||
case 401: | ||
return SpanStatus.Unauthenticated; | ||
case 403: | ||
return SpanStatus.PermissionDenied; | ||
case 404: | ||
return SpanStatus.NotFound; | ||
case 409: | ||
return SpanStatus.AlreadyExists; | ||
case 413: | ||
return SpanStatus.FailedPrecondition; | ||
case 429: | ||
return SpanStatus.ResourceExhausted; | ||
default: | ||
return SpanStatus.InvalidArgument; | ||
} | ||
} | ||
if (httpStatus >= 500 && httpStatus < 600) { | ||
switch (httpStatus) { | ||
case 501: | ||
return SpanStatus.Unimplemented; | ||
case 503: | ||
return SpanStatus.Unavailable; | ||
case 504: | ||
return SpanStatus.DealineExceeded; | ||
default: | ||
return SpanStatus.InternalError; | ||
} | ||
} | ||
return SpanStatus.UnknownError; | ||
} | ||
SpanStatus.fromHttpCode = fromHttpCode; | ||
})(SpanStatus || (SpanStatus = {})); | ||
/** The status of an event. */ | ||
@@ -274,3 +360,3 @@ var Status; | ||
// tslint:disable:strict-type-predicates | ||
return (Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]"); | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
@@ -286,5 +372,5 @@ var fallbackGlobalObject = {}; | ||
? global | ||
: typeof window !== "undefined" | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== "undefined" | ||
: typeof self !== 'undefined' | ||
? self | ||
@@ -296,4 +382,4 @@ : fallbackGlobalObject); | ||
var global = getGlobalObject(); | ||
var levels = ["debug", "info", "warn", "error", "log", "assert"]; | ||
if (!("console" in global)) { | ||
var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert']; | ||
if (!('console' in global)) { | ||
return callback(); | ||
@@ -305,4 +391,3 @@ } | ||
levels.forEach(function (level) { | ||
if (level in global.console && | ||
originalConsole[level].__sentry__) { | ||
if (level in global.console && originalConsole[level].__sentry__) { | ||
wrappedLevels[level] = originalConsole[level].__sentry_wrapped__; | ||
@@ -338,3 +423,3 @@ originalConsole[level] = originalConsole[level].__sentry_original__; | ||
var len = 0; | ||
var separator = " > "; | ||
var separator = ' > '; | ||
var sepLength = separator.length; | ||
@@ -348,5 +433,3 @@ var nextStr = void 0; | ||
// (ignore this limit if we are on the first iteration) | ||
if (nextStr === "html" || | ||
(height > 1 && | ||
len + out.length * sepLength + nextStr.length >= MAX_OUTPUT_LEN)) { | ||
if (nextStr === 'html' || (height > 1 && len + out.length * sepLength + nextStr.length >= MAX_OUTPUT_LEN)) { | ||
break; | ||
@@ -361,3 +444,3 @@ } | ||
catch (_oO) { | ||
return "<unknown>"; | ||
return '<unknown>'; | ||
} | ||
@@ -379,3 +462,3 @@ } | ||
if (!elem || !elem.tagName) { | ||
return ""; | ||
return ''; | ||
} | ||
@@ -393,3 +476,3 @@ out.push(elem.tagName.toLowerCase()); | ||
} | ||
var attrWhitelist = ["type", "name", "title", "alt"]; | ||
var attrWhitelist = ['type', 'name', 'title', 'alt']; | ||
for (i = 0; i < attrWhitelist.length; i++) { | ||
@@ -402,4 +485,21 @@ key = attrWhitelist[i]; | ||
} | ||
return out.join(""); | ||
return out.join(''); | ||
} | ||
var defaultFunctionName = '<anonymous>'; | ||
/** | ||
* Safely extract function name from itself | ||
*/ | ||
function getFunctionName(fn) { | ||
try { | ||
if (!fn || typeof fn !== 'function') { | ||
return defaultFunctionName; | ||
} | ||
return fn.name || defaultFunctionName; | ||
} | ||
catch (e) { | ||
// Just accessing custom props in some Selenium environments | ||
// can cause a "Permission denied" exception (see raven-js#495). | ||
return defaultFunctionName; | ||
} | ||
} | ||
@@ -696,3 +796,3 @@ // TODO: Implement different loggers for different environments | ||
if (typeof value === 'function') { | ||
return "[Function: " + (value.name || '<unknown-function-name>') + "]"; | ||
return "[Function: " + getFunctionName(value) + "]"; | ||
} | ||
@@ -784,3 +884,6 @@ return value; | ||
/* tslint:disable:only-arrow-functions no-unsafe-any */ | ||
var global$2 = getGlobalObject(); | ||
var global$3 = getGlobalObject(); | ||
/** Send Console API calls as Sentry Events */ | ||
@@ -809,10 +912,10 @@ var CaptureConsole = /** @class */ (function () { | ||
CaptureConsole.prototype.setupOnce = function (_, getCurrentHub) { | ||
if (!('console' in global$2)) { | ||
if (!('console' in global$3)) { | ||
return; | ||
} | ||
this._levels.forEach(function (level) { | ||
if (!(level in global$2.console)) { | ||
if (!(level in global$3.console)) { | ||
return; | ||
} | ||
fill(global$2.console, level, function (originalConsoleLevel) { return function () { | ||
fill(global$3.console, level, function (originalConsoleLevel) { return function () { | ||
var args = []; | ||
@@ -846,3 +949,3 @@ for (var _i = 0; _i < arguments.length; _i++) { | ||
if (originalConsoleLevel) { | ||
Function.prototype.apply.call(originalConsoleLevel, global$2.console, args); | ||
Function.prototype.apply.call(originalConsoleLevel, global$3.console, args); | ||
} | ||
@@ -849,0 +952,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=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); | ||
!function(e){var n,t,r,o,i={};Object.defineProperty(i,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Debug=2]="Debug",e[e.Verbose=3]="Verbose"}(n||(n={})),function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(t||(t={})),function(e){e.fromString=function(n){switch(n){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(t||(t={})),function(e){e.Ok="ok",e.DealineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(r||(r={})),function(e){e.fromHttpCode=function(n){if(n<400)return e.Ok;if(n>=400&&n<500)switch(n){case 401:return e.Unauthenticated;case 403:return e.PermissionDenied;case 404:return e.NotFound;case 409:return e.AlreadyExists;case 413:return e.FailedPrecondition;case 429:return e.ResourceExhausted;default:return e.InvalidArgument}if(n>=500&&n<600)switch(n){case 501:return e.Unimplemented;case 503:return e.Unavailable;case 504:return e.DealineExceeded;default:return e.InternalError}return e.UnknownError}}(r||(r={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(o||(o={})),function(e){e.fromHttpCode=function(n){return n>=200&&n<300?e.Success:429===n?e.RateLimit:n>=400&&n<500?e.Invalid:n>=500?e.Failed:e.Unknown}}(o||(o={}));var a=function(e,n){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};var c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,n){return e.__proto__=n,e}:function(e,n){for(var t in n)e.hasOwnProperty(t)||(e[t]=n[t]);return e});!function(e){function n(n){var t=this.constructor,r=e.call(this,n)||this;return r.message=n,r.name=t.prototype.constructor.name,c(r,t.prototype),r}(function(e,n){function t(){this.constructor=e}a(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)})(n,e)}(Error);function u(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function s(e){return"undefined"!=typeof Element&&e instanceof Element}function l(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}var f={};function p(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function d(e){var n=p();if(!("console"in n))return e();var t=n.console,r={};["debug","info","warn","error","log","assert"].forEach(function(e){e in n.console&&t[e].__sentry__&&(r[e]=t[e].__sentry_wrapped__,t[e]=t[e].__sentry_original__)});var o=e();return Object.keys(r).forEach(function(e){t[e]=r[e]}),o}function _(e){try{for(var n=e,t=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=y(n))||r>1&&o+t.length*i+a.length>=80);)t.push(a),o+=a.length,n=n.parentNode;return t.reverse().join(" > ")}catch(e){return"<unknown>"}}function y(e){var n,t,r,o,i,a,c=e,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(t=n.split(/\s+/),i=0;i<t.length;i++)u.push("."+t[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="<anonymous>";var h=p(),v="Sentry Logger ",b=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._enabled&&d(function(){h.console.log(v+"[Log]: "+e.join(" "))})},e.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._enabled&&d(function(){h.console.warn(v+"[Warn]: "+e.join(" "))})},e.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._enabled&&d(function(){h.console.error(v+"[Error]: "+e.join(" "))})},e}();h.__SENTRY__=h.__SENTRY__||{};h.__SENTRY__.logger||(h.__SENTRY__.logger=new b);var m,E=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var n=0;n<this._inner.length;n++){if(this._inner[n]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===e){this._inner.splice(n,1);break}},e}();function w(e,n){if(!Array.isArray(e))return"";for(var t=[],r=0;r<e.length;r++){var o=e[r];try{t.push(String(o))}catch(e){t.push("[value cannot be serialized]")}}return t.join(n)}function O(e){if(function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}(e)){var n=e,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}if(a=e,"undefined"!=typeof Event&&a instanceof Event){var o=e,i={};i.type=o.type;try{i.target=s(o.target)?_(o.target):Object.prototype.toString.call(o.target)}catch(e){i.target="<unknown>"}try{i.currentTarget=s(o.currentTarget)?_(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){i.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&e instanceof CustomEvent&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o);return i}var a;return e}function S(e,n){return"domain"===n&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":l(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+function(e){try{return e&&"function"==typeof e&&e.name||g}catch(e){return g}}(e)+"]":e}function j(e,n,t,r){if(void 0===t&&(t=1/0),void 0===r&&(r=new E),0===t)return function(e){var n=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var t=S(e);return u(t)?t:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=S(n,e);if(u(o))return o;var i=O(n),a=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a[c]=j(c,i[c],t-1,r));return r.unmemoize(n),a}function k(e,n){try{return JSON.parse(JSON.stringify(e,function(e,t){return j(e,t,n)}))}catch(e){return"**non-serializable**"}}!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(m||(m={}));p();var N=p(),D=function(){function e(n){void 0===n&&(n={}),this.name=e.id,this._levels=["log","info","warn","error","debug","assert"],n.levels&&(this._levels=n.levels)}return e.prototype.setupOnce=function(n,r){"console"in N&&this._levels.forEach(function(n){n in N.console&&function(e,n,t){if(n in e){var r=e[n],o=t(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(e){}e[n]=o}}(N.console,n,function(o){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var c=r();c.getIntegration(e)&&c.withScope(function(e){e.setLevel(t.fromString(n)),e.setExtra("arguments",k(i,3)),e.addEventProcessor(function(e){return e.logger="console",e});var r=w(i," ");"assert"===n?!1===i[0]&&(r="Assertion failed: "+(w(i.slice(1)," ")||"console.assert"),e.setExtra("arguments",k(i.slice(1),3)),c.captureMessage(r)):c.captureMessage(r)}),o&&Function.prototype.apply.call(o,N.console,i)}})})},e.id="CaptureConsole",e}();for(var P in i.CaptureConsole=D,e.Sentry=e.Sentry||{},e.Sentry.Integrations=e.Sentry.Integrations||{},i)Object.prototype.hasOwnProperty.call(i,P)&&(e.Sentry.Integrations[P]=i[P])}(window); | ||
//# sourceMappingURL=captureconsole.min.js.map |
@@ -103,3 +103,3 @@ (function (__window) { | ||
// tslint:disable:strict-type-predicates | ||
return (Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]"); | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
@@ -115,5 +115,5 @@ var fallbackGlobalObject = {}; | ||
? global | ||
: typeof window !== "undefined" | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== "undefined" | ||
: typeof self !== 'undefined' | ||
? self | ||
@@ -125,4 +125,4 @@ : fallbackGlobalObject); | ||
var global = getGlobalObject(); | ||
var levels = ["debug", "info", "warn", "error", "log", "assert"]; | ||
if (!("console" in global)) { | ||
var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert']; | ||
if (!('console' in global)) { | ||
return callback(); | ||
@@ -134,4 +134,3 @@ } | ||
levels.forEach(function (level) { | ||
if (level in global.console && | ||
originalConsole[level].__sentry__) { | ||
if (level in global.console && originalConsole[level].__sentry__) { | ||
wrappedLevels[level] = originalConsole[level].__sentry_wrapped__; | ||
@@ -228,2 +227,5 @@ originalConsole[level] = originalConsole[level].__sentry_original__; | ||
/* tslint:disable:only-arrow-functions no-unsafe-any */ | ||
var global$2 = getGlobalObject(); | ||
/** JSDoc */ | ||
@@ -230,0 +232,0 @@ var Debug = /** @class */ (function () { |
@@ -1,2 +0,2 @@ | ||
!function(n){var o={};Object.defineProperty(o,"__esModule",{value:!0});var t=function(n,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var t in o)o.hasOwnProperty(t)&&(n[t]=o[t])})(n,o)};var r=function(){return(r=Object.assign||function(n){for(var o,t=1,r=arguments.length;t<r;t++)for(var e in o=arguments[t])Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e]);return n}).apply(this,arguments)},e=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,o){return n.__proto__=o,n}:function(n,o){for(var t in o)n.hasOwnProperty(t)||(n[t]=o[t]);return n});!function(n){function o(o){var t=this.constructor,r=n.call(this,o)||this;return r.message=o,r.name=t.prototype.constructor.name,e(r,t.prototype),r}(function(n,o){function r(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)})(o,n)}(Error);var i={};function c(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function s(n){var o=c();if(!("console"in o))return n();var t=o.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in o.console&&t[n].__sentry__&&(r[n]=t[n].__sentry_wrapped__,t[n]=t[n].__sentry_original__)});var e=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),e}var a=c(),f="Sentry Logger ",u=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];this._enabled&&s(function(){a.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];this._enabled&&s(function(){a.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];this._enabled&&s(function(){a.console.error(f+"[Error]: "+n.join(" "))})},n}();a.__SENTRY__=a.__SENTRY__||{};var _;a.__SENTRY__.logger||(a.__SENTRY__.logger=new u);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));var l=function(){function n(o){this.name=n.id,this._options=r({debugger:!1,stringify:!1},o)}return n.prototype.setupOnce=function(o,t){o(function(o,r){var e=t().getIntegration(n);return e&&(e._options.debugger,s(function(){e._options.stringify?(console.log(JSON.stringify(o,null,2)),r&&console.log(JSON.stringify(r,null,2))):(console.log(o),r&&console.log(r))})),o})},n.id="Debug",n}();for(var p in o.Debug=l,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},o)Object.prototype.hasOwnProperty.call(o,p)&&(n.Sentry.Integrations[p]=o[p])}(window); | ||
!function(n){var o={};Object.defineProperty(o,"__esModule",{value:!0});var t=function(n,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var t in o)o.hasOwnProperty(t)&&(n[t]=o[t])})(n,o)};var r=function(){return(r=Object.assign||function(n){for(var o,t=1,r=arguments.length;t<r;t++)for(var e in o=arguments[t])Object.prototype.hasOwnProperty.call(o,e)&&(n[e]=o[e]);return n}).apply(this,arguments)},e=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,o){return n.__proto__=o,n}:function(n,o){for(var t in o)n.hasOwnProperty(t)||(n[t]=o[t]);return n});!function(n){function o(o){var t=this.constructor,r=n.call(this,o)||this;return r.message=o,r.name=t.prototype.constructor.name,e(r,t.prototype),r}(function(n,o){function r(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)})(o,n)}(Error);var i={};function c(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function s(n){var o=c();if(!("console"in o))return n();var t=o.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in o.console&&t[n].__sentry__&&(r[n]=t[n].__sentry_wrapped__,t[n]=t[n].__sentry_original__)});var e=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),e}var a=c(),f="Sentry Logger ",u=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];this._enabled&&s(function(){a.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];this._enabled&&s(function(){a.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];this._enabled&&s(function(){a.console.error(f+"[Error]: "+n.join(" "))})},n}();a.__SENTRY__=a.__SENTRY__||{};var _;a.__SENTRY__.logger||(a.__SENTRY__.logger=new u);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));c();var l=function(){function n(o){this.name=n.id,this._options=r({debugger:!1,stringify:!1},o)}return n.prototype.setupOnce=function(o,t){o(function(o,r){var e=t().getIntegration(n);return e&&(e._options.debugger,s(function(){e._options.stringify?(console.log(JSON.stringify(o,null,2)),r&&console.log(JSON.stringify(r,null,2))):(console.log(o),r&&console.log(r))})),o})},n.id="Debug",n}();for(var p in o.Debug=l,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},o)Object.prototype.hasOwnProperty.call(o,p)&&(n.Sentry.Integrations[p]=o[p])}(window); | ||
//# sourceMappingURL=debug.min.js.map |
@@ -92,3 +92,3 @@ (function (__window) { | ||
// tslint:disable:strict-type-predicates | ||
return (Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]"); | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
@@ -104,5 +104,5 @@ var fallbackGlobalObject = {}; | ||
? global | ||
: typeof window !== "undefined" | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== "undefined" | ||
: typeof self !== 'undefined' | ||
? self | ||
@@ -114,4 +114,4 @@ : fallbackGlobalObject); | ||
var global = getGlobalObject(); | ||
var levels = ["debug", "info", "warn", "error", "log", "assert"]; | ||
if (!("console" in global)) { | ||
var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert']; | ||
if (!('console' in global)) { | ||
return callback(); | ||
@@ -123,4 +123,3 @@ } | ||
levels.forEach(function (level) { | ||
if (level in global.console && | ||
originalConsole[level].__sentry__) { | ||
if (level in global.console && originalConsole[level].__sentry__) { | ||
wrappedLevels[level] = originalConsole[level].__sentry_wrapped__; | ||
@@ -217,2 +216,5 @@ originalConsole[level] = originalConsole[level].__sentry_original__; | ||
/* tslint:disable:only-arrow-functions no-unsafe-any */ | ||
var global$2 = getGlobalObject(); | ||
/** JSDoc */ | ||
@@ -219,0 +221,0 @@ var Ember = /** @class */ (function () { |
@@ -1,2 +0,2 @@ | ||
!function(n){var e={};Object.defineProperty(e,"__esModule",{value:!0});var r=function(n,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r])})(n,e)};var t=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,e){return n.__proto__=e,n}:function(n,e){for(var r in e)n.hasOwnProperty(r)||(n[r]=e[r]);return n});!function(n){function e(e){var r=this.constructor,o=n.call(this,e)||this;return o.message=e,o.name=r.prototype.constructor.name,t(o,r.prototype),o}(function(n,e){function t(){this.constructor=n}r(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,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 c(n){var e=i();if(!("console"in e))return n();var r=e.console,t={};["debug","info","warn","error","log","assert"].forEach(function(n){n in e.console&&r[n].__sentry__&&(t[n]=r[n].__sentry_wrapped__,r[n]=r[n].__sentry_original__)});var o=n();return Object.keys(t).forEach(function(n){r[n]=t[n]}),o}var a=i(),s="Sentry Logger ",_=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&c(function(){a.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&c(function(){a.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&c(function(){a.console.error(s+"[Error]: "+n.join(" "))})},n}();a.__SENTRY__=a.__SENTRY__||{};var f,u=a.__SENTRY__.logger||(a.__SENTRY__.logger=new _);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(f||(f={}));var p=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._Ember=e.Ember||i().Ember}return n.prototype.setupOnce=function(e,r){var t=this;if(this._Ember){var o=this._Ember.onerror;this._Ember.onerror=function(e){if(r().getIntegration(n)&&r().captureException(e,{originalException:e}),"function"==typeof o)o.call(t._Ember,e);else if(t._Ember.testing)throw e},this._Ember.RSVP.on("error",function(e){r().getIntegration(n)&&r().withScope(function(n){e instanceof Error?(n.setExtra("context","Unhandled Promise error detected"),r().captureException(e,{originalException:e})):(n.setExtra("reason",e),r().captureMessage("Unhandled Promise error detected"))})})}else u.error("EmberIntegration is missing an Ember instance")},n.id="Ember",n}();for(var l in e.Ember=p,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},e)Object.prototype.hasOwnProperty.call(e,l)&&(n.Sentry.Integrations[l]=e[l])}(window); | ||
!function(n){var e={};Object.defineProperty(e,"__esModule",{value:!0});var r=function(n,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r])})(n,e)};var t=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,e){return n.__proto__=e,n}:function(n,e){for(var r in e)n.hasOwnProperty(r)||(n[r]=e[r]);return n});!function(n){function e(e){var r=this.constructor,o=n.call(this,e)||this;return o.message=e,o.name=r.prototype.constructor.name,t(o,r.prototype),o}(function(n,e){function t(){this.constructor=n}r(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,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 c(n){var e=i();if(!("console"in e))return n();var r=e.console,t={};["debug","info","warn","error","log","assert"].forEach(function(n){n in e.console&&r[n].__sentry__&&(t[n]=r[n].__sentry_wrapped__,r[n]=r[n].__sentry_original__)});var o=n();return Object.keys(t).forEach(function(n){r[n]=t[n]}),o}var a=i(),s="Sentry Logger ",_=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&c(function(){a.console.log(s+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&c(function(){a.console.warn(s+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&c(function(){a.console.error(s+"[Error]: "+n.join(" "))})},n}();a.__SENTRY__=a.__SENTRY__||{};var f,u=a.__SENTRY__.logger||(a.__SENTRY__.logger=new _);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(f||(f={}));i();var p=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._Ember=e.Ember||i().Ember}return n.prototype.setupOnce=function(e,r){var t=this;if(this._Ember){var o=this._Ember.onerror;this._Ember.onerror=function(e){if(r().getIntegration(n)&&r().captureException(e,{originalException:e}),"function"==typeof o)o.call(t._Ember,e);else if(t._Ember.testing)throw e},this._Ember.RSVP.on("error",function(e){r().getIntegration(n)&&r().withScope(function(n){e instanceof Error?(n.setExtra("context","Unhandled Promise error detected"),r().captureException(e,{originalException:e})):(n.setExtra("reason",e),r().captureMessage("Unhandled Promise error detected"))})})}else u.error("EmberIntegration is missing an Ember instance")},n.id="Ember",n}();for(var l in e.Ember=p,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},e)Object.prototype.hasOwnProperty.call(e,l)&&(n.Sentry.Integrations[l]=e[l])}(window); | ||
//# sourceMappingURL=ember.min.js.map |
@@ -189,3 +189,3 @@ (function (__window) { | ||
// tslint:disable:strict-type-predicates | ||
return (Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]"); | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
@@ -201,5 +201,5 @@ var fallbackGlobalObject = {}; | ||
? global | ||
: typeof window !== "undefined" | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== "undefined" | ||
: typeof self !== 'undefined' | ||
? self | ||
@@ -211,4 +211,4 @@ : fallbackGlobalObject); | ||
var global = getGlobalObject(); | ||
var levels = ["debug", "info", "warn", "error", "log", "assert"]; | ||
if (!("console" in global)) { | ||
var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert']; | ||
if (!('console' in global)) { | ||
return callback(); | ||
@@ -220,4 +220,3 @@ } | ||
levels.forEach(function (level) { | ||
if (level in global.console && | ||
originalConsole[level].__sentry__) { | ||
if (level in global.console && originalConsole[level].__sentry__) { | ||
wrappedLevels[level] = originalConsole[level].__sentry_wrapped__; | ||
@@ -253,3 +252,3 @@ originalConsole[level] = originalConsole[level].__sentry_original__; | ||
var len = 0; | ||
var separator = " > "; | ||
var separator = ' > '; | ||
var sepLength = separator.length; | ||
@@ -263,5 +262,3 @@ var nextStr = void 0; | ||
// (ignore this limit if we are on the first iteration) | ||
if (nextStr === "html" || | ||
(height > 1 && | ||
len + out.length * sepLength + nextStr.length >= MAX_OUTPUT_LEN)) { | ||
if (nextStr === 'html' || (height > 1 && len + out.length * sepLength + nextStr.length >= MAX_OUTPUT_LEN)) { | ||
break; | ||
@@ -276,3 +273,3 @@ } | ||
catch (_oO) { | ||
return "<unknown>"; | ||
return '<unknown>'; | ||
} | ||
@@ -294,3 +291,3 @@ } | ||
if (!elem || !elem.tagName) { | ||
return ""; | ||
return ''; | ||
} | ||
@@ -308,3 +305,3 @@ out.push(elem.tagName.toLowerCase()); | ||
} | ||
var attrWhitelist = ["type", "name", "title", "alt"]; | ||
var attrWhitelist = ['type', 'name', 'title', 'alt']; | ||
for (i = 0; i < attrWhitelist.length; i++) { | ||
@@ -317,4 +314,21 @@ key = attrWhitelist[i]; | ||
} | ||
return out.join(""); | ||
return out.join(''); | ||
} | ||
var defaultFunctionName = '<anonymous>'; | ||
/** | ||
* Safely extract function name from itself | ||
*/ | ||
function getFunctionName(fn) { | ||
try { | ||
if (!fn || typeof fn !== 'function') { | ||
return defaultFunctionName; | ||
} | ||
return fn.name || defaultFunctionName; | ||
} | ||
catch (e) { | ||
// Just accessing custom props in some Selenium environments | ||
// can cause a "Permission denied" exception (see raven-js#495). | ||
return defaultFunctionName; | ||
} | ||
} | ||
@@ -545,3 +559,3 @@ // TODO: Implement different loggers for different environments | ||
if (typeof value === 'function') { | ||
return "[Function: " + (value.name || '<unknown-function-name>') + "]"; | ||
return "[Function: " + getFunctionName(value) + "]"; | ||
} | ||
@@ -633,2 +647,5 @@ return value; | ||
/* tslint:disable:only-arrow-functions no-unsafe-any */ | ||
var global$2 = getGlobalObject(); | ||
/** Patch toString calls to return proper name for wrapped functions */ | ||
@@ -635,0 +652,0 @@ var ExtraErrorData = /** @class */ (function () { |
@@ -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=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); | ||
!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 p(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 l(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="<anonymous>";var _=s(),g="Sentry Logger ",v=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&&p(function(){_.console.log(g+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&p(function(){_.console.warn(g+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&p(function(){_.console.error(g+"[Error]: "+t.join(" "))})},t}();_.__SENTRY__=_.__SENTRY__||{};var d,b=_.__SENTRY__.logger||(_.__SENTRY__.logger=new v),m=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 E(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)?l(o.target):Object.prototype.toString.call(o.target)}catch(t){a.target="<unknown>"}try{a.currentTarget=u(o.currentTarget)?l(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 O(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: "+function(t){try{return t&&"function"==typeof t&&t.name||h}catch(t){return h}}(t)+"]":t;var e}function j(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new m),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=O(t);return a(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=O(n,t);if(a(o))return o;var i=E(n),c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(c[u]=j(u,i[u],e-1,r));return r.unmemoize(n),c}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(d||(d={}));s();var S=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 j(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,p=t[s];i(p)&&(p=p.toString()),c[s]=p}}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){b.error("Unable to extract extra data from the Error object:",t)}return r},t.id="ExtraErrorData",t}();for(var w in n.ExtraErrorData=S,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 |
@@ -103,3 +103,3 @@ (function (__window) { | ||
// tslint:disable:strict-type-predicates | ||
return (Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]"); | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
@@ -115,5 +115,5 @@ var fallbackGlobalObject = {}; | ||
? global | ||
: typeof window !== "undefined" | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== "undefined" | ||
: typeof self !== 'undefined' | ||
? self | ||
@@ -125,4 +125,4 @@ : fallbackGlobalObject); | ||
var global = getGlobalObject(); | ||
var levels = ["debug", "info", "warn", "error", "log", "assert"]; | ||
if (!("console" in global)) { | ||
var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert']; | ||
if (!('console' in global)) { | ||
return callback(); | ||
@@ -134,4 +134,3 @@ } | ||
levels.forEach(function (level) { | ||
if (level in global.console && | ||
originalConsole[level].__sentry__) { | ||
if (level in global.console && originalConsole[level].__sentry__) { | ||
wrappedLevels[level] = originalConsole[level].__sentry_wrapped__; | ||
@@ -239,2 +238,5 @@ originalConsole[level] = originalConsole[level].__sentry_original__; | ||
/* tslint:disable:only-arrow-functions no-unsafe-any */ | ||
var global$2 = getGlobalObject(); | ||
/** JSDoc */ | ||
@@ -241,0 +243,0 @@ var ReportTypes; |
@@ -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=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,o=t.call(this,n)||this;return o.message=n,o.name=e.prototype.constructor.name,r(o,e.prototype),o}(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);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 n=i();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}var s=i(),c="Sentry Logger ",u=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&&a(function(){s.console.log(c+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&a(function(){s.console.warn(c+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&a(function(){s.console.error(c+"[Error]: "+t.join(" "))})},t}();s.__SENTRY__=s.__SENTRY__||{};var f,p;s.__SENTRY__.logger||(s.__SENTRY__.logger=new u);!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(f||(f={})),function(t){t.Crash="crash",t.Deprecation="deprecation",t.Intervention="intervention"}(p||(p={}));var _=function(){function t(n){void 0===n&&(n={types:[p.Crash,p.Deprecation,p.Intervention]}),this._options=n,this.name=t.id}return t.prototype.setupOnce=function(t,n){"ReportingObserver"in i()&&(this._getCurrentHub=n,new(i().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this._options.types}).observe())},t.prototype.handler=function(n){var e,r,o=this._getCurrentHub&&this._getCurrentHub();if(o&&o.getIntegration(t)){var i=function(t){o.withScope(function(n){n.setExtra("url",t.url);var e="ReportingObserver ["+t.type+"]",r="No details available";if(t.body){var i,a={};for(var s in t.body)a[s]=t.body[s];if(n.setExtra("body",a),t.type===p.Crash)r=[(i=t.body).crashId||"",i.reason||""].join(" ").trim()||r;else r=(i=t.body).message||r}o.captureMessage(e+": "+r)})};try{for(var a=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}}}}(n),s=a.next();!s.done;s=a.next()){i(s.value)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}},t.id="ReportingObserver",t}();for(var l in n.ReportingObserver=_,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,l)&&(t.Sentry.Integrations[l]=n[l])}(window); | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,n)};var e=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var r in n)t.hasOwnProperty(r)||(t[r]=n[r]);return t});!function(t){function n(n){var r=this.constructor,o=t.call(this,n)||this;return o.message=n,o.name=r.prototype.constructor.name,e(o,r.prototype),o}(function(t,n){function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)})(n,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 n=i();if(!("console"in n))return t();var r=n.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&r[t].__sentry__&&(e[t]=r[t].__sentry_wrapped__,r[t]=r[t].__sentry_original__)});var o=t();return Object.keys(e).forEach(function(t){r[t]=e[t]}),o}var s=i(),c="Sentry Logger ",u=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&&a(function(){s.console.log(c+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&a(function(){s.console.warn(c+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&a(function(){s.console.error(c+"[Error]: "+t.join(" "))})},t}();s.__SENTRY__=s.__SENTRY__||{};var f;s.__SENTRY__.logger||(s.__SENTRY__.logger=new u);!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(f||(f={}));var p;i();!function(t){t.Crash="crash",t.Deprecation="deprecation",t.Intervention="intervention"}(p||(p={}));var _=function(){function t(n){void 0===n&&(n={types:[p.Crash,p.Deprecation,p.Intervention]}),this._options=n,this.name=t.id}return t.prototype.setupOnce=function(t,n){"ReportingObserver"in i()&&(this._getCurrentHub=n,new(i().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this._options.types}).observe())},t.prototype.handler=function(n){var r,e,o=this._getCurrentHub&&this._getCurrentHub();if(o&&o.getIntegration(t)){var i=function(t){o.withScope(function(n){n.setExtra("url",t.url);var r="ReportingObserver ["+t.type+"]",e="No details available";if(t.body){var i,a={};for(var s in t.body)a[s]=t.body[s];if(n.setExtra("body",a),t.type===p.Crash)e=[(i=t.body).crashId||"",i.reason||""].join(" ").trim()||e;else e=(i=t.body).message||e}o.captureMessage(r+": "+e)})};try{for(var a=function(t){var n="function"==typeof Symbol&&t[Symbol.iterator],r=0;return n?n.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}(n),s=a.next();!s.done;s=a.next()){i(s.value)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(r)throw r.error}}}},t.id="ReportingObserver",t}();for(var l in n.ReportingObserver=_,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,l)&&(t.Sentry.Integrations[l]=n[l])}(window); | ||
//# sourceMappingURL=reportingobserver.min.js.map |
@@ -92,3 +92,3 @@ (function (__window) { | ||
// tslint:disable:strict-type-predicates | ||
return (Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]"); | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
@@ -104,5 +104,5 @@ var fallbackGlobalObject = {}; | ||
? global | ||
: typeof window !== "undefined" | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== "undefined" | ||
: typeof self !== 'undefined' | ||
? self | ||
@@ -114,4 +114,4 @@ : fallbackGlobalObject); | ||
var global = getGlobalObject(); | ||
var levels = ["debug", "info", "warn", "error", "log", "assert"]; | ||
if (!("console" in global)) { | ||
var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert']; | ||
if (!('console' in global)) { | ||
return callback(); | ||
@@ -123,4 +123,3 @@ } | ||
levels.forEach(function (level) { | ||
if (level in global.console && | ||
originalConsole[level].__sentry__) { | ||
if (level in global.console && originalConsole[level].__sentry__) { | ||
wrappedLevels[level] = originalConsole[level].__sentry_wrapped__; | ||
@@ -328,2 +327,5 @@ originalConsole[level] = originalConsole[level].__sentry_original__; | ||
/* tslint:disable:only-arrow-functions no-unsafe-any */ | ||
var global$2 = getGlobalObject(); | ||
/** Rewrite event frames paths */ | ||
@@ -330,0 +332,0 @@ var RewriteFrames = /** @class */ (function () { |
@@ -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&&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); | ||
!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={}));i();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 |
@@ -102,3 +102,3 @@ (function (__window) { | ||
// tslint:disable:strict-type-predicates | ||
return (Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]"); | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
@@ -114,5 +114,5 @@ var fallbackGlobalObject = {}; | ||
? global | ||
: typeof window !== "undefined" | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== "undefined" | ||
: typeof self !== 'undefined' | ||
? self | ||
@@ -124,4 +124,4 @@ : fallbackGlobalObject); | ||
var global = getGlobalObject(); | ||
var levels = ["debug", "info", "warn", "error", "log", "assert"]; | ||
if (!("console" in global)) { | ||
var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert']; | ||
if (!('console' in global)) { | ||
return callback(); | ||
@@ -133,4 +133,3 @@ } | ||
levels.forEach(function (level) { | ||
if (level in global.console && | ||
originalConsole[level].__sentry__) { | ||
if (level in global.console && originalConsole[level].__sentry__) { | ||
wrappedLevels[level] = originalConsole[level].__sentry_wrapped__; | ||
@@ -227,2 +226,5 @@ originalConsole[level] = originalConsole[level].__sentry_original__; | ||
/* tslint:disable:only-arrow-functions no-unsafe-any */ | ||
var global$2 = getGlobalObject(); | ||
/** JSDoc */ | ||
@@ -229,0 +231,0 @@ var Vue = /** @class */ (function () { |
@@ -1,2 +0,2 @@ | ||
!function(o){var t={};Object.defineProperty(t,"__esModule",{value:!0});var n=function(o,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n])})(o,t)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(o,t){return o.__proto__=t,o}:function(o,t){for(var n in t)o.hasOwnProperty(n)||(o[n]=t[n]);return o});!function(o){function t(t){var n=this.constructor,e=o.call(this,t)||this;return e.message=t,e.name=n.prototype.constructor.name,r(e,n.prototype),e}(function(o,t){function r(){this.constructor=o}n(o,t),o.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,o)}(Error);var e={};function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e}function a(o){var t=i();if(!("console"in t))return o();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(o){o in t.console&&n[o].__sentry__&&(r[o]=n[o].__sentry_wrapped__,n[o]=n[o].__sentry_original__)});var e=o();return Object.keys(r).forEach(function(o){n[o]=r[o]}),e}var c=i(),s="Sentry Logger ",_=function(){function o(){this._enabled=!1}return o.prototype.disable=function(){this._enabled=!1},o.prototype.enable=function(){this._enabled=!0},o.prototype.log=function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];this._enabled&&a(function(){c.console.log(s+"[Log]: "+o.join(" "))})},o.prototype.warn=function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];this._enabled&&a(function(){c.console.warn(s+"[Warn]: "+o.join(" "))})},o.prototype.error=function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];this._enabled&&a(function(){c.console.error(s+"[Error]: "+o.join(" "))})},o}();c.__SENTRY__=c.__SENTRY__||{};var u,p=c.__SENTRY__.logger||(c.__SENTRY__.logger=new _);!function(o){o.PENDING="PENDING",o.RESOLVED="RESOLVED",o.REJECTED="REJECTED"}(u||(u={}));var f=function(){function o(t){void 0===t&&(t={}),this.name=o.id,this._attachProps=!0,this._logErrors=!1,this._Vue=t.Vue||i().Vue,void 0!==t.logErrors&&(this._logErrors=t.logErrors),!1===t.attachProps&&(this._attachProps=!1)}return o.prototype._formatComponentName=function(o){if(o.$root===o)return"root instance";var t=o._isVue?o.$options.name||o.$options._componentTag:o.name;return(t?"component <"+t+">":"anonymous component")+(o._isVue&&o.$options.__file?" at "+o.$options.__file:"")},o.prototype.setupOnce=function(t,n){var r=this;if(this._Vue&&this._Vue.config){var e=this._Vue.config.errorHandler;this._Vue.config.errorHandler=function(t,i,a){var c,s={};c=i,"[object Object]"===Object.prototype.toString.call(c)&&(s.componentName=r._formatComponentName(i),r._attachProps&&(s.propsData=i.$options.propsData)),void 0!==a&&(s.lifecycleHook=a),n().getIntegration(o)&&setTimeout(function(){n().withScope(function(o){o.setContext("vue",s),n().captureException(t)})}),"function"==typeof e&&e.call(r._Vue,t,i,a),r._logErrors&&(r._Vue.util.warn("Error in "+a+': "'+t.toString()+'"',i),console.error(t))}}else p.error("VueIntegration is missing a Vue instance")},o.id="Vue",o}();for(var l in t.Vue=f,o.Sentry=o.Sentry||{},o.Sentry.Integrations=o.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,l)&&(o.Sentry.Integrations[l]=t[l])}(window); | ||
!function(o){var t={};Object.defineProperty(t,"__esModule",{value:!0});var n=function(o,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n])})(o,t)};var r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(o,t){return o.__proto__=t,o}:function(o,t){for(var n in t)o.hasOwnProperty(n)||(o[n]=t[n]);return o});!function(o){function t(t){var n=this.constructor,e=o.call(this,t)||this;return e.message=t,e.name=n.prototype.constructor.name,r(e,n.prototype),e}(function(o,t){function r(){this.constructor=o}n(o,t),o.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,o)}(Error);var e={};function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e}function a(o){var t=i();if(!("console"in t))return o();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(o){o in t.console&&n[o].__sentry__&&(r[o]=n[o].__sentry_wrapped__,n[o]=n[o].__sentry_original__)});var e=o();return Object.keys(r).forEach(function(o){n[o]=r[o]}),e}var c=i(),s="Sentry Logger ",_=function(){function o(){this._enabled=!1}return o.prototype.disable=function(){this._enabled=!1},o.prototype.enable=function(){this._enabled=!0},o.prototype.log=function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];this._enabled&&a(function(){c.console.log(s+"[Log]: "+o.join(" "))})},o.prototype.warn=function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];this._enabled&&a(function(){c.console.warn(s+"[Warn]: "+o.join(" "))})},o.prototype.error=function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];this._enabled&&a(function(){c.console.error(s+"[Error]: "+o.join(" "))})},o}();c.__SENTRY__=c.__SENTRY__||{};var u,p=c.__SENTRY__.logger||(c.__SENTRY__.logger=new _);!function(o){o.PENDING="PENDING",o.RESOLVED="RESOLVED",o.REJECTED="REJECTED"}(u||(u={}));i();var f=function(){function o(t){void 0===t&&(t={}),this.name=o.id,this._attachProps=!0,this._logErrors=!1,this._Vue=t.Vue||i().Vue,void 0!==t.logErrors&&(this._logErrors=t.logErrors),!1===t.attachProps&&(this._attachProps=!1)}return o.prototype._formatComponentName=function(o){if(o.$root===o)return"root instance";var t=o._isVue?o.$options.name||o.$options._componentTag:o.name;return(t?"component <"+t+">":"anonymous component")+(o._isVue&&o.$options.__file?" at "+o.$options.__file:"")},o.prototype.setupOnce=function(t,n){var r=this;if(this._Vue&&this._Vue.config){var e=this._Vue.config.errorHandler;this._Vue.config.errorHandler=function(t,i,a){var c,s={};c=i,"[object Object]"===Object.prototype.toString.call(c)&&(s.componentName=r._formatComponentName(i),r._attachProps&&(s.propsData=i.$options.propsData)),void 0!==a&&(s.lifecycleHook=a),n().getIntegration(o)&&setTimeout(function(){n().withScope(function(o){o.setContext("vue",s),n().captureException(t)})}),"function"==typeof e&&e.call(r._Vue,t,i,a),r._logErrors&&(r._Vue.util.warn("Error in "+a+': "'+t.toString()+'"',i),console.error(t))}}else p.error("VueIntegration is missing a Vue instance")},o.id="Vue",o}();for(var l in t.Vue=f,o.Sentry=o.Sentry||{},o.Sentry.Integrations=o.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,l)&&(o.Sentry.Integrations[l]=t[l])}(window); | ||
//# sourceMappingURL=vue.min.js.map |
{ | ||
"name": "@sentry/integrations", | ||
"version": "5.10.0-beta.4", | ||
"version": "5.10.0-rc.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.10.0-beta.4", | ||
"@sentry/utils": "5.10.0-beta.4", | ||
"@sentry/types": "5.10.0-rc.0", | ||
"@sentry/utils": "5.10.0-rc.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
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
1297386
6577
+ Added@sentry/types@5.10.0-rc.0(transitive)
+ Added@sentry/utils@5.10.0-rc.0(transitive)
- Removed@sentry/types@5.10.0-beta.4(transitive)
- Removed@sentry/utils@5.10.0-beta.4(transitive)
Updated@sentry/types@5.10.0-rc.0
Updated@sentry/utils@5.10.0-rc.0