@sentry/integrations
Advanced tools
Comparing version 5.16.0-beta.1 to 5.16.0-beta.2
@@ -69,88 +69,2 @@ (function (__window) { | ||
/** The status of an Span. */ | ||
var SpanStatus; | ||
(function (SpanStatus) { | ||
/** The operation completed successfully. */ | ||
SpanStatus["Ok"] = "ok"; | ||
/** Deadline expired before operation could complete. */ | ||
SpanStatus["DeadlineExceeded"] = "deadline_exceeded"; | ||
/** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */ | ||
SpanStatus["Unauthenticated"] = "unauthenticated"; | ||
/** 403 Forbidden */ | ||
SpanStatus["PermissionDenied"] = "permission_denied"; | ||
/** 404 Not Found. Some requested entity (file or directory) was not found. */ | ||
SpanStatus["NotFound"] = "not_found"; | ||
/** 429 Too Many Requests */ | ||
SpanStatus["ResourceExhausted"] = "resource_exhausted"; | ||
/** Client specified an invalid argument. 4xx. */ | ||
SpanStatus["InvalidArgument"] = "invalid_argument"; | ||
/** 501 Not Implemented */ | ||
SpanStatus["Unimplemented"] = "unimplemented"; | ||
/** 503 Service Unavailable */ | ||
SpanStatus["Unavailable"] = "unavailable"; | ||
/** Other/generic 5xx. */ | ||
SpanStatus["InternalError"] = "internal_error"; | ||
/** Unknown. Any non-standard HTTP status code. */ | ||
SpanStatus["UnknownError"] = "unknown_error"; | ||
/** The operation was cancelled (typically by the user). */ | ||
SpanStatus["Cancelled"] = "cancelled"; | ||
/** Already exists (409) */ | ||
SpanStatus["AlreadyExists"] = "already_exists"; | ||
/** Operation was rejected because the system is not in a state required for the operation's */ | ||
SpanStatus["FailedPrecondition"] = "failed_precondition"; | ||
/** The operation was aborted, typically due to a concurrency issue. */ | ||
SpanStatus["Aborted"] = "aborted"; | ||
/** Operation was attempted past the valid range. */ | ||
SpanStatus["OutOfRange"] = "out_of_range"; | ||
/** Unrecoverable data loss or corruption */ | ||
SpanStatus["DataLoss"] = "data_loss"; | ||
})(SpanStatus || (SpanStatus = {})); | ||
// tslint:disable:no-unnecessary-qualifier no-namespace | ||
(function (SpanStatus) { | ||
/** | ||
* Converts a HTTP status code into a {@link SpanStatus}. | ||
* | ||
* @param httpStatus The HTTP response status code. | ||
* @returns The span status or {@link SpanStatus.UnknownError}. | ||
*/ | ||
// tslint:disable-next-line:completed-docs | ||
function fromHttpCode(httpStatus) { | ||
if (httpStatus < 400) { | ||
return SpanStatus.Ok; | ||
} | ||
if (httpStatus >= 400 && httpStatus < 500) { | ||
switch (httpStatus) { | ||
case 401: | ||
return SpanStatus.Unauthenticated; | ||
case 403: | ||
return SpanStatus.PermissionDenied; | ||
case 404: | ||
return SpanStatus.NotFound; | ||
case 409: | ||
return SpanStatus.AlreadyExists; | ||
case 413: | ||
return SpanStatus.FailedPrecondition; | ||
case 429: | ||
return SpanStatus.ResourceExhausted; | ||
default: | ||
return SpanStatus.InvalidArgument; | ||
} | ||
} | ||
if (httpStatus >= 500 && httpStatus < 600) { | ||
switch (httpStatus) { | ||
case 501: | ||
return SpanStatus.Unimplemented; | ||
case 503: | ||
return SpanStatus.Unavailable; | ||
case 504: | ||
return SpanStatus.DeadlineExceeded; | ||
default: | ||
return SpanStatus.InternalError; | ||
} | ||
} | ||
return SpanStatus.UnknownError; | ||
} | ||
SpanStatus.fromHttpCode = fromHttpCode; | ||
})(SpanStatus || (SpanStatus = {})); | ||
/** The status of an event. */ | ||
@@ -157,0 +71,0 @@ var Status; |
@@ -1,2 +0,2 @@ | ||
!function(e){var n,r,t,o,i={};Object.defineProperty(i,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Debug=2]="Debug",e[e.Verbose=3]="Verbose"}(n||(n={})),function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(r||(r={})),function(e){e.fromString=function(n){switch(n){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(r||(r={})),function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(t||(t={})),function(e){e.fromHttpCode=function(n){if(n<400)return e.Ok;if(n>=400&&n<500)switch(n){case 401:return e.Unauthenticated;case 403:return e.PermissionDenied;case 404:return e.NotFound;case 409:return e.AlreadyExists;case 413:return e.FailedPrecondition;case 429:return e.ResourceExhausted;default:return e.InvalidArgument}if(n>=500&&n<600)switch(n){case 501:return e.Unimplemented;case 503:return e.Unavailable;case 504:return e.DeadlineExceeded;default:return e.InternalError}return e.UnknownError}}(t||(t={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(o||(o={})),function(e){e.fromHttpCode=function(n){return n>=200&&n<300?e.Success:429===n?e.RateLimit:n>=400&&n<500?e.Invalid:n>=500?e.Failed:e.Unknown}}(o||(o={}));var a=function(e,n){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])})(e,n)};var c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,n){return e.__proto__=n,e}:function(e,n){for(var r in n)e.hasOwnProperty(r)||(e[r]=n[r]);return e});!function(e){function n(n){var r=this.constructor,t=e.call(this,n)||this;return t.message=n,t.name=r.prototype.constructor.name,c(t,r.prototype),t}(function(e,n){function r(){this.constructor=e}a(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)})(n,e)}(Error);function u(e,n){if(!Array.isArray(e))return"";for(var r=[],t=0;t<e.length;t++){var o=e[t];try{r.push(String(o))}catch(e){r.push("[value cannot be serialized]")}}return r.join(n)}function s(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var l={};function f(){return s()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function d(e){var n=f();if(!("console"in n))return e();var r=n.console,t={};["debug","info","warn","error","log","assert"].forEach(function(e){e in n.console&&r[e].__sentry_original__&&(t[e]=r[e],r[e]=r[e].__sentry_original__)});var o=e();return Object.keys(t).forEach(function(e){r[e]=t[e]}),o}var p=Date.now(),_=0,g={now:function(){var e=Date.now()-p;return e<_&&(e=_),_=e,e},timeOrigin:p},v=(function(){if(s())try{return(e=module,n="perf_hooks",e.require(n)).performance}catch(e){return g}var e,n;f().performance&&void 0===performance.timeOrigin&&(performance.timeOrigin=performance.timing&&performance.timing.navigationStart||p),f().performance}(),f()),y="Sentry Logger ",h=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&&d(function(){v.console.log(y+"[Log]: "+e.join(" "))})},e.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._enabled&&d(function(){v.console.warn(y+"[Warn]: "+e.join(" "))})},e.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._enabled&&d(function(){v.console.error(y+"[Error]: "+e.join(" "))})},e}();v.__SENTRY__=v.__SENTRY__||{};var m;v.__SENTRY__.logger||(v.__SENTRY__.logger=new h);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(m||(m={}));f();var E=f(),b=function(){function e(n){void 0===n&&(n={}),this.name=e.id,this._levels=["log","info","warn","error","debug","assert"],n.levels&&(this._levels=n.levels)}return e.prototype.setupOnce=function(n,t){"console"in E&&this._levels.forEach(function(n){n in E.console&&function(e,n,r){if(n in e){var t=e[n],o=r(t);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:t}})}catch(e){}e[n]=o}}(E.console,n,function(o){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var c=t();c.getIntegration(e)&&c.withScope(function(e){e.setLevel(r.fromString(n)),e.setExtra("arguments",i),e.addEventProcessor(function(e){return e.logger="console",e});var t=u(i," ");"assert"===n?!1===i[0]&&(t="Assertion failed: "+(u(i.slice(1)," ")||"console.assert"),e.setExtra("arguments",i.slice(1)),c.captureMessage(t)):c.captureMessage(t)}),o&&Function.prototype.apply.call(o,E.console,i)}})})},e.id="CaptureConsole",e}();for(var w in i.CaptureConsole=b,e.Sentry=e.Sentry||{},e.Sentry.Integrations=e.Sentry.Integrations||{},i)Object.prototype.hasOwnProperty.call(i,w)&&(e.Sentry.Integrations[w]=i[w])}(window); | ||
!function(n){var r,e,t,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"}(r||(r={})),function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(e||(e={})),function(n){n.fromString=function(r){switch(r){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}}}(e||(e={})),function(n){n.Unknown="unknown",n.Skipped="skipped",n.Success="success",n.RateLimit="rate_limit",n.Invalid="invalid",n.Failed="failed"}(t||(t={})),function(n){n.fromHttpCode=function(r){return r>=200&&r<300?n.Success:429===r?n.RateLimit:r>=400&&r<500?n.Invalid:r>=500?n.Failed:n.Unknown}}(t||(t={}));var i=function(n,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var e in r)r.hasOwnProperty(e)&&(n[e]=r[e])})(n,r)};var a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(n,r){return n.__proto__=r,n}:function(n,r){for(var e in r)n.hasOwnProperty(e)||(n[e]=r[e]);return n});!function(n){function r(r){var e=this.constructor,t=n.call(this,r)||this;return t.message=r,t.name=e.prototype.constructor.name,a(t,e.prototype),t}(function(n,r){function e(){this.constructor=n}i(n,r),n.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)})(r,n)}(Error);function c(n,r){if(!Array.isArray(n))return"";for(var e=[],t=0;t<n.length;t++){var o=n[t];try{e.push(String(o))}catch(n){e.push("[value cannot be serialized]")}}return e.join(r)}function s(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}var u={};function f(){return s()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:u}function l(n){var r=f();if(!("console"in r))return n();var e=r.console,t={};["debug","info","warn","error","log","assert"].forEach(function(n){n in r.console&&e[n].__sentry_original__&&(t[n]=e[n],e[n]=e[n].__sentry_original__)});var o=n();return Object.keys(t).forEach(function(n){e[n]=t[n]}),o}var p=Date.now(),_=0,g={now:function(){var n=Date.now()-p;return n<_&&(n=_),_=n,n},timeOrigin:p},y=(function(){if(s())try{return(n=module,r="perf_hooks",n.require(r)).performance}catch(n){return g}var n,r;f().performance&&void 0===performance.timeOrigin&&(performance.timeOrigin=performance.timing&&performance.timing.navigationStart||p),f().performance}(),f()),d="Sentry Logger ",v=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=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this._enabled&&l(function(){y.console.log(d+"[Log]: "+n.join(" "))})},n.prototype.warn=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this._enabled&&l(function(){y.console.warn(d+"[Warn]: "+n.join(" "))})},n.prototype.error=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this._enabled&&l(function(){y.console.error(d+"[Error]: "+n.join(" "))})},n}();y.__SENTRY__=y.__SENTRY__||{};var h;y.__SENTRY__.logger||(y.__SENTRY__.logger=new v);!function(n){n.PENDING="PENDING",n.RESOLVED="RESOLVED",n.REJECTED="REJECTED"}(h||(h={}));f();var b=f(),E=function(){function n(r){void 0===r&&(r={}),this.name=n.id,this._levels=["log","info","warn","error","debug","assert"],r.levels&&(this._levels=r.levels)}return n.prototype.setupOnce=function(r,t){"console"in b&&this._levels.forEach(function(r){r in b.console&&function(n,r,e){if(r in n){var t=n[r],o=e(t);if("function"==typeof o)try{o.prototype=o.prototype||{},Object.defineProperties(o,{__sentry_original__:{enumerable:!1,value:t}})}catch(n){}n[r]=o}}(b.console,r,function(o){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=t();s.getIntegration(n)&&s.withScope(function(n){n.setLevel(e.fromString(r)),n.setExtra("arguments",i),n.addEventProcessor(function(n){return n.logger="console",n});var t=c(i," ");"assert"===r?!1===i[0]&&(t="Assertion failed: "+(c(i.slice(1)," ")||"console.assert"),n.setExtra("arguments",i.slice(1)),s.captureMessage(t)):s.captureMessage(t)}),o&&Function.prototype.apply.call(o,b.console,i)}})})},n.id="CaptureConsole",n}();for(var m in o.CaptureConsole=E,n.Sentry=n.Sentry||{},n.Sentry.Integrations=n.Sentry.Integrations||{},o)Object.prototype.hasOwnProperty.call(o,m)&&(n.Sentry.Integrations[m]=o[m])}(window); | ||
//# sourceMappingURL=captureconsole.min.js.map |
@@ -388,2 +388,3 @@ (function (__window) { | ||
if (tracingIntegration) { | ||
// tslint:disable-next-line:no-unsafe-any | ||
_this._tracingActivity = tracingIntegration.constructor.pushActivity('Vue Application Render'); | ||
@@ -489,2 +490,3 @@ } | ||
if (tracingIntegration) { | ||
// tslint:disable-next-line:no-unsafe-any | ||
tracingIntegration.constructor.popActivity(_this._tracingActivity); | ||
@@ -491,0 +493,0 @@ } |
@@ -73,2 +73,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
if (tracingIntegration) { | ||
// tslint:disable-next-line:no-unsafe-any | ||
_this._tracingActivity = tracingIntegration.constructor.pushActivity('Vue Application Render'); | ||
@@ -174,2 +175,3 @@ } | ||
if (tracingIntegration) { | ||
// tslint:disable-next-line:no-unsafe-any | ||
tracingIntegration.constructor.popActivity(_this._tracingActivity); | ||
@@ -176,0 +178,0 @@ } |
@@ -72,2 +72,3 @@ import * as tslib_1 from "tslib"; | ||
if (tracingIntegration) { | ||
// tslint:disable-next-line:no-unsafe-any | ||
_this._tracingActivity = tracingIntegration.constructor.pushActivity('Vue Application Render'); | ||
@@ -173,2 +174,3 @@ } | ||
if (tracingIntegration) { | ||
// tslint:disable-next-line:no-unsafe-any | ||
tracingIntegration.constructor.popActivity(_this._tracingActivity); | ||
@@ -175,0 +177,0 @@ } |
{ | ||
"name": "@sentry/integrations", | ||
"version": "5.16.0-beta.1", | ||
"version": "5.16.0-beta.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.16.0-beta.1", | ||
"@sentry/utils": "5.16.0-beta.1", | ||
"@sentry/types": "5.16.0-beta.2", | ||
"@sentry/utils": "5.16.0-beta.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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1447508
7270
+ Added@sentry/types@5.16.0-beta.2(transitive)
+ Added@sentry/utils@5.16.0-beta.2(transitive)
- Removed@sentry/types@5.16.0-beta.1(transitive)
- Removed@sentry/utils@5.16.0-beta.1(transitive)
Updated@sentry/types@5.16.0-beta.2
Updated@sentry/utils@5.16.0-beta.2