mnfst 0.5.37 → 0.5.38
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 +9 -0
- package/package.json +1 -1
package/dist/manifest.data.js
CHANGED
|
@@ -2369,6 +2369,9 @@ function getLoadingBranch(depth) {
|
|
|
2369
2369
|
const d = depth == null ? 0 : Math.min(Math.max(0, depth), MAX_LOADING_BRANCH_DEPTH);
|
|
2370
2370
|
if (loadingBranchByDepth[d]) return loadingBranchByDepth[d];
|
|
2371
2371
|
const emptyStr = function () { return ''; };
|
|
2372
|
+
const emptyArray = [];
|
|
2373
|
+
const attachArrayMethods = window.ManifestDataProxies?.attachArrayMethods;
|
|
2374
|
+
const arrayWithMethods = attachArrayMethods ? attachArrayMethods(emptyArray, '', null) : emptyArray;
|
|
2372
2375
|
const nextDepth = d + 1;
|
|
2373
2376
|
const getReturnForStringKey = () =>
|
|
2374
2377
|
nextDepth <= MAX_LOADING_BRANCH_DEPTH ? getLoadingBranch(nextDepth) : '';
|
|
@@ -2380,6 +2383,12 @@ function getLoadingBranch(depth) {
|
|
|
2380
2383
|
if (key === '$route' || key === '$search' || key === '$query') {
|
|
2381
2384
|
return function () { return getLoadingBranch(nextDepth <= MAX_LOADING_BRANCH_DEPTH ? nextDepth : MAX_LOADING_BRANCH_DEPTH); };
|
|
2382
2385
|
}
|
|
2386
|
+
if (typeof key === 'string' && typeof Array.prototype[key] === 'function') {
|
|
2387
|
+
if (key in arrayWithMethods && typeof arrayWithMethods[key] === 'function') {
|
|
2388
|
+
return arrayWithMethods[key].bind(arrayWithMethods);
|
|
2389
|
+
}
|
|
2390
|
+
return Array.prototype[key].bind(arrayWithMethods);
|
|
2391
|
+
}
|
|
2383
2392
|
if (key === 'length') return 0;
|
|
2384
2393
|
if (typeof key === 'string') return getReturnForStringKey();
|
|
2385
2394
|
if (typeof key === 'symbol') return undefined;
|