stx-router 0.2.408 → 0.2.410
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/client.js +6 -3
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -866,6 +866,9 @@ function routerSource() {
|
|
|
866
866
|
// twice \u2014 leave the document without it. These are loaded once and stay,
|
|
867
867
|
// the same as the external head scripts beside them.
|
|
868
868
|
el.setAttribute('data-stx-external','');
|
|
869
|
+
// In document order: a fragment's composables bundle reads the module
|
|
870
|
+
// registry loaded beside it, and an inserted script is async by default.
|
|
871
|
+
el.async=false;
|
|
869
872
|
el.onload=function(){resolve()};
|
|
870
873
|
el.onerror=function(){log('[router] container script failed:',key);resolve()};
|
|
871
874
|
dhead().appendChild(el);
|
|
@@ -1545,10 +1548,10 @@ else {
|
|
|
1545
1548
|
});
|
|
1546
1549
|
var loopRoot=placeholder.previousSibling;
|
|
1547
1550
|
while(loopRoot&&(
|
|
1548
|
-
(loopRoot.nodeType===
|
|
1549
|
-
||loopRoot.nodeType===
|
|
1551
|
+
(loopRoot.nodeType===3&&!(loopRoot.textContent||'').trim())
|
|
1552
|
+
||loopRoot.nodeType===8
|
|
1550
1553
|
))loopRoot=loopRoot.previousSibling;
|
|
1551
|
-
if(loopRoot&&loopRoot.nodeType===
|
|
1554
|
+
if(loopRoot&&loopRoot.nodeType===1&&loopRoot.hasAttribute('data-stx-scope')
|
|
1552
1555
|
&&(loopRoot.hasAttribute(':for')||loopRoot.hasAttribute('@for')||loopRoot.hasAttribute('x-for'))){
|
|
1553
1556
|
var loopScopeId=loopRoot.getAttribute('data-stx-scope');
|
|
1554
1557
|
scopedLoopSetup=!!loopScopeId&&code.indexOf(loopScopeId)!==-1;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stx-router",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.410",
|
|
5
5
|
"description": "File-based router for STX — .stx template discovery, nested layouts, typed route params, middleware, and client-side SPA navigation.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|