@lace-cloud/proto 0.16.0 → 0.16.1

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.
package/dist/index.mjs CHANGED
@@ -3805,7 +3805,7 @@ function resolveScopePositions(ids, arrangementNodes) {
3805
3805
  }
3806
3806
 
3807
3807
  // src/projection/derive-edges.ts
3808
- var moduleRefPattern = /\bmodule\.([A-Za-z_][A-Za-z0-9_-]*)\.([A-Za-z_][A-Za-z0-9_-]*)/g;
3808
+ var moduleDepPattern = /\bmodule\.([A-Za-z_][A-Za-z0-9_-]*)(?:\[\s*(?:\*|[0-9]+|"[^"]*")\s*\])?\.([A-Za-z_][A-Za-z0-9_-]*)/g;
3809
3809
  function emitEdgesFromBinding(binding, targetId, toInput, useIds, seen, edges) {
3810
3810
  if (binding.out?.module && binding.out.name) {
3811
3811
  edges.push({
@@ -3817,7 +3817,7 @@ function emitEdgesFromBinding(binding, targetId, toInput, useIds, seen, edges) {
3817
3817
  return;
3818
3818
  }
3819
3819
  if (binding.expr?.value) {
3820
- for (const match of binding.expr.value.matchAll(moduleRefPattern)) {
3820
+ for (const match of binding.expr.value.matchAll(moduleDepPattern)) {
3821
3821
  const srcInstance = match[1];
3822
3822
  const srcOutput = match[2];
3823
3823
  if (!useIds.has(srcInstance)) continue;