cgg-callgraphgenerator 0.8.3 → 0.8.4
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 +2 -2
- package/index.d.ts +6 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ const near = await cgg.analyze("./src", { filter: ["handleRequest$"], hops: 2 })
|
|
|
50
50
|
const both = await cgg.analyze(["./api", "./worker"], { lang: ["typescript", "go"] });
|
|
51
51
|
|
|
52
52
|
g.toMermaid(); // -> string, byte-identical to `cgg -t mermaid`
|
|
53
|
-
g.toJson(); // -> string, `cgg.graph.
|
|
53
|
+
g.toJson(); // -> string, `cgg.graph.v2`
|
|
54
54
|
g.toDot();
|
|
55
55
|
g.toGraphml();
|
|
56
56
|
|
|
@@ -84,7 +84,7 @@ negative.
|
|
|
84
84
|
filter, hops, maxPaths,
|
|
85
85
|
excludePartial, excludeGlob, excludeRegex,
|
|
86
86
|
lang, jobs, ignoreFile, since, roots,
|
|
87
|
-
includeExternal, includeStdlib, dynamicDispatch, referenceEdges,
|
|
87
|
+
skipMinified, includeExternal, includeStdlib, dynamicDispatch, referenceEdges,
|
|
88
88
|
entryNodes, includeTests,
|
|
89
89
|
deadCode, deadCodeConfidence, ignoreNames, ignoreAttributes,
|
|
90
90
|
}
|
package/index.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare class Graph {
|
|
|
30
30
|
/** Render as a mermaid flowchart — what the CLI emits by default. */
|
|
31
31
|
toMermaid(): string
|
|
32
32
|
/**
|
|
33
|
-
* Render as `cgg.graph.
|
|
33
|
+
* Render as `cgg.graph.v2` JSON.
|
|
34
34
|
*
|
|
35
35
|
* Matches `cgg -t json` except for the per-run parse timings it
|
|
36
36
|
* embeds (`parse_ms`, `wall_ms`), which differ between any two runs
|
|
@@ -82,6 +82,11 @@ export interface AnalyzeOptions {
|
|
|
82
82
|
lang?: Array<string>
|
|
83
83
|
jobs?: number
|
|
84
84
|
ignoreFile?: string
|
|
85
|
+
/**
|
|
86
|
+
* Skip minified JS/CSS at walk time. `false` (the default) analyzes
|
|
87
|
+
* bundles like any other source.
|
|
88
|
+
*/
|
|
89
|
+
skipMinified?: boolean
|
|
85
90
|
includeExternal?: boolean
|
|
86
91
|
includeStdlib?: boolean
|
|
87
92
|
dynamicDispatch?: boolean
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cgg-callgraphgenerator",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Offline, deterministic call-graph generation for 44 languages. Point it at a directory, get a mermaid diagram.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"call-graph",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@napi-rs/cli": "^3.8.5"
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"cgg-callgraphgenerator-linux-x64-gnu": "0.8.
|
|
54
|
-
"cgg-callgraphgenerator-linux-arm64-gnu": "0.8.
|
|
55
|
-
"cgg-callgraphgenerator-darwin-x64": "0.8.
|
|
56
|
-
"cgg-callgraphgenerator-darwin-arm64": "0.8.
|
|
57
|
-
"cgg-callgraphgenerator-win32-x64-msvc": "0.8.
|
|
53
|
+
"cgg-callgraphgenerator-linux-x64-gnu": "0.8.4",
|
|
54
|
+
"cgg-callgraphgenerator-linux-arm64-gnu": "0.8.4",
|
|
55
|
+
"cgg-callgraphgenerator-darwin-x64": "0.8.4",
|
|
56
|
+
"cgg-callgraphgenerator-darwin-arm64": "0.8.4",
|
|
57
|
+
"cgg-callgraphgenerator-win32-x64-msvc": "0.8.4"
|
|
58
58
|
}
|
|
59
59
|
}
|