mnfst 0.5.26 → 0.5.27
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/manifest.data.js +5 -6
- package/package.json +1 -1
package/dist/manifest.data.js
CHANGED
|
@@ -2338,9 +2338,8 @@ function getLoadingBranch() {
|
|
|
2338
2338
|
}
|
|
2339
2339
|
|
|
2340
2340
|
// Create a simple fallback object that returns empty strings for all properties.
|
|
2341
|
-
//
|
|
2342
|
-
//
|
|
2343
|
-
// For other props (json, yaml, etc.) use getLoadingBranch() (chainable) so $route and deep paths work.
|
|
2341
|
+
// Nested data keys use getLoadingBranch() (chainable) so $route, $search, $query and deep paths
|
|
2342
|
+
// don't throw while loading (e.g. $x.content.legal.$route('path')).
|
|
2344
2343
|
function createSimpleFallback(propForPlaceholder) {
|
|
2345
2344
|
const fallback = Object.create(null);
|
|
2346
2345
|
|
|
@@ -2496,11 +2495,11 @@ function createSimpleFallback(propForPlaceholder) {
|
|
|
2496
2495
|
}
|
|
2497
2496
|
}
|
|
2498
2497
|
|
|
2499
|
-
// For string keys that look like data: use
|
|
2500
|
-
//
|
|
2498
|
+
// For string keys that look like data: use chainable placeholder so nested arrays (e.g. content.legal)
|
|
2499
|
+
// have $route/$search/$query and expressions like $x.content.legal.$route('path') don't throw while loading.
|
|
2501
2500
|
if (typeof key === 'string' && key.length > 0 && key.length < 64 &&
|
|
2502
2501
|
!key.startsWith('$') && key !== 'length') {
|
|
2503
|
-
return
|
|
2502
|
+
return getLoadingBranch();
|
|
2504
2503
|
}
|
|
2505
2504
|
|
|
2506
2505
|
// For any other key, return chaining fallback — never return the loading proxy itself.
|