@teambit/lanes 1.0.1209 → 1.0.1211

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.
@@ -10,6 +10,13 @@ Object.defineProperty(exports, "Lane", {
10
10
  }
11
11
  });
12
12
  exports.default = exports.LanesMain = void 0;
13
+ function _harmonyModules() {
14
+ const data = require("@teambit/harmony.modules.runtimes");
15
+ _harmonyModules = function () {
16
+ return data;
17
+ };
18
+ return data;
19
+ }
13
20
  function _cli() {
14
21
  const data = require("@teambit/cli");
15
22
  _cli = function () {
@@ -213,9 +220,9 @@ function _lanesEntities() {
213
220
  };
214
221
  return data;
215
222
  }
216
- function _harmonyModules() {
223
+ function _harmonyModules2() {
217
224
  const data = require("@teambit/harmony.modules.concurrency");
218
- _harmonyModules = function () {
225
+ _harmonyModules2 = function () {
219
226
  return data;
220
227
  };
221
228
  return data;
@@ -357,7 +364,7 @@ class LanesMain {
357
364
  * tsserver schema extraction) — that's now deferred to the API view, so derivation only does the
358
365
  * I/O+CPU-bound `compare()`, which parallelizes well. Cap to the component concurrency limit.
359
366
  */
360
- _defineProperty(this, "deriveChangesLimit", (0, _pLimit().default)((0, _harmonyModules().concurrentComponentsLimit)()));
367
+ _defineProperty(this, "deriveChangesLimit", (0, _pLimit().default)((0, _harmonyModules2().concurrentComponentsLimit)()));
361
368
  /** single-flight for concurrent `deriveComponentChanges` calls on the same memo key. */
362
369
  _defineProperty(this, "changeTypesInflight", new Map());
363
370
  }
@@ -420,7 +427,7 @@ class LanesMain {
420
427
  return undefined;
421
428
  }
422
429
  }, {
423
- concurrency: (0, _harmonyModules().concurrentComponentsLimit)()
430
+ concurrency: (0, _harmonyModules2().concurrentComponentsLimit)()
424
431
  }).catch(() => undefined), comparePairs.length > 0 ? this.componentCompare.compareComponents(comparePairs).catch(() => undefined) : Promise.resolve()]).catch(() => {});
425
432
  }
426
433
  populateDiffStatusMemoAsync(resultMemoKey, results) {
@@ -1137,7 +1144,7 @@ please create a new lane instead, which will include all components of this lane
1137
1144
  });
1138
1145
  }
1139
1146
  }, {
1140
- concurrency: (0, _harmonyModules().concurrentComponentsLimit)()
1147
+ concurrency: (0, _harmonyModules2().concurrentComponentsLimit)()
1141
1148
  });
1142
1149
  this.logger.profile(`get snaps distance for source lane: ${sourceLane?.id.name} and target lane: ${targetLane?.id.name} with ${diffProps.length} components (memo hits: ${memoHits}/${diffProps.length})`);
1143
1150
 
@@ -1180,7 +1187,7 @@ please create a new lane instead, which will include all components of this lane
1180
1187
  const baseSource = targetIsMain && targetHead ? baseWasLocalByComp.get(componentId.toString()) ? 'workspace' : 'scope' : undefined;
1181
1188
  return this.componentDiffStatus(componentId, sourceHead, targetHead, snapDistancesByComponentId.get(componentId.toString())?.snapsDistance, options, baseSource);
1182
1189
  }, {
1183
- concurrency: (0, _harmonyModules().concurrentComponentsLimit)()
1190
+ concurrency: (0, _harmonyModules2().concurrentComponentsLimit)()
1184
1191
  });
1185
1192
  this.logger.profile(`componentDiffStatus pMap (${visibleDiffProps.length} components)`);
1186
1193
 
@@ -1614,7 +1621,7 @@ please create a new lane instead, which will include all components of this lane
1614
1621
  exports.LanesMain = LanesMain;
1615
1622
  _defineProperty(LanesMain, "slots", []);
1616
1623
  _defineProperty(LanesMain, "dependencies", [_cli().CLIAspect, _scope().ScopeAspect, _workspace().WorkspaceAspect, _graphql().GraphqlAspect, _merging().MergingAspect, _component().ComponentAspect, _logger().LoggerAspect, _importer().ImporterAspect, _export().ExportAspect, _express().ExpressAspect, _componentCompare().ComponentCompareAspect, _componentWriter().ComponentWriterAspect, _remove().RemoveAspect, _checkout().CheckoutAspect, _install().InstallAspect]);
1617
- _defineProperty(LanesMain, "runtime", _cli().MainRuntime);
1624
+ _defineProperty(LanesMain, "runtime", _harmonyModules().MainRuntime);
1618
1625
  _lanes().LanesAspect.addRuntime(LanesMain);
1619
1626
  var _default = exports.default = LanesMain;
1620
1627