@lace-cloud/proto 0.15.1 → 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.cjs CHANGED
@@ -3851,7 +3851,7 @@ function resolveScopePositions(ids, arrangementNodes) {
3851
3851
  }
3852
3852
 
3853
3853
  // src/projection/derive-edges.ts
3854
- var moduleRefPattern = /\bmodule\.([A-Za-z_][A-Za-z0-9_-]*)\.([A-Za-z_][A-Za-z0-9_-]*)/g;
3854
+ var moduleDepPattern = /\bmodule\.([A-Za-z_][A-Za-z0-9_-]*)(?:\[\s*(?:\*|[0-9]+|"[^"]*")\s*\])?\.([A-Za-z_][A-Za-z0-9_-]*)/g;
3855
3855
  function emitEdgesFromBinding(binding, targetId, toInput, useIds, seen, edges) {
3856
3856
  if (binding.out?.module && binding.out.name) {
3857
3857
  edges.push({
@@ -3863,7 +3863,7 @@ function emitEdgesFromBinding(binding, targetId, toInput, useIds, seen, edges) {
3863
3863
  return;
3864
3864
  }
3865
3865
  if (binding.expr?.value) {
3866
- for (const match of binding.expr.value.matchAll(moduleRefPattern)) {
3866
+ for (const match of binding.expr.value.matchAll(moduleDepPattern)) {
3867
3867
  const srcInstance = match[1];
3868
3868
  const srcOutput = match[2];
3869
3869
  if (!useIds.has(srcInstance)) continue;