dpdm 3.9.0 → 3.11.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/lib/types.d.ts +1 -1
- package/lib/utils.d.ts +1 -1
- package/package.json +16 -44
package/lib/types.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface Dependency {
|
|
|
25
25
|
* 1. id === null: cannot resolve
|
|
26
26
|
* 2. tree[id] === null: ignored
|
|
27
27
|
*/
|
|
28
|
-
export
|
|
28
|
+
export type DependencyTree = Record<string, ReadonlyArray<Dependency> | null>;
|
|
29
29
|
export interface OutputResult {
|
|
30
30
|
entries: string[];
|
|
31
31
|
tree: DependencyTree;
|
package/lib/utils.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const glob: typeof G.__promisify__;
|
|
|
8
8
|
export declare const defaultOptions: ParseOptions;
|
|
9
9
|
export declare function normalizeOptions(options: Partial<ParseOptions>): ParseOptions;
|
|
10
10
|
export declare function appendSuffix(request: string, extensions: string[]): Promise<string | null>;
|
|
11
|
-
export
|
|
11
|
+
export type Resolver = (context: string, request: string, extensions: string[]) => Promise<string | null>;
|
|
12
12
|
export declare const simpleResolver: Resolver;
|
|
13
13
|
export declare function shortenTree(context: string, tree: DependencyTree): DependencyTree;
|
|
14
14
|
export declare function parseCircular(tree: DependencyTree): string[][];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dpdm",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0",
|
|
4
4
|
"description": "Analyze circular dependencies in your JavaScript/TypeScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"circular",
|
|
@@ -50,55 +50,27 @@
|
|
|
50
50
|
},
|
|
51
51
|
"license": "MIT",
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@types/jest": "^
|
|
54
|
-
"husky": "^
|
|
55
|
-
"jest": "^
|
|
53
|
+
"@types/jest": "^29.2.5",
|
|
54
|
+
"husky": "^8.0.3",
|
|
55
|
+
"jest": "^29.3.1",
|
|
56
56
|
"npm-run-all": "^4.1.5",
|
|
57
|
-
"prettier": "^2.
|
|
57
|
+
"prettier": "^2.8.3",
|
|
58
58
|
"pretty-quick": "^3.1.3",
|
|
59
|
-
"rollup": "^
|
|
60
|
-
"ts-jest": "^
|
|
61
|
-
"ts-node": "^10.
|
|
59
|
+
"rollup": "^3.10.0",
|
|
60
|
+
"ts-jest": "^29.0.5",
|
|
61
|
+
"ts-node": "^10.9.1"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@types/fs-extra": "^
|
|
65
|
-
"@types/glob": "^
|
|
66
|
-
"@types/yargs": "^17.0.
|
|
64
|
+
"@types/fs-extra": "^11.0.1",
|
|
65
|
+
"@types/glob": "^8.0.0",
|
|
66
|
+
"@types/yargs": "^17.0.19",
|
|
67
67
|
"chalk": "^4.1.2",
|
|
68
|
-
"fs-extra": "^
|
|
69
|
-
"glob": "^
|
|
68
|
+
"fs-extra": "^11.1.0",
|
|
69
|
+
"glob": "^8.1.0",
|
|
70
70
|
"ora": "^5.4.1",
|
|
71
|
-
"tslib": "^2.
|
|
72
|
-
"typescript": "^4.
|
|
73
|
-
"yargs": "^17.
|
|
74
|
-
},
|
|
75
|
-
"jest": {
|
|
76
|
-
"moduleFileExtensions": [
|
|
77
|
-
"ts",
|
|
78
|
-
"tsx",
|
|
79
|
-
"js",
|
|
80
|
-
"jsx",
|
|
81
|
-
"json",
|
|
82
|
-
"node",
|
|
83
|
-
"mjs"
|
|
84
|
-
],
|
|
85
|
-
"cacheDirectory": ".cache/jest",
|
|
86
|
-
"collectCoverage": false,
|
|
87
|
-
"collectCoverageFrom": [
|
|
88
|
-
"<rootDir>/src/**/*.{ts,tsx}",
|
|
89
|
-
"!**/*.d.ts"
|
|
90
|
-
],
|
|
91
|
-
"coverageDirectory": "temp/coverage",
|
|
92
|
-
"globals": {
|
|
93
|
-
"__DEV__": true,
|
|
94
|
-
"ENV": {}
|
|
95
|
-
},
|
|
96
|
-
"testMatch": [
|
|
97
|
-
"<rootDir>/src/**/*.spec.{ts,tsx}"
|
|
98
|
-
],
|
|
99
|
-
"transform": {
|
|
100
|
-
"^.+\\.tsx?$": "ts-jest"
|
|
101
|
-
}
|
|
71
|
+
"tslib": "^2.4.1",
|
|
72
|
+
"typescript": "^4.9.4",
|
|
73
|
+
"yargs": "^17.6.2"
|
|
102
74
|
},
|
|
103
75
|
"prettier": {
|
|
104
76
|
"printWidth": 80,
|