Skip to content

Commit 6ebd9f1

Browse files
committed
fix: Scope
1 parent 90e5528 commit 6ebd9f1

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

NOTES.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/hub/src/scope.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class Scope implements ScopeInterface {
5555
/**
5656
* This will be called on every set call.
5757
*/
58-
protected notifyScopeListeners(): void {
58+
protected _notifyScopeListeners(): void {
5959
if (!this._notifyingListeners) {
6060
this._notifyingListeners = true;
6161
setTimeout(() => {
@@ -101,7 +101,7 @@ export class Scope implements ScopeInterface {
101101
*/
102102
public setUser(user: User): this {
103103
this._user = normalize(user);
104-
this.notifyScopeListeners();
104+
this._notifyScopeListeners();
105105
return this;
106106
}
107107

@@ -113,7 +113,7 @@ export class Scope implements ScopeInterface {
113113
...this._tags,
114114
...normalize(tags),
115115
};
116-
this.notifyScopeListeners();
116+
this._notifyScopeListeners();
117117
return this;
118118
}
119119

@@ -122,7 +122,7 @@ export class Scope implements ScopeInterface {
122122
*/
123123
public setTag(key: string, value: string): this {
124124
this._tags = { ...this._tags, [key]: normalize(value) };
125-
this.notifyScopeListeners();
125+
this._notifyScopeListeners();
126126
return this;
127127
}
128128

@@ -134,7 +134,7 @@ export class Scope implements ScopeInterface {
134134
...this._extra,
135135
...normalize(extra),
136136
};
137-
this.notifyScopeListeners();
137+
this._notifyScopeListeners();
138138
return this;
139139
}
140140

@@ -143,7 +143,7 @@ export class Scope implements ScopeInterface {
143143
*/
144144
public setExtra(key: string, extra: any): this {
145145
this._extra = { ...this._extra, [key]: normalize(extra) };
146-
this.notifyScopeListeners();
146+
this._notifyScopeListeners();
147147
return this;
148148
}
149149

@@ -152,7 +152,7 @@ export class Scope implements ScopeInterface {
152152
*/
153153
public setFingerprint(fingerprint: string[]): this {
154154
this._fingerprint = normalize(fingerprint);
155-
this.notifyScopeListeners();
155+
this._notifyScopeListeners();
156156
return this;
157157
}
158158

@@ -161,7 +161,7 @@ export class Scope implements ScopeInterface {
161161
*/
162162
public setLevel(level?: Severity): this {
163163
this._level = normalize(level);
164-
this.notifyScopeListeners();
164+
this._notifyScopeListeners();
165165
return this;
166166
}
167167

@@ -196,7 +196,7 @@ export class Scope implements ScopeInterface {
196196
this._user = {};
197197
this._level = undefined;
198198
this._fingerprint = undefined;
199-
this.notifyScopeListeners();
199+
this._notifyScopeListeners();
200200
return this;
201201
}
202202

@@ -208,7 +208,7 @@ export class Scope implements ScopeInterface {
208208
maxBreadcrumbs !== undefined && maxBreadcrumbs >= 0
209209
? [...this._breadcrumbs, normalize(breadcrumb)].slice(-maxBreadcrumbs)
210210
: [...this._breadcrumbs, normalize(breadcrumb)];
211-
this.notifyScopeListeners();
211+
this._notifyScopeListeners();
212212
return this;
213213
}
214214

@@ -217,7 +217,7 @@ export class Scope implements ScopeInterface {
217217
*/
218218
public clearBreadcrumbs(): this {
219219
this._breadcrumbs = [];
220-
this.notifyScopeListeners();
220+
this._notifyScopeListeners();
221221
return this;
222222
}
223223

0 commit comments

Comments
 (0)