ultimate-jekyll-manager 0.0.111 → 0.0.112

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.
@@ -412,6 +412,9 @@ async function fetchFirebaseAuth() {
412
412
  r = file.replace(r);
413
413
  }
414
414
 
415
+ // Log success for this file
416
+ logger.log(`Fetched: ${file.remote}`);
417
+
415
418
  // Write to file
416
419
  jetpack.write(finalPath,
417
420
  '---\n'
@@ -421,14 +424,43 @@ async function fetchFirebaseAuth() {
421
424
  + r
422
425
  )
423
426
  })
427
+ .catch((error) => {
428
+ // Only log the filename that failed, not the error content
429
+ logger.error(`❌ Failed to fetch: ${file.remote}`);
430
+ logger.error(` URL: ${url}`);
431
+
432
+ // Check if it's a specific type of error (not HTML response)
433
+ // Use regex to check case-insensitive for HTML content
434
+ const htmlPattern = /<!doctype|<html|<head|<body/i;
435
+ if (error.message && !htmlPattern.test(error.message)) {
436
+ logger.error(` Error: ${error.message}`);
437
+ }
438
+
439
+ // Re-throw to make Promise.all fail
440
+ throw new Error(`Failed to fetch Firebase auth file: ${file.remote}`);
441
+ })
424
442
  );
425
443
  });
426
444
 
427
- // Await all promises
428
- await Promise.all(promises);
429
-
430
445
  // Log
431
- logger.log('Fetched firebase-auth files');
446
+ logger.log('Fetching firebase-auth files...');
447
+
448
+ try {
449
+ // Await all promises
450
+ await Promise.all(promises);
451
+
452
+ // Log success
453
+ logger.log('✅ Fetched firebase-auth files');
454
+ } catch (error) {
455
+ // Check if we should skip Firebase auth errors
456
+ if (process.env.UJ_SKIP_FIREBASE_AUTH_ERRORS === 'true') {
457
+ logger.warn('⚠️ Failed to fetch some Firebase auth files, but continuing due to UJ_SKIP_FIREBASE_AUTH_ERRORS=true');
458
+ return;
459
+ }
460
+
461
+ // Error already logged above, just throw to stop execution
462
+ throw new Error('Failed to fetch one or more Firebase auth files. Please check your Firebase project configuration.');
463
+ }
432
464
  }
433
465
 
434
466
  function logVersionCheck(name, installedVersion, latestVersion, isUpToDate) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "0.0.111",
3
+ "version": "0.0.112",
4
4
  "description": "Ultimate Jekyll dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -1,7 +0,0 @@
1
- ---
2
- ### ALL PAGES ###
3
- layout: blueprint/about
4
- permalink: /about
5
-
6
- ### REGULAR PAGES ###
7
- ---
@@ -1,7 +0,0 @@
1
- ---
2
- ### ALL PAGES ###
3
- layout: blueprint/pricing
4
- permalink: /pricing
5
-
6
- ### REGULAR PAGES ###
7
- ---