@mapled/cli 0.4.0 → 0.4.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/doctor.js +9 -0
  2. package/package.json +1 -1
package/dist/doctor.js CHANGED
@@ -360,6 +360,15 @@ export function checkWebhook(webhook) {
360
360
  if (last.status === "pending") {
361
361
  return { key: "webhook", label, status: "warning", detail: `The last delivery to ${host} is still pending.` };
362
362
  }
363
+ if (last.error === "blocked") {
364
+ // Mapled resolved the host to a private address and never connected
365
+ return {
366
+ key: "webhook",
367
+ label,
368
+ status: "failed",
369
+ detail: `${host} resolves to a private address, which Mapled can't reach. Point the webhook at the public deployment.`,
370
+ };
371
+ }
363
372
  const reason = last.responseStatus ? `responded ${last.responseStatus}` : (last.error ?? "failed");
364
373
  return {
365
374
  key: "webhook",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapled/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Mapled CLI — sign in, link a project, generate TypeScript types for its content and check the site's integration.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://mapled.io",