@sentry/hub
Advanced tools
Comparing version 4.0.0-beta.8 to 4.0.0-beta.9
@@ -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
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
57703
814
+ Added@sentry/types@4.0.0-beta.9(transitive)
+ Added@sentry/utils@4.0.0-beta.9(transitive)
- Removed@sentry/types@4.0.0-beta.8(transitive)
- Removed@sentry/utils@4.0.0-beta.8(transitive)
Updated@sentry/types@4.0.0-beta.9
Updated@sentry/utils@4.0.0-beta.9