@sentry/minimal
Advanced tools
Comparing version 5.0.3 to 5.0.5
@@ -0,1 +1,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { getCurrentHub } from '@sentry/hub'; | ||
@@ -7,9 +8,13 @@ /** | ||
*/ | ||
function callOnHub(method, ...args) { | ||
const hub = getCurrentHub(); | ||
function callOnHub(method) { | ||
var args = []; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
args[_i - 1] = arguments[_i]; | ||
} | ||
var hub = getCurrentHub(); | ||
if (hub && hub[method]) { | ||
// tslint:disable-next-line:no-unsafe-any | ||
return hub[method](...args); | ||
return hub[method].apply(hub, tslib_1.__spread(args)); | ||
} | ||
throw new Error(`No hub defined or ${method} was not found on the hub, please open a bug report.`); | ||
throw new Error("No hub defined or " + method + " was not found on the hub, please open a bug report."); | ||
} | ||
@@ -23,3 +28,3 @@ /** | ||
export function captureException(exception) { | ||
let syntheticException; | ||
var syntheticException; | ||
try { | ||
@@ -33,3 +38,3 @@ throw new Error('Sentry syntheticException'); | ||
originalException: exception, | ||
syntheticException, | ||
syntheticException: syntheticException, | ||
}); | ||
@@ -45,3 +50,3 @@ } | ||
export function captureMessage(message, level) { | ||
let syntheticException; | ||
var syntheticException; | ||
try { | ||
@@ -55,3 +60,3 @@ throw new Error(message); | ||
originalException: message, | ||
syntheticException, | ||
syntheticException: syntheticException, | ||
}); | ||
@@ -111,5 +116,9 @@ } | ||
*/ | ||
export function _callOnClient(method, ...args) { | ||
callOnHub('_invokeClient', method, ...args); | ||
export function _callOnClient(method) { | ||
var args = []; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
args[_i - 1] = arguments[_i]; | ||
} | ||
callOnHub.apply(void 0, tslib_1.__spread(['_invokeClient', method], args)); | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@sentry/minimal", | ||
"version": "5.0.3", | ||
"version": "5.0.5", | ||
"description": "Sentry minimal library that can be used in other packages", | ||
@@ -19,4 +19,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/hub": "5.0.3", | ||
"@sentry/types": "5.0.0", | ||
"@sentry/hub": "5.0.5", | ||
"@sentry/types": "5.0.5", | ||
"tslib": "^1.9.3" | ||
@@ -23,0 +23,0 @@ }, |
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
28022
367
+ Added@sentry/hub@5.0.5(transitive)
+ Added@sentry/types@5.0.5(transitive)
+ Added@sentry/utils@5.0.5(transitive)
- Removed@sentry/hub@5.0.3(transitive)
- Removed@sentry/types@5.0.0(transitive)
- Removed@sentry/utils@5.0.0(transitive)
Updated@sentry/hub@5.0.5
Updated@sentry/types@5.0.5