@sentry/junior 0.8.0 → 0.9.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/chunk-4G2LA7RO.js +678 -0
- package/dist/{chunk-OGLG4WAL.js → chunk-DIMXJUSL.js} +11346 -9421
- package/dist/{chunk-NNYZHUWR.js → chunk-I3DYWLM6.js} +15 -6
- package/dist/chunk-IJVZEV3K.js +840 -0
- package/dist/{chunk-Z5E25LRN.js → chunk-KCLEEKYX.js} +124 -17
- package/dist/chunk-VM3CPAZF.js +448 -0
- package/dist/chunk-ZBWWHP6Q.js +1436 -0
- package/dist/{chunk-PY4AI2GZ.js → chunk-ZW4OVKF5.js} +376 -79
- package/dist/cli/check.js +4 -2
- package/dist/cli/snapshot-warmup.js +7 -6
- package/dist/handlers/queue-callback.js +7 -7
- package/dist/handlers/router.d.ts +1 -0
- package/dist/handlers/router.js +523 -85
- package/dist/handlers/webhooks.js +2 -2
- package/dist/next-config.js +1 -1
- package/dist/production-XMCJXOOI.js +15 -0
- package/package.json +12 -14
- package/dist/bot-7SE3TX37.js +0 -19
- package/dist/chunk-H3ZG43WE.js +0 -330
- package/dist/chunk-KT5HARSN.js +0 -164
- package/dist/chunk-RKOO42TW.js +0 -1797
- package/dist/chunk-VW26MOSO.js +0 -522
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
setSpanStatus,
|
|
7
7
|
withContext,
|
|
8
8
|
withSpan
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZW4OVKF5.js";
|
|
10
10
|
|
|
11
11
|
// src/handlers/webhooks.ts
|
|
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("./
|
|
15
|
+
const { bot } = await import("./production-XMCJXOOI.js");
|
|
16
16
|
return bot;
|
|
17
17
|
}
|
|
18
18
|
async function POST(request, context) {
|
|
@@ -24,9 +24,15 @@ async function POST(request, context) {
|
|
|
24
24
|
return withContext(requestContext, async () => {
|
|
25
25
|
if (!handler) {
|
|
26
26
|
const error = new Error(`Unknown platform: ${platform}`);
|
|
27
|
-
logException(
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
logException(
|
|
28
|
+
error,
|
|
29
|
+
"webhook_platform_unknown",
|
|
30
|
+
{},
|
|
31
|
+
{
|
|
32
|
+
"http.response.status_code": 404
|
|
33
|
+
},
|
|
34
|
+
`Unknown platform: ${platform}`
|
|
35
|
+
);
|
|
30
36
|
return new Response(`Unknown platform: ${platform}`, { status: 404 });
|
|
31
37
|
}
|
|
32
38
|
try {
|
|
@@ -52,7 +58,10 @@ async function POST(request, context) {
|
|
|
52
58
|
if (response.status >= 400) {
|
|
53
59
|
let responseBodySnippet;
|
|
54
60
|
try {
|
|
55
|
-
responseBodySnippet = (await response.clone().text()).slice(
|
|
61
|
+
responseBodySnippet = (await response.clone().text()).slice(
|
|
62
|
+
0,
|
|
63
|
+
300
|
|
64
|
+
);
|
|
56
65
|
} catch {
|
|
57
66
|
responseBodySnippet = void 0;
|
|
58
67
|
}
|