@wtdlee/repomap 0.9.0 → 0.10.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.
- package/README.md +12 -0
- package/dist/analyzers/index.d.ts +8 -8
- package/dist/analyzers/index.js +1 -1
- package/dist/{chunk-SMN6XFMS.js → chunk-ATRSGO6O.js} +270 -196
- package/dist/chunk-IGRCLYVZ.js +451 -0
- package/dist/{chunk-P7MX3M5U.js → chunk-LHP2OKKA.js} +428 -76
- package/dist/chunk-QBSB6BIU.js +20 -0
- package/dist/{chunk-LDX6WPHR.js → chunk-YKPXOHWZ.js} +196 -37
- package/dist/chunk-ZWRDP37E.js +1 -0
- package/dist/cli.js +14 -14
- package/dist/{dataflow-analyzer-CJ2T0cGS.d.ts → dataflow-analyzer-DIUsRpvv.d.ts} +18 -0
- package/dist/{env-detector-BIWJ7OYF.js → env-detector-RVGPBVNJ.js} +1 -1
- package/dist/generators/assets/docs.css +176 -1
- package/dist/generators/assets/page-map.css +59 -0
- package/dist/generators/assets/rails-map.css +13 -0
- package/dist/generators/index.d.ts +2 -1
- package/dist/generators/index.js +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.js +1 -1
- package/dist/page-map-generator-LTVRHSDC.js +1 -0
- package/dist/{rails-3HNUFTQV.js → rails-57MNOGHR.js} +1 -1
- package/dist/rails-map-generator-JNU5QHX4.js +1 -0
- package/dist/server/index.js +1 -1
- package/dist/types.d.ts +34 -1
- package/package.json +1 -1
- package/dist/chunk-HPBPEGHS.js +0 -19
- package/dist/chunk-TNUKDIO7.js +0 -5
- package/dist/page-map-generator-2XQB7RWO.js +0 -1
- package/dist/rails-map-generator-77ATUFMP.js +0 -1
package/README.md
CHANGED
|
@@ -50,6 +50,7 @@ Powered by [SWC](https://swc.rs/) for blazing-fast AST parsing. Analyze large-sc
|
|
|
50
50
|
- **Field details** - View all fields with types and arguments
|
|
51
51
|
- **Usage tracking** - See where operations are used in components
|
|
52
52
|
- **Component integration** - Track GraphQL usage through component dependencies
|
|
53
|
+
- **Custom wrapper hooks** - Configurable hook presets/patterns (Apollo/urql/Relay/custom)
|
|
53
54
|
|
|
54
55
|
### 📊 Data Flow
|
|
55
56
|
- **Visual diagrams** - Mermaid-generated flowcharts
|
|
@@ -425,6 +426,7 @@ export default config;
|
|
|
425
426
|
- Auto-generated markdown documentation
|
|
426
427
|
- Navigation sidebar
|
|
427
428
|
- Syntax-highlighted code blocks
|
|
429
|
+
- Coverage metrics (parse failures, codegen detection) to prevent silent omissions
|
|
428
430
|
|
|
429
431
|
## Supported Frameworks
|
|
430
432
|
|
|
@@ -466,6 +468,7 @@ interface AnalysisResult {
|
|
|
466
468
|
timestamp: string;
|
|
467
469
|
version: string;
|
|
468
470
|
commitHash: string;
|
|
471
|
+
coverage?: CoverageMetrics;
|
|
469
472
|
pages: PageInfo[];
|
|
470
473
|
graphqlOperations: GraphQLOperation[];
|
|
471
474
|
apiCalls: APICall[];
|
|
@@ -476,6 +479,15 @@ interface AnalysisResult {
|
|
|
476
479
|
crossRepoLinks: CrossRepoLink[];
|
|
477
480
|
}
|
|
478
481
|
|
|
482
|
+
interface CoverageMetrics {
|
|
483
|
+
tsFilesScanned: number;
|
|
484
|
+
tsParseFailures: number;
|
|
485
|
+
graphqlParseFailures: number;
|
|
486
|
+
codegenFilesDetected: number;
|
|
487
|
+
codegenFilesParsed: number;
|
|
488
|
+
codegenExportsFound: number;
|
|
489
|
+
}
|
|
490
|
+
|
|
479
491
|
// Report
|
|
480
492
|
interface DocumentationReport {
|
|
481
493
|
generatedAt: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseAnalyzer } from '../dataflow-analyzer-
|
|
2
|
-
export { D as DataFlowAnalyzer, G as GraphQLAnalyzer, P as PagesAnalyzer } from '../dataflow-analyzer-
|
|
1
|
+
import { B as BaseAnalyzer } from '../dataflow-analyzer-DIUsRpvv.js';
|
|
2
|
+
export { D as DataFlowAnalyzer, G as GraphQLAnalyzer, P as PagesAnalyzer } from '../dataflow-analyzer-DIUsRpvv.js';
|
|
3
3
|
import { Module, CallExpression } from '@swc/core';
|
|
4
4
|
import { DataFetchingInfo, RepositoryConfig, AnalysisResult } from '../types.js';
|
|
5
5
|
|
|
@@ -33,7 +33,7 @@ declare const HOOK_TYPE_MAP: Record<string, DataFetchingInfo['type']>;
|
|
|
33
33
|
/**
|
|
34
34
|
* Keywords that indicate GraphQL usage in a file
|
|
35
35
|
*/
|
|
36
|
-
declare const GRAPHQL_INDICATORS: readonly ["Document", "useQuery", "useMutation", "useLazyQuery", "useSuspenseQuery", "useBackgroundQuery", "useSubscription", "Query", "Mutation", "gql", "graphql", "GET_", "FETCH_", "SEARCH_", "CREATE_", "UPDATE_", "DELETE_", "SUBSCRIBE_", "@apollo", "ApolloClient"];
|
|
36
|
+
declare const GRAPHQL_INDICATORS: readonly ["Document", "useQuery", "useMutation", "useLazyQuery", "useSuspenseQuery", "useBackgroundQuery", "useSubscription", "Query", "Mutation", "gql", "graphql", "GET_", "FETCH_", "SEARCH_", "CREATE_", "UPDATE_", "DELETE_", "SUBSCRIBE_", "@apollo", "ApolloClient", "@urql", "urql", "react-relay", "Relay"];
|
|
37
37
|
/**
|
|
38
38
|
* Context extracted from a file for GraphQL operation resolution
|
|
39
39
|
*/
|
|
@@ -62,23 +62,23 @@ interface ExtractedGraphQLOperation {
|
|
|
62
62
|
/**
|
|
63
63
|
* Check if a hook name is a GraphQL query hook
|
|
64
64
|
*/
|
|
65
|
-
declare function isQueryHook(hookName: string): boolean;
|
|
65
|
+
declare function isQueryHook(hookName: string, extraHookPatterns?: string[]): boolean;
|
|
66
66
|
/**
|
|
67
67
|
* Check if a hook name is a GraphQL mutation hook
|
|
68
68
|
*/
|
|
69
|
-
declare function isMutationHook(hookName: string): boolean;
|
|
69
|
+
declare function isMutationHook(hookName: string, extraHookPatterns?: string[]): boolean;
|
|
70
70
|
/**
|
|
71
71
|
* Check if a hook name is a GraphQL subscription hook
|
|
72
72
|
*/
|
|
73
|
-
declare function isSubscriptionHook(hookName: string): boolean;
|
|
73
|
+
declare function isSubscriptionHook(hookName: string, extraHookPatterns?: string[]): boolean;
|
|
74
74
|
/**
|
|
75
75
|
* Check if a hook name is any GraphQL hook
|
|
76
76
|
*/
|
|
77
|
-
declare function isGraphQLHook(hookName: string): boolean;
|
|
77
|
+
declare function isGraphQLHook(hookName: string, extraHookPatterns?: string[]): boolean;
|
|
78
78
|
/**
|
|
79
79
|
* Get the data fetching type for a hook
|
|
80
80
|
*/
|
|
81
|
-
declare function getHookType(hookName: string): DataFetchingInfo['type'];
|
|
81
|
+
declare function getHookType(hookName: string, extraHookPatterns?: string[]): DataFetchingInfo['type'];
|
|
82
82
|
/**
|
|
83
83
|
* Check if content has any GraphQL indicators
|
|
84
84
|
*/
|
package/dist/analyzers/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{f as ALL_GRAPHQL_HOOKS,a as BaseAnalyzer,B as DataFlowAnalyzer,h as GRAPHQL_INDICATORS,d as GRAPHQL_MUTATION_HOOKS,e as GRAPHQL_OTHER_HOOKS,c as GRAPHQL_QUERY_HOOKS,A as GraphQLAnalyzer,g as HOOK_TYPE_MAP,z as PagesAnalyzer,C as RestApiAnalyzer,o as cleanOperationName,s as extractGraphQLContext,x as extractGraphQLOperationsFromFile,t as extractOperationNameFromGqlCall,u as extractOperationNameFromTemplate,q as getCalleeName,y as getHookInfoString,m as getHookType,v as hasGraphQLArgument,n as hasGraphQLIndicators,l as isGraphQLHook,j as isMutationHook,i as isQueryHook,k as isSubscriptionHook,p as parseToAst,w as resolveOperationName,r as traverseAst}from'../chunk-IGRCLYVZ.js';import'../chunk-ZWRDP37E.js';
|