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

@sentry/integrations

Package Overview
Dependencies
Maintainers
9
Versions
388
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.1.0 to 5.1.2

36

build/captureconsole.js

@@ -430,17 +430,23 @@ (function (__window) {

if (typeof wrapped === 'function') {
wrapped.prototype = wrapped.prototype || {};
Object.defineProperties(wrapped, {
__sentry__: {
enumerable: false,
value: true,
},
__sentry_original__: {
enumerable: false,
value: original,
},
__sentry_wrapped__: {
enumerable: false,
value: wrapped,
},
});
try {
wrapped.prototype = wrapped.prototype || {};
Object.defineProperties(wrapped, {
__sentry__: {
enumerable: false,
value: true,
},
__sentry_original__: {
enumerable: false,
value: original,
},
__sentry_wrapped__: {
enumerable: false,
value: wrapped,
},
});
}
catch (_Oo) {
// This can throw if multiple fill happens on a global object like XMLHttpRequest
// Fixes https://github.com/getsentry/sentry-javascript/issues/2043
}
}

@@ -447,0 +453,0 @@ source[name] = wrapped;

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

!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};var e,i,o,u=function(){return(u=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function c(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var e,i,o=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(n){i={error:n}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function f(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(c(arguments[t]));return n}!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"}(i||(i={})),function(n){n.fromString=function(t){switch(t){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}}}(i||(i={})),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(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(o||(o={}));!function(n){function t(t){var r=this.constructor,e=n.call(this,t)||this;return e.message=t,e.name=r.prototype.constructor.name,Object.setPrototypeOf(e,r.prototype),e}(function(n,t){function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)})(t,n)}(Error);function a(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function s(n){return function(n){return"[object Object]"===Object.prototype.toString.call(n)}(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}var l={};function v(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function b(n){var t=v();if(!("console"in t))return n();var r=t.console,e={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].i&&(e[n]=r[n].o,r[n]=r[n].u)});var i=n();return Object.keys(e).forEach(function(n){r[n]=e[n]}),i}var d=v(),h="Sentry Logger ",y=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&b(function(){d.console.log(h+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&b(function(){d.console.warn(h+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&b(function(){d.console.error(h+"[Error]: "+n.join(" "))})},n}();d.l=d.l||{};d.l.logger||(d.l.logger=new y);var p,j=function(){function n(){this.v="function"==typeof WeakSet,this.h=this.v?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.v)return!!this.h.has(n)||(this.h.add(n),!1);for(var t=0;t<this.h.length;t++){if(this.h[t]===n)return!0}return this.h.push(n),!1},n.prototype.unmemoize=function(n){if(this.v)this.h.delete(n);else for(var t=0;t<this.h.length;t++)if(this.h[t]===n){this.h.splice(t,1);break}},n}();function w(n,t){return"domain"===t&&"object"==typeof n&&n.p?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":s(n)?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"<unknown-function-name>")+"]":n}function g(n,t,r,e){if(void 0===r&&(r=1/0),void 0===e&&(e=new j),0===r)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=w(n);return a(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=w(t,n);if(a(i))return i;var o=function(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}(t):t,u=Array.isArray(t)?[]:{};if(e.memoize(t))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=g(c,o[c],r-1,e));return e.unmemoize(t),u}function O(n,t){try{return JSON.parse(JSON.stringify(n,function(n,r){return g(n,r,t)}))}catch(n){return"**non-serializable**"}}function m(n,t){if(!Array.isArray(n))return"";for(var r=[],e=0;e<n.length;e++){var i=n[e];try{r.push(String(i))}catch(n){r.push("[value cannot be serialized]")}}return r.join(t)}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(p||(p={}));var _=v(),E=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.j=["log","info","warn","error","debug","assert"],t.levels&&(this.j=t.levels)}return n.prototype.setupOnce=function(t,r){"console"in _&&this.j.forEach(function(t){t in _.console&&function(n,t,r){if(t in n){var e=n[t],i=r(e);"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{i:{enumerable:!1,value:!0},u:{enumerable:!1,value:e},o:{enumerable:!1,value:i}})),n[t]=i}}(_.console,t,function(e){return function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];var a=r();a.getIntegration(n)&&a.withScope(function(n){n.setLevel(i.fromString(t)),n.setExtra("arguments",O(o,3)),n.addEventProcessor(function(n){return n.logger="console",n.sdk&&(n.sdk=u({},n.sdk,{integrations:f(n.sdk.integrations||[],["console"])})),n});var r=m(o," ");"assert"===t?!1===o[0]&&(r="Assertion failed: "+(m(o.slice(1)," ")||"console.assert"),n.setExtra("arguments",O(o.slice(1),3)),a.captureMessage(r)):a.captureMessage(r)}),e&&Function.prototype.apply.call(e,_.console,o)}})})},n.id="CaptureConsole",n}();t.CaptureConsole=E,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window);
!function(n){"use strict";var t={};Object.defineProperty(t,"t",{value:!0});var r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)};var e,i,o,u=function(){return(u=Object.assign||function(n){for(var t,r=1,e=arguments.length;r<e;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function c(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var e,i,o=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(n){i={error:n}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function f(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(c(arguments[t]));return n}!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"}(i||(i={})),function(n){n.fromString=function(t){switch(t){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}}}(i||(i={})),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(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(o||(o={}));!function(n){function t(t){var r=this.constructor,e=n.call(this,t)||this;return e.message=t,e.name=r.prototype.constructor.name,Object.setPrototypeOf(e,r.prototype),e}(function(n,t){function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)})(t,n)}(Error);function a(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function s(n){return function(n){return"[object Object]"===Object.prototype.toString.call(n)}(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}var l={};function v(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function b(n){var t=v();if(!("console"in t))return n();var r=t.console,e={};["debug","info","warn","error","log","assert"].forEach(function(n){n in t.console&&r[n].i&&(e[n]=r[n].o,r[n]=r[n].u)});var i=n();return Object.keys(e).forEach(function(n){r[n]=e[n]}),i}var d=v(),h="Sentry Logger ",y=function(){function n(){this.s=!1}return n.prototype.disable=function(){this.s=!1},n.prototype.enable=function(){this.s=!0},n.prototype.log=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&b(function(){d.console.log(h+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&b(function(){d.console.warn(h+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this.s&&b(function(){d.console.error(h+"[Error]: "+n.join(" "))})},n}();d.l=d.l||{};d.l.logger||(d.l.logger=new y);var p,j=function(){function n(){this.v="function"==typeof WeakSet,this.h=this.v?new WeakSet:[]}return n.prototype.memoize=function(n){if(this.v)return!!this.h.has(n)||(this.h.add(n),!1);for(var t=0;t<this.h.length;t++){if(this.h[t]===n)return!0}return this.h.push(n),!1},n.prototype.unmemoize=function(n){if(this.v)this.h.delete(n);else for(var t=0;t<this.h.length;t++)if(this.h[t]===n){this.h.splice(t,1);break}},n}();function w(n,t){return"domain"===t&&"object"==typeof n&&n.p?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&n===global?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":"undefined"!=typeof Event&&n instanceof Event?Object.getPrototypeOf(n)?n.constructor.name:"Event":s(n)?"[SyntheticEvent]":Number.isNaN(n)?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+(n.name||"<unknown-function-name>")+"]":n}function g(n,t,r,e){if(void 0===r&&(r=1/0),void 0===e&&(e=new j),0===r)return function(n){var t=Object.prototype.toString.call(n);if("string"==typeof n)return n;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=w(n);return a(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=w(t,n);if(a(i))return i;var o=function(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}(t)?function(n){var t={message:n.message,name:n.name,stack:n.stack};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t}(t):t,u=Array.isArray(t)?[]:{};if(e.memoize(t))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(u[c]=g(c,o[c],r-1,e));return e.unmemoize(t),u}function O(n,t){try{return JSON.parse(JSON.stringify(n,function(n,r){return g(n,r,t)}))}catch(n){return"**non-serializable**"}}function m(n,t){if(!Array.isArray(n))return"";for(var r=[],e=0;e<n.length;e++){var i=n[e];try{r.push(String(i))}catch(n){r.push("[value cannot be serialized]")}}return r.join(t)}!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(p||(p={}));var _=v(),E=function(){function n(t){void 0===t&&(t={}),this.name=n.id,this.j=["log","info","warn","error","debug","assert"],t.levels&&(this.j=t.levels)}return n.prototype.setupOnce=function(t,r){"console"in _&&this.j.forEach(function(t){t in _.console&&function(n,t,r){if(t in n){var e=n[t],i=r(e);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{i:{enumerable:!1,value:!0},u:{enumerable:!1,value:e},o:{enumerable:!1,value:i}})}catch(n){}n[t]=i}}(_.console,t,function(e){return function(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];var a=r();a.getIntegration(n)&&a.withScope(function(n){n.setLevel(i.fromString(t)),n.setExtra("arguments",O(o,3)),n.addEventProcessor(function(n){return n.logger="console",n.sdk&&(n.sdk=u({},n.sdk,{integrations:f(n.sdk.integrations||[],["console"])})),n});var r=m(o," ");"assert"===t?!1===o[0]&&(r="Assertion failed: "+(m(o.slice(1)," ")||"console.assert"),n.setExtra("arguments",O(o.slice(1),3)),a.captureMessage(r)):a.captureMessage(r)}),e&&Function.prototype.apply.call(e,_.console,o)}})})},n.id="CaptureConsole",n}();t.CaptureConsole=E,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},Object.assign(n.Sentry.Integrations,t)}(window);
//# sourceMappingURL=captureconsole.min.js.map
{
"name": "@sentry/integrations",
"version": "5.1.0",
"version": "5.1.2",
"description": "Pluggable integrations that can be used to enchance JS SDKs",

@@ -21,3 +21,3 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"@sentry/types": "5.1.0",
"@sentry/utils": "5.1.0"
"@sentry/utils": "5.1.2"
},

@@ -24,0 +24,0 @@ "devDependencies": {

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