js-code-detector 0.0.58 → 0.0.59

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.
@@ -29,7 +29,7 @@ export declare function gitDiffDetect(): Promise<{
29
29
  effectsDownstream: string[];
30
30
  }[];
31
31
  }[];
32
- type: "modify" | "add" | "delete";
32
+ type: "add" | "delete" | "modify";
33
33
  filesDependsOnMe: string[];
34
34
  undefinedIdentifiers: string[];
35
35
  filePath: string;
@@ -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][] | never[];
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" | "Variable" | "Function" | "Class" | "Param" | "Enum" | "Interface" | "TypeAlias" | null;
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>;
@@ -35,7 +35,7 @@ export declare function generateGitDiffReport(arg: {
35
35
  effectsDownstream: string[];
36
36
  }[];
37
37
  }[];
38
- type: "modify" | "add" | "delete";
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: "delete" | "modify" | "add";
40
+ type: "add" | "delete" | "modify";
41
41
  filesDependsOnMe: string[];
42
42
  undefinedIdentifiers: string[];
43
43
  filePath: string;
@@ -35,7 +35,7 @@ export declare function gitDiffTool(arg: {
35
35
  effectsDownstream: string[];
36
36
  }[];
37
37
  }[];
38
- type: "modify" | "add" | "delete";
38
+ type: "add" | "delete" | "modify";
39
39
  filesDependsOnMe: string[];
40
40
  undefinedIdentifiers: string[];
41
41
  filePath: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-code-detector",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
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
  }