Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/integrations

Package Overview
Dependencies
Maintainers
13
Versions
390
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.27.7-beta.0 to 5.28.0

1

build/angular.js

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

this.name = Angular.id;
logger.log('You are still using the Angular integration, consider moving to @sentry/angular');
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access

@@ -544,0 +545,0 @@ this._angular = options.angular || getGlobalObject().angular;

2

build/angular.min.js

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

!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,o(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var a={};function u(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function c(n){var t=u();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var s=u(),f="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.error(f+"[Error]: "+n.join(" "))})},n}();s.__SENTRY__=s.__SENTRY__||{};var _,p=s.__SENTRY__.logger||(s.__SENTRY__.logger=new l);u();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var r;t._state===_.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var d=i()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=u().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),v=void 0===d?h:{nowSeconds:function(){return(d.timeOrigin+d.now())/1e3}},g=(h.nowSeconds.bind(h),v.nowSeconds.bind(v),function(){var n=u().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/),y=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this._angular=t.angular||u().angular,this._angular?this._module=this._angular.module(n.moduleName,[]):p.error("AngularIntegration is missing an Angular instance")}return n.prototype.setupOnce=function(n,t){var e=this;this._module&&(this._getCurrentHub=t,this._module.config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",e._$exceptionHandlerDecorator.bind(e)])}]))},n.prototype._$exceptionHandlerDecorator=function(t){var e=this;return function(o,i){var a=e._getCurrentHub&&e._getCurrentHub();a&&a.getIntegration(n)&&a.withScope(function(n){i&&n.setExtra("cause",i),n.addEventProcessor(function(n){var t=n.exception&&n.exception.values&&n.exception.values[0];if(t){var e=g.exec(t.value||"");e&&(t.type=e[1],t.value=e[2],n.message=t.type+": "+t.value,n.extra=r(r({},n.extra),{angularDocs:e[3].substr(0,250)}))}return n}),a.captureException(o)}),t(o,i)}},n.id="AngularJS",n.moduleName="ngSentry",n}();for(var E in t.Angular=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,E)&&(n.Sentry.Integrations[E]=t[E])}(window);
!function(n){var t={};Object.defineProperty(t,"__esModule",{value:!0});var e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)};var r=function(){return(r=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};var o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,t){return n.__proto__=t,n}:function(n,t){for(var e in t)n.hasOwnProperty(e)||(n[e]=t[e]);return n});!function(n){function t(t){var e=this.constructor,r=n.call(this,t)||this;return r.message=t,r.name=e.prototype.constructor.name,o(r,e.prototype),r}(function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,n)}(Error);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var a={};function u(){return i()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function c(n){var t=u();if(!("console"in t))return n();var e=t.console,r={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&e[n].__sentry_original__&&(r[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(r).forEach(function(n){e[n]=r[n]}),o}var s=u(),f="Sentry Logger ",l=function(){function n(){this._enabled=!1}return n.prototype.disable=function(){this._enabled=!1},n.prototype.enable=function(){this._enabled=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.log(f+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.warn(f+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._enabled&&c(function(){s.console.error(f+"[Error]: "+n.join(" "))})},n}();s.__SENTRY__=s.__SENTRY__||{};var _,p=s.__SENTRY__.logger||(s.__SENTRY__.logger=new l);u();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(_||(_={}));!function(){function n(n){var t=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(n){t._setResult(_.RESOLVED,n)},this._reject=function(n){t._setResult(_.REJECTED,n)},this._setResult=function(n,e){var r;t._state===_.PENDING&&(r=e,Boolean(r&&r.then&&"function"==typeof r.then)?e.then(t._resolve,t._reject):(t._state=n,t._value=e,t._executeHandlers()))},this._attachHandler=function(n){t._handlers=t._handlers.concat(n),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_.PENDING){var n=t._handlers.slice();t._handlers=[],n.forEach(function(n){n.done||(t._state===_.RESOLVED&&n.onfulfilled&&n.onfulfilled(t._value),t._state===_.REJECTED&&n.onrejected&&n.onrejected(t._value),n.done=!0)})}};try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}n.resolve=function(t){return new n(function(n){n(t)})},n.reject=function(t){return new n(function(n,e){e(t)})},n.all=function(t){return new n(function(e,r){if(Array.isArray(t))if(0!==t.length){var o=t.length,i=[];t.forEach(function(t,a){n.resolve(t).then(function(n){i[a]=n,0===(o-=1)&&e(i)}).then(null,r)})}else e([]);else r(new TypeError("Promise.all requires an array as input."))})},n.prototype.then=function(t,e){var r=this;return new n(function(n,o){r._attachHandler({done:!1,onfulfilled:function(e){if(t)try{return void n(t(e))}catch(n){return void o(n)}else n(e)},onrejected:function(t){if(e)try{return void n(e(t))}catch(n){return void o(n)}else o(t)}})})},n.prototype.catch=function(n){return this.then(function(n){return n},n)},n.prototype.finally=function(t){var e=this;return new n(function(n,r){var o,i;return e.then(function(n){i=!1,o=n,t&&t()},function(n){i=!0,o=n,t&&t()}).then(function(){i?r(o):n(o)})})},n.prototype.toString=function(){return"[object SyncPromise]"}}();var h={nowSeconds:function(){return Date.now()/1e3}};var d=i()?function(){try{return(n=module,t="perf_hooks",n.require(t)).performance}catch(n){return}var n,t}():function(){var n=u().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),g=void 0===d?h:{nowSeconds:function(){return(d.timeOrigin+d.now())/1e3}},v=(h.nowSeconds.bind(h),g.nowSeconds.bind(g),function(){var n=u().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/),y=function(){function n(t){void 0===t&&(t={}),this.name=n.id,p.log("You are still using the Angular integration, consider moving to @sentry/angular"),this._angular=t.angular||u().angular,this._angular?this._module=this._angular.module(n.moduleName,[]):p.error("AngularIntegration is missing an Angular instance")}return n.prototype.setupOnce=function(n,t){var e=this;this._module&&(this._getCurrentHub=t,this._module.config(["$provide",function(n){n.decorator("$exceptionHandler",["$delegate",e._$exceptionHandlerDecorator.bind(e)])}]))},n.prototype._$exceptionHandlerDecorator=function(t){var e=this;return function(o,i){var a=e._getCurrentHub&&e._getCurrentHub();a&&a.getIntegration(n)&&a.withScope(function(n){i&&n.setExtra("cause",i),n.addEventProcessor(function(n){var t=n.exception&&n.exception.values&&n.exception.values[0];if(t){var e=v.exec(t.value||"");e&&(t.type=e[1],t.value=e[2],n.message=t.type+": "+t.value,n.extra=r(r({},n.extra),{angularDocs:e[3].substr(0,250)}))}return n}),a.captureException(o)}),t(o,i)}},n.id="AngularJS",n.moduleName="ngSentry",n}();for(var E in t.Angular=y,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},t)Object.prototype.hasOwnProperty.call(t,E)&&(n.Sentry.Integrations[E]=t[E])}(window);
//# sourceMappingURL=angular.min.js.map

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

};
logger.log('You are still using the Vue.js integration, consider moving to @sentry/vue');
this._options = __assign(__assign({

@@ -718,0 +719,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access

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

!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var o=function(t,n){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])})(t,n)};var e=function(){return(e=Object.assign||function(t){for(var n,o=1,e=arguments.length;o<e;o++)for(var r in n=arguments[o])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)};function r(t,n){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var e,r,i=o.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)a.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}var i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var o in n)t.hasOwnProperty(o)||(t[o]=n[o]);return t});!function(t){function n(n){var o=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=o.prototype.constructor.name,i(e,o.prototype),e}(function(t,n){function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)})(n,t)}(Error);function a(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function s(){return a()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function u(t){var n=s();if(!("console"in n))return t();var o=n.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&o[t].__sentry_original__&&(e[t]=o[t],o[t]=o[t].__sentry_original__)});var r=t();return Object.keys(e).forEach(function(t){o[t]=e[t]}),r}var p=s(),f="Sentry Logger ",l=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&&u(function(){p.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.error(f+"[Error]: "+t.join(" "))})},t}();p.__SENTRY__=p.__SENTRY__||{};var _,h=p.__SENTRY__.logger||(p.__SENTRY__.logger=new l),g=(s(),/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/);function d(t,n){var o,e,r=(o=t,e=g.exec(o),e?e.slice(1):[])[2];return n&&r.substr(-1*n.length)===n&&(r=r.substr(0,r.length-n.length)),r}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(_||(_={}));!function(){function t(t){var n=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(_.RESOLVED,t)},this._reject=function(t){n._setResult(_.REJECTED,t)},this._setResult=function(t,o){var e;n._state===_.PENDING&&(e=o,Boolean(e&&e.then&&"function"==typeof e.then)?o.then(n._resolve,n._reject):(n._state=t,n._value=o,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==_.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===_.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===_.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,o){o(n)})},t.all=function(n){return new t(function(o,e){if(Array.isArray(n))if(0!==n.length){var r=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(r-=1)&&o(i)}).then(null,e)})}else o([]);else e(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,o){var e=this;return new t(function(t,r){e._attachHandler({done:!1,onfulfilled:function(o){if(n)try{return void t(n(o))}catch(t){return void r(t)}else t(o)},onrejected:function(n){if(o)try{return void t(o(n))}catch(t){return void r(t)}else r(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var o=this;return new t(function(t,e){var r,i;return o.then(function(t){i=!1,r=t,n&&n()},function(t){i=!0,r=t,n&&n()}).then(function(){i?e(r):t(r)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var v=a()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=s().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),m=void 0===v?y:{nowSeconds:function(){return(v.timeOrigin+v.now())/1e3}},E=(y.nowSeconds.bind(y),m.nowSeconds.bind(m)),S=(function(){var t=s().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),{id:"Tracing"}),w={id:"BrowserTracing"},b={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},O=/(?:^|[-_\/])(\w)/g,T="root",V=function(){function t(n){var o=this;this.name=t.id,this._componentsCache={},this._applyTracingHooks=function(t,n){if(!t.$options.$_sentryPerfHook){t.$options.$_sentryPerfHook=!0;var e=o._getComponentName(t),i=e===T,a={};o._options.tracingOptions.hooks.forEach(function(c){var s=b[c];s?s.forEach(function(s){var u=i?function(e){var r=E();o._rootSpan?o._finishRootSpan(r,n):t.$once("hook:"+e,function(){var t=n().getIntegration(S);if(t){o._tracingActivity=t.constructor.pushActivity("Vue Application Render");var e=t.constructor.getTransaction();e&&(o._rootSpan=e.startChild({description:"Application Render",op:"Vue"}))}else{var r=j(n());r&&(o._rootSpan=r.startChild({description:"Application Render",op:"Vue"}))}})}.bind(o,s):function(r,i){var c=Array.isArray(o._options.tracingOptions.trackComponents)?o._options.tracingOptions.trackComponents.indexOf(e)>-1:o._options.tracingOptions.trackComponents;if(o._rootSpan&&c){var s=E(),u=a[i];u?(u.finish(),o._finishRootSpan(s,n)):t.$once("hook:"+r,function(){o._rootSpan&&(a[i]=o._rootSpan.startChild({description:"Vue <"+e+">",op:i}))})}}.bind(o,s,c),p=t.$options[s];Array.isArray(p)?t.$options[s]=function(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(r(arguments[n]));return t}([u],p):t.$options[s]="function"==typeof p?[u,p]:[u]}):h.warn("Unknown hook: "+c)})}},this._options=e(e({Vue:s().Vue,attachProps:!0,logErrors:!1,tracing:!1},n),{tracingOptions:e({hooks:["mount","update"],timeout:2e3,trackComponents:!1},n.tracingOptions)})}return t.prototype.setupOnce=function(t,n){this._options.Vue?(this._attachErrorHandler(n),this._options.tracing&&this._startTracing(n)):h.error("Vue integration is missing a Vue instance")},t.prototype._getComponentName=function(t){if(!t)return"anonymous component";if(t.$root===t)return T;if(!t.$options)return"anonymous component";if(t.$options.name)return t.$options.name;if(t.$options._componentTag)return t.$options._componentTag;if(t.$options.__file){var n=d(t.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(O,function(t,n){return n?n.toUpperCase():""}))}return"anonymous component"},t.prototype._finishRootSpan=function(t,n){var o=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout(function(){if(o._tracingActivity){var e=n().getIntegration(S);e&&e.constructor.popActivity(o._tracingActivity)}o._rootSpan&&o._rootSpan.finish(t)},this._options.tracingOptions.timeout)},t.prototype._startTracing=function(t){var n=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){t().getIntegration(S)||t().getIntegration(w)?n(this,t):h.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},t.prototype._attachErrorHandler=function(n){var o=this,e=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(r,i,a){var c={};if(i)try{c.componentName=o._getComponentName(i),o._options.attachProps&&(c.propsData=i.$options.propsData)}catch(t){h.warn("Unable to extract metadata from Vue component.")}a&&(c.lifecycleHook=a),n().getIntegration(t)&&setTimeout(function(){n().withScope(function(t){t.setContext("vue",c),n().captureException(r)})}),"function"==typeof e&&e.call(o._options.Vue,r,i,a),o._options.logErrors&&(o._options.Vue.util&&o._options.Vue.util.warn("Error in "+a+': "'+r.toString()+'"',i),console.error(r))}},t.id="Vue",t}();function j(t){if(t&&t.getScope){var n=t.getScope();if(n)return n.getTransaction()}}for(var C in n.Vue=V,n.getActiveTransaction=j,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,C)&&(t.Sentry.Integrations[C]=n[C])}(window);
!function(t){var n={};Object.defineProperty(n,"__esModule",{value:!0});var o=function(t,n){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])})(t,n)};var e=function(){return(e=Object.assign||function(t){for(var n,o=1,e=arguments.length;o<e;o++)for(var r in n=arguments[o])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}).apply(this,arguments)};function r(t,n){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var e,r,i=o.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)a.push(e.value)}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return a}var i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var o in n)t.hasOwnProperty(o)||(t[o]=n[o]);return t});!function(t){function n(n){var o=this.constructor,e=t.call(this,n)||this;return e.message=n,e.name=o.prototype.constructor.name,i(e,o.prototype),e}(function(t,n){function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)})(n,t)}(Error);function a(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var c={};function s(){return a()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}function u(t){var n=s();if(!("console"in n))return t();var o=n.console,e={};["debug","info","warn","error","log","assert"].forEach(function(t){t in n.console&&o[t].__sentry_original__&&(e[t]=o[t],o[t]=o[t].__sentry_original__)});var r=t();return Object.keys(e).forEach(function(t){o[t]=e[t]}),r}var p=s(),f="Sentry Logger ",l=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&&u(function(){p.console.log(f+"[Log]: "+t.join(" "))})},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.warn(f+"[Warn]: "+t.join(" "))})},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&u(function(){p.console.error(f+"[Error]: "+t.join(" "))})},t}();p.__SENTRY__=p.__SENTRY__||{};var _,h=p.__SENTRY__.logger||(p.__SENTRY__.logger=new l),g=(s(),/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/);function d(t,n){var o,e,r=(o=t,e=g.exec(o),e?e.slice(1):[])[2];return n&&r.substr(-1*n.length)===n&&(r=r.substr(0,r.length-n.length)),r}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(_||(_={}));!function(){function t(t){var n=this;this._state=_.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(_.RESOLVED,t)},this._reject=function(t){n._setResult(_.REJECTED,t)},this._setResult=function(t,o){var e;n._state===_.PENDING&&(e=o,Boolean(e&&e.then&&"function"==typeof e.then)?o.then(n._resolve,n._reject):(n._state=t,n._value=o,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==_.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach(function(t){t.done||(n._state===_.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===_.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,o){o(n)})},t.all=function(n){return new t(function(o,e){if(Array.isArray(n))if(0!==n.length){var r=n.length,i=[];n.forEach(function(n,a){t.resolve(n).then(function(t){i[a]=t,0===(r-=1)&&o(i)}).then(null,e)})}else o([]);else e(new TypeError("Promise.all requires an array as input."))})},t.prototype.then=function(n,o){var e=this;return new t(function(t,r){e._attachHandler({done:!1,onfulfilled:function(o){if(n)try{return void t(n(o))}catch(t){return void r(t)}else t(o)},onrejected:function(n){if(o)try{return void t(o(n))}catch(t){return void r(t)}else r(n)}})})},t.prototype.catch=function(t){return this.then(function(t){return t},t)},t.prototype.finally=function(n){var o=this;return new t(function(t,e){var r,i;return o.then(function(t){i=!1,r=t,n&&n()},function(t){i=!0,r=t,n&&n()}).then(function(){i?e(r):t(r)})})},t.prototype.toString=function(){return"[object SyncPromise]"}}();var y={nowSeconds:function(){return Date.now()/1e3}};var v=a()?function(){try{return(t=module,n="perf_hooks",t.require(n)).performance}catch(t){return}var t,n}():function(){var t=s().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),m=void 0===v?y:{nowSeconds:function(){return(v.timeOrigin+v.now())/1e3}},E=(y.nowSeconds.bind(y),m.nowSeconds.bind(m)),S=(function(){var t=s().performance;if(t)t.timeOrigin?t.timeOrigin:t.timing&&t.timing.navigationStart||Date.now()}(),{id:"Tracing"}),w={id:"BrowserTracing"},b={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},O=/(?:^|[-_\/])(\w)/g,T="root",V=function(){function t(n){var o=this;this.name=t.id,this._componentsCache={},this._applyTracingHooks=function(t,n){if(!t.$options.$_sentryPerfHook){t.$options.$_sentryPerfHook=!0;var e=o._getComponentName(t),i=e===T,a={};o._options.tracingOptions.hooks.forEach(function(c){var s=b[c];s?s.forEach(function(s){var u=i?function(e){var r=E();o._rootSpan?o._finishRootSpan(r,n):t.$once("hook:"+e,function(){var t=n().getIntegration(S);if(t){o._tracingActivity=t.constructor.pushActivity("Vue Application Render");var e=t.constructor.getTransaction();e&&(o._rootSpan=e.startChild({description:"Application Render",op:"Vue"}))}else{var r=j(n());r&&(o._rootSpan=r.startChild({description:"Application Render",op:"Vue"}))}})}.bind(o,s):function(r,i){var c=Array.isArray(o._options.tracingOptions.trackComponents)?o._options.tracingOptions.trackComponents.indexOf(e)>-1:o._options.tracingOptions.trackComponents;if(o._rootSpan&&c){var s=E(),u=a[i];u?(u.finish(),o._finishRootSpan(s,n)):t.$once("hook:"+r,function(){o._rootSpan&&(a[i]=o._rootSpan.startChild({description:"Vue <"+e+">",op:i}))})}}.bind(o,s,c),p=t.$options[s];Array.isArray(p)?t.$options[s]=function(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(r(arguments[n]));return t}([u],p):t.$options[s]="function"==typeof p?[u,p]:[u]}):h.warn("Unknown hook: "+c)})}},h.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=e(e({Vue:s().Vue,attachProps:!0,logErrors:!1,tracing:!1},n),{tracingOptions:e({hooks:["mount","update"],timeout:2e3,trackComponents:!1},n.tracingOptions)})}return t.prototype.setupOnce=function(t,n){this._options.Vue?(this._attachErrorHandler(n),this._options.tracing&&this._startTracing(n)):h.error("Vue integration is missing a Vue instance")},t.prototype._getComponentName=function(t){if(!t)return"anonymous component";if(t.$root===t)return T;if(!t.$options)return"anonymous component";if(t.$options.name)return t.$options.name;if(t.$options._componentTag)return t.$options._componentTag;if(t.$options.__file){var n=d(t.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(O,function(t,n){return n?n.toUpperCase():""}))}return"anonymous component"},t.prototype._finishRootSpan=function(t,n){var o=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout(function(){if(o._tracingActivity){var e=n().getIntegration(S);e&&e.constructor.popActivity(o._tracingActivity)}o._rootSpan&&o._rootSpan.finish(t)},this._options.tracingOptions.timeout)},t.prototype._startTracing=function(t){var n=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){t().getIntegration(S)||t().getIntegration(w)?n(this,t):h.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},t.prototype._attachErrorHandler=function(n){var o=this,e=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(r,i,a){var c={};if(i)try{c.componentName=o._getComponentName(i),o._options.attachProps&&(c.propsData=i.$options.propsData)}catch(t){h.warn("Unable to extract metadata from Vue component.")}a&&(c.lifecycleHook=a),n().getIntegration(t)&&setTimeout(function(){n().withScope(function(t){t.setContext("vue",c),n().captureException(r)})}),"function"==typeof e&&e.call(o._options.Vue,r,i,a),o._options.logErrors&&(o._options.Vue.util&&o._options.Vue.util.warn("Error in "+a+': "'+r.toString()+'"',i),console.error(r))}},t.id="Vue",t}();function j(t){if(t&&t.getScope){var n=t.getScope();if(n)return n.getTransaction()}}for(var C in n.Vue=V,n.getActiveTransaction=j,t.Sentry=t.Sentry||{},t.Sentry.Integrations=t.Sentry.Integrations||{},n)Object.prototype.hasOwnProperty.call(n,C)&&(t.Sentry.Integrations[C]=n[C])}(window);
//# sourceMappingURL=vue.min.js.map

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

this.name = Angular.id;
utils_1.logger.log('You are still using the Angular integration, consider moving to @sentry/angular');
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access

@@ -24,0 +25,0 @@ this._angular = options.angular || utils_1.getGlobalObject().angular;

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

};
utils_1.logger.log('You are still using the Vue.js integration, consider moving to @sentry/vue');
this._options = tslib_1.__assign(tslib_1.__assign({

@@ -155,0 +156,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access

@@ -21,2 +21,3 @@ import { __assign } from "tslib";

this.name = Angular.id;
logger.log('You are still using the Angular integration, consider moving to @sentry/angular');
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access

@@ -23,0 +24,0 @@ this._angular = options.angular || getGlobalObject().angular;

@@ -152,2 +152,3 @@ import { __assign, __read, __spread } from "tslib";

};
logger.log('You are still using the Vue.js integration, consider moving to @sentry/vue');
this._options = __assign(__assign({

@@ -154,0 +155,0 @@ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access

{
"name": "@sentry/integrations",
"version": "5.27.7-beta.0",
"version": "5.28.0",
"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": "5.27.7-beta.0",
"@sentry/utils": "5.27.7-beta.0",
"@sentry/types": "5.28.0",
"@sentry/utils": "5.28.0",
"localforage": "1.8.1",

@@ -26,3 +26,3 @@ "tslib": "^1.9.3"

"devDependencies": {
"@sentry-internal/eslint-config-sdk": "5.27.7-beta.0",
"@sentry-internal/eslint-config-sdk": "5.28.0",
"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

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