@sentry/core
Advanced tools
Comparing version 5.8.0-beta.1 to 5.8.0
@@ -47,3 +47,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var header = ["Sentry sentry_version=" + SENTRY_API_VERSION]; | ||
header.push("sentry_timestamp=" + utils_1.timestampWithMs()); // TODO: This can be removed | ||
header.push("sentry_timestamp=" + new Date().getTime()); | ||
header.push("sentry_client=" + clientName + "/" + clientVersion); | ||
@@ -50,0 +50,0 @@ header.push("sentry_key=" + dsn.user); |
@@ -311,2 +311,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var beforeSendResult = beforeSend(prepared, hint); | ||
// tslint:disable-next-line:strict-type-predicates | ||
if (typeof beforeSendResult === 'undefined') { | ||
@@ -313,0 +314,0 @@ utils_1.logger.error('`beforeSend` method has to return `null` or a valid event.'); |
@@ -1,2 +0,2 @@ | ||
export { addBreadcrumb, captureException, captureEvent, captureMessage, configureScope, setContext, setExtra, setExtras, setTag, setTags, setUser, startSpan, withScope, } from '@sentry/minimal'; | ||
export { addBreadcrumb, captureException, captureEvent, captureMessage, configureScope, setContext, setExtra, setExtras, setTag, setTags, setUser, withScope, } from '@sentry/minimal'; | ||
export { addGlobalEventProcessor, getCurrentHub, getHubFromCarrier, Hub, Scope, Span } from '@sentry/hub'; | ||
@@ -3,0 +3,0 @@ export { API } from './api'; |
@@ -14,3 +14,2 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.setUser = minimal_1.setUser; | ||
exports.startSpan = minimal_1.startSpan; | ||
exports.withScope = minimal_1.withScope; | ||
@@ -17,0 +16,0 @@ var hub_1 = require("@sentry/hub"); |
@@ -35,4 +35,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
else { | ||
return tslib_1.__spread(defaultIntegrations); | ||
integrations = tslib_1.__spread(defaultIntegrations); | ||
} | ||
// Make sure that if present, `Debug` integration will always run last | ||
var integrationsNames = integrations.map(function (i) { return i.name; }); | ||
var alwaysLastToRun = 'Debug'; | ||
if (integrationsNames.indexOf(alwaysLastToRun) !== -1) { | ||
integrations.push.apply(integrations, tslib_1.__spread(integrations.splice(integrationsNames.indexOf(alwaysLastToRun), 1))); | ||
} | ||
return integrations; | ||
@@ -39,0 +45,0 @@ } |
@@ -66,4 +66,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
try { | ||
// tslint:disable-next-line:no-unsafe-any | ||
return event.exception.values[0].type === 'SentryError'; | ||
return ((event && | ||
event.exception && | ||
event.exception.values && | ||
event.exception.values[0] && | ||
event.exception.values[0].type === 'SentryError') || | ||
false); | ||
} | ||
@@ -122,4 +126,3 @@ catch (_oO) { | ||
try { | ||
// tslint:disable-next-line:no-unsafe-any | ||
var _a = event.exception.values[0], type = _a.type, value = _a.value; | ||
var _a = (event.exception.values && event.exception.values[0]) || {}, _b = _a.type, type = _b === void 0 ? '' : _b, _c = _a.value, value = _c === void 0 ? '' : _c; | ||
return ["" + value, type + ": " + value]; | ||
@@ -138,10 +141,8 @@ } | ||
if (event.stacktrace) { | ||
// tslint:disable:no-unsafe-any | ||
var frames_1 = event.stacktrace.frames; | ||
return frames_1[frames_1.length - 1].filename; | ||
return (frames_1 && frames_1[frames_1.length - 1].filename) || null; | ||
} | ||
if (event.exception) { | ||
// tslint:disable:no-unsafe-any | ||
var frames_2 = event.exception.values[0].stacktrace.frames; | ||
return frames_2[frames_2.length - 1].filename; | ||
var frames_2 = event.exception.values && event.exception.values[0].stacktrace && event.exception.values[0].stacktrace.frames; | ||
return (frames_2 && frames_2[frames_2.length - 1].filename) || null; | ||
} | ||
@@ -148,0 +149,0 @@ return null; |
@@ -1,2 +0,2 @@ | ||
import { timestampWithMs, urlEncode } from '@sentry/utils'; | ||
import { urlEncode } from '@sentry/utils'; | ||
import { Dsn } from './dsn'; | ||
@@ -46,3 +46,3 @@ var SENTRY_API_VERSION = '7'; | ||
var header = ["Sentry sentry_version=" + SENTRY_API_VERSION]; | ||
header.push("sentry_timestamp=" + timestampWithMs()); // TODO: This can be removed | ||
header.push("sentry_timestamp=" + new Date().getTime()); | ||
header.push("sentry_client=" + clientName + "/" + clientVersion); | ||
@@ -49,0 +49,0 @@ header.push("sentry_key=" + dsn.user); |
@@ -310,2 +310,3 @@ import * as tslib_1 from "tslib"; | ||
var beforeSendResult = beforeSend(prepared, hint); | ||
// tslint:disable-next-line:strict-type-predicates | ||
if (typeof beforeSendResult === 'undefined') { | ||
@@ -312,0 +313,0 @@ logger.error('`beforeSend` method has to return `null` or a valid event.'); |
@@ -1,2 +0,2 @@ | ||
export { addBreadcrumb, captureException, captureEvent, captureMessage, configureScope, setContext, setExtra, setExtras, setTag, setTags, setUser, startSpan, withScope, } from '@sentry/minimal'; | ||
export { addBreadcrumb, captureException, captureEvent, captureMessage, configureScope, setContext, setExtra, setExtras, setTag, setTags, setUser, withScope, } from '@sentry/minimal'; | ||
export { addGlobalEventProcessor, getCurrentHub, getHubFromCarrier, Hub, Scope, Span } from '@sentry/hub'; | ||
@@ -3,0 +3,0 @@ export { API } from './api'; |
@@ -1,2 +0,2 @@ | ||
export { addBreadcrumb, captureException, captureEvent, captureMessage, configureScope, setContext, setExtra, setExtras, setTag, setTags, setUser, startSpan, withScope, } from '@sentry/minimal'; | ||
export { addBreadcrumb, captureException, captureEvent, captureMessage, configureScope, setContext, setExtra, setExtras, setTag, setTags, setUser, withScope, } from '@sentry/minimal'; | ||
export { addGlobalEventProcessor, getCurrentHub, getHubFromCarrier, Hub, Scope, Span } from '@sentry/hub'; | ||
@@ -3,0 +3,0 @@ export { API } from './api'; |
@@ -34,4 +34,10 @@ import * as tslib_1 from "tslib"; | ||
else { | ||
return tslib_1.__spread(defaultIntegrations); | ||
integrations = tslib_1.__spread(defaultIntegrations); | ||
} | ||
// Make sure that if present, `Debug` integration will always run last | ||
var integrationsNames = integrations.map(function (i) { return i.name; }); | ||
var alwaysLastToRun = 'Debug'; | ||
if (integrationsNames.indexOf(alwaysLastToRun) !== -1) { | ||
integrations.push.apply(integrations, tslib_1.__spread(integrations.splice(integrationsNames.indexOf(alwaysLastToRun), 1))); | ||
} | ||
return integrations; | ||
@@ -38,0 +44,0 @@ } |
@@ -65,4 +65,8 @@ import * as tslib_1 from "tslib"; | ||
try { | ||
// tslint:disable-next-line:no-unsafe-any | ||
return event.exception.values[0].type === 'SentryError'; | ||
return ((event && | ||
event.exception && | ||
event.exception.values && | ||
event.exception.values[0] && | ||
event.exception.values[0].type === 'SentryError') || | ||
false); | ||
} | ||
@@ -121,4 +125,3 @@ catch (_oO) { | ||
try { | ||
// tslint:disable-next-line:no-unsafe-any | ||
var _a = event.exception.values[0], type = _a.type, value = _a.value; | ||
var _a = (event.exception.values && event.exception.values[0]) || {}, _b = _a.type, type = _b === void 0 ? '' : _b, _c = _a.value, value = _c === void 0 ? '' : _c; | ||
return ["" + value, type + ": " + value]; | ||
@@ -137,10 +140,8 @@ } | ||
if (event.stacktrace) { | ||
// tslint:disable:no-unsafe-any | ||
var frames_1 = event.stacktrace.frames; | ||
return frames_1[frames_1.length - 1].filename; | ||
return (frames_1 && frames_1[frames_1.length - 1].filename) || null; | ||
} | ||
if (event.exception) { | ||
// tslint:disable:no-unsafe-any | ||
var frames_2 = event.exception.values[0].stacktrace.frames; | ||
return frames_2[frames_2.length - 1].filename; | ||
var frames_2 = event.exception.values && event.exception.values[0].stacktrace && event.exception.values[0].stacktrace.frames; | ||
return (frames_2 && frames_2[frames_2.length - 1].filename) || null; | ||
} | ||
@@ -147,0 +148,0 @@ return null; |
{ | ||
"name": "@sentry/core", | ||
"version": "5.8.0-beta.1", | ||
"version": "5.8.0", | ||
"description": "Base implementation for all Sentry JavaScript SDKs", | ||
@@ -19,6 +19,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/hub": "5.8.0-beta.1", | ||
"@sentry/minimal": "5.8.0-beta.1", | ||
"@sentry/types": "5.8.0-beta.1", | ||
"@sentry/utils": "5.8.0-beta.1", | ||
"@sentry/hub": "5.8.0", | ||
"@sentry/minimal": "5.8.0", | ||
"@sentry/types": "5.7.1", | ||
"@sentry/utils": "5.8.0", | ||
"tslib": "^1.9.3" | ||
@@ -25,0 +25,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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
247791
2601
0
+ Added@sentry/hub@5.8.0(transitive)
+ Added@sentry/minimal@5.8.0(transitive)
+ Added@sentry/types@5.7.1(transitive)
+ Added@sentry/utils@5.8.0(transitive)
- Removed@sentry/hub@5.8.0-beta.1(transitive)
- Removed@sentry/minimal@5.8.0-beta.1(transitive)
- Removed@sentry/types@5.8.0-beta.1(transitive)
- Removed@sentry/utils@5.8.0-beta.1(transitive)
Updated@sentry/hub@5.8.0
Updated@sentry/minimal@5.8.0
Updated@sentry/types@5.7.1
Updated@sentry/utils@5.8.0