@sentry/junior-vercel 0.313.0 → 0.314.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.
|
@@ -142,7 +142,7 @@ const vercelDeploymentTool = definePluginTool({
|
|
|
142
142
|
const parsed = await readJson(response);
|
|
143
143
|
if (!response.ok) {
|
|
144
144
|
const message = `Vercel project lookup failed with HTTP ${response.status}`;
|
|
145
|
-
if (response.status === 404) throw new PluginToolInputError(message);
|
|
145
|
+
if (response.status === 404) throw new PluginToolInputError(`${message}. Check project, and set team when the project belongs to a team.`);
|
|
146
146
|
throw new Error(message);
|
|
147
147
|
}
|
|
148
148
|
const projectId = z.object({ id: vercelProjectIdSchema }).parse(parsed).id;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as VERCEL_DEPLOYMENT_MATCH_FIELDS, i as VERCEL_DEPLOYMENT_EVENTS, o as VERCEL_DEPLOYMENT_SUGGESTED_EVENTS, r as vercelDeploymentTool, t as createVercelWebhookRoute } from "./handler-
|
|
1
|
+
import { a as VERCEL_DEPLOYMENT_MATCH_FIELDS, i as VERCEL_DEPLOYMENT_EVENTS, o as VERCEL_DEPLOYMENT_SUGGESTED_EVENTS, r as vercelDeploymentTool, t as createVercelWebhookRoute } from "./handler-BXN5t4qw.js";
|
|
2
2
|
import { PluginToolInputError, defineJuniorPlugin, definePluginTool, pluginToolOutputSchema } from "@sentry/junior-plugin-api";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
// src/tool-support/vercel-api.ts
|
|
@@ -100,7 +100,7 @@ async function vercelRequest(egress, operation, path, scope, method = "GET", bod
|
|
|
100
100
|
});
|
|
101
101
|
if (!response.ok) {
|
|
102
102
|
const message = `${operation} failed with HTTP ${response.status}`;
|
|
103
|
-
if (response.status === 400 || response.status === 404) throw new PluginToolInputError(message);
|
|
103
|
+
if (response.status === 400 || response.status === 404) throw new PluginToolInputError(`${message}. Check the ids and names in the arguments.`);
|
|
104
104
|
throw new Error(message);
|
|
105
105
|
}
|
|
106
106
|
if (response.status === 204) return void 0;
|
package/dist/testing.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createVercelWebhookRoute, n as normalizeVercelEvents, r as vercelDeploymentTool } from "./handler-
|
|
1
|
+
export { t as createVercelWebhookRoute, n as normalizeVercelEvents, r as vercelDeploymentTool } from "./handler-BXN5t4qw.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/junior-vercel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.314.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"skills"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@sentry/junior-plugin-api": "0.
|
|
29
|
+
"@sentry/junior-plugin-api": "0.314.0",
|
|
30
30
|
"zod": "^4.6.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|