Skip to content

Commit b89b4ba

Browse files
committed
build: Move madge into workspace root
1 parent e82f094 commit b89b4ba

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"karma-browserstack-launcher": "^1.5.1",
6060
"karma-firefox-launcher": "^1.1.0",
6161
"lerna": "3.13.4",
62+
"madge": "4.0.2",
6263
"mocha": "^6.1.4",
6364
"npm-run-all": "^4.1.2",
6465
"prettier": "1.19.0",
@@ -73,7 +74,5 @@
7374
"resolutions": {
7475
"**/agent-base": "5",
7576
"**/jest-environment-node": "24"
76-
},
77-
"version": "0.0.0",
78-
"dependencies": {}
77+
}
7978
}

packages/hub/src/scope.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,11 +450,11 @@ export class Scope implements ScopeInterface {
450450
} else {
451451
const result = processor({ ...event }, hint) as Event | null;
452452
if (isThenable(result)) {
453-
(result as PromiseLike<Event | null>)
453+
void (result as PromiseLike<Event | null>)
454454
.then(final => this._notifyEventProcessors(processors, final, hint, index + 1).then(resolve))
455455
.then(null, reject);
456456
} else {
457-
this._notifyEventProcessors(processors, result, hint, index + 1)
457+
void this._notifyEventProcessors(processors, result, hint, index + 1)
458458
.then(resolve)
459459
.then(null, reject);
460460
}

packages/hub/src/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class SessionFlusher implements SessionFlusherLike {
175175
logger.warn("Dropping session because custom transport doesn't implement sendSession");
176176
return;
177177
}
178-
this._transport.sendSession(sessionAggregates).then(null, reason => {
178+
void this._transport.sendSession(sessionAggregates).then(null, reason => {
179179
logger.error(`Error while sending session: ${reason}`);
180180
});
181181
}

packages/hub/test/hub.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ describe('Hub', () => {
299299
hub.withScope(scope => {
300300
scope.addBreadcrumb({ message: 'scope breadcrumb' });
301301
const event: Event = {};
302-
scope
302+
void scope
303303
.applyToEvent(event)
304304
.then((appliedEvent: Event | null) => {
305305
expect(appliedEvent).toBeTruthy();

0 commit comments

Comments
 (0)