Socket
Socket
Sign inDemoInstall

@sentry/hub

Package Overview
Dependencies
Maintainers
9
Versions
430
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/hub - npm Package Compare versions

Comparing version 4.0.0-beta.8 to 4.0.0-beta.9

4

dist/hub.d.ts

@@ -86,4 +86,6 @@ import { Breadcrumb, SentryEvent } from '@sentry/types';

withScope(callback: (() => void)): void;
/** Returns the client of the currently active scope. */
/** Returns the client of the top stack. */
getClient(): any | undefined;
/** Returns the scope of the top stack. */
getScope(): Scope | undefined;
/** Returns the scope stack for domains or the process. */

@@ -90,0 +92,0 @@ getStack(): Layer[];

@@ -167,6 +167,10 @@ "use strict";

};
/** Returns the client of the currently active scope. */
/** Returns the client of the top stack. */
Hub.prototype.getClient = function () {
return this.getStackTop().client;
};
/** Returns the scope of the top stack. */
Hub.prototype.getScope = function () {
return this.getStackTop().scope;
};
/** Returns the scope stack for domains or the process. */

@@ -173,0 +177,0 @@ Hub.prototype.getStack = function () {

@@ -171,5 +171,8 @@ "use strict";

var newScope = new Scope();
Object.assign(newScope, scope);
newScope.eventProcessors = [];
newScope.scopeListeners = [];
Object.assign(newScope, scope, {
scopeListeners: [],
});
if (scope) {
newScope.eventProcessors = __spread(scope.eventProcessors);
}
return newScope;

@@ -176,0 +179,0 @@ };

{
"name": "@sentry/hub",
"version": "4.0.0-beta.8",
"version": "4.0.0-beta.9",
"description": "Sentry hub which handles global state managment.",

@@ -18,4 +18,4 @@ "repository": "git://github.com/getsentry/raven-js.git",

"dependencies": {
"@sentry/types": "4.0.0-beta.8",
"@sentry/utils": "4.0.0-beta.8"
"@sentry/types": "4.0.0-beta.9",
"@sentry/utils": "4.0.0-beta.9"
},

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

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