@sirendesign/markup 1.0.18 → 1.0.19

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.
@@ -11569,9 +11569,13 @@ const getDefaultsFromGlobal = () => getGlobal().__FIREBASE_DEFAULTS__;
11569
11569
  * See https://github.com/firebase/firebase-js-sdk/issues/6838
11570
11570
  */
11571
11571
  const getDefaultsFromEnvVariable = () => {
11572
- {
11572
+ if (typeof process === 'undefined' || typeof process.env === 'undefined') {
11573
11573
  return;
11574
11574
  }
11575
+ const defaultsJsonString = process.env.__FIREBASE_DEFAULTS__;
11576
+ if (defaultsJsonString) {
11577
+ return JSON.parse(defaultsJsonString);
11578
+ }
11575
11579
  };
11576
11580
  const getDefaultsFromCookie = () => {
11577
11581
  if (typeof document === 'undefined') {
@@ -12020,7 +12024,7 @@ function isNode() {
12020
12024
  return false;
12021
12025
  }
12022
12026
  try {
12023
- return (Object.prototype.toString.call(global.process) === '[object process]');
12027
+ return (Object.prototype.toString.call(undefined) === '[object process]');
12024
12028
  }
12025
12029
  catch (e) {
12026
12030
  return false;
@@ -39688,6 +39692,9 @@ registerAuth("Browser" /* ClientPlatform.BROWSER */);
39688
39692
  * VITE_FIREBASE_API_KEY, VITE_FIREBASE_AUTH_DOMAIN, etc.
39689
39693
  */
39690
39694
  const getDefaultFirebaseConfig = () => {
39695
+ var _a;
39696
+ // Check if running in browser without env vars (UMD bundle)
39697
+ typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'production';
39691
39698
  // Try to get from environment variables (works in build time)
39692
39699
  const config = {
39693
39700
  apiKey: 'AIzaSyD2rQ-HOEU4VW5h5CGmKQK9FcBDp2bi98g',