Skip to content

Commit 4f55379

Browse files
lint
1 parent c85330b commit 4f55379

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

packages/core/src/js/integrations/sdkinfo.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ interface IpPatchedSdkInfo extends SdkInfoType {
1212
};
1313
}
1414

15-
1615
const INTEGRATION_NAME = 'SdkInfo';
1716

1817
type DefaultSdkInfo = Pick<Required<SdkInfoType>, 'name' | 'packages' | 'version'>;
@@ -39,11 +38,11 @@ export const sdkInfoIntegration = (): Integration => {
3938
const options = client.getOptions();
4039
DefaultPii = options.sendDefaultPii;
4140
if (DefaultPii) {
42-
client.on('beforeSendEvent', (event => {
41+
client.on('beforeSendEvent', event => {
4342
if (event.user?.ip_address === '{{auto}}') {
4443
delete event.user.ip_address;
4544
}
46-
}));
45+
});
4746
}
4847
},
4948
setupOnce: () => {
@@ -70,7 +69,7 @@ async function processEvent(event: Event, fetchNativeSdkInfo: () => Promise<Pack
7069
sdk.settings = {
7170
infer_ip: DefaultPii ? 'auto' : 'never',
7271
// purposefully allowing already passed settings to override the default
73-
...sdk.settings
72+
...sdk.settings,
7473
};
7574

7675
event.sdk = sdk;

packages/core/test/integrations/sdkinfo.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe('Sdk Info', () => {
129129
if (eventName === 'beforeSendEvent') {
130130
mockHandler.mockImplementation(cb);
131131
}
132-
}
132+
},
133133
};
134134

135135
sdkInfoIntegration().setup!(client as any);
@@ -149,7 +149,7 @@ describe('Sdk Info', () => {
149149
if (eventName === 'beforeSendEvent') {
150150
mockHandler.mockImplementation(cb);
151151
}
152-
}
152+
},
153153
};
154154

155155
sdkInfoIntegration().setup!(client as any);
@@ -161,7 +161,11 @@ describe('Sdk Info', () => {
161161
});
162162
});
163163

164-
function processEvent(mockedEvent: Event, mockedHint: EventHint = {}, sendDefaultPii?: boolean): Event | null | PromiseLike<Event | null> {
164+
function processEvent(
165+
mockedEvent: Event,
166+
mockedHint: EventHint = {},
167+
sendDefaultPii?: boolean,
168+
): Event | null | PromiseLike<Event | null> {
165169
const integration = sdkInfoIntegration();
166170
if (sendDefaultPii != null) {
167171
const mockClient: jest.Mocked<Client> = {

0 commit comments

Comments
 (0)