adminforth 1.3.54-next.12 → 1.3.54-next.13
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.
|
@@ -481,13 +481,14 @@ class CodeInjector {
|
|
|
481
481
|
const allPacks = [
|
|
482
482
|
...iconPackageNames,
|
|
483
483
|
...usersPackages,
|
|
484
|
-
...pluginPackages.
|
|
484
|
+
...pluginPackages.reduce((acc, { packages }) => {
|
|
485
|
+
acc.push(...packages);
|
|
486
|
+
return acc;
|
|
487
|
+
}, []),
|
|
485
488
|
];
|
|
486
489
|
const EXCLUDE_PACKS = ['@iconify-prerendered/vue-flowbite'];
|
|
487
490
|
const allPacksFiltered = allPacks.filter((pack) => {
|
|
488
|
-
|
|
489
|
-
const packName = pack.split('@').slice(0, -1).join('@');
|
|
490
|
-
return !EXCLUDE_PACKS.includes(packName);
|
|
491
|
+
return !EXCLUDE_PACKS.some((exclude) => pack.startsWith(exclude));
|
|
491
492
|
});
|
|
492
493
|
const allPacksUnique = Array.from(new Set(allPacksFiltered));
|
|
493
494
|
if (allPacks.length) {
|
package/modules/codeInjector.ts
CHANGED
|
@@ -555,14 +555,15 @@ class CodeInjector implements ICodeInjector {
|
|
|
555
555
|
const allPacks = [
|
|
556
556
|
...iconPackageNames,
|
|
557
557
|
...usersPackages,
|
|
558
|
-
...pluginPackages.
|
|
558
|
+
...pluginPackages.reduce((acc, { packages }) => {
|
|
559
|
+
acc.push(...packages);
|
|
560
|
+
return acc;
|
|
561
|
+
}, []),
|
|
559
562
|
];
|
|
560
563
|
const EXCLUDE_PACKS = ['@iconify-prerendered/vue-flowbite'];
|
|
561
564
|
|
|
562
565
|
const allPacksFiltered = allPacks.filter((pack) => {
|
|
563
|
-
|
|
564
|
-
const packName = pack.split('@').slice(0, -1).join('@');
|
|
565
|
-
return !EXCLUDE_PACKS.includes(packName);
|
|
566
|
+
return !EXCLUDE_PACKS.some((exclude) => pack.startsWith(exclude));
|
|
566
567
|
})
|
|
567
568
|
const allPacksUnique = Array.from(new Set(allPacksFiltered));
|
|
568
569
|
|