@teambit/snapping 1.0.336 → 1.0.337

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.
@@ -161,7 +161,6 @@ export declare class SnappingMain {
161
161
  _getObjectsToEnrichComp(consumerComponent: ConsumerComponent, modifiedLog?: Log): Promise<BitObject[]>;
162
162
  private transformArtifactsFromVinylToSource;
163
163
  private loadComponentsForTagOrSnap;
164
- private throwForComponentIssues;
165
164
  private throwForPendingImport;
166
165
  private throwForLegacyDependenciesInsideHarmony;
167
166
  /**
@@ -256,13 +256,6 @@ function _tagCmd() {
256
256
  };
257
257
  return data;
258
258
  }
259
- function _componentsHaveIssues() {
260
- const data = require("./components-have-issues");
261
- _componentsHaveIssues = function () {
262
- return data;
263
- };
264
- return data;
265
- }
266
259
  function _resetCmd() {
267
260
  const data = _interopRequireDefault(require("./reset-cmd"));
268
261
  _resetCmd = function () {
@@ -905,7 +898,7 @@ in case you're unsure about the pattern syntax, use "bit pattern [--help]"`);
905
898
  const componentsToCheck = components.filter(c => !c.isDeleted());
906
899
  const consumerComponents = componentsToCheck.map(c => c.state._consumer);
907
900
  await this.throwForLegacyDependenciesInsideHarmony(consumerComponents);
908
- await this.throwForComponentIssues(componentsToCheck, ignoreIssues);
901
+ await this.builder.throwForComponentIssues(componentsToCheck, ignoreIssues);
909
902
  this.throwForPendingImport(consumerComponents);
910
903
  }
911
904
  async throwForDepsFromAnotherLaneForComp(component, allIds, lane, throwForMissingObjects = false) {
@@ -1139,27 +1132,6 @@ another option, in case this dependency is not in main yet is to remove all refe
1139
1132
  }
1140
1133
  return this.workspace.getMany(ids.map(id => id.changeVersion(undefined)));
1141
1134
  }
1142
- async throwForComponentIssues(components, ignoreIssues) {
1143
- if (ignoreIssues === '*') {
1144
- // ignore all issues
1145
- return;
1146
- }
1147
- const issuesToIgnoreFromFlag = ignoreIssues?.split(',').map(issue => issue.trim()) || [];
1148
- const issuesToIgnoreFromConfig = this.issues.getIssuesToIgnoreGlobally();
1149
- const issuesToIgnore = [...issuesToIgnoreFromFlag, ...issuesToIgnoreFromConfig];
1150
- await this.issues.triggerAddComponentIssues(components, issuesToIgnore);
1151
- this.issues.removeIgnoredIssuesFromComponents(components, issuesToIgnore);
1152
- const legacyComponents = components.map(c => c.state._consumer);
1153
- const componentsWithBlockingIssues = legacyComponents.filter(component => component.issues?.shouldBlockTagging());
1154
- if (componentsWithBlockingIssues.length) {
1155
- throw new (_componentsHaveIssues().ComponentsHaveIssues)(componentsWithBlockingIssues);
1156
- }
1157
- const workspaceIssues = this.workspace.getWorkspaceIssues();
1158
- if (workspaceIssues.length) {
1159
- const issuesStr = workspaceIssues.map(issueErr => issueErr.message).join('\n');
1160
- throw new (_bitError().BitError)(`the workspace has the following issues:\n${issuesStr}`);
1161
- }
1162
- }
1163
1135
  throwForPendingImport(components) {
1164
1136
  const componentsMissingFromScope = components.filter(c => !c.componentFromModel && this.scope.isExported(c.id)).map(c => c.id.toString());
1165
1137
  if (componentsMissingFromScope.length) {