marko 6.3.38 → 6.3.39

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.
@@ -7619,13 +7619,20 @@ function finalizeReferences() {
7619
7619
  intersections.sort((a, b) => {
7620
7620
  const aAnchor = sectionAnchors.get(a);
7621
7621
  const bAnchor = sectionAnchors.get(b);
7622
- return aAnchor ? bAnchor ? bindingUtil.compare(aAnchor, bAnchor) : -1 : bAnchor ? 1 : 0;
7622
+ return aAnchor ? bAnchor ? bindingUtil.compare(aAnchor, bAnchor) : 1 : bAnchor ? -1 : 0;
7623
7623
  });
7624
7624
  }
7625
7625
  let intersectionIndex = 0;
7626
7626
  let nextId = 0;
7627
7627
  let intersection;
7628
7628
  forEach(ownedBindings, (binding) => {
7629
+ if (binding.type !== 0) while (intersectionIndex < intersections.length && !anchors.get(intersection = intersections[intersectionIndex])) {
7630
+ intersectionIndex++;
7631
+ intersectionMeta.set(intersection, {
7632
+ id: nextId++,
7633
+ scopeOffset: getMaxOwnSourceOffset(intersection, section)
7634
+ });
7635
+ }
7629
7636
  binding.id = nextId++;
7630
7637
  nextId += binding.reserveSize;
7631
7638
  while (intersectionIndex < intersections.length && anchors.get(intersection = intersections[intersectionIndex]) === binding) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.3.38",
3
+ "version": "6.3.39",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",
@@ -54,8 +54,8 @@
54
54
  "magic-string": "^0.30.21"
55
55
  },
56
56
  "devDependencies": {
57
- "@marko/runtime-tags": "npm:marko@6.3.38",
58
- "marko": "5.39.34"
57
+ "marko": "5.39.34",
58
+ "@marko/runtime-tags": "npm:marko@6.3.39"
59
59
  },
60
60
  "engines": {
61
61
  "node": ">=22"