js-code-detector 0.0.60 → 0.0.61

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: "delete" | "modify" | "add";
33
33
  filesDependsOnMe: string[];
34
34
  undefinedIdentifiers: string[];
35
35
  filePath: string;
@@ -39,6 +39,15 @@ 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: never[] | [string, string][];
43
- relatedExportUsage: never[] | import("src/util/ast_util/helper/findRelateUsageOfExport").RelateUsageOfExport[];
42
+ effectedImportUsage: [string, string][];
43
+ relatedExportUsage: import("src/util/ast_util/helper/findRelateUsageOfExport").RelateUsageOfExport[];
44
+ noMatchExportMembers: {
45
+ file: string;
46
+ member: string;
47
+ useless: boolean;
48
+ from: {
49
+ file: string;
50
+ member: string;
51
+ };
52
+ }[];
44
53
  }>;
@@ -32,7 +32,16 @@ export declare class DetectService {
32
32
  formatResult(): {
33
33
  error: Error | null;
34
34
  repoType: string;
35
- effectedImportUsage: never[] | [string, string][];
36
- relatedExportUsage: never[] | import("src/util/ast_util/helper/findRelateUsageOfExport").RelateUsageOfExport[];
35
+ effectedImportUsage: [string, string][];
36
+ relatedExportUsage: import("src/util/ast_util/helper/findRelateUsageOfExport").RelateUsageOfExport[];
37
+ noMatchExportMembers: {
38
+ file: string;
39
+ member: string;
40
+ useless: boolean;
41
+ from: {
42
+ file: string;
43
+ member: string;
44
+ };
45
+ }[];
37
46
  };
38
47
  }
@@ -192,12 +192,13 @@ var DetectService = class {
192
192
  formatResult() {
193
193
  var _a;
194
194
  const repoType = this.gitInfo.repoType;
195
- const { effectedImportUsage, error, relatedExportUsage } = ((_a = this.projectService) == null ? void 0 : _a.outputResult) || { relatedExportUsage: [], effectedImportUsage: [], error: null };
195
+ const { effectedImportUsage, error, relatedExportUsage, noMatchExportMembers } = ((_a = this.projectService) == null ? void 0 : _a.outputResult) || { relatedExportUsage: [], effectedImportUsage: [], noMatchExportMembers: [], error: null };
196
196
  return {
197
197
  error,
198
198
  repoType,
199
199
  effectedImportUsage,
200
- relatedExportUsage
200
+ relatedExportUsage,
201
+ noMatchExportMembers
201
202
  };
202
203
  }
203
204
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-code-detector",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",