flowrix 1.0.1-beta.24 → 1.0.1-beta.26
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
|
@@ -10,12 +10,12 @@ function getEnv(key) {
|
|
|
10
10
|
}
|
|
11
11
|
async function request(method, endpoint, options = {}, apiversion) {
|
|
12
12
|
console.log("checkt useRuntimeConfig", typeof useRuntimeConfig === "function");
|
|
13
|
-
const FLOWRIX_API_KEY = getEnv("FLOWRIX_API_KEY");
|
|
14
|
-
const FLOWRIX_API_SECRET = getEnv("FLOWRIX_API_SECRET");
|
|
15
|
-
const FLOWRIX_API_ORIGIN = getEnv("FLOWRIX_API_ORIGIN");
|
|
16
|
-
let FLOWRIX_API_BASE = getEnv("FLOWRIX_API_BASE");
|
|
13
|
+
const FLOWRIX_API_KEY = getEnv("FLOWRIX_API_KEY") || "b91abf43-8a9c-47fa-a308-9bbea9e18d0e";
|
|
14
|
+
const FLOWRIX_API_SECRET = getEnv("FLOWRIX_API_SECRET") || "XNkYmluMvvfIIh17pfntNLVBW65ez7q2f82WLeadB0iOFwX4D3BZrbWfuTDboFM4G4R0a5u7EH2eTXpeVPXADTSpSr0qgucIFFnKaiFBDcuSDWiusdf6SB3vAn8J6DX3RdMzhiMjC5TxK0HNXgPPTkMyMs76dLjfflHs8KjYwz2YfPmRsppvhywcaMn7RYHfKKkyJDxqLtP0wQxEtTT0Er1qkzUZwZKouqYayPXZxa0r3U0X7dj8IU3iqedTox8z";
|
|
15
|
+
const FLOWRIX_API_ORIGIN = getEnv("FLOWRIX_API_ORIGIN") || "https://pvwgp6m2mg.ap-southeast-2.awsapprunner.com";
|
|
16
|
+
let FLOWRIX_API_BASE = getEnv("FLOWRIX_API_BASE") || "https://crosbyblinds.dev.flowrix.app/api/v1/";
|
|
17
17
|
if (apiversion == "v2") {
|
|
18
|
-
FLOWRIX_API_BASE = getEnv("FLOWRIX_API_BASE_V2");
|
|
18
|
+
FLOWRIX_API_BASE = getEnv("FLOWRIX_API_BASE_V2") || "https://crosbyblinds.dev.flowrix.app/api/v2/";
|
|
19
19
|
}
|
|
20
20
|
const headers = {
|
|
21
21
|
"x-api-key": FLOWRIX_API_KEY,
|