mcp-scraper 0.28.0 → 0.28.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.
@@ -17,7 +17,7 @@ loadDotEnv();
17
17
  async function main() {
18
18
  const [{ serve }, { app }, { startWorker }, { migrate }] = await Promise.all([
19
19
  import("@hono/node-server"),
20
- import("../server-QQB4BNAB.js"),
20
+ import("../server-AKAWZICJ.js"),
21
21
  import("../worker-RYP5EOV5.js"),
22
22
  import("../db-WRILVOFY.js")
23
23
  ]);
@@ -20719,7 +20719,7 @@ function propsValue(value) {
20719
20719
  }
20720
20720
  function cors(c) {
20721
20721
  const origin = c.req.header("origin");
20722
- const configured = (process.env.VAULT_APP_ALLOWED_ORIGINS ?? "https://vault.mcpscraper.dev").split(",").map((value) => value.trim()).filter(Boolean);
20722
+ const configured = (process.env.VAULT_APP_ALLOWED_ORIGINS ?? "https://mcpscraper.dev").split(",").map((value) => value.trim()).filter(Boolean);
20723
20723
  const local = !!origin && /^http:\/\/localhost(?::\d+)?$/.test(origin);
20724
20724
  if (origin && (configured.includes(origin) || local)) c.header("Access-Control-Allow-Origin", origin);
20725
20725
  c.header("Vary", "Origin");
@@ -20834,12 +20834,6 @@ vaultApp.post("/api/activity", async (c) => {
20834
20834
  }, token);
20835
20835
  return c.json(result, result.ok ? 200 : 502);
20836
20836
  });
20837
- vaultApp.get("/:token", (c) => {
20838
- const token = c.req.param("token");
20839
- if (!validToken(token)) return c.html('<!doctype html><html><body style="font-family:system-ui;padding:40px"><h2>This Vault App link is not valid.</h2><p>Ask the AI to run get-vault-app-link again, or revoke-vault-app-link and issue a replacement.</p></body></html>', 401);
20840
- const base = (process.env.VAULT_APP_BASE_URL ?? "https://vault.mcpscraper.dev").replace(/\/$/, "");
20841
- return c.redirect(`${base}/vault/${encodeURIComponent(token)}`, 302);
20842
- });
20843
20837
 
20844
20838
  // src/api/schedule-routes.ts
20845
20839
  import { Hono as Hono23 } from "hono";
@@ -27362,4 +27356,4 @@ app.get("/blog/:slug/", (c) => {
27362
27356
  export {
27363
27357
  app
27364
27358
  };
27365
- //# sourceMappingURL=server-QQB4BNAB.js.map
27359
+ //# sourceMappingURL=server-AKAWZICJ.js.map