Socket
Socket
Sign inDemoInstall

@sentry/minimal

Package Overview
Dependencies
Maintainers
9
Versions
248
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/minimal - npm Package Compare versions

Comparing version 5.0.3 to 5.0.5

29

esm/index.js

@@ -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

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