fleetbo-cockpit-cli 1.0.160 → 1.0.161
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/cli.js +8 -7
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -1080,19 +1080,20 @@ else {
|
|
|
1080
1080
|
'Starting the development server',
|
|
1081
1081
|
'You can now view',
|
|
1082
1082
|
'vite v',
|
|
1083
|
-
'VITE v',
|
|
1084
|
-
'ready in',
|
|
1085
|
-
'
|
|
1086
|
-
'
|
|
1083
|
+
'VITE v',
|
|
1084
|
+
'ready in',
|
|
1085
|
+
'Local:', // 👈 Plus simple et infaillible
|
|
1086
|
+
'Network:', // 👈 Plus simple et infaillible
|
|
1087
1087
|
'press h + enter',
|
|
1088
|
-
'> vite',
|
|
1088
|
+
'> vite',
|
|
1089
1089
|
'> fleetbo',
|
|
1090
1090
|
'> npx fleetbo-cockpit-cli@latest'
|
|
1091
1091
|
];
|
|
1092
1092
|
|
|
1093
|
-
// On filtre les lignes pour ne garder que le vrai code/debug
|
|
1094
1093
|
const filteredOutput = lines.filter(line => {
|
|
1095
|
-
|
|
1094
|
+
// On nettoie les codes couleurs invisibles avant de lire
|
|
1095
|
+
const cleanLine = line.replace(/\x1b\[[0-9;]*[a-zA-Z]/g, '');
|
|
1096
|
+
return !forbiddenTerms.some(term => cleanLine.includes(term));
|
|
1096
1097
|
}).join('\n');
|
|
1097
1098
|
|
|
1098
1099
|
// S'il reste quelque chose d'utile (un console.log du dev, un warning, une vraie erreur), on l'affiche
|