js-code-detector 0.0.58 → 0.0.60
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/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/util/ast_util/helper/createAstNodeExt.d.ts +1 -1
- package/dist/cjs/util/ast_util/helper/findRelateUsageOfExport.js +2 -1
- package/dist/cjs/util/report_util/generateGitDiffReport.d.ts +1 -1
- package/dist/cjs/util/report_util.d.ts +1 -1
- package/dist/cjs/util/shared/gitDiffTool.d.ts +1 -1
- package/package.json +1 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -39,6 +39,6 @@ export { isRepoTypeSupported } from "./util/shared/getRepoSupportFlag";
|
|
|
39
39
|
export declare function runDiffDetect(compareUrl?: string, token?: string): Promise<{
|
|
40
40
|
error: Error | null;
|
|
41
41
|
repoType: string;
|
|
42
|
-
effectedImportUsage: [string, string][]
|
|
42
|
+
effectedImportUsage: never[] | [string, string][];
|
|
43
43
|
relatedExportUsage: never[] | import("src/util/ast_util/helper/findRelateUsageOfExport").RelateUsageOfExport[];
|
|
44
44
|
}>;
|
|
@@ -17,7 +17,7 @@ export default function createAstNodeExt(ext: Partial<AstNode['_util']>): {
|
|
|
17
17
|
dependenceIdsNoScope: Set<AstNode>;
|
|
18
18
|
holdingIds: Set<AstNode>;
|
|
19
19
|
holdingIdNameMap: Map<string, Set<AstNode>>;
|
|
20
|
-
holdingIdType: "Import" | "
|
|
20
|
+
holdingIdType: "Import" | "TypeAlias" | "Function" | "Variable" | "Class" | "Param" | "Enum" | "Interface" | null;
|
|
21
21
|
inject: Set<AstNode>;
|
|
22
22
|
provide: Set<AstNode>;
|
|
23
23
|
effectIds: Set<AstNode>;
|
|
@@ -34,6 +34,7 @@ __export(findRelateUsageOfExport_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(findRelateUsageOfExport_exports);
|
|
35
35
|
var import_findImportUsageInExport = require("./findImportUsageInExport");
|
|
36
36
|
var import_getAstKitByFilePath = __toESM(require("../getAstKitByFilePath"));
|
|
37
|
+
var import_path = require("path");
|
|
37
38
|
function findRelateUsageOfExport(effectedImportUsage, import2export, indirectExportMembers, absPathPrefix) {
|
|
38
39
|
const result = [];
|
|
39
40
|
const ignoreList = [];
|
|
@@ -47,7 +48,7 @@ function findRelateUsageOfExportHelper(effectedImportUsage, import2export, indir
|
|
|
47
48
|
return acc;
|
|
48
49
|
}, {});
|
|
49
50
|
const effectedExportUsage = Object.entries(mapFileToImportMembers).map(([filePath, members]) => {
|
|
50
|
-
const astKit = (0, import_getAstKitByFilePath.default)(filePath, absPathPrefix);
|
|
51
|
+
const astKit = (0, import_getAstKitByFilePath.default)((0, import_path.join)(absPathPrefix, filePath), absPathPrefix);
|
|
51
52
|
const programNode = astKit.mapUuidToNode.get("Program");
|
|
52
53
|
if (!programNode)
|
|
53
54
|
return [];
|
|
@@ -35,7 +35,7 @@ export declare function generateGitDiffReport(arg: {
|
|
|
35
35
|
effectsDownstream: string[];
|
|
36
36
|
}[];
|
|
37
37
|
}[];
|
|
38
|
-
type: "
|
|
38
|
+
type: "add" | "delete" | "modify";
|
|
39
39
|
filesDependsOnMe: string[];
|
|
40
40
|
undefinedIdentifiers: string[];
|
|
41
41
|
filePath: string;
|
|
@@ -37,7 +37,7 @@ export declare function createDetectReport(arg: Arg): {
|
|
|
37
37
|
effectsDownstream: string[];
|
|
38
38
|
}[];
|
|
39
39
|
}[];
|
|
40
|
-
type: "
|
|
40
|
+
type: "add" | "delete" | "modify";
|
|
41
41
|
filesDependsOnMe: string[];
|
|
42
42
|
undefinedIdentifiers: string[];
|
|
43
43
|
filePath: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js-code-detector",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.60",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -40,14 +40,12 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@babel/parser": "^7.28.3",
|
|
43
|
-
"@mermaid-js/mermaid-cli": "^11.12.0",
|
|
44
43
|
"@umijs/utils": "^4.4.12",
|
|
45
44
|
"await-to-js": "^3.0.0",
|
|
46
45
|
"crypto-js": "^4.2.0",
|
|
47
46
|
"dayjs": "^1.11.13",
|
|
48
47
|
"lodash": "^4.17.21",
|
|
49
48
|
"madge": "^8.0.0",
|
|
50
|
-
"puppeteer": "^24.34.0",
|
|
51
49
|
"simple-git": "^3.28.0",
|
|
52
50
|
"vue-eslint-parser": "^10.2.0"
|
|
53
51
|
}
|