Skip to content

Commit b93e397

Browse files
authored
Don't delete fields on a non-breaking change release (#1238)
1 parent 65e66a2 commit b93e397

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/v2/providers/alerts/alerts.spec.ts

+2
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ describe('alerts', () => {
205205

206206
expect(converted).to.deep.eq({
207207
...event,
208+
alerttype: 'my-alert',
209+
appid: 'my-app',
208210
alertType: 'my-alert',
209211
appId: 'my-app',
210212
});

src/v2/providers/alerts/alerts.ts

-2
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,9 @@ export function convertAlertAndApp(
283283

284284
if ('alerttype' in event) {
285285
(event as any).alertType = (event as any).alerttype;
286-
delete (event as any).alerttype;
287286
}
288287
if ('appid' in event) {
289288
(event as any).appId = (event as any).appid;
290-
delete (event as any).appid;
291289
}
292290

293291
return event;

0 commit comments

Comments
 (0)