@teambit/workspace 1.0.1209 → 1.0.1210

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,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.1209/dist/workspace.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.1209/dist/workspace.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.1210/dist/workspace.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.workspace_workspace@1.0.1210/dist/workspace.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/dist/workspace.js CHANGED
@@ -816,7 +816,8 @@ class Workspace {
816
816
  const flattenedEdges = await this.scope.getFlattenedEdges(component.id);
817
817
  const versionObj = await this.scope.getBitObjectVersionById(component.id);
818
818
  if (!flattenedEdges || !versionObj) return null;
819
- if (!flattenedEdges.length && versionObj.flattenedDependencies.length) {
819
+ const flattenedDependencies = await versionObj.loadFlattenedDependencies(this.scope.legacyScope.objects);
820
+ if (!flattenedEdges.length && flattenedDependencies.length) {
820
821
  // there are flattenedDependencies, so must be edges, if they're empty, it's because the component was tagged
821
822
  // with a version < ~0.0.901, so this flattenedEdges wasn't exist.
822
823
  return null;
@@ -832,7 +833,7 @@ class Workspace {
832
833
  };
833
834
  const currentVersion = getCurrentVersionAsTagIfPossible();
834
835
  flattenedBitIdCompIdMap[component.id.changeVersion(currentVersion).toString()] = component.id;
835
- versionObj.flattenedDependencies.forEach(bitId => {
836
+ flattenedDependencies.forEach(bitId => {
836
837
  flattenedBitIdCompIdMap[bitId.toString()] = bitId;
837
838
  });
838
839
  const getCompIdByIdStr = idStr => {