@teambit/dependencies 1.0.482 → 1.0.484

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.
@@ -1,9 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="141" failures="0" errors="0" skipped="31">
3
- <testsuite name="teambit.dependencies/dependencies@1.0.482" tests="141" failures="0" errors="0" skipped="31">
3
+ <testsuite name="teambit.dependencies/dependencies@1.0.484" tests="141" failures="0" errors="0" skipped="31">
4
4
  <testcase classname="dist/dependencies.spec.js" name="should add the snap prefix" time="0.001"/>
5
- <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/testing-library__jest-dom" time="0.002"/>
6
- <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/chai"/>
5
+ <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/testing-library__jest-dom" time="0.001"/>
6
+ <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/chai" time="0.001"/>
7
7
  <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/mocha"/>
8
8
  <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/classnames"/>
9
9
  <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/cors"/>
@@ -13,7 +13,7 @@
13
13
  <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/express"/>
14
14
  <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/find-cache-dir"/>
15
15
  <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/find-root"/>
16
- <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/history"/>
16
+ <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/history" time="0.001"/>
17
17
  <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/http-proxy-agent"/>
18
18
  <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/lodash"/>
19
19
  <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/lodash.compact"/>
@@ -39,8 +39,8 @@
39
39
  <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/webpack-dev-server"/>
40
40
  <testcase classname="dist/dependencies-loader/package-to-definetly-typed.spec.js" name="should map to @types/webpack-merge"/>
41
41
  <testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="when no files are passed should return an empty tree" time="0.001"/>
42
- <testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="when unsupported files are passed should return them with no dependencies"/>
43
- <testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="when supported and unsupported files are passed should return them all" time="0.064"/>
42
+ <testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="when unsupported files are passed should return them with no dependencies" time="0.002"/>
43
+ <testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="when supported and unsupported files are passed should return them all" time="0.097"/>
44
44
  <testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="when a js file has parsing error it should add the file to the tree with the error instance">
45
45
  <skipped/>
46
46
  </testcase>
@@ -62,68 +62,24 @@
62
62
  <testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="it should add the missing package to the missing section in the tree">
63
63
  <skipped/>
64
64
  </testcase>
65
- <testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="should not throw an error and should remove itself from the dependencies files"/>
65
+ <testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="should not throw an error and should remove itself from the dependencies files" time="0.001"/>
66
66
  <testcase classname="dist/files-dependency-builder/build-tree.spec.js" name="should not recognize the cycle dependencies as link files">
67
67
  <skipped/>
68
68
  </testcase>
69
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an empty object for a non-existent filename" time="0.001"/>
70
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="handles nested tree structures" time="0.007"/>
71
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not include files that are not real (#13)" time="0.001"/>
72
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not choke on cyclic dependencies" time="0.095"/>
73
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="excludes Nodejs core modules by default" time="0.001"/>
74
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns a list of absolutely pathed files"/>
75
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="passes it through to precinct" time="0.052"/>
76
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="stores the invalid partials" time="0.001"/>
77
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not store anything" time="0.002"/>
78
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="stores the invalid ones" time="0.002"/>
79
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should include the non-existent partial per file" time="0.002"/>
80
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="throws if the filename is missing"/>
81
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="throws if the root is missing"/>
82
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="throws if a supplied filter is not a function"/>
83
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not throw on the legacy `root` option"/>
84
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not throw"/>
85
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns no dependencies"/>
86
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns the precomputed list of a cached entry point"/>
87
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.001"/>
88
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.002"/>
89
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves files that have jsx" time="0.002"/>
90
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves files with a jsx extension" time="0.002"/>
91
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves files that have es7" time="0.002"/>
92
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.008"/>
93
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.001"/>
94
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.004"/>
95
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.016"/>
96
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves unaliased modules">
97
- <skipped/>
98
- </testcase>
99
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="uses the filter to determine if a file should be included in the results" time="0.002"/>
100
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="includes the lazy dependency" time="0.001"/>
101
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="includes the lazy dependency" time="0.001"/>
102
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="includes the dynamic import" time="0.001"/>
103
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should include it as a dependency and not throw an error"/>
104
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="it includes the module entry as dependency">
105
- <skipped/>
106
- </testcase>
107
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="retains the detective config in the clone" time="0.001"/>
108
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not override the cache with wrong packages" time="0.002"/>
109
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not crash with &quot;RangeError: Maximum call stack size exceeded&quot; error" time="0.001"/>
110
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not show missing dependencies" time="0.001"/>
111
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not show missing dependencies when importing from https"/>
112
- <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not show missing dependencies when importing from http"/>
113
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses a generic resolve for unsupported file extensions" time="0.001"/>
114
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="reuses the ast when trying to determine the module type"/>
69
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses a generic resolve for unsupported file extensions" time="0.003"/>
70
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="reuses the ast when trying to determine the module type" time="0.001"/>
115
71
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves the dependency successfully" time="0.001"/>
116
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses the filename to look for the module type"/>
72
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses the filename to look for the module type" time="0.002"/>
117
73
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="assumes commonjs for es6 modules with no requirejs/webpack config">
118
74
  <skipped/>
119
75
  </testcase>
120
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves files with the .jsx extension"/>
76
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves files with the .jsx extension" time="0.005"/>
121
77
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses require's resolver">
122
78
  <skipped/>
123
79
  </testcase>
124
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="returns an empty string for an unresolved module" time="0.001"/>
80
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="returns an empty string for an unresolved module" time="0.002"/>
125
81
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="adds the directory to the require resolution paths" time="0.002"/>
126
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a relative dependency about the filename" time="0.001"/>
82
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a relative dependency about the filename"/>
127
83
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a .. dependency to its parent directory's index.js file" time="0.001"/>
128
84
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a dependency within a directory outside of the given file">
129
85
  <skipped/>
@@ -131,23 +87,23 @@
131
87
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a node module with module entry in package.json">
132
88
  <skipped/>
133
89
  </testcase>
134
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a nested module"/>
135
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves to the index.js file of a directory"/>
136
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves implicit .jsx requires"/>
137
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves implicit .scss requires"/>
138
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves implicit .json requires" time="0.001"/>
139
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves an import"/>
90
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves a nested module" time="0.001"/>
91
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves to the index.js file of a directory" time="0.001"/>
92
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves implicit .jsx requires" time="0.001"/>
93
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves implicit .scss requires" time="0.001"/>
94
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves implicit .json requires"/>
95
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves an import" time="0.003"/>
140
96
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="returns an empty result" time="0.002"/>
141
97
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses the sass resolver for .scss files"/>
142
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses the sass resolver for .sass files" time="0.001"/>
143
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses the stylus resolver"/>
98
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses the sass resolver for .sass files"/>
99
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses the stylus resolver" time="0.001"/>
144
100
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves extensionless dependencies"/>
145
101
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves dependencies with a less extension"/>
146
102
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="resolves dependencies with a css extension"/>
147
103
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="uses a generic resolve for unsupported file extensions"/>
148
104
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="supports passing env detectors"/>
149
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="registers a custom resolver for a given extension" time="0.001"/>
150
- <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="allows does not break default resolvers"/>
105
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="registers a custom resolver for a given extension" time="0.131"/>
106
+ <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="allows does not break default resolvers" time="0.001"/>
151
107
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="can be called multiple times" time="0.001"/>
152
108
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="does not add redundant extensions to supportedFileExtensions"/>
153
109
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="should resolve the dependency to a node_module package (using webpack under the hood)">
@@ -189,18 +145,62 @@
189
145
  <testcase classname="dist/files-dependency-builder/filing-cabinet/index.spec.js" name="still works">
190
146
  <skipped/>
191
147
  </testcase>
148
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an empty object for a non-existent filename" time="0.001"/>
149
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="handles nested tree structures" time="0.007"/>
150
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not include files that are not real (#13)" time="0.003"/>
151
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not choke on cyclic dependencies" time="0.004"/>
152
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="excludes Nodejs core modules by default" time="0.001"/>
153
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns a list of absolutely pathed files" time="0.001"/>
154
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="passes it through to precinct" time="0.059"/>
155
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="stores the invalid partials" time="0.002"/>
156
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not store anything" time="0.001"/>
157
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="stores the invalid ones" time="0.003"/>
158
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should include the non-existent partial per file" time="0.004"/>
159
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="throws if the filename is missing" time="0.001"/>
160
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="throws if the root is missing"/>
161
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="throws if a supplied filter is not a function"/>
162
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not throw on the legacy `root` option"/>
163
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="does not throw"/>
164
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns no dependencies"/>
165
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns the precomputed list of a cached entry point"/>
166
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.003"/>
167
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.002"/>
168
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves files that have jsx" time="0.001"/>
169
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves files with a jsx extension" time="0.001"/>
170
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves files that have es7" time="0.001"/>
171
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.006"/>
172
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file"/>
173
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.004"/>
174
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="returns an object form of the dependency tree for a file" time="0.022"/>
175
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="resolves unaliased modules">
176
+ <skipped/>
177
+ </testcase>
178
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="uses the filter to determine if a file should be included in the results" time="0.004"/>
179
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="includes the lazy dependency" time="0.002"/>
180
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="includes the lazy dependency" time="0.002"/>
181
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="includes the dynamic import" time="0.001"/>
182
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should include it as a dependency and not throw an error" time="0.001"/>
183
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="it includes the module entry as dependency">
184
+ <skipped/>
185
+ </testcase>
186
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="retains the detective config in the clone" time="0.002"/>
187
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not override the cache with wrong packages" time="0.005"/>
188
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not crash with &quot;RangeError: Maximum call stack size exceeded&quot; error" time="0.002"/>
189
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not show missing dependencies" time="0.001"/>
190
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not show missing dependencies when importing from https" time="0.002"/>
191
+ <testcase classname="dist/files-dependency-builder/dependency-tree/index.spec.js" name="should not show missing dependencies when importing from http" time="0.001"/>
192
192
  <testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="returns the dependencies for the given filepath">
193
193
  <skipped/>
194
194
  </testcase>
195
- <testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="throws if the file cannot be found"/>
196
- <testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="filters out core modules if options.includeCore is false" time="0.001"/>
195
+ <testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="throws if the file cannot be found" time="0.001"/>
196
+ <testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="filters out core modules if options.includeCore is false" time="0.002"/>
197
197
  <testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="does not filter out core modules by default">
198
198
  <skipped/>
199
199
  </testcase>
200
200
  <testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="supports passing detective configuration">
201
201
  <skipped/>
202
202
  </testcase>
203
- <testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="supports passing env detectors"/>
203
+ <testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="supports passing env detectors" time="0.001"/>
204
204
  <testcase classname="dist/files-dependency-builder/precinct/index.spec.js" name="still does not filter out core module by default">
205
205
  <skipped/>
206
206
  </testcase>
@@ -4708,7 +4708,7 @@
4708
4708
  "componentId": {
4709
4709
  "scope": "teambit.dependencies",
4710
4710
  "name": "dependencies",
4711
- "version": "1.0.482"
4711
+ "version": "1.0.484"
4712
4712
  },
4713
4713
  "taggedModuleExports": []
4714
4714
  }
@@ -1,5 +1,5 @@
1
1
  import { ComponentID } from '@teambit/component-id';
2
- import { DependenciesInfo } from '@teambit/legacy/dist/scope/graph/scope-graph';
2
+ import { DependenciesInfo } from '@teambit/legacy.dependency-graph';
3
3
  export type DependentsResults = {
4
4
  scopeDependents: DependenciesInfo[];
5
5
  workspaceDependents: DependenciesInfo[];
@@ -32,9 +32,9 @@ function _consumerNotFound() {
32
32
  };
33
33
  return data;
34
34
  }
35
- function _scopeGraph() {
36
- const data = _interopRequireDefault(require("@teambit/legacy/dist/scope/graph/scope-graph"));
37
- _scopeGraph = function () {
35
+ function _legacy() {
36
+ const data = require("@teambit/legacy.dependency-graph");
37
+ _legacy = function () {
38
38
  return data;
39
39
  };
40
40
  return data;
@@ -45,11 +45,10 @@ async function dependents(id) {
45
45
  if (!consumer) throw new (_consumerNotFound().default)(); // @todo: supports this on bare-scope.
46
46
  throwForNewComponent(id, consumer);
47
47
  const bitId = consumer.getParsedIdIfExist(id) || _componentId().ComponentID.fromString(id);
48
- const scopeGraph = await _scopeGraph().default.buildGraphFromScope(consumer.scope);
49
- const scopeDependencyGraph = new (_scopeGraph().default)(scopeGraph);
48
+ const scopeDependencyGraph = await _legacy().DependencyGraph.loadLatest(consumer.scope);
50
49
  const scopeDependents = scopeDependencyGraph.getDependentsInfo(bitId);
51
- const workspaceGraph = await _scopeGraph().default.buildGraphFromWorkspace(consumer, true);
52
- const workspaceDependencyGraph = new (_scopeGraph().default)(workspaceGraph);
50
+ const workspaceGraph = await _legacy().DependencyGraph.buildGraphFromWorkspace(consumer, true);
51
+ const workspaceDependencyGraph = new (_legacy().DependencyGraph)(workspaceGraph);
53
52
  const workspaceDependents = workspaceDependencyGraph.getDependentsInfo(bitId);
54
53
  return {
55
54
  scopeDependents,
@@ -1 +1 @@
1
- {"version":3,"names":["_componentId","data","require","_bitError","_consumer","_consumerNotFound","_interopRequireDefault","_scopeGraph","e","__esModule","default","dependents","id","consumer","loadConsumerIfExist","ConsumerNotFound","throwForNewComponent","bitId","getParsedIdIfExist","ComponentID","fromString","scopeGraph","DependencyGraph","buildGraphFromScope","scope","scopeDependencyGraph","scopeDependents","getDependentsInfo","workspaceGraph","buildGraphFromWorkspace","workspaceDependencyGraph","workspaceDependents","bitMap","getExistingBitId","_legacy","hasScope","BitError"],"sources":["dependents.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component-id';\nimport { BitError } from '@teambit/bit-error';\nimport { loadConsumerIfExist, Consumer } from '@teambit/legacy/dist/consumer';\nimport ConsumerNotFound from '@teambit/legacy/dist/consumer/exceptions/consumer-not-found';\nimport DependencyGraph, { DependenciesInfo } from '@teambit/legacy/dist/scope/graph/scope-graph';\n\nexport type DependentsResults = {\n scopeDependents: DependenciesInfo[];\n workspaceDependents: DependenciesInfo[];\n id: ComponentID;\n};\n\nexport async function dependents(id: string): Promise<DependentsResults> {\n const consumer = await loadConsumerIfExist();\n if (!consumer) throw new ConsumerNotFound(); // @todo: supports this on bare-scope.\n throwForNewComponent(id, consumer);\n const bitId = consumer.getParsedIdIfExist(id) || ComponentID.fromString(id);\n const scopeGraph = await DependencyGraph.buildGraphFromScope(consumer.scope);\n const scopeDependencyGraph = new DependencyGraph(scopeGraph);\n const scopeDependents = scopeDependencyGraph.getDependentsInfo(bitId);\n const workspaceGraph = await DependencyGraph.buildGraphFromWorkspace(consumer, true);\n const workspaceDependencyGraph = new DependencyGraph(workspaceGraph);\n const workspaceDependents = workspaceDependencyGraph.getDependentsInfo(bitId);\n return { scopeDependents, workspaceDependents, id: bitId };\n}\n\nfunction throwForNewComponent(id: string, consumer: Consumer) {\n const bitId = consumer.bitMap.getExistingBitId(id, false);\n if (!bitId) return;\n if (!bitId._legacy.hasScope()) {\n throw new BitError(`${id} is a new component, there is no data about it in the scope`);\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,aAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,YAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,UAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,kBAAA;EAAA,MAAAJ,IAAA,GAAAK,sBAAA,CAAAJ,OAAA;EAAAG,iBAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,YAAA;EAAA,MAAAN,IAAA,GAAAK,sBAAA,CAAAJ,OAAA;EAAAK,WAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAiG,SAAAK,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQ1F,eAAeG,UAAUA,CAACC,EAAU,EAA8B;EACvE,MAAMC,QAAQ,GAAG,MAAM,IAAAC,+BAAmB,EAAC,CAAC;EAC5C,IAAI,CAACD,QAAQ,EAAE,MAAM,KAAIE,2BAAgB,EAAC,CAAC,CAAC,CAAC;EAC7CC,oBAAoB,CAACJ,EAAE,EAAEC,QAAQ,CAAC;EAClC,MAAMI,KAAK,GAAGJ,QAAQ,CAACK,kBAAkB,CAACN,EAAE,CAAC,IAAIO,0BAAW,CAACC,UAAU,CAACR,EAAE,CAAC;EAC3E,MAAMS,UAAU,GAAG,MAAMC,qBAAe,CAACC,mBAAmB,CAACV,QAAQ,CAACW,KAAK,CAAC;EAC5E,MAAMC,oBAAoB,GAAG,KAAIH,qBAAe,EAACD,UAAU,CAAC;EAC5D,MAAMK,eAAe,GAAGD,oBAAoB,CAACE,iBAAiB,CAACV,KAAK,CAAC;EACrE,MAAMW,cAAc,GAAG,MAAMN,qBAAe,CAACO,uBAAuB,CAAChB,QAAQ,EAAE,IAAI,CAAC;EACpF,MAAMiB,wBAAwB,GAAG,KAAIR,qBAAe,EAACM,cAAc,CAAC;EACpE,MAAMG,mBAAmB,GAAGD,wBAAwB,CAACH,iBAAiB,CAACV,KAAK,CAAC;EAC7E,OAAO;IAAES,eAAe;IAAEK,mBAAmB;IAAEnB,EAAE,EAAEK;EAAM,CAAC;AAC5D;AAEA,SAASD,oBAAoBA,CAACJ,EAAU,EAAEC,QAAkB,EAAE;EAC5D,MAAMI,KAAK,GAAGJ,QAAQ,CAACmB,MAAM,CAACC,gBAAgB,CAACrB,EAAE,EAAE,KAAK,CAAC;EACzD,IAAI,CAACK,KAAK,EAAE;EACZ,IAAI,CAACA,KAAK,CAACiB,OAAO,CAACC,QAAQ,CAAC,CAAC,EAAE;IAC7B,MAAM,KAAIC,oBAAQ,EAAC,GAAGxB,EAAE,6DAA6D,CAAC;EACxF;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_componentId","data","require","_bitError","_consumer","_consumerNotFound","_interopRequireDefault","_legacy","e","__esModule","default","dependents","id","consumer","loadConsumerIfExist","ConsumerNotFound","throwForNewComponent","bitId","getParsedIdIfExist","ComponentID","fromString","scopeDependencyGraph","DependencyGraph","loadLatest","scope","scopeDependents","getDependentsInfo","workspaceGraph","buildGraphFromWorkspace","workspaceDependencyGraph","workspaceDependents","bitMap","getExistingBitId","hasScope","BitError"],"sources":["dependents.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component-id';\nimport { BitError } from '@teambit/bit-error';\nimport { loadConsumerIfExist, Consumer } from '@teambit/legacy/dist/consumer';\nimport ConsumerNotFound from '@teambit/legacy/dist/consumer/exceptions/consumer-not-found';\nimport { DependencyGraph, DependenciesInfo } from '@teambit/legacy.dependency-graph';\n\nexport type DependentsResults = {\n scopeDependents: DependenciesInfo[];\n workspaceDependents: DependenciesInfo[];\n id: ComponentID;\n};\n\nexport async function dependents(id: string): Promise<DependentsResults> {\n const consumer = await loadConsumerIfExist();\n if (!consumer) throw new ConsumerNotFound(); // @todo: supports this on bare-scope.\n throwForNewComponent(id, consumer);\n const bitId = consumer.getParsedIdIfExist(id) || ComponentID.fromString(id);\n const scopeDependencyGraph = await DependencyGraph.loadLatest(consumer.scope);\n const scopeDependents = scopeDependencyGraph.getDependentsInfo(bitId);\n const workspaceGraph = await DependencyGraph.buildGraphFromWorkspace(consumer, true);\n const workspaceDependencyGraph = new DependencyGraph(workspaceGraph);\n const workspaceDependents = workspaceDependencyGraph.getDependentsInfo(bitId);\n return { scopeDependents, workspaceDependents, id: bitId };\n}\n\nfunction throwForNewComponent(id: string, consumer: Consumer) {\n const bitId = consumer.bitMap.getExistingBitId(id, false);\n if (!bitId) return;\n if (!bitId._legacy.hasScope()) {\n throw new BitError(`${id} is a new component, there is no data about it in the scope`);\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,aAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,YAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,UAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,UA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,eAAe;IAAEK,mBAAmB;IAAElB,EAAE,EAAEK;EAAM,CAAC;AAC5D;AAEA,SAASD,oBAAoBA,CAACJ,EAAU,EAAEC,QAAkB,EAAE;EAC5D,MAAMI,KAAK,GAAGJ,QAAQ,CAACkB,MAAM,CAACC,gBAAgB,CAACpB,EAAE,EAAE,KAAK,CAAC;EACzD,IAAI,CAACK,KAAK,EAAE;EACZ,IAAI,CAACA,KAAK,CAACV,OAAO,CAAC0B,QAAQ,CAAC,CAAC,EAAE;IAC7B,MAAM,KAAIC,oBAAQ,EAAC,GAAGtB,EAAE,6DAA6D,CAAC;EACxF;AACF","ignoreList":[]}
@@ -1,4 +1,4 @@
1
1
  import { ComponentID } from '@teambit/component-id';
2
- import { DependenciesInfo } from '@teambit/legacy/dist/scope/graph/scope-graph';
2
+ import { DependenciesInfo } from '@teambit/legacy.dependency-graph';
3
3
  export declare function generateDependenciesInfoTable(dependenciesInfo: DependenciesInfo[], id: ComponentID): string;
4
4
  export declare function generateDependentsInfoTable(dependentsInfo: DependenciesInfo[], id: ComponentID): string;
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_table","e","__esModule","default","getAllDependenciesRows","dependenciesInfoArray","id","map","dependency","row","push","toString","depth","parent","dependencyType","generateDependenciesInfoTable","dependenciesInfo","length","dependenciesHeader","c","cyan","allDependenciesRows","dependenciesTable","table","concat","bold","generateDependentsInfoTable","dependentsInfo","dependentsHeader","dependentsTable"],"sources":["template.ts"],"sourcesContent":["import c from 'chalk';\nimport { table } from 'table';\nimport { ComponentID } from '@teambit/component-id';\nimport { DependenciesInfo } from '@teambit/legacy/dist/scope/graph/scope-graph';\n\nfunction getAllDependenciesRows(dependenciesInfoArray: DependenciesInfo[], id: ComponentID): Array<string[]> {\n return dependenciesInfoArray.map((dependency: DependenciesInfo) => {\n const row: string[] = [];\n row.push(dependency.id.toString());\n row.push(dependency.depth.toString());\n row.push(dependency.parent === id.toString() ? '<self>' : dependency.parent);\n row.push(dependency.dependencyType);\n return row;\n });\n}\n\nexport function generateDependenciesInfoTable(dependenciesInfo: DependenciesInfo[], id: ComponentID) {\n if (!dependenciesInfo.length) {\n return '';\n }\n\n const dependenciesHeader: string[][] = [];\n dependenciesHeader.push([\n c.cyan('Dependency ID'),\n c.cyan('Depth'),\n c.cyan('Immediate Dependent'),\n c.cyan('Dependency type'),\n ]);\n const allDependenciesRows = getAllDependenciesRows(dependenciesInfo, id);\n\n const dependenciesTable = table(dependenciesHeader.concat(allDependenciesRows));\n return `\\n${c.bold('Dependencies Details')}\\n${dependenciesTable}`;\n}\n\nexport function generateDependentsInfoTable(dependentsInfo: DependenciesInfo[], id: ComponentID) {\n if (!dependentsInfo.length) {\n return '';\n }\n const dependentsHeader: string[][] = [];\n dependentsHeader.push([\n c.cyan('Dependent ID'),\n c.cyan('Depth'),\n c.cyan('Immediate Dependency'),\n c.cyan('Dependent type'),\n ]);\n const allDependenciesRows = getAllDependenciesRows(dependentsInfo, id);\n const dependentsTable = table(dependentsHeader.concat(allDependenciesRows));\n return `\\n${c.bold('Dependents Details')}\\n${dependentsTable}`;\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8B,SAAAC,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAI9B,SAASG,sBAAsBA,CAACC,qBAAyC,EAAEC,EAAe,EAAmB;EAC3G,OAAOD,qBAAqB,CAACE,GAAG,CAAEC,UAA4B,IAAK;IACjE,MAAMC,GAAa,GAAG,EAAE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S,gBAAC,CAACC,IAAI,CAAC,cAAc,CAAC,EACtBD,gBAAC,CAACC,IAAI,CAAC,OAAO,CAAC,EACfD,gBAAC,CAACC,IAAI,CAAC,sBAAsB,CAAC,EAC9BD,gBAAC,CAACC,IAAI,CAAC,gBAAgB,CAAC,CACzB,CAAC;EACF,MAAMC,mBAAmB,GAAGjB,sBAAsB,CAACuB,cAAc,EAAErB,EAAE,CAAC;EACtE,MAAMuB,eAAe,GAAG,IAAAN,cAAK,EAACK,gBAAgB,CAACJ,MAAM,CAACH,mBAAmB,CAAC,CAAC;EAC3E,OAAO,KAAKF,gBAAC,CAACM,IAAI,CAAC,oBAAoB,CAAC,KAAKI,eAAe,EAAE;AAChE","ignoreList":[]}
1
+ {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_table","e","__esModule","default","getAllDependenciesRows","dependenciesInfoArray","id","map","dependency","row","push","toString","depth","parent","dependencyType","generateDependenciesInfoTable","dependenciesInfo","length","dependenciesHeader","c","cyan","allDependenciesRows","dependenciesTable","table","concat","bold","generateDependentsInfoTable","dependentsInfo","dependentsHeader","dependentsTable"],"sources":["template.ts"],"sourcesContent":["import c from 'chalk';\nimport { table } from 'table';\nimport { ComponentID } from '@teambit/component-id';\nimport { DependenciesInfo } from '@teambit/legacy.dependency-graph';\n\nfunction getAllDependenciesRows(dependenciesInfoArray: DependenciesInfo[], id: ComponentID): Array<string[]> {\n return dependenciesInfoArray.map((dependency: DependenciesInfo) => {\n const row: string[] = [];\n row.push(dependency.id.toString());\n row.push(dependency.depth.toString());\n row.push(dependency.parent === id.toString() ? '<self>' : dependency.parent);\n row.push(dependency.dependencyType);\n return row;\n });\n}\n\nexport function generateDependenciesInfoTable(dependenciesInfo: DependenciesInfo[], id: ComponentID) {\n if (!dependenciesInfo.length) {\n return '';\n }\n\n const dependenciesHeader: string[][] = [];\n dependenciesHeader.push([\n c.cyan('Dependency ID'),\n c.cyan('Depth'),\n c.cyan('Immediate Dependent'),\n c.cyan('Dependency type'),\n ]);\n const allDependenciesRows = getAllDependenciesRows(dependenciesInfo, id);\n\n const dependenciesTable = table(dependenciesHeader.concat(allDependenciesRows));\n return `\\n${c.bold('Dependencies Details')}\\n${dependenciesTable}`;\n}\n\nexport function generateDependentsInfoTable(dependentsInfo: DependenciesInfo[], id: ComponentID) {\n if (!dependentsInfo.length) {\n return '';\n }\n const dependentsHeader: string[][] = [];\n dependentsHeader.push([\n c.cyan('Dependent ID'),\n c.cyan('Depth'),\n c.cyan('Immediate Dependency'),\n c.cyan('Dependent type'),\n ]);\n const allDependenciesRows = getAllDependenciesRows(dependentsInfo, id);\n const dependentsTable = table(dependentsHeader.concat(allDependenciesRows));\n return `\\n${c.bold('Dependents Details')}\\n${dependentsTable}`;\n}\n"],"mappings":";;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8B,SAAAC,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAI9B,SAASG,sBAAsBA,CAACC,qBAAyC,EAAEC,EAAe,EAAmB;EAC3G,OAAOD,qBAAqB,CAACE,GAAG,CAAEC,UAA4B,IAAK;IACjE,MAAMC,GAAa,GAAG,EAAE;IACxBA,GAAG,CAACC,IAAI,CAACF,UAAU,CAACF,EAAE,CAACK,QAAQ,CAAC,CAAC,CAAC;IAClCF,GAAG,CAACC,IAAI,CAACF,UAAU,CAACI,KAAK,CAACD,QAAQ,CAAC,CAAC,CAAC;IACrCF,GAAG,CAACC,IAAI,CAACF,UAAU,CAACK,MAAM,KAAKP,EAAE,CAACK,QA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,cAAc,EAAErB,EAAE,CAAC;EACtE,MAAMuB,eAAe,GAAG,IAAAN,cAAK,EAACK,gBAAgB,CAACJ,MAAM,CAACH,mBAAmB,CAAC,CAAC;EAC3E,OAAO,KAAKF,gBAAC,CAACM,IAAI,CAAC,oBAAoB,CAAC,KAAKI,eAAe,EAAE;AAChE","ignoreList":[]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/dependencies",
3
- "version": "1.0.482",
3
+ "version": "1.0.484",
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.482"
9
+ "version": "1.0.484"
10
10
  },
11
11
  "dependencies": {
12
12
  "archy": "1.0.0",
@@ -38,20 +38,21 @@
38
38
  "@teambit/styling.deps-detectors.detective-sass": "0.0.9",
39
39
  "@teambit/styling.deps-detectors.detective-scss": "0.0.9",
40
40
  "@teambit/typescript.deps-detectors.detective-typescript": "0.0.8",
41
- "@teambit/cli": "0.0.1059",
42
- "@teambit/graph": "1.0.482",
43
- "@teambit/aspect-loader": "1.0.482",
41
+ "@teambit/cli": "0.0.1061",
42
+ "@teambit/graph": "1.0.484",
43
+ "@teambit/aspect-loader": "1.0.484",
44
44
  "@teambit/component-package-version": "0.0.434",
45
- "@teambit/dependency-resolver": "1.0.482",
46
- "@teambit/dev-files": "1.0.482",
47
- "@teambit/logger": "0.0.1152",
48
- "@teambit/scope": "1.0.482",
49
- "@teambit/workspace": "1.0.482",
50
- "@teambit/component.sources": "0.0.50",
45
+ "@teambit/dependency-resolver": "1.0.484",
46
+ "@teambit/dev-files": "1.0.484",
47
+ "@teambit/logger": "0.0.1154",
48
+ "@teambit/scope": "1.0.484",
49
+ "@teambit/workspace": "1.0.484",
50
+ "@teambit/legacy.dependency-graph": "0.0.2",
51
+ "@teambit/component.sources": "0.0.51",
51
52
  "@teambit/legacy.utils": "0.0.7",
52
53
  "@teambit/toolbox.path.path": "0.0.4",
53
54
  "@teambit/component-issues": "0.0.151",
54
- "@teambit/legacy.bit-map": "0.0.55",
55
+ "@teambit/legacy.bit-map": "0.0.56",
55
56
  "@teambit/toolbox.fs.extension-getter": "0.0.1",
56
57
  "@teambit/toolbox.fs.last-modified": "0.0.1"
57
58
  },
@@ -66,8 +67,8 @@
66
67
  "@types/mocha": "9.1.0",
67
68
  "@teambit/defender.fs.global-bit-temp-dir": "0.0.1",
68
69
  "@teambit/harmony.envs.core-aspect-env": "0.0.63",
69
- "@teambit/component.testing.mock-components": "0.0.257",
70
- "@teambit/harmony.testing.load-aspect": "0.0.252",
70
+ "@teambit/component.testing.mock-components": "0.0.258",
71
+ "@teambit/harmony.testing.load-aspect": "0.0.253",
71
72
  "@teambit/workspace.testing.mock-workspace": "0.0.27"
72
73
  },
73
74
  "peerDependencies": {