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.26.0 to 5.27.0-beta.0

15

build/captureconsole.js

@@ -19,2 +19,17 @@ (function (__window) {

/**
* Session Status
*/
var SessionStatus;
(function (SessionStatus) {
/** JSDoc */
SessionStatus["Ok"] = "ok";
/** JSDoc */
SessionStatus["Exited"] = "exited";
/** JSDoc */
SessionStatus["Crashed"] = "crashed";
/** JSDoc */
SessionStatus["Abnormal"] = "abnormal";
})(SessionStatus || (SessionStatus = {}));
/** JSDoc */

@@ -21,0 +36,0 @@ // eslint-disable-next-line import/export

2

build/captureconsole.min.js

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

!function(n){var e,t,r,o={};Object.defineProperty(o,"__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.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(t||(t={})),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}}}(t||(t={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(r||(r={})),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}}(r||(r={}));var i=function(n,e){return(i=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 c=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,c(r,t.prototype),r}(function(n,e){function t(){this.constructor=n}i(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,n)}(Error);function a(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 u(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var s={};function f(){return u()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:s}function l(n){var e=f();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 _=f(),p="Sentry Logger ",d=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&&l(function(){_.console.log(p+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&l(function(){_.console.warn(p+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&l(function(){_.console.error(p+"[Error]: "+n.join(" "))})},n}();_.__SENTRY__=_.__SENTRY__||{};var h;_.__SENTRY__.logger||(_.__SENTRY__.logger=new d),f();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(h||(h={}));!function(){function n(n){var e=this;this._state=h.PENDING,this._handlers=[],this._resolve=function(n){e._setResult(h.RESOLVED,n)},this._reject=function(n){e._setResult(h.REJECTED,n)},this._setResult=function(n,t){var r;e._state===h.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!==h.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach(function(n){n.done||(e._state===h.RESOLVED&&n.onfulfilled&&n.onfulfilled(e._value),e._state===h.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 g={nowSeconds:function(){return Date.now()/1e3}};var v=u()?function(){try{return(n=module,e="perf_hooks",n.require(e)).performance}catch(n){return}var n,e}():function(){var n=f().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),y=void 0===v?g:{nowSeconds:function(){return(v.timeOrigin+v.now())/1e3}},E=(g.nowSeconds.bind(g),y.nowSeconds.bind(y),function(){var n=f().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),f()),w=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,r){"console"in E&&this._levels.forEach(function(e){e in E.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}}(E.console,e,function(o){return function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];var u=r();u.getIntegration(n)&&u.withScope(function(n){n.setLevel(t.fromString(e)),n.setExtra("arguments",i),n.addEventProcessor(function(n){return n.logger="console",n});var r=a(i," ");"assert"===e?!1===i[0]&&(r="Assertion failed: "+(a(i.slice(1)," ")||"console.assert"),n.setExtra("arguments",i.slice(1)),u.captureMessage(r)):u.captureMessage(r)}),o&&Function.prototype.apply.call(o,E.console,i)}})})},n.id="CaptureConsole",n}();for(var b in o.CaptureConsole=w,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},o)Object.prototype.hasOwnProperty.call(o,b)&&(n.Sentry.Integrations[b]=o[b])}(window);
!function(n){var e,t,r,o,i={};Object.defineProperty(i,"__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={}));var c=function(n,e){return(c=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 a=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,a(r,t.prototype),r}(function(n,e){function t(){this.constructor=n}c(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)})(e,n)}(Error);function u(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 s(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var f={};function l(){return s()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:f}function _(n){var e=l();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 p=l(),d="Sentry Logger ",h=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&&_(function(){p.console.log(d+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&_(function(){p.console.warn(d+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];this._enabled&&_(function(){p.console.error(d+"[Error]: "+n.join(" "))})},n}();p.__SENTRY__=p.__SENTRY__||{};var g;p.__SENTRY__.logger||(p.__SENTRY__.logger=new h),l();!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(g||(g={}));!function(){function n(n){var e=this;this._state=g.PENDING,this._handlers=[],this._resolve=function(n){e._setResult(g.RESOLVED,n)},this._reject=function(n){e._setResult(g.REJECTED,n)},this._setResult=function(n,t){var r;e._state===g.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!==g.PENDING){var n=e._handlers.slice();e._handlers=[],n.forEach(function(n){n.done||(e._state===g.RESOLVED&&n.onfulfilled&&n.onfulfilled(e._value),e._state===g.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 v={nowSeconds:function(){return Date.now()/1e3}};var y=s()?function(){try{return(n=module,e="perf_hooks",n.require(e)).performance}catch(n){return}var n,e}():function(){var n=l().performance;if(n&&n.now)return{now:function(){return n.now()},timeOrigin:Date.now()-n.now()}}(),E=void 0===y?v:{nowSeconds:function(){return(y.timeOrigin+y.now())/1e3}},w=(v.nowSeconds.bind(v),E.nowSeconds.bind(E),function(){var n=l().performance;if(n)n.timeOrigin?n.timeOrigin:n.timing&&n.timing.navigationStart||Date.now()}(),l()),b=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 w&&this._levels.forEach(function(e){e in w.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}}(w.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=u(i," ");"assert"===e?!1===i[0]&&(t="Assertion failed: "+(u(i.slice(1)," ")||"console.assert"),n.setExtra("arguments",i.slice(1)),a.captureMessage(t)):a.captureMessage(t)}),o&&Function.prototype.apply.call(o,w.console,i)}})})},n.id="CaptureConsole",n}();for(var S in i.CaptureConsole=b,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},i)Object.prototype.hasOwnProperty.call(i,S)&&(n.Sentry.Integrations[S]=i[S])}(window);
//# sourceMappingURL=captureconsole.min.js.map
{
"name": "@sentry/integrations",
"version": "5.26.0",
"version": "5.27.0-beta.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.26.0",
"@sentry/utils": "5.26.0",
"@sentry/types": "5.27.0-beta.0",
"@sentry/utils": "5.27.0-beta.0",
"localforage": "1.8.1",

@@ -23,0 +23,0 @@ "tslib": "^1.9.3"

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