@sentry/junior-vercel 0.163.0 → 0.165.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.
|
@@ -48,6 +48,7 @@ function vercelWebhookSecret() {
|
|
|
48
48
|
// src/tools/deployment.ts
|
|
49
49
|
import {
|
|
50
50
|
definePluginTool,
|
|
51
|
+
PluginToolInputError,
|
|
51
52
|
pluginToolOutputSchema,
|
|
52
53
|
subscribableResourceSchema
|
|
53
54
|
} from "@sentry/junior-plugin-api";
|
|
@@ -118,9 +119,11 @@ function createVercelDeploymentTool(ctx) {
|
|
|
118
119
|
});
|
|
119
120
|
const parsed = await readJson(response);
|
|
120
121
|
if (!response.ok) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
const message = `Vercel project lookup failed with HTTP ${response.status}`;
|
|
123
|
+
if (response.status === 404) {
|
|
124
|
+
throw new PluginToolInputError(message);
|
|
125
|
+
}
|
|
126
|
+
throw new Error(message);
|
|
124
127
|
}
|
|
125
128
|
const projectId = z2.object({ id: vercelProjectIdSchema }).parse(parsed).id;
|
|
126
129
|
const commitSha2 = input.commitSha?.toLowerCase();
|
package/dist/index.js
CHANGED
package/dist/testing.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-vercel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.165.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"zod": "^4.4.3",
|
|
30
|
-
"@sentry/junior-plugin-api": "0.
|
|
30
|
+
"@sentry/junior-plugin-api": "0.165.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^25.9.1",
|