class

Analyzer::Javascript::Convex

Inherits Analyzer::Javascript::JavascriptEngine < Analyzer < FileHelper < Reference < Object

Convex HTTP actions: convex/http.ts builds an httpRouter() and registers routes on it as object literals, served on https://<deployment>.convex.site:

http.route({ path: "/postMessage", method: "POST", handler }) http.route({ pathPrefix: "/files/", method: "GET", handler }) → /files/*

Queries and mutations (the client RPC surface) are not read.

Constants

METHODS = ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"]
PACKAGE_MARKERS = ["\"convex\":"]
ROUTER_IMPORT = /\bhttpRouter\b[^;]*?\bfrom\s*['"]convex\/server['"]|\brequire\s*\(\s*['"]convex\/server['"]\s*\)/

Class methods

tech_name
Source

Instance methods

analyze
Source
tech

Instance-side view of the same declaration. The per-file rescues live on this base class, which has no way to name the analyzer that is running inside them, so a skipped file could not be attributed to a tech. Deriving it from analyzer_for keeps the name written exactly once.

Source