Socket
Socket
Sign inDemoInstall

@sentry/integrations

Package Overview
Dependencies
Maintainers
10
Versions
385
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/integrations - npm Package Compare versions

Comparing version 5.4.1 to 5.4.2

2

build/angular.js

@@ -227,3 +227,3 @@ (function (__window) {

if (!this._angular) {
console.error('AngularIntegration is missing an Angular instance');
logger.error('AngularIntegration is missing an Angular instance');
return;

@@ -230,0 +230,0 @@ }

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

!function(n){var e={};Object.defineProperty(e,"__esModule",{value:!0});var t=function(n,e){return(t=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 r=function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)};!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,Object.setPrototypeOf(r,t.prototype),r}(function(n,e){function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,n)}(Error);var o={};function a(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function i(n){var e=a();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__&&(r[n]=t[n].__sentry_wrapped__,t[n]=t[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),o}var c=a(),u="Sentry Logger ",s=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&&i(function(){c.console.log(u+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&i(function(){c.console.warn(u+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&i(function(){c.console.error(u+"[Error]: "+n.join(" "))})},n}();c.__SENTRY__=c.__SENTRY__||{};var l;c.__SENTRY__.logger||(c.__SENTRY__.logger=new s);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));var p=/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/,f=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._angular=e.angular||a().angular}return n.prototype.setupOnce=function(e,t){var r=this;this._angular?(this._getCurrentHub=t,this._angular.module(n.moduleName,[]).config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",r._$exceptionHandlerDecorator.bind(r)])}])):console.error("AngularIntegration is missing an Angular instance")},n.prototype._$exceptionHandlerDecorator=function(e){var t=this;return function(o,a){var i=t._getCurrentHub&&t._getCurrentHub();i&&i.getIntegration(n)&&i.withScope(function(n){a&&n.setExtra("cause",a),n.addEventProcessor(function(n){var e=n.exception&&n.exception.values&&n.exception.values[0];if(e){var t=p.exec(e.value||"");t&&(e.type=t[1],e.value=t[2],n.message=e.type+": "+e.value,n.extra=r({},n.extra,{angularDocs:t[3].substr(0,250)}))}return n}),i.captureException(o)}),e(o,a)}},n.id="AngularJS",n.moduleName="ngSentry",n}();e.Angular=f,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,e)}(window);
!function(n){var e={};Object.defineProperty(e,"__esModule",{value:!0});var t=function(n,e){return(t=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 r=function(){return(r=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)};!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,Object.setPrototypeOf(r,t.prototype),r}(function(n,e){function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,n)}(Error);var o={};function a(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o}function i(n){var e=a();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__&&(r[n]=t[n].__sentry_wrapped__,t[n]=t[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){t[n]=r[n]}),o}var c=a(),u="Sentry Logger ",s=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&&i(function(){c.console.log(u+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&i(function(){c.console.warn(u+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&i(function(){c.console.error(u+"[Error]: "+n.join(" "))})},n}();c.__SENTRY__=c.__SENTRY__||{};var l,p=c.__SENTRY__.logger||(c.__SENTRY__.logger=new s);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(l||(l={}));var f=/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/,_=function(){function n(e){void 0===e&&(e={}),this.name=n.id,this._angular=e.angular||a().angular}return n.prototype.setupOnce=function(e,t){var r=this;this._angular?(this._getCurrentHub=t,this._angular.module(n.moduleName,[]).config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",r._$exceptionHandlerDecorator.bind(r)])}])):p.error("AngularIntegration is missing an Angular instance")},n.prototype._$exceptionHandlerDecorator=function(e){var t=this;return function(o,a){var i=t._getCurrentHub&&t._getCurrentHub();i&&i.getIntegration(n)&&i.withScope(function(n){a&&n.setExtra("cause",a),n.addEventProcessor(function(n){var e=n.exception&&n.exception.values&&n.exception.values[0];if(e){var t=f.exec(e.value||"");t&&(e.type=t[1],e.value=t[2],n.message=e.type+": "+e.value,n.extra=r({},n.extra,{angularDocs:t[3].substr(0,250)}))}return n}),i.captureException(o)}),e(o,a)}},n.id="AngularJS",n.moduleName="ngSentry",n}();e.Angular=_,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,e)}(window);
//# sourceMappingURL=angular.min.js.map

@@ -211,3 +211,3 @@ (function (__window) {

if (!this._Ember) {
console.error('EmberIntegration is missing an Ember instance');
logger.error('EmberIntegration is missing an Ember instance');
return;

@@ -214,0 +214,0 @@ }

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

!function(e){var n={};Object.defineProperty(n,"__esModule",{value:!0});var t=function(e,n){return(t=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)};!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,Object.setPrototypeOf(r,t.prototype),r}(function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,e)}(Error);var r={};function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:r}function i(e){var n=o();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 i=e();return Object.keys(r).forEach(function(e){t[e]=r[e]}),i}var c=o(),s="Sentry Logger ",a=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&&i(function(){c.console.log(s+"[Log]: "+e.join(" "))})},e.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._enabled&&i(function(){c.console.warn(s+"[Warn]: "+e.join(" "))})},e.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._enabled&&i(function(){c.console.error(s+"[Error]: "+e.join(" "))})},e}();c.__SENTRY__=c.__SENTRY__||{};var f;c.__SENTRY__.logger||(c.__SENTRY__.logger=new a);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(f||(f={}));var _=function(){function e(n){void 0===n&&(n={}),this.name=e.id,this._Ember=n.Ember||o().Ember}return e.prototype.setupOnce=function(n,t){var r=this;if(this._Ember){var o=this._Ember.onerror;this._Ember.onerror=function(n){if(t().getIntegration(e)&&t().captureException(n,{originalException:n}),"function"==typeof o)o.call(r._Ember,n);else if(r._Ember.testing)throw n},this._Ember.RSVP.on("error",function(n){t().getIntegration(e)&&t().withScope(function(e){n instanceof Error?(e.setExtra("context","Unhandled Promise error detected"),t().captureException(n,{originalException:n})):(e.setExtra("reason",n),t().captureMessage("Unhandled Promise error detected"))})})}else console.error("EmberIntegration is missing an Ember instance")},e.id="Ember",e}();n.Ember=_,e.Sentry=e.Sentry||{},e.Sentry.Integrations=e.Sentry.Integrations||{},Object.assign(e.Sentry.Integrations,n)}(window);
!function(e){var n={};Object.defineProperty(n,"__esModule",{value:!0});var t=function(e,n){return(t=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)};!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,Object.setPrototypeOf(r,t.prototype),r}(function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,e)}(Error);var r={};function o(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:r}function i(e){var n=o();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 i=e();return Object.keys(r).forEach(function(e){t[e]=r[e]}),i}var c=o(),s="Sentry Logger ",a=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&&i(function(){c.console.log(s+"[Log]: "+e.join(" "))})},e.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._enabled&&i(function(){c.console.warn(s+"[Warn]: "+e.join(" "))})},e.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._enabled&&i(function(){c.console.error(s+"[Error]: "+e.join(" "))})},e}();c.__SENTRY__=c.__SENTRY__||{};var f,_=c.__SENTRY__.logger||(c.__SENTRY__.logger=new a);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(f||(f={}));var u=function(){function e(n){void 0===n&&(n={}),this.name=e.id,this._Ember=n.Ember||o().Ember}return e.prototype.setupOnce=function(n,t){var r=this;if(this._Ember){var o=this._Ember.onerror;this._Ember.onerror=function(n){if(t().getIntegration(e)&&t().captureException(n,{originalException:n}),"function"==typeof o)o.call(r._Ember,n);else if(r._Ember.testing)throw n},this._Ember.RSVP.on("error",function(n){t().getIntegration(e)&&t().withScope(function(e){n instanceof Error?(e.setExtra("context","Unhandled Promise error detected"),t().captureException(n,{originalException:n})):(e.setExtra("reason",n),t().captureMessage("Unhandled Promise error detected"))})})}else _.error("EmberIntegration is missing an Ember instance")},e.id="Ember",e}();n.Ember=u,e.Sentry=e.Sentry||{},e.Sentry.Integrations=e.Sentry.Integrations||{},Object.assign(e.Sentry.Integrations,n)}(window);
//# sourceMappingURL=ember.min.js.map

@@ -538,3 +538,3 @@ (function (__window) {

catch (oO) {
console.error('Unable to extract extra data from the Error object:', oO);
logger.error('Unable to extract extra data from the Error object:', oO);
}

@@ -541,0 +541,0 @@ return result;

@@ -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(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,Object.setPrototypeOf(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 o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}var c={};function u(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function f(t){var n=u();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=u(),l="Sentry Logger ",p=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&f(function(){s.console.log(l+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&f(function(){s.console.warn(l+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&f(function(){s.console.error(l+"[Error]: "+t.join(" "))})},t}();s.__SENTRY__=s.__SENTRY__||{};s.__SENTRY__.logger||(s.__SENTRY__.logger=new p);var y,_=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 h(t,n){return"domain"===n&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":"undefined"!=typeof Event&&t instanceof Event?Object.getPrototypeOf(t)?t.constructor.name:"Event":a(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":Number.isNaN(t)?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+(t.name||"<unknown-function-name>")+"]":t;var e}function d(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new _),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=h(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var a=h(n,t);if(i(a))return a;var c=o(n)?function(t){var n={message:t.message,name:t.name,stack:t.stack};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}(n):n,u=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(u[f]=d(f,c[f],e-1,r));return r.unmemoize(n),u}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(y||(y={}));var v=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){if(!n||!n.originalException||!o(n.originalException))return t;var e=this._extractErrorData(n.originalException);if(e){var i=r({},t.extra),c=function(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return d(t,e,n)}))}catch(t){return"**non-serializable**"}}(e,this._options.depth);return a(c)&&(i=r({},t.extra,c)),r({},t,{extra:i})}return t},t.prototype._extractErrorData=function(t){var n,e,r,i=null;try{var a=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],c=t.name||t.constructor.name,u=Object.getOwnPropertyNames(t).filter(function(t){return-1===a.indexOf(t)});if(u.length){var f={};try{for(var s=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}}}}(u),l=s.next();!l.done;l=s.next()){var p=l.value,y=t[p];o(y)&&(y=y.toString()),f[p]=y}}catch(t){n={error:t}}finally{try{l&&!l.done&&(e=s.return)&&e.call(s)}finally{if(n)throw n.error}}(r={})[c]=f,i=r}}catch(t){console.error("Unable to extract extra data from the Error object:",t)}return i},t.id="ExtraErrorData",t}();n.ExtraErrorData=v,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},Object.assign(t.Sentry.Integrations,n)}(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(t){function n(n){var e=this.constructor,r=t.call(this,n)||this;return r.message=n,r.name=e.prototype.constructor.name,Object.setPrototypeOf(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 o(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function i(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}var c={};function u(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function f(t){var n=u();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=u(),l="Sentry Logger ",p=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&f(function(){s.console.log(l+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&f(function(){s.console.warn(l+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&f(function(){s.console.error(l+"[Error]: "+t.join(" "))})},t}();s.__SENTRY__=s.__SENTRY__||{};var y,_=s.__SENTRY__.logger||(s.__SENTRY__.logger=new p),h=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 d(t,n){return"domain"===n&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":"undefined"!=typeof Event&&t instanceof Event?Object.getPrototypeOf(t)?t.constructor.name:"Event":a(e=t)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":Number.isNaN(t)?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+(t.name||"<unknown-function-name>")+"]":t;var e}function v(t,n,e,r){if(void 0===e&&(e=1/0),void 0===r&&(r=new h),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=d(t);return i(e)?e:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var a=d(n,t);if(i(a))return a;var c=o(n)?function(t){var n={message:t.message,name:t.name,stack:t.stack};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}(n):n,u=Array.isArray(n)?[]:{};if(r.memoize(n))return"[Circular ~]";for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(u[f]=v(f,c[f],e-1,r));return r.unmemoize(n),u}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(y||(y={}));var b=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){if(!n||!n.originalException||!o(n.originalException))return t;var e=this._extractErrorData(n.originalException);if(e){var i=r({},t.extra),c=function(t,n){try{return JSON.parse(JSON.stringify(t,function(t,e){return v(t,e,n)}))}catch(t){return"**non-serializable**"}}(e,this._options.depth);return a(c)&&(i=r({},t.extra,c)),r({},t,{extra:i})}return t},t.prototype._extractErrorData=function(t){var n,e,r,i=null;try{var a=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],c=t.name||t.constructor.name,u=Object.getOwnPropertyNames(t).filter(function(t){return-1===a.indexOf(t)});if(u.length){var f={};try{for(var s=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}}}}(u),l=s.next();!l.done;l=s.next()){var p=l.value,y=t[p];o(y)&&(y=y.toString()),f[p]=y}}catch(t){n={error:t}}finally{try{l&&!l.done&&(e=s.return)&&e.call(s)}finally{if(n)throw n.error}}(r={})[c]=f,i=r}}catch(t){_.error("Unable to extract extra data from the Error object:",t)}return i},t.id="ExtraErrorData",t}();n.ExtraErrorData=b,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},Object.assign(t.Sentry.Integrations,n)}(window);
//# sourceMappingURL=extraerrordata.min.js.map

@@ -308,3 +308,3 @@ (function (__window) {

*
* @returns Answer to the given question.
* @returns true if `window.fetch` is natively implemented, false otherwise
*/

@@ -315,4 +315,26 @@ function supportsNativeFetch() {

}
var isNativeFunc = function (func) { return func.toString().indexOf('native') !== -1; };
var global = getGlobalObject();
return global.fetch.toString().indexOf('native') !== -1;
var result = null;
var doc = global.document;
if (doc) {
var sandbox = doc.createElement('iframe');
sandbox.hidden = true;
try {
doc.head.appendChild(sandbox);
if (sandbox.contentWindow && sandbox.contentWindow.fetch) {
// tslint:disable-next-line no-unbound-method
result = isNativeFunc(sandbox.contentWindow.fetch);
}
doc.head.removeChild(sandbox);
}
catch (err) {
logger.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);
}
}
if (result === null) {
// tslint:disable-next-line no-unbound-method
result = isNativeFunc(global.fetch);
}
return result;
}

@@ -348,10 +370,6 @@

if (!Array.isArray(_options.tracingOrigins) || _options.tracingOrigins.length === 0) {
consoleSandbox(function () {
var defaultTracingOrigins = ['localhost', /^\//];
// @ts-ignore
console.warn('Sentry: You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.');
// @ts-ignore
console.warn("Sentry: We added a reasonable default for you: " + defaultTracingOrigins);
_options.tracingOrigins = defaultTracingOrigins;
});
var defaultTracingOrigins = ['localhost', /^\//];
logger.warn('Sentry: You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.');
logger.warn("Sentry: We added a reasonable default for you: " + defaultTracingOrigins);
_options.tracingOrigins = defaultTracingOrigins;
}

@@ -459,3 +477,3 @@ }

var url_2 = args[0];
var options = args[1];
var options = (args[1] = args[1] || {});
var whiteListed_1 = false;

@@ -467,3 +485,3 @@ self._options.tracingOrigins.forEach(function (whiteListUrl) {

});
if (options && whiteListed_1) {
if (whiteListed_1) {
if (options.headers) {

@@ -470,0 +488,0 @@ if (Array.isArray(options.headers)) {

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

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

@@ -239,3 +239,3 @@ (function (__window) {

if (!this._Vue || !this._Vue.config) {
console.error('VueIntegration is missing a Vue instance');
logger.error('VueIntegration is missing a Vue instance');
return;

@@ -256,7 +256,8 @@ }

if (getCurrentHub().getIntegration(Vue)) {
getCurrentHub().withScope(function (scope) {
Object.keys(metadata).forEach(function (key) {
scope.setExtra(key, metadata[key]);
// This timeout makes sure that any breadcrumbs are recorded before sending it off the sentry
setTimeout(function () {
getCurrentHub().withScope(function (scope) {
scope.setContext('vue', metadata);
getCurrentHub().captureException(error);
});
getCurrentHub().captureException(error);
});

@@ -263,0 +264,0 @@ }

@@ -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)};!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,Object.setPrototypeOf(e,n.prototype),e}(function(o,t){function e(){this.constructor=o}n(o,t),o.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)})(t,o)}(Error);var e={};function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e}function i(o){var t=r();if(!("console"in t))return o();var n=t.console,e={};["debug","info","warn","error","log","assert"].forEach(function(o){o in t.console&&n[o].__sentry__&&(e[o]=n[o].__sentry_wrapped__,n[o]=n[o].__sentry_original__)});var i=o();return Object.keys(e).forEach(function(o){n[o]=e[o]}),i}var c=r(),a="Sentry Logger ",s=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&&i(function(){c.console.log(a+"[Log]: "+o.join(" "))})},o.prototype.warn=function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];this._enabled&&i(function(){c.console.warn(a+"[Warn]: "+o.join(" "))})},o.prototype.error=function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];this._enabled&&i(function(){c.console.error(a+"[Error]: "+o.join(" "))})},o}();c.__SENTRY__=c.__SENTRY__||{};var u;c.__SENTRY__.logger||(c.__SENTRY__.logger=new s);!function(o){o.PENDING="PENDING",o.RESOLVED="RESOLVED",o.REJECTED="REJECTED"}(u||(u={}));var p=function(){function o(t){void 0===t&&(t={}),this.name=o.id,this._attachProps=!0,this._Vue=t.Vue||r().Vue,!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 e=this;if(this._Vue&&this._Vue.config){var r=this._Vue.config.errorHandler;this._Vue.config.errorHandler=function(t,i,c){var a,s={};a=i,"[object Object]"===Object.prototype.toString.call(a)&&(s.componentName=e._formatComponentName(i),e._attachProps&&(s.propsData=i.$options.propsData)),void 0!==c&&(s.lifecycleHook=c),n().getIntegration(o)&&n().withScope(function(o){Object.keys(s).forEach(function(t){o.setExtra(t,s[t])}),n().captureException(t)}),"function"==typeof r&&r.call(e._Vue,t,i,c)}}else console.error("VueIntegration is missing a Vue instance")},o.id="Vue",o}();t.Vue=p,o.Sentry=o.Sentry||{},o.Sentry.Integrations=o.Sentry.Integrations||{},Object.assign(o.Sentry.Integrations,t)}(window);
!function(t){var o={};Object.defineProperty(o,"__esModule",{value:!0});var n=function(t,o){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)o.hasOwnProperty(n)&&(t[n]=o[n])})(t,o)};!function(t){function o(o){var n=this.constructor,e=t.call(this,o)||this;return e.message=o,e.name=n.prototype.constructor.name,Object.setPrototypeOf(e,n.prototype),e}(function(t,o){function e(){this.constructor=t}n(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)})(o,t)}(Error);var e={};function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e}function i(t){var o=r();if(!("console"in o))return t();var n=o.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in o.console&&n[t].__sentry__&&(e[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var i=t();return Object.keys(e).forEach(function(t){n[t]=e[t]}),i}var c=r(),a="Sentry Logger ",s=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=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this._enabled&&i(function(){c.console.log(a+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this._enabled&&i(function(){c.console.warn(a+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];this._enabled&&i(function(){c.console.error(a+"[Error]: "+t.join(" "))})},t}();c.__SENTRY__=c.__SENTRY__||{};var u,p=c.__SENTRY__.logger||(c.__SENTRY__.logger=new s);!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(u||(u={}));var _=function(){function t(o){void 0===o&&(o={}),this.name=t.id,this._attachProps=!0,this._Vue=o.Vue||r().Vue,!1===o.attachProps&&(this._attachProps=!1)}return t.prototype._formatComponentName=function(t){if(t.$root===t)return"root instance";var o=t._isVue?t.$options.name||t.$options._componentTag:t.name;return(o?"component <"+o+">":"anonymous component")+(t._isVue&&t.$options.__file?" at "+t.$options.__file:"")},t.prototype.setupOnce=function(o,n){var e=this;if(this._Vue&&this._Vue.config){var r=this._Vue.config.errorHandler;this._Vue.config.errorHandler=function(o,i,c){var a,s={};a=i,"[object Object]"===Object.prototype.toString.call(a)&&(s.componentName=e._formatComponentName(i),e._attachProps&&(s.propsData=i.$options.propsData)),void 0!==c&&(s.lifecycleHook=c),n().getIntegration(t)&&setTimeout(function(){n().withScope(function(t){t.setContext("vue",s),n().captureException(o)})}),"function"==typeof r&&r.call(e._Vue,o,i,c)}}else p.error("VueIntegration is missing a Vue instance")},t.id="Vue",t}();o.Vue=_,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},Object.assign(t.Sentry.Integrations,o)}(window);
//# sourceMappingURL=vue.min.js.map

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

if (!this._angular) {
console.error('AngularIntegration is missing an Angular instance');
utils_1.logger.error('AngularIntegration is missing an Angular instance');
return;

@@ -33,0 +33,0 @@ }

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

if (!this._Ember) {
console.error('EmberIntegration is missing an Ember instance');
utils_1.logger.error('EmberIntegration is missing an Ember instance');
return;

@@ -27,0 +27,0 @@ }

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

catch (oO) {
console.error('Unable to extract extra data from the Error object:', oO);
utils_1.logger.error('Unable to extract extra data from the Error object:', oO);
}

@@ -87,0 +87,0 @@ return result;

@@ -5,4 +5,4 @@ import { EventProcessor, Hub, Integration } from '@sentry/types';

tracingOrigins?: Array<string | RegExp>;
traceFetch?: boolean;
traceXHR?: boolean;
traceFetch?: boolean;
autoStartOnDomReady?: boolean;

@@ -9,0 +9,0 @@ }

@@ -21,10 +21,6 @@ Object.defineProperty(exports, "__esModule", { value: true });

if (!Array.isArray(_options.tracingOrigins) || _options.tracingOrigins.length === 0) {
utils_1.consoleSandbox(function () {
var defaultTracingOrigins = ['localhost', /^\//];
// @ts-ignore
console.warn('Sentry: You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.');
// @ts-ignore
console.warn("Sentry: We added a reasonable default for you: " + defaultTracingOrigins);
_options.tracingOrigins = defaultTracingOrigins;
});
var defaultTracingOrigins = ['localhost', /^\//];
utils_1.logger.warn('Sentry: You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.');
utils_1.logger.warn("Sentry: We added a reasonable default for you: " + defaultTracingOrigins);
_options.tracingOrigins = defaultTracingOrigins;
}

@@ -132,3 +128,3 @@ }

var url_2 = args[0];
var options = args[1];
var options = (args[1] = args[1] || {});
var whiteListed_1 = false;

@@ -140,3 +136,3 @@ self._options.tracingOrigins.forEach(function (whiteListUrl) {

});
if (options && whiteListed_1) {
if (whiteListed_1) {
if (options.headers) {

@@ -143,0 +139,0 @@ if (Array.isArray(options.headers)) {

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

if (!this._Vue || !this._Vue.config) {
console.error('VueIntegration is missing a Vue instance');
utils_1.logger.error('VueIntegration is missing a Vue instance');
return;

@@ -59,7 +59,8 @@ }

if (getCurrentHub().getIntegration(Vue)) {
getCurrentHub().withScope(function (scope) {
Object.keys(metadata).forEach(function (key) {
scope.setExtra(key, metadata[key]);
// This timeout makes sure that any breadcrumbs are recorded before sending it off the sentry
setTimeout(function () {
getCurrentHub().withScope(function (scope) {
scope.setContext('vue', metadata);
getCurrentHub().captureException(error);
});
getCurrentHub().captureException(error);
});

@@ -66,0 +67,0 @@ }

import * as tslib_1 from "tslib";
import { getGlobalObject } from '@sentry/utils';
import { getGlobalObject, logger } from '@sentry/utils';
// See https://github.com/angular/angular.js/blob/v1.4.7/src/minErr.js

@@ -29,3 +29,3 @@ var angularPattern = /^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/;

if (!this._angular) {
console.error('AngularIntegration is missing an Angular instance');
logger.error('AngularIntegration is missing an Angular instance');
return;

@@ -32,0 +32,0 @@ }

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

import { getGlobalObject } from '@sentry/utils';
import { getGlobalObject, logger } from '@sentry/utils';
/** JSDoc */

@@ -23,3 +23,3 @@ var Ember = /** @class */ (function () {

if (!this._Ember) {
console.error('EmberIntegration is missing an Ember instance');
logger.error('EmberIntegration is missing an Ember instance');
return;

@@ -26,0 +26,0 @@ }

import * as tslib_1 from "tslib";
import { isError, isPlainObject, normalize } from '@sentry/utils';
import { isError, isPlainObject, logger, normalize } from '@sentry/utils';
/** Patch toString calls to return proper name for wrapped functions */

@@ -83,3 +83,3 @@ var ExtraErrorData = /** @class */ (function () {

catch (oO) {
console.error('Unable to extract extra data from the Error object:', oO);
logger.error('Unable to extract extra data from the Error object:', oO);
}

@@ -86,0 +86,0 @@ return result;

@@ -5,4 +5,4 @@ import { EventProcessor, Hub, Integration } from '@sentry/types';

tracingOrigins?: Array<string | RegExp>;
traceFetch?: boolean;
traceXHR?: boolean;
traceFetch?: boolean;
autoStartOnDomReady?: boolean;

@@ -9,0 +9,0 @@ }

import * as tslib_1 from "tslib";
import { consoleSandbox, fill, getGlobalObject, isMatchingPattern, supportsNativeFetch } from '@sentry/utils';
import { fill, getGlobalObject, isMatchingPattern, logger, supportsNativeFetch } from '@sentry/utils';
/**

@@ -20,10 +20,6 @@ * Tracing Integration

if (!Array.isArray(_options.tracingOrigins) || _options.tracingOrigins.length === 0) {
consoleSandbox(function () {
var defaultTracingOrigins = ['localhost', /^\//];
// @ts-ignore
console.warn('Sentry: You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.');
// @ts-ignore
console.warn("Sentry: We added a reasonable default for you: " + defaultTracingOrigins);
_options.tracingOrigins = defaultTracingOrigins;
});
var defaultTracingOrigins = ['localhost', /^\//];
logger.warn('Sentry: You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.');
logger.warn("Sentry: We added a reasonable default for you: " + defaultTracingOrigins);
_options.tracingOrigins = defaultTracingOrigins;
}

@@ -131,3 +127,3 @@ }

var url_2 = args[0];
var options = args[1];
var options = (args[1] = args[1] || {});
var whiteListed_1 = false;

@@ -139,3 +135,3 @@ self._options.tracingOrigins.forEach(function (whiteListUrl) {

});
if (options && whiteListed_1) {
if (whiteListed_1) {
if (options.headers) {

@@ -142,0 +138,0 @@ if (Array.isArray(options.headers)) {

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

import { getGlobalObject, isPlainObject } from '@sentry/utils';
import { getGlobalObject, isPlainObject, logger } from '@sentry/utils';
/** JSDoc */

@@ -41,3 +41,3 @@ var Vue = /** @class */ (function () {

if (!this._Vue || !this._Vue.config) {
console.error('VueIntegration is missing a Vue instance');
logger.error('VueIntegration is missing a Vue instance');
return;

@@ -58,7 +58,8 @@ }

if (getCurrentHub().getIntegration(Vue)) {
getCurrentHub().withScope(function (scope) {
Object.keys(metadata).forEach(function (key) {
scope.setExtra(key, metadata[key]);
// This timeout makes sure that any breadcrumbs are recorded before sending it off the sentry
setTimeout(function () {
getCurrentHub().withScope(function (scope) {
scope.setContext('vue', metadata);
getCurrentHub().captureException(error);
});
getCurrentHub().captureException(error);
});

@@ -65,0 +66,0 @@ }

{
"name": "@sentry/integrations",
"version": "5.4.1",
"version": "5.4.2",
"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.4.0",
"@sentry/utils": "5.4.0",
"@sentry/types": "5.4.2",
"@sentry/utils": "5.4.2",
"tslib": "^1.9.3"

@@ -23,0 +23,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc