@qaecy/cue-cli 0.0.34 → 0.0.35
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/main.js +18 -3
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -98,9 +98,22 @@ var import_path6 = require("path");
|
|
|
98
98
|
|
|
99
99
|
// apps/desktop/cue-cli/src/variables.ts
|
|
100
100
|
var import_path = require("path");
|
|
101
|
-
var EMULATOR_API_GATEWAY_PORT = process.env.CUE_EMULATOR_API_GATEWAY_PORT ?? "
|
|
101
|
+
var EMULATOR_API_GATEWAY_PORT = process.env.CUE_EMULATOR_API_GATEWAY_PORT ?? "18093";
|
|
102
102
|
var EMULATOR_API_GATEWAY_BASE = `http://localhost:${EMULATOR_API_GATEWAY_PORT}`;
|
|
103
103
|
var TOKEN_ENDPOINT_EMULATOR = `${EMULATOR_API_GATEWAY_BASE}/token`;
|
|
104
|
+
var EMULATOR_AUTH_PORT = process.env.CUE_EMULATOR_AUTH_PORT ?? "9099";
|
|
105
|
+
var EMULATOR_AUTH_HOST = `localhost:${EMULATOR_AUTH_PORT}`;
|
|
106
|
+
var EMULATOR_STORAGE_PORT = parseInt(process.env.CUE_EMULATOR_STORAGE_PORT ?? "9199", 10);
|
|
107
|
+
var EMULATOR_FIRESTORE_PORT = parseInt(process.env.CUE_EMULATOR_FIRESTORE_PORT ?? "8080", 10);
|
|
108
|
+
var getEmulatorEndpoints = () => ({
|
|
109
|
+
gatewayUrl: EMULATOR_API_GATEWAY_BASE,
|
|
110
|
+
tokenUrl: TOKEN_ENDPOINT_EMULATOR,
|
|
111
|
+
authEmulatorUrl: `http://${EMULATOR_AUTH_HOST}`,
|
|
112
|
+
storageEmulatorHost: "localhost",
|
|
113
|
+
storageEmulatorPort: EMULATOR_STORAGE_PORT,
|
|
114
|
+
firestoreEmulatorHost: "localhost",
|
|
115
|
+
firestoreEmulatorPort: EMULATOR_FIRESTORE_PORT
|
|
116
|
+
});
|
|
104
117
|
var EMULATOR_QLEVER_PORT = process.env.CUE_QLEVER_PORT ?? "8102";
|
|
105
118
|
var QLEVER_QUERY_ENDPOINT_EMULATOR = process.env.CUE_QLEVER_ENDPOINT ? `${process.env.CUE_QLEVER_ENDPOINT}/query` : `http://localhost:${EMULATOR_QLEVER_PORT}/query`;
|
|
106
119
|
var QLEVER_UPDATE_ENDPOINT_EMULATOR = process.env.CUE_QLEVER_ENDPOINT ? `${process.env.CUE_QLEVER_ENDPOINT}/update` : `http://localhost:${EMULATOR_QLEVER_PORT}/update`;
|
|
@@ -6423,7 +6436,8 @@ async function authenticate(emulators, space, key, verbose = false) {
|
|
|
6423
6436
|
apiKey: FIREBASE_CONFIG().apiKey,
|
|
6424
6437
|
appId: FIREBASE_CONFIG().appId,
|
|
6425
6438
|
measurementId: FIREBASE_CONFIG().measurementId,
|
|
6426
|
-
environment: emulators ? "emulator" : "production"
|
|
6439
|
+
environment: emulators ? "emulator" : "production",
|
|
6440
|
+
...emulators ? { endpoints: getEmulatorEndpoints() } : {}
|
|
6427
6441
|
});
|
|
6428
6442
|
if (verbose)
|
|
6429
6443
|
console.info("Authenticating \u23F3");
|
|
@@ -7037,7 +7051,8 @@ async function syncHandler(options) {
|
|
|
7037
7051
|
apiKey: FIREBASE_CONFIG().apiKey,
|
|
7038
7052
|
appId: FIREBASE_CONFIG().appId,
|
|
7039
7053
|
measurementId: FIREBASE_CONFIG().measurementId,
|
|
7040
|
-
environment: emulators ? "emulator" : "production"
|
|
7054
|
+
environment: emulators ? "emulator" : "production",
|
|
7055
|
+
...emulators ? { endpoints: getEmulatorEndpoints() } : {}
|
|
7041
7056
|
});
|
|
7042
7057
|
const key = options.key ?? process.env.CUE_API_KEY;
|
|
7043
7058
|
if (!key) {
|