@sentry/junior 0.21.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/app.js +3 -1
  2. package/package.json +1 -1
package/dist/app.js CHANGED
@@ -13660,11 +13660,13 @@ function extractMessageChangedMention(body, botUserId, adapter) {
13660
13660
  const threadTs = event.message.thread_ts ?? messageTs;
13661
13661
  const userId = event.message.user ?? "unknown";
13662
13662
  const threadId = `slack:${channelId}:${threadTs}`;
13663
+ const teamId = typeof body.team_id === "string" ? body.team_id : void 0;
13663
13664
  const raw = {
13664
13665
  channel: channelId,
13665
13666
  ts: messageTs,
13666
13667
  thread_ts: threadTs,
13667
- user: userId
13668
+ user: userId,
13669
+ ...teamId ? { team_id: teamId } : {}
13668
13670
  };
13669
13671
  const message = new Message({
13670
13672
  id: getEditedMentionMessageId(messageTs),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"