@famgia/omnify-laravel 0.0.83 → 0.0.84
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/{chunk-TBXCIKK7.js → chunk-KKNVSIBX.js} +11 -3
- package/dist/chunk-KKNVSIBX.js.map +1 -0
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +10 -2
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-TBXCIKK7.js.map +0 -1
|
@@ -3842,14 +3842,22 @@ function laravelPlugin(options) {
|
|
|
3842
3842
|
existingContent = null;
|
|
3843
3843
|
}
|
|
3844
3844
|
} else if (existsSync(configAppPath)) {
|
|
3845
|
-
laravelVersion = "laravel10-";
|
|
3846
3845
|
try {
|
|
3847
|
-
|
|
3846
|
+
const configContent = readFileSync(configAppPath, "utf-8");
|
|
3847
|
+
if (/'providers'\s*=>\s*\[/.test(configContent)) {
|
|
3848
|
+
laravelVersion = "laravel10-";
|
|
3849
|
+
existingContent = configContent;
|
|
3850
|
+
} else {
|
|
3851
|
+
laravelVersion = "laravel11+";
|
|
3852
|
+
existingContent = null;
|
|
3853
|
+
}
|
|
3848
3854
|
} catch {
|
|
3855
|
+
laravelVersion = "laravel11+";
|
|
3849
3856
|
existingContent = null;
|
|
3850
3857
|
}
|
|
3851
3858
|
} else {
|
|
3852
3859
|
laravelVersion = "laravel11+";
|
|
3860
|
+
existingContent = null;
|
|
3853
3861
|
}
|
|
3854
3862
|
const registration = generateProviderRegistration(existingContent, laravelVersion, laravelRoot);
|
|
3855
3863
|
if (registration && !registration.alreadyRegistered) {
|
|
@@ -3996,4 +4004,4 @@ export {
|
|
|
3996
4004
|
getFactoryPath,
|
|
3997
4005
|
laravelPlugin
|
|
3998
4006
|
};
|
|
3999
|
-
//# sourceMappingURL=chunk-
|
|
4007
|
+
//# sourceMappingURL=chunk-KKNVSIBX.js.map
|