flowrix 1.0.1-beta.23 → 1.0.1-beta.25
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/module.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
const isServer = typeof process !== "undefined" && process.server;
|
|
2
2
|
function getEnv(key) {
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
try {
|
|
4
|
+
const nuxtConfig = globalThis?.useRuntimeConfig && globalThis.useRuntimeConfig() || typeof useRuntimeConfig === "function" && useRuntimeConfig();
|
|
5
|
+
if (nuxtConfig)
|
|
6
|
+
return nuxtConfig.public?.[key] || nuxtConfig[key];
|
|
7
|
+
} catch {
|
|
7
8
|
}
|
|
8
|
-
return process
|
|
9
|
+
return process?.env?.[key];
|
|
9
10
|
}
|
|
10
11
|
async function request(method, endpoint, options = {}, apiversion) {
|
|
11
12
|
console.log("checkt useRuntimeConfig", typeof useRuntimeConfig === "function");
|
package/package.json
CHANGED