create-fleetbo-project 1.2.22 → 1.2.23

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.
@@ -103,16 +103,16 @@ async function runGuardian() {
103
103
  tunnelStarted = true;
104
104
  console.log(\`\\n[Fleetbo] 🔗 React is ready. Establishing secure tunnel...\`);
105
105
 
106
- // 3. DÉMARRAGE TUNNEL CLOUDFLARE (via npm exec)
106
+ // 3. DÉMARRAGE TUNNEL CLOUDFLARE
107
107
  const npxCmd = process.platform === 'win32' ? 'npx.cmd' : 'npx';
108
108
  const tunnel = spawn(npxCmd, ['cloudflared', 'tunnel', '--url', \`http://localhost:\${PORT}\`]);
109
109
 
110
- // Capture de l'URL dans les logs stderr
111
110
  tunnel.stderr.on('data', (chunk) => {
112
111
  const log = chunk.toString();
113
112
 
114
- // --- REGEX VALIDÉE ---
115
- const match = log.match(/https:\/\/[a-zA-Z0-9-]+\.trycloudflare\.com/);
113
+ // --- REGEX CORRIGÉE AVEC DOUBLE ÉCHAPPEMENT ---
114
+ // Dans ce fichier générateur, on doit écrire \\ pour obtenir \ dans le fichier final
115
+ const match = log.match(/https:\\/\\/[a-zA-Z0-9-]+\\.trycloudflare\\.com/);
116
116
 
117
117
  if (match) {
118
118
  const url = match[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fleetbo-project",
3
- "version": "1.2.22",
3
+ "version": "1.2.23",
4
4
  "description": "Creates a new Fleetbo project.",
5
5
  "main": "install-react-template.js",
6
6
  "bin": {