mirror of
https://github.com/morluto/rea.git
synced 2026-11-10 00:36:35 +00:00
feat(javascript): retain queryable static route inventories (#6019)
This commit is contained in:
1 parent
933af60eba
commit
7d0efef62d
67 files changed
+74345
-231
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { webBundleAnalysisSchema } from "./webBundleAnalysis.js";
|
||||
import { javaScriptRouteSourceFactsSchema } from "./javascript/javascriptRouteFacts.js";
|
||||
|
||||
const observationsSchema = z.strictObject({
|
||||
edges: webBundleAnalysisSchema.shape.observations.shape.chunks.shape.edges,
|
||||
@@ -19,6 +20,7 @@ export const webBundleScriptAnalysisSchema = z
|
||||
parse_status: z.enum(["parsed", "recovered", "failed"]),
|
||||
visited_ast_nodes: z.number().int().min(0),
|
||||
widened_return_references: z.boolean(),
|
||||
route_facts: javaScriptRouteSourceFactsSchema.nullable().optional(),
|
||||
observations: observationsSchema,
|
||||
inferences: webBundleAnalysisSchema.shape.inferences,
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user