@sentry/integrations
Advanced tools
Comparing version 6.0.3 to 6.0.4
@@ -108,3 +108,3 @@ (function (__window) { | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
@@ -111,0 +111,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access |
@@ -214,2 +214,21 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
/** | ||
* Join values in array | ||
@@ -239,56 +258,2 @@ * @param input array of values to be joined together | ||
/** | ||
* Wrap a given object method with a higher-order function | ||
* | ||
* @param source An object that contains a method to be wrapped. | ||
* @param name A name of method to be wrapped. | ||
* @param replacementFactory A function that should be used to wrap a given method, returning the wrapped method which | ||
* will be substituted in for `source[name]`. | ||
* @returns void | ||
*/ | ||
function fill(source, name, replacementFactory) { | ||
if (!(name in source)) { | ||
return; | ||
} | ||
var original = source[name]; | ||
var wrapped = replacementFactory(original); | ||
// Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work | ||
// otherwise it'll throw "TypeError: Object.defineProperties called on non-object" | ||
if (typeof wrapped === 'function') { | ||
try { | ||
wrapped.prototype = wrapped.prototype || {}; | ||
Object.defineProperties(wrapped, { | ||
__sentry_original__: { | ||
enumerable: false, | ||
value: original, | ||
}, | ||
}); | ||
} | ||
catch (_Oo) { | ||
// This can throw if multiple fill happens on a global object like XMLHttpRequest | ||
// Fixes https://github.com/getsentry/sentry-javascript/issues/2043 | ||
} | ||
} | ||
source[name] = wrapped; | ||
} | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
@@ -400,2 +365,37 @@ /** | ||
/** | ||
* Wrap a given object method with a higher-order function | ||
* | ||
* @param source An object that contains a method to be wrapped. | ||
* @param name A name of method to be wrapped. | ||
* @param replacementFactory A function that should be used to wrap a given method, returning the wrapped method which | ||
* will be substituted in for `source[name]`. | ||
* @returns void | ||
*/ | ||
function fill(source, name, replacementFactory) { | ||
if (!(name in source)) { | ||
return; | ||
} | ||
var original = source[name]; | ||
var wrapped = replacementFactory(original); | ||
// Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work | ||
// otherwise it'll throw "TypeError: Object.defineProperties called on non-object" | ||
if (typeof wrapped === 'function') { | ||
try { | ||
wrapped.prototype = wrapped.prototype || {}; | ||
Object.defineProperties(wrapped, { | ||
__sentry_original__: { | ||
enumerable: false, | ||
value: original, | ||
}, | ||
}); | ||
} | ||
catch (_Oo) { | ||
// This can throw if multiple fill happens on a global object like XMLHttpRequest | ||
// Fixes https://github.com/getsentry/sentry-javascript/issues/2043 | ||
} | ||
} | ||
source[name] = wrapped; | ||
} | ||
var global$2 = getGlobalObject(); | ||
@@ -402,0 +402,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(n){var e,t,r,o,i,c={};Object.defineProperty(c,"__esModule",{value:!0}),function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),function(n){n.Ok="ok",n.Exited="exited",n.Crashed="crashed",n.Abnormal="abnormal"}(t||(t={})),function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(r||(r={})),function(n){n.fromString=function(e){switch(e){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(r||(r={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(o||(o={})),function(n){n.fromHttpCode=function(e){return e>=200&&e<300?n.Success:429===e?n.RateLimit:e>=400&&e<500?n.Invalid:e>=500?n.Failed:n.Unknown}}(o||(o={})),function(n){n.Explicit="explicitly_set",n.Sampler="client_sampler",n.Rate="client_rate",n.Inheritance="inheritance"}(i||(i={}));var a=function(n,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)};var u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,e){return n.__proto__=e,n}:function(n,e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t]);return n});!function(n){function e(e){var t=this.constructor,r=n.call(this,e)||this;return r.message=e,r.name=t.prototype.constructor.name,u(r,t.prototype),r}(function(n,e){function t(){this.constructor=n}a(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,n)}(Error);function s(n,e){if(!Array.isArray(n))return"";for(var t=[],r=0;r<n.length;r++){var o=n[r];try{t.push(String(o))}catch(n){t.push("[value cannot be serialized]")}}return t.join(e)}function f(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var l={};function _(){return f()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function p(n){var e=_();if(!("console"in e))return n();var t=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in e.console&&t[n].__sentry_original__&&(r[n]=t[n],t[n]=t[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),o}var d=_(),h="Sentry Logger ",g=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&&p(function(){d.console.log(h+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.warn(h+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.error(h+"[Error]: "+n.join(" "))})},n}();d.__SENTRY__=d.__SENTRY__||{};var v;d.__SENTRY__.logger||(d.__SENTRY__.logger=new g),_();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(v||(v={}));!function(){function n(n){var e=this;this._state=v.PENDING,this._handlers=[],this._resolve=function(n){e._setResult(v.RESOLVED,n)},this._reject=function(n){e._setResult(v.REJECTED,n)},this._setResult=function(n,t){var r;e._state===v.PENDING&&(r=t,Boolean(r&&r.then&&"function"==typeof r.then)?t.then(e._resolve,e._reject):(e._state=n,e._value=t,e._executeHandlers()))},this._attachHandler=function(n){e._handlers=e._handlers.concat(n),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==v.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach(function(n){n.done||(e._state===v.RESOLVED&&n.onfulfilled&&n.onfulfilled(e._value),e._state===v.REJECTED&&n.onrejected&&n.onrejected(e._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(e){return new n(function(n){n(e)})},n.reject=function(e){return new n(function(n,t){t(e)})},n.all=function(e){return new n(function(t,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){n.resolve(e).then(function(n){i[c]=n,0===(o-=1)&&t(i)}).then(null,r)})}else t([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(e,t){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else n(t)},onrejected:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else o(e)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(e){var t=this;return new n(function(n,r){var o,i;return t.then(function(n){i=!1,o=n,e&&e()},function(n){i=!0,o=n,e&&e()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var E=f()?function(){try{return(n=module,e="perf_hooks",n.require(e)).performance}catch(n){return}var n,e}():function(){var n=_().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),w=void 0===E?y:{nowSeconds:function(){return(E.timeOrigin+E.now())/1e3}},b=(y.nowSeconds.bind(y),w.nowSeconds.bind(w),function(){var n=_().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),_()),S=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return n.prototype.setupOnce=function(e,t){"console"in b&&this._levels.forEach(function(e){e in b.console&&function(n,e,t){if(e in n){var r=n[e],o=t(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(n){}n[e]=o}}(b.console,e,function(o){return function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var a=t();a.getIntegration(n)&&a.withScope(function(n){n.setLevel(r.fromString(e)),n.setExtra("arguments",i),n.addEventProcessor(function(n){return n.logger="console",n});var t=s(i," ");"assert"===e?!1===i[0]&&(t="Assertion failed: "+(s(i.slice(1)," ")||"console.assert"),n.setExtra("arguments",i.slice(1)),a.captureMessage(t)):a.captureMessage(t)}),o&&Function.prototype.apply.call(o,b.console,i)}})})},n.id="CaptureConsole",n}();for(var m in c.CaptureConsole=S,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},c)Object.prototype.hasOwnProperty.call(c,m)&&(n.Sentry.Integrations[m]=c[m])}(window); | ||
!function(n){var e,t,r,o,i,c={};Object.defineProperty(c,"__esModule",{value:!0}),function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(e||(e={})),function(n){n.Ok="ok",n.Exited="exited",n.Crashed="crashed",n.Abnormal="abnormal"}(t||(t={})),function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(r||(r={})),function(n){n.fromString=function(e){switch(e){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(r||(r={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(o||(o={})),function(n){n.fromHttpCode=function(e){return e>=200&&e<300?n.Success:429===e?n.RateLimit:e>=400&&e<500?n.Invalid:e>=500?n.Failed:n.Unknown}}(o||(o={})),function(n){n.Explicit="explicitly_set",n.Sampler="client_sampler",n.Rate="client_rate",n.Inheritance="inheritance"}(i||(i={}));var a=function(n,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)};var u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,e){return n.__proto__=e,n}:function(n,e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t]);return n});!function(n){function e(e){var t=this.constructor,r=n.call(this,e)||this;return r.message=e,r.name=t.prototype.constructor.name,u(r,t.prototype),r}(function(n,e){function t(){this.constructor=n}a(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,n)}(Error);function s(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function f(n,e){if(!Array.isArray(n))return"";for(var t=[],r=0;r<n.length;r++){var o=n[r];try{t.push(String(o))}catch(n){t.push("[value cannot be serialized]")}}return t.join(e)}var l={};function _(){return s()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function p(n){var e=_();if(!("console"in e))return n();var t=e.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in e.console&&t[n].__sentry_original__&&(r[n]=t[n],t[n]=t[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),o}var d=_(),h="Sentry Logger ",g=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&&p(function(){d.console.log(h+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.warn(h+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&p(function(){d.console.error(h+"[Error]: "+n.join(" "))})},n}();d.__SENTRY__=d.__SENTRY__||{};d.__SENTRY__.logger||(d.__SENTRY__.logger=new g);var v;_();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(v||(v={}));!function(){function n(n){var e=this;this._state=v.PENDING,this._handlers=[],this._resolve=function(n){e._setResult(v.RESOLVED,n)},this._reject=function(n){e._setResult(v.REJECTED,n)},this._setResult=function(n,t){var r;e._state===v.PENDING&&(r=t,Boolean(r&&r.then&&"function"==typeof r.then)?t.then(e._resolve,e._reject):(e._state=n,e._value=t,e._executeHandlers()))},this._attachHandler=function(n){e._handlers=e._handlers.concat(n),e._executeHandlers()},this._executeHandlers=function(){if(e._state!==v.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach(function(n){n.done||(e._state===v.RESOLVED&&n.onfulfilled&&n.onfulfilled(e._value),e._state===v.REJECTED&&n.onrejected&&n.onrejected(e._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(e){return new n(function(n){n(e)})},n.reject=function(e){return new n(function(n,t){t(e)})},n.all=function(e){return new n(function(t,r){if(Array.isArray(e))if(0!==e.length){var o=e.length,i=[];e.forEach(function(e,c){n.resolve(e).then(function(n){i[c]=n,0===(o-=1)&&t(i)}).then(null,r)})}else t([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(e,t){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else n(t)},onrejected:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else o(e)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(e){var t=this;return new n(function(n,r){var o,i;return t.then(function(n){i=!1,o=n,e&&e()},function(n){i=!0,o=n,e&&e()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var E=s()?function(){try{return(n=module,e="perf_hooks",n.require(e)).performance}catch(n){return}var n,e}():function(){var n=_().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),w=void 0===E?y:{nowSeconds:function(){return(E.timeOrigin+E.now())/1e3}},b=(y.nowSeconds.bind(y),w.nowSeconds.bind(w),function(){var n=_().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),_()),S=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._levels=["log","info","warn","error","debug","assert"],e.levels&&(this._levels=e.levels)}return n.prototype.setupOnce=function(e,t){"console"in b&&this._levels.forEach(function(e){e in b.console&&function(n,e,t){if(e in n){var r=n[e],o=t(r);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:r}})}catch(n){}n[e]=o}}(b.console,e,function(o){return function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var a=t();a.getIntegration(n)&&a.withScope(function(n){n.setLevel(r.fromString(e)),n.setExtra("arguments",i),n.addEventProcessor(function(n){return n.logger="console",n});var t=f(i," ");"assert"===e?!1===i[0]&&(t="Assertion failed: "+(f(i.slice(1)," ")||"console.assert"),n.setExtra("arguments",i.slice(1)),a.captureMessage(t)):a.captureMessage(t)}),o&&Function.prototype.apply.call(o,b.console,i)}})})},n.id="CaptureConsole",n}();for(var m in c.CaptureConsole=S,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},c)Object.prototype.hasOwnProperty.call(c,m)&&(n.Sentry.Integrations[m]=c[m])}(window); | ||
//# sourceMappingURL=captureconsole.min.js.map |
@@ -108,3 +108,3 @@ (function (__window) { | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
@@ -111,0 +111,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access |
@@ -113,3 +113,3 @@ (function (__window) { | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
@@ -116,0 +116,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access |
@@ -282,2 +282,127 @@ (function (__window) { | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
function consoleSandbox(callback) { | ||
var global = getGlobalObject(); | ||
var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert']; | ||
if (!('console' in global)) { | ||
return callback(); | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
var originalConsole = global.console; | ||
var wrappedLevels = {}; | ||
// Restore all wrapped console methods | ||
levels.forEach(function (level) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
if (level in global.console && originalConsole[level].__sentry_original__) { | ||
wrappedLevels[level] = originalConsole[level]; | ||
originalConsole[level] = originalConsole[level].__sentry_original__; | ||
} | ||
}); | ||
// Perform callback manipulations | ||
var result = callback(); | ||
// Revert restoration to wrapped state | ||
Object.keys(wrappedLevels).forEach(function (level) { | ||
originalConsole[level] = wrappedLevels[level]; | ||
}); | ||
return result; | ||
} | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
// TODO: Implement different loggers for different environments | ||
var global$1 = getGlobalObject(); | ||
/** Prefix for logging strings */ | ||
var PREFIX = 'Sentry Logger '; | ||
/** JSDoc */ | ||
var Logger = /** @class */ (function () { | ||
/** JSDoc */ | ||
function Logger() { | ||
this._enabled = false; | ||
} | ||
/** JSDoc */ | ||
Logger.prototype.disable = function () { | ||
this._enabled = false; | ||
}; | ||
/** JSDoc */ | ||
Logger.prototype.enable = function () { | ||
this._enabled = true; | ||
}; | ||
/** JSDoc */ | ||
Logger.prototype.log = function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
if (!this._enabled) { | ||
return; | ||
} | ||
consoleSandbox(function () { | ||
global$1.console.log(PREFIX + "[Log]: " + args.join(' ')); | ||
}); | ||
}; | ||
/** JSDoc */ | ||
Logger.prototype.warn = function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
if (!this._enabled) { | ||
return; | ||
} | ||
consoleSandbox(function () { | ||
global$1.console.warn(PREFIX + "[Warn]: " + args.join(' ')); | ||
}); | ||
}; | ||
/** JSDoc */ | ||
Logger.prototype.error = function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
if (!this._enabled) { | ||
return; | ||
} | ||
consoleSandbox(function () { | ||
global$1.console.error(PREFIX + "[Error]: " + args.join(' ')); | ||
}); | ||
}; | ||
return Logger; | ||
}()); | ||
// Ensure we only have a single logger instance, even if multiple versions of @sentry/utils are being used | ||
global$1.__SENTRY__ = global$1.__SENTRY__ || {}; | ||
var logger = global$1.__SENTRY__.logger || (global$1.__SENTRY__.logger = new Logger()); | ||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */ | ||
@@ -550,127 +675,2 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
/** | ||
* Checks whether we're in the Node.js or Browser environment | ||
* | ||
* @returns Answer to given question | ||
*/ | ||
function isNodeEnv() { | ||
return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; | ||
} | ||
/** | ||
* Requires a module which is protected against bundler minification. | ||
* | ||
* @param request The module path to resolve | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
function dynamicRequire(mod, request) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
return mod.require(request); | ||
} | ||
var fallbackGlobalObject = {}; | ||
/** | ||
* Safely get global scope object | ||
* | ||
* @returns Global scope object | ||
*/ | ||
function getGlobalObject() { | ||
return (isNodeEnv() | ||
? global | ||
: typeof window !== 'undefined' | ||
? window | ||
: typeof self !== 'undefined' | ||
? self | ||
: fallbackGlobalObject); | ||
} | ||
/** JSDoc */ | ||
function consoleSandbox(callback) { | ||
var global = getGlobalObject(); | ||
var levels = ['debug', 'info', 'warn', 'error', 'log', 'assert']; | ||
if (!('console' in global)) { | ||
return callback(); | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
var originalConsole = global.console; | ||
var wrappedLevels = {}; | ||
// Restore all wrapped console methods | ||
levels.forEach(function (level) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
if (level in global.console && originalConsole[level].__sentry_original__) { | ||
wrappedLevels[level] = originalConsole[level]; | ||
originalConsole[level] = originalConsole[level].__sentry_original__; | ||
} | ||
}); | ||
// Perform callback manipulations | ||
var result = callback(); | ||
// Revert restoration to wrapped state | ||
Object.keys(wrappedLevels).forEach(function (level) { | ||
originalConsole[level] = wrappedLevels[level]; | ||
}); | ||
return result; | ||
} | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
// TODO: Implement different loggers for different environments | ||
var global$1 = getGlobalObject(); | ||
/** Prefix for logging strings */ | ||
var PREFIX = 'Sentry Logger '; | ||
/** JSDoc */ | ||
var Logger = /** @class */ (function () { | ||
/** JSDoc */ | ||
function Logger() { | ||
this._enabled = false; | ||
} | ||
/** JSDoc */ | ||
Logger.prototype.disable = function () { | ||
this._enabled = false; | ||
}; | ||
/** JSDoc */ | ||
Logger.prototype.enable = function () { | ||
this._enabled = true; | ||
}; | ||
/** JSDoc */ | ||
Logger.prototype.log = function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
if (!this._enabled) { | ||
return; | ||
} | ||
consoleSandbox(function () { | ||
global$1.console.log(PREFIX + "[Log]: " + args.join(' ')); | ||
}); | ||
}; | ||
/** JSDoc */ | ||
Logger.prototype.warn = function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
if (!this._enabled) { | ||
return; | ||
} | ||
consoleSandbox(function () { | ||
global$1.console.warn(PREFIX + "[Warn]: " + args.join(' ')); | ||
}); | ||
}; | ||
/** JSDoc */ | ||
Logger.prototype.error = function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
if (!this._enabled) { | ||
return; | ||
} | ||
consoleSandbox(function () { | ||
global$1.console.error(PREFIX + "[Error]: " + args.join(' ')); | ||
}); | ||
}; | ||
return Logger; | ||
}()); | ||
// Ensure we only have a single logger instance, even if multiple versions of @sentry/utils are being used | ||
global$1.__SENTRY__ = global$1.__SENTRY__ || {}; | ||
var logger = global$1.__SENTRY__.logger || (global$1.__SENTRY__.logger = new Logger()); | ||
var global$2 = getGlobalObject(); | ||
@@ -677,0 +677,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};var r=function(){return(r=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return u(t,Error)}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t){return"undefined"!=typeof Element&&u(t,Element)}function u(t,n){try{return t instanceof n}catch(t){return!1}}function f(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=s(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 s(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 l=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,l(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);var p=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}(),h="<anonymous>";function y(t){if(o(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(s=t,"undefined"!=typeof Event&&u(s,Event)){var i=t,a={};a.type=i.type;try{a.target=c(i.target)?f(i.target):Object.prototype.toString.call(i.target)}catch(t){a.target="<unknown>"}try{a.currentTarget=c(i.currentTarget)?f(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){a.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&u(t,CustomEvent)&&(a.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i);return a}var s;return t}function _(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]":a(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)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var e}function d(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new p),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=_(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=_(n,t);if(i(o))return o;var a=y(n),c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=d(u,a[u],e-1,r));return r.unmemoize(n),c}function v(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var g={};function E(){return v()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:g}function m(t){var n=E();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_original__&&(r[t]=e[t],e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}var b=E(),w="Sentry Logger ",j=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&&m(function(){b.console.log(w+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&m(function(){b.console.warn(w+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&m(function(){b.console.error(w+"[Error]: "+t.join(" "))})},t}();b.__SENTRY__=b.__SENTRY__||{};var O,S=b.__SENTRY__.logger||(b.__SENTRY__.logger=new j);E();!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(O||(O={}));!function(){function t(t){var n=this;this._state=O.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(O.RESOLVED,t)},this._reject=function(t){n._setResult(O.REJECTED,t)},this._setResult=function(t,e){var r;n._state===O.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==O.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===O.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===O.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,e){e(n)})},t.all=function(n){return new t(function(e,r){if(Array.isArray(n))if(0!==n.length){var o=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,e){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else t(e)},onrejected:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else o(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var e=this;return new t(function(t,r){var o,i;return e.then(function(t){i=!1,o=t,n&&n()},function(t){i=!0,o=t,n&&n()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var N={nowSeconds:function(){return Date.now()/1e3}};var D=v()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=E().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),x=void 0===D?N:{nowSeconds:function(){return(D.timeOrigin+D.now())/1e3}},P=(N.nowSeconds.bind(N),x.nowSeconds.bind(x),function(){var t=E().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),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||!o(n.originalException))return t;var i=n.originalException.name||n.originalException.constructor.name,c=this._extractErrorData(n.originalException);if(c){var u=r({},t.contexts),f=function(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return d(t,e,n)}))}catch(t){return"**non-serializable**"}}(c,this._options.depth);return a(f)&&(u=r(r({},t.contexts),((e={})[i]=r({},f),e))),r(r({},t),{contexts:u})}return t},t.prototype._extractErrorData=function(t){var n,e,r=null;try{var i=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],a=Object.getOwnPropertyNames(t).filter(function(t){return-1===i.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];o(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){S.error("Unable to extract extra data from the Error object:",t)}return r},t.id="ExtraErrorData",t}());for(var k in n.ExtraErrorData=P,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,k)&&(t.Sentry.Integrations[k]=n[k])}(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)};function o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return u(t,Error)}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function c(t){return"undefined"!=typeof Element&&u(t,Element)}function u(t,n){try{return t instanceof n}catch(t){return!1}}function f(t){try{for(var n=t,e=[],r=0,o=0,i=" > ".length,a=void 0;n&&r++<5&&!("html"===(a=s(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 s(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 l=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,l(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 p(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var h={};function y(){return p()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:h}function _(t){var n=y();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_original__&&(r[t]=e[t],e[t]=e[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){e[t]=r[t]}),o}var d=y(),v="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&&_(function(){d.console.log(v+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.warn(v+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&_(function(){d.console.error(v+"[Error]: "+t.join(" "))})},t}();d.__SENTRY__=d.__SENTRY__||{};var E=d.__SENTRY__.logger||(d.__SENTRY__.logger=new g),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}(),b="<anonymous>";function w(t){if(o(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(s=t,"undefined"!=typeof Event&&u(s,Event)){var i=t,a={};a.type=i.type;try{a.target=c(i.target)?f(i.target):Object.prototype.toString.call(i.target)}catch(t){a.target="<unknown>"}try{a.currentTarget=c(i.currentTarget)?f(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(t){a.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&u(t,CustomEvent)&&(a.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(a[r]=i);return a}var s;return t}function j(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]":a(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||b}catch(t){return b}}(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t;var e}function O(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=j(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=j(n,t);if(i(o))return o;var a=w(n),c=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(c[u]=O(u,a[u],e-1,r));return r.unmemoize(n),c}var S;y();!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(S||(S={}));!function(){function t(t){var n=this;this._state=S.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(S.RESOLVED,t)},this._reject=function(t){n._setResult(S.REJECTED,t)},this._setResult=function(t,e){var r;n._state===S.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(n._resolve,n._reject):(n._state=t,n._value=e,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==S.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===S.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===S.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)})}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}t.resolve=function(n){return new t(function(t){t(n)})},t.reject=function(n){return new t(function(t,e){e(n)})},t.all=function(n){return new t(function(e,r){if(Array.isArray(n))if(0!==n.length){var o=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,e){var r=this;return new t(function(t,o){r._attachHandler({done:!1,onfulfilled:function(e){if(n)try{return void t(n(e))}catch(t){return void o(t)}else t(e)},onrejected:function(n){if(e)try{return void t(e(n))}catch(t){return void o(t)}else o(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var e=this;return new t(function(t,r){var o,i;return e.then(function(t){i=!1,o=t,n&&n()},function(t){i=!0,o=t,n&&n()}).then(function(){i?r(o):t(o)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var N={nowSeconds:function(){return Date.now()/1e3}};var D=p()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=y().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),x=void 0===D?N:{nowSeconds:function(){return(D.timeOrigin+D.now())/1e3}},P=(N.nowSeconds.bind(N),x.nowSeconds.bind(x),function(){var t=y().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),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||!o(n.originalException))return t;var i=n.originalException.name||n.originalException.constructor.name,c=this._extractErrorData(n.originalException);if(c){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**"}}(c,this._options.depth);return a(f)&&(u=r(r({},t.contexts),((e={})[i]=r({},f),e))),r(r({},t),{contexts:u})}return t},t.prototype._extractErrorData=function(t){var n,e,r=null;try{var i=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],a=Object.getOwnPropertyNames(t).filter(function(t){return-1===i.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];o(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){E.error("Unable to extract extra data from the Error object:",t)}return r},t.id="ExtraErrorData",t}());for(var k in n.ExtraErrorData=P,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,k)&&(t.Sentry.Integrations[k]=n[k])}(window); | ||
//# sourceMappingURL=extraerrordata.min.js.map |
@@ -134,3 +134,3 @@ (function (__window) { | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
@@ -137,0 +137,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access |
@@ -108,3 +108,3 @@ (function (__window) { | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
@@ -111,0 +111,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access |
@@ -108,3 +108,3 @@ (function (__window) { | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
@@ -111,0 +111,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access |
@@ -131,3 +131,3 @@ (function (__window) { | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any | ||
function dynamicRequire(mod, request) { | ||
@@ -134,0 +134,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access |
{ | ||
"name": "@sentry/integrations", | ||
"version": "6.0.3", | ||
"version": "6.0.4", | ||
"description": "Pluggable integrations that can be used to enhance JS SDKs", | ||
@@ -19,4 +19,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/types": "6.0.3", | ||
"@sentry/utils": "6.0.3", | ||
"@sentry/types": "6.0.4", | ||
"@sentry/utils": "6.0.4", | ||
"localforage": "^1.8.1", | ||
@@ -26,3 +26,3 @@ "tslib": "^1.9.3" | ||
"devDependencies": { | ||
"@sentry-internal/eslint-config-sdk": "6.0.3", | ||
"@sentry-internal/eslint-config-sdk": "6.0.4", | ||
"chai": "^4.1.2", | ||
@@ -29,0 +29,0 @@ "eslint": "7.6.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1969655
+ Added@sentry/types@6.0.4(transitive)
+ Added@sentry/utils@6.0.4(transitive)
- Removed@sentry/types@6.0.3(transitive)
- Removed@sentry/utils@6.0.3(transitive)
Updated@sentry/types@6.0.4
Updated@sentry/utils@6.0.4