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