Skip to content

Commit 9b73900

Browse files
committed
fixes
1 parent edf9396 commit 9b73900

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/browser-utils/src/instrument/dom.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ export function instrumentDOM(): void {
6868
const targetObj = globalObject[target];
6969
const proto = targetObj && targetObj.prototype;
7070

71-
if (!proto || Object.prototype.hasOwnProperty.call(proto, 'addEventListener')) {
71+
// eslint-disable-next-line no-prototype-builtins
72+
if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {
7273
return;
7374
}
7475

packages/core/src/metrics/aggregator.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ export class MetricsAggregator implements MetricsAggregatorBase {
2020
// that we store in memory.
2121
private _bucketsTotalWeight;
2222

23-
// Cast to any so that it can use Node.js timeout
24-
private readonly _interval: ReturnType<typeof setInterval>;
23+
private readonly _interval: ReturnType<typeof setInterval> & { unref?: () => void };
2524

2625
// SDKs are required to shift the flush interval by random() * rollup_in_seconds.
2726
// That shift is determined once per startup to create jittering.

0 commit comments

Comments
 (0)