@sentry/junior 0.7.0 → 0.8.0
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.
- package/dist/{bot-ZKMCCT3D.js → bot-7SE3TX37.js} +1 -1
- package/dist/{chunk-56WI5Q7P.js → chunk-H3ZG43WE.js} +1 -1
- package/dist/{chunk-QHKQ2AWX.js → chunk-NNYZHUWR.js} +1 -1
- package/dist/{chunk-JRKU55W5.js → chunk-OGLG4WAL.js} +12 -0
- package/dist/handlers/queue-callback.js +2 -2
- package/dist/handlers/router.js +3 -3
- package/dist/handlers/webhooks.js +1 -1
- package/package.json +2 -2
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { after } from "next/server";
|
|
13
13
|
import * as Sentry from "@sentry/nextjs";
|
|
14
14
|
async function loadBot() {
|
|
15
|
-
const { bot } = await import("./bot-
|
|
15
|
+
const { bot } = await import("./bot-7SE3TX37.js");
|
|
16
16
|
return bot;
|
|
17
17
|
}
|
|
18
18
|
async function POST(request, context) {
|
|
@@ -7643,7 +7643,14 @@ function normalizeIncomingSlackThreadId(threadId, message) {
|
|
|
7643
7643
|
function buildQueueIngressDedupKey(normalizedThreadId, messageId) {
|
|
7644
7644
|
return `${normalizedThreadId}:${messageId}`;
|
|
7645
7645
|
}
|
|
7646
|
+
function isSlackDirectMessageThreadId(threadId) {
|
|
7647
|
+
const parts = threadId.split(":");
|
|
7648
|
+
return parts.length === 3 && parts[0] === "slack" && parts[1]?.startsWith("D");
|
|
7649
|
+
}
|
|
7646
7650
|
function determineThreadMessageKind(args) {
|
|
7651
|
+
if (args.isDirectMessage) {
|
|
7652
|
+
return "new_mention";
|
|
7653
|
+
}
|
|
7647
7654
|
if (args.isSubscribed) {
|
|
7648
7655
|
return "subscribed_message";
|
|
7649
7656
|
}
|
|
@@ -7768,7 +7775,12 @@ async function routeIncomingMessageToQueue(args) {
|
|
|
7768
7775
|
const isSubscribed = await deps.getIsSubscribed(normalizedThreadId);
|
|
7769
7776
|
const mentionSource = typedMessage.isMention ? "sdk_flag" : runtime.detectMention?.(adapter, message) ? "fallback_detector" : void 0;
|
|
7770
7777
|
const isMention = mentionSource !== void 0;
|
|
7778
|
+
if (isMention && !typedMessage.isMention) {
|
|
7779
|
+
typedMessage.isMention = true;
|
|
7780
|
+
}
|
|
7781
|
+
const isDirectMessage = isSlackDirectMessageThreadId(normalizedThreadId);
|
|
7771
7782
|
const kind = determineThreadMessageKind({
|
|
7783
|
+
isDirectMessage,
|
|
7772
7784
|
isSubscribed,
|
|
7773
7785
|
isMention
|
|
7774
7786
|
});
|
package/dist/handlers/router.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
POST as POST2
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-NNYZHUWR.js";
|
|
4
4
|
import {
|
|
5
5
|
POST
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-H3ZG43WE.js";
|
|
7
7
|
import {
|
|
8
8
|
escapeXml,
|
|
9
9
|
formatProviderLabel,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
publishAppHomeView,
|
|
14
14
|
resolveBaseUrl,
|
|
15
15
|
truncateStatusText
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-OGLG4WAL.js";
|
|
17
17
|
import {
|
|
18
18
|
GET
|
|
19
19
|
} from "../chunk-4RBEYCOG.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@types/react": "^19.2.14",
|
|
54
54
|
"@types/react-dom": "^19.2.3",
|
|
55
55
|
"msw": "^2.12.10",
|
|
56
|
-
"next": "^16.1.
|
|
56
|
+
"next": "^16.1.7",
|
|
57
57
|
"react": "^19.2.4",
|
|
58
58
|
"react-dom": "^19.2.4",
|
|
59
59
|
"tsup": "^8.5.1",
|