@teambit/dependencies 1.0.1076 → 1.0.1078

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.
Files changed (20) hide show
  1. package/dist/dependencies-cmd.d.ts +2 -2
  2. package/dist/files-dependency-builder/fixtures/build-tree/not-link-file/file-c.d.ts +2 -1
  3. package/dist/files-dependency-builder/fixtures/build-tree/tree-shaking-cycle/index.d.ts +1 -1
  4. package/dist/files-dependency-builder/fixtures/build-tree/tree-shaking-cycle/is-string.d.ts +1 -1
  5. package/dist/files-dependency-builder/fixtures/build-tree/tree-shaking-cycle/self-cycle.d.ts +1 -1
  6. package/dist/files-dependency-builder/fixtures/dependency-tree/commonjs/b.d.ts +2 -1
  7. package/dist/files-dependency-builder/fixtures/dependency-tree/commonjs/c.d.ts +2 -1
  8. package/dist/files-dependency-builder/fixtures/filing-cabinet/ast.d.ts +159 -170
  9. package/dist/files-dependency-builder/fixtures/filing-cabinet/foo.d.ts +1 -1
  10. package/dist/files-dependency-builder/fixtures/filing-cabinet/mockedJSFiles.d.ts +51 -48
  11. package/dist/files-dependency-builder/fixtures/filing-cabinet/root1/mod1.d.ts +2 -1
  12. package/dist/files-dependency-builder/fixtures/filing-cabinet/root2/mod2.d.ts +2 -1
  13. package/dist/files-dependency-builder/fixtures/filing-cabinet/webpack.config.d.ts +9 -6
  14. package/dist/files-dependency-builder/fixtures/precinct/Gruntfile.d.ts +1 -1
  15. package/dist/files-dependency-builder/fixtures/precinct/cjsExportLazy.d.ts +1 -1
  16. package/dist/files-dependency-builder/fixtures/precinct/es6MixedExportLazy.d.ts +1 -1
  17. package/dist/files-dependency-builder/fixtures/precinct/exampleAST.d.ts +19 -16
  18. package/dist/files-dependency-builder/precinct/index.d.ts +2 -1
  19. package/package.json +30 -30
  20. /package/dist/{preview-1784922509081.js → preview-1785182795514.js} +0 -0
@@ -162,13 +162,13 @@ export declare class DependenciesDiagnoseCmd implements Command {
162
162
  private reportPackageDrillDown;
163
163
  json(_args: [], options: {
164
164
  package?: string;
165
- }): Promise<{
165
+ }): Promise<import("./dependencies.main.runtime").DiagnosisReport | {
166
166
  packageName: string;
167
167
  pnpmDirs: Array<{
168
168
  version: string;
169
169
  peerSuffix: string | null;
170
170
  }>;
171
- } | import("./dependencies.main.runtime").DiagnosisReport>;
171
+ }>;
172
172
  }
173
173
  type DependenciesCircularCmdOptions = {
174
174
  includeDeps?: boolean;
@@ -1 +1,2 @@
1
- export const varX: 4;
1
+ declare const varX = 4;
2
+ export { varX };
@@ -1 +1 @@
1
- export { default as isString } from "./is-string";
1
+ export { default as isString } from './is-string';
@@ -1,2 +1,2 @@
1
- export default isString;
2
1
  import { isString } from '.';
2
+ export default isString;
@@ -1,2 +1,2 @@
1
- export { selfCycle };
2
1
  import { selfCycle } from './self-cycle';
2
+ export { selfCycle };
@@ -1 +1,2 @@
1
- export {};
1
+ declare const _exports: {};
2
+ export = _exports;
@@ -1 +1,2 @@
1
- export {};
1
+ declare const _exports: {};
2
+ export = _exports;
@@ -1,46 +1,18 @@
1
- export let type: string;
2
- export let start: number;
3
- export let end: number;
4
- export namespace loc {
5
- export namespace start_1 {
6
- let line: number;
7
- let column: number;
8
- }
9
- export { start_1 as start };
10
- export namespace end_1 {
11
- let line_1: number;
12
- export { line_1 as line };
13
- let column_1: number;
14
- export { column_1 as column };
15
- }
16
- export { end_1 as end };
17
- }
18
- export namespace program {
19
- let type_1: string;
20
- export { type_1 as type };
21
- let start_2: number;
22
- export { start_2 as start };
23
- let end_2: number;
24
- export { end_2 as end };
25
- export namespace loc_1 {
26
- export namespace start_3 {
27
- let line_2: number;
28
- export { line_2 as line };
29
- let column_2: number;
30
- export { column_2 as column };
31
- }
32
- export { start_3 as start };
33
- export namespace end_3 {
34
- let line_3: number;
35
- export { line_3 as line };
36
- let column_3: number;
37
- export { column_3 as column };
38
- }
39
- export { end_3 as end };
40
- }
41
- export { loc_1 as loc };
42
- export let sourceType: string;
43
- export let body: {
1
+ declare const _exports: {
2
+ type: string;
3
+ start: number;
4
+ end: number;
5
+ loc: {
6
+ start: {
7
+ line: number;
8
+ column: number;
9
+ };
10
+ end: {
11
+ line: number;
12
+ column: number;
13
+ };
14
+ };
15
+ program: {
44
16
  type: string;
45
17
  start: number;
46
18
  end: number;
@@ -54,7 +26,8 @@ export namespace program {
54
26
  column: number;
55
27
  };
56
28
  };
57
- specifiers: {
29
+ sourceType: string;
30
+ body: {
58
31
  type: string;
59
32
  start: number;
60
33
  end: number;
@@ -68,7 +41,7 @@ export namespace program {
68
41
  column: number;
69
42
  };
70
43
  };
71
- local: {
44
+ specifiers: {
72
45
  type: string;
73
46
  start: number;
74
47
  end: number;
@@ -82,140 +55,156 @@ export namespace program {
82
55
  column: number;
83
56
  };
84
57
  };
85
- name: string;
86
- };
87
- }[];
88
- importKind: string;
89
- source: {
90
- type: string;
91
- start: number;
92
- end: number;
93
- loc: {
94
- start: {
95
- line: number;
96
- column: number;
58
+ local: {
59
+ type: string;
60
+ start: number;
61
+ end: number;
62
+ loc: {
63
+ start: {
64
+ line: number;
65
+ column: number;
66
+ };
67
+ end: {
68
+ line: number;
69
+ column: number;
70
+ };
71
+ };
72
+ name: string;
97
73
  };
98
- end: {
99
- line: number;
100
- column: number;
74
+ }[];
75
+ importKind: string;
76
+ source: {
77
+ type: string;
78
+ start: number;
79
+ end: number;
80
+ loc: {
81
+ start: {
82
+ line: number;
83
+ column: number;
84
+ };
85
+ end: {
86
+ line: number;
87
+ column: number;
88
+ };
101
89
  };
90
+ extra: {
91
+ rawValue: string;
92
+ raw: string;
93
+ };
94
+ value: string;
102
95
  };
103
- extra: {
104
- rawValue: string;
105
- raw: string;
106
- };
107
- value: string;
108
- };
109
- }[];
110
- export let directives: never[];
111
- }
112
- export let comments: never[];
113
- export let tokens: ({
114
- type: {
115
- label: string;
116
- keyword: string;
117
- beforeExpr: boolean;
118
- startsExpr: boolean;
119
- rightAssociative: boolean;
120
- isLoop: boolean;
121
- isAssign: boolean;
122
- prefix: boolean;
123
- postfix: boolean;
124
- binop: null;
125
- updateContext: null;
96
+ }[];
97
+ directives: never[];
126
98
  };
127
- value: string;
128
- start: number;
129
- end: number;
130
- loc: {
131
- start: {
132
- line: number;
133
- column: number;
99
+ comments: never[];
100
+ tokens: ({
101
+ type: {
102
+ label: string;
103
+ keyword: string;
104
+ beforeExpr: boolean;
105
+ startsExpr: boolean;
106
+ rightAssociative: boolean;
107
+ isLoop: boolean;
108
+ isAssign: boolean;
109
+ prefix: boolean;
110
+ postfix: boolean;
111
+ binop: null;
112
+ updateContext: null;
134
113
  };
135
- end: {
136
- line: number;
137
- column: number;
114
+ value: string;
115
+ start: number;
116
+ end: number;
117
+ loc: {
118
+ start: {
119
+ line: number;
120
+ column: number;
121
+ };
122
+ end: {
123
+ line: number;
124
+ column: number;
125
+ };
138
126
  };
139
- };
140
- } | {
141
- type: {
142
- label: string;
143
- beforeExpr: boolean;
144
- startsExpr: boolean;
145
- rightAssociative: boolean;
146
- isLoop: boolean;
147
- isAssign: boolean;
148
- prefix: boolean;
149
- postfix: boolean;
150
- binop: null;
151
- keyword?: undefined;
152
- updateContext?: undefined;
153
- };
154
- value: string;
155
- start: number;
156
- end: number;
157
- loc: {
158
- start: {
159
- line: number;
160
- column: number;
127
+ } | {
128
+ type: {
129
+ keyword?: undefined;
130
+ label: string;
131
+ beforeExpr: boolean;
132
+ startsExpr: boolean;
133
+ rightAssociative: boolean;
134
+ isLoop: boolean;
135
+ isAssign: boolean;
136
+ prefix: boolean;
137
+ postfix: boolean;
138
+ binop: null;
139
+ updateContext?: undefined;
161
140
  };
162
- end: {
163
- line: number;
164
- column: number;
141
+ value: string;
142
+ start: number;
143
+ end: number;
144
+ loc: {
145
+ start: {
146
+ line: number;
147
+ column: number;
148
+ };
149
+ end: {
150
+ line: number;
151
+ column: number;
152
+ };
165
153
  };
166
- };
167
- } | {
168
- type: {
169
- label: string;
170
- beforeExpr: boolean;
171
- startsExpr: boolean;
172
- rightAssociative: boolean;
173
- isLoop: boolean;
174
- isAssign: boolean;
175
- prefix: boolean;
176
- postfix: boolean;
177
- binop: null;
178
- updateContext: null;
179
- keyword?: undefined;
180
- };
181
- value: string;
182
- start: number;
183
- end: number;
184
- loc: {
185
- start: {
186
- line: number;
187
- column: number;
154
+ } | {
155
+ type: {
156
+ keyword?: undefined;
157
+ label: string;
158
+ beforeExpr: boolean;
159
+ startsExpr: boolean;
160
+ rightAssociative: boolean;
161
+ isLoop: boolean;
162
+ isAssign: boolean;
163
+ prefix: boolean;
164
+ postfix: boolean;
165
+ binop: null;
166
+ updateContext: null;
188
167
  };
189
- end: {
190
- line: number;
191
- column: number;
168
+ value: string;
169
+ start: number;
170
+ end: number;
171
+ loc: {
172
+ start: {
173
+ line: number;
174
+ column: number;
175
+ };
176
+ end: {
177
+ line: number;
178
+ column: number;
179
+ };
192
180
  };
193
- };
194
- } | {
195
- type: {
196
- label: string;
197
- beforeExpr: boolean;
198
- startsExpr: boolean;
199
- rightAssociative: boolean;
200
- isLoop: boolean;
201
- isAssign: boolean;
202
- prefix: boolean;
203
- postfix: boolean;
204
- binop: null;
205
- updateContext: null;
206
- keyword?: undefined;
207
- };
208
- start: number;
209
- end: number;
210
- loc: {
211
- start: {
212
- line: number;
213
- column: number;
181
+ } | {
182
+ value?: undefined;
183
+ type: {
184
+ keyword?: undefined;
185
+ label: string;
186
+ beforeExpr: boolean;
187
+ startsExpr: boolean;
188
+ rightAssociative: boolean;
189
+ isLoop: boolean;
190
+ isAssign: boolean;
191
+ prefix: boolean;
192
+ postfix: boolean;
193
+ binop: null;
194
+ updateContext: null;
214
195
  };
215
- end: {
216
- line: number;
217
- column: number;
196
+ start: number;
197
+ end: number;
198
+ loc: {
199
+ start: {
200
+ line: number;
201
+ column: number;
202
+ };
203
+ end: {
204
+ line: number;
205
+ column: number;
206
+ };
218
207
  };
219
- };
220
- value?: undefined;
221
- })[];
208
+ })[];
209
+ };
210
+ export = _exports;
@@ -1,2 +1,2 @@
1
- declare function _default(): import("react").JSX.Element;
2
1
  export default _default;
2
+ declare function _default(): import("react").JSX.Element;
@@ -1,59 +1,62 @@
1
- export namespace js {
2
- let es6: {
3
- 'foo.js': string;
4
- 'foo.jsx': string;
5
- 'bar.js': string;
6
- };
7
- let cjs: {
8
- 'foo.js': string;
9
- 'bar.jsx': string;
10
- 'baz.scss': string;
11
- 'pkg.json': string;
12
- };
13
- let ts: {
14
- 'index.ts': string;
15
- 'foo.ts': string;
16
- };
17
- let amd: {
18
- 'foo.js': string;
19
- 'bar.js': string;
20
- };
21
- let commonjs: {
22
- 'foo.js': string;
23
- 'bar.js': string;
24
- 'foo.baz': string;
25
- 'index.js': string;
26
- 'module.entry.js': string;
27
- subdir: {
28
- 'module.js': string;
29
- 'index.js': string;
1
+ declare const _exports: {
2
+ js: {
3
+ es6: {
4
+ 'foo.js': string;
5
+ 'foo.jsx': string;
6
+ 'bar.js': string;
30
7
  };
31
- test: {
32
- 'index.spec.js': string;
8
+ cjs: {
9
+ 'foo.js': string;
10
+ 'bar.jsx': string;
11
+ 'baz.scss': string;
12
+ 'pkg.json': string;
33
13
  };
34
- };
35
- let node_modules: {
36
- 'lodash.assign': {
37
- 'index.js': string;
14
+ ts: {
15
+ 'index.ts': string;
16
+ 'foo.ts': string;
38
17
  };
39
- 'module.entry': {
40
- 'index.main.js': string;
41
- 'index.module.js': string;
42
- 'package.json': string;
18
+ amd: {
19
+ 'foo.js': string;
20
+ 'bar.js': string;
43
21
  };
44
- nested: {
22
+ commonjs: {
23
+ 'foo.js': string;
24
+ 'bar.js': string;
25
+ 'foo.baz': string;
45
26
  'index.js': string;
46
- node_modules: {
47
- 'lodash.assign': {
48
- 'index.js': string;
27
+ 'module.entry.js': string;
28
+ subdir: {
29
+ 'module.js': string;
30
+ 'index.js': string;
31
+ };
32
+ test: {
33
+ 'index.spec.js': string;
34
+ };
35
+ };
36
+ node_modules: {
37
+ 'lodash.assign': {
38
+ 'index.js': string;
39
+ };
40
+ 'module.entry': {
41
+ 'index.main.js': string;
42
+ 'index.module.js': string;
43
+ 'package.json': string;
44
+ };
45
+ nested: {
46
+ 'index.js': string;
47
+ node_modules: {
48
+ 'lodash.assign': {
49
+ 'index.js': string;
50
+ };
49
51
  };
50
52
  };
51
53
  };
52
- };
53
- let withIndex: {
54
- subdir: {
54
+ withIndex: {
55
+ subdir: {
56
+ 'index.js': string;
57
+ };
55
58
  'index.js': string;
56
59
  };
57
- 'index.js': string;
58
60
  };
59
- }
61
+ };
62
+ export = _exports;
@@ -1 +1,2 @@
1
- export {};
1
+ declare const _exports: {};
2
+ export = _exports;
@@ -1 +1,2 @@
1
- export {};
1
+ declare const _exports: {};
2
+ export = _exports;
@@ -1,6 +1,9 @@
1
- export let entry: string;
2
- export namespace resolve {
3
- namespace alias {
4
- let R: string;
5
- }
6
- }
1
+ declare const _exports: {
2
+ entry: string;
3
+ resolve: {
4
+ alias: {
5
+ R: string;
6
+ };
7
+ };
8
+ };
9
+ export = _exports;
@@ -1,2 +1,2 @@
1
- declare function _exports(grunt: any): void;
2
1
  export = _exports;
2
+ declare function _exports(grunt: any): void;
@@ -1,6 +1,6 @@
1
+ export = _exports;
1
2
  declare function _exports({ _amd, _es6, _es7 }: {
2
3
  _amd?: any;
3
4
  _es6?: any;
4
5
  _es7?: typeof import("./es7") | undefined;
5
6
  }): void;
6
- export = _exports;
@@ -1,4 +1,4 @@
1
- export default function _default({ amd, es6, es7 }: {
1
+ export default function ({ amd, es6, es7 }: {
2
2
  amd?: any;
3
3
  es6?: typeof import("./es6") | undefined;
4
4
  es7?: typeof import("./es7") | undefined;
@@ -1,24 +1,27 @@
1
- export let type: string;
2
- export let body: {
1
+ declare const _exports: {
3
2
  type: string;
4
- declarations: {
3
+ body: {
5
4
  type: string;
6
- id: {
5
+ declarations: {
7
6
  type: string;
8
- name: string;
9
- };
10
- init: {
11
- type: string;
12
- callee: {
7
+ id: {
13
8
  type: string;
14
9
  name: string;
15
10
  };
16
- arguments: {
11
+ init: {
17
12
  type: string;
18
- value: string;
19
- raw: string;
20
- }[];
21
- };
13
+ callee: {
14
+ type: string;
15
+ name: string;
16
+ };
17
+ arguments: {
18
+ type: string;
19
+ value: string;
20
+ raw: string;
21
+ }[];
22
+ };
23
+ }[];
24
+ kind: string;
22
25
  }[];
23
- kind: string;
24
- }[];
26
+ };
27
+ export = _exports;
@@ -6,7 +6,8 @@ type Options = {
6
6
  type?: string;
7
7
  [lang: string]: any;
8
8
  };
9
+ declare const getDepsFromFile: (filename: string, options?: Options) => Promise<string[]>;
9
10
  declare const precinct: {
10
- paperwork: (filename: string, options?: Options) => Promise<string[]>;
11
+ paperwork: typeof getDepsFromFile;
11
12
  };
12
13
  export default precinct;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/dependencies",
3
- "version": "1.0.1076",
3
+ "version": "1.0.1078",
4
4
  "homepage": "https://bit.cloud/teambit/dependencies/dependencies",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.dependencies",
8
8
  "name": "dependencies",
9
- "version": "1.0.1076"
9
+ "version": "1.0.1078"
10
10
  },
11
11
  "dependencies": {
12
12
  "archy": "1.0.0",
@@ -26,42 +26,42 @@
26
26
  "detective-stylus": "1.0.0",
27
27
  "module-definition": "3.3.1",
28
28
  "node-source-walk": "4.2.0",
29
- "@teambit/cli": "0.0.1354",
30
- "@teambit/component-issues": "0.0.178",
31
- "@teambit/legacy.constants": "0.0.35",
32
29
  "@teambit/harmony": "0.4.12",
33
30
  "@teambit/component-id": "1.2.4",
34
- "@teambit/component-package-version": "0.0.455",
35
- "@teambit/legacy.consumer-component": "0.0.139",
36
- "@teambit/logger": "0.0.1447",
37
31
  "@teambit/bit-error": "0.0.404",
38
- "@teambit/legacy.dependency-graph": "0.0.141",
39
- "@teambit/component.sources": "0.0.190",
40
- "@teambit/legacy.utils": "0.0.43",
41
- "@teambit/toolbox.path.path": "0.0.19",
42
- "@teambit/legacy.bit-map": "0.0.195",
43
- "@teambit/legacy.consumer-config": "0.0.138",
44
- "@teambit/legacy.consumer": "0.0.138",
45
32
  "@teambit/component-version": "1.0.4",
46
- "@teambit/legacy.logger": "0.0.50",
47
- "@teambit/toolbox.fs.extension-getter": "0.0.16",
48
- "@teambit/legacy.extension-data": "0.0.140",
49
- "@teambit/toolbox.fs.last-modified": "0.0.17",
50
33
  "@teambit/styling.deps-lookups.lookup-styling": "0.0.4",
51
34
  "@teambit/typescript.deps-lookups.lookup-typescript": "0.0.2",
52
- "@teambit/mdx.deps-detectors.detective-mdx": "0.0.1",
53
35
  "@teambit/node.deps-detectors.detective-es6": "0.0.6",
54
36
  "@teambit/styling.deps-detectors.detective-css": "0.0.6",
55
37
  "@teambit/styling.deps-detectors.detective-less": "0.0.6",
56
38
  "@teambit/styling.deps-detectors.detective-sass": "0.0.9",
57
39
  "@teambit/styling.deps-detectors.detective-scss": "0.0.9",
58
40
  "@teambit/typescript.deps-detectors.detective-typescript": "0.0.10",
59
- "@teambit/graph": "1.0.1076",
60
- "@teambit/workspace": "1.0.1076",
61
- "@teambit/aspect-loader": "1.0.1076",
62
- "@teambit/dependency-resolver": "1.0.1076",
63
- "@teambit/dev-files": "1.0.1076",
64
- "@teambit/scope": "1.0.1076"
41
+ "@teambit/cli": "0.0.1356",
42
+ "@teambit/component-issues": "0.0.179",
43
+ "@teambit/graph": "1.0.1078",
44
+ "@teambit/legacy.constants": "0.0.36",
45
+ "@teambit/workspace": "1.0.1078",
46
+ "@teambit/aspect-loader": "1.0.1078",
47
+ "@teambit/component-package-version": "0.0.456",
48
+ "@teambit/dependency-resolver": "1.0.1078",
49
+ "@teambit/dev-files": "1.0.1078",
50
+ "@teambit/legacy.consumer-component": "0.0.140",
51
+ "@teambit/logger": "0.0.1449",
52
+ "@teambit/scope": "1.0.1078",
53
+ "@teambit/legacy.dependency-graph": "0.0.142",
54
+ "@teambit/component.sources": "0.0.191",
55
+ "@teambit/legacy.utils": "0.0.44",
56
+ "@teambit/toolbox.path.path": "0.0.20",
57
+ "@teambit/legacy.bit-map": "0.0.196",
58
+ "@teambit/legacy.consumer-config": "0.0.139",
59
+ "@teambit/legacy.consumer": "0.0.139",
60
+ "@teambit/legacy.logger": "0.0.51",
61
+ "@teambit/toolbox.fs.extension-getter": "0.0.17",
62
+ "@teambit/legacy.extension-data": "0.0.141",
63
+ "@teambit/toolbox.fs.last-modified": "0.0.18",
64
+ "@teambit/mdx.deps-detectors.detective-mdx": "0.0.2"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/cli-table": "^0.3.0",
@@ -71,11 +71,11 @@
71
71
  "rewire": "7.0.0",
72
72
  "sinon": "17.0.1",
73
73
  "@types/mocha": "9.1.0",
74
- "@teambit/component.testing.mock-components": "0.0.409",
75
- "@teambit/harmony.testing.load-aspect": "0.0.404",
76
- "@teambit/workspace.testing.mock-workspace": "0.0.215",
77
74
  "@teambit/defender.fs.global-bit-temp-dir": "0.0.1",
78
- "@teambit/harmony.envs.core-aspect-env": "1.0.2"
75
+ "@teambit/harmony.envs.core-aspect-env": "2.0.0",
76
+ "@teambit/component.testing.mock-components": "0.0.410",
77
+ "@teambit/harmony.testing.load-aspect": "0.0.405",
78
+ "@teambit/workspace.testing.mock-workspace": "0.0.216"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "chai": "5.2.1"