@hivedev/hivesdk 1.0.42 → 1.0.43
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/hive-client.js +1 -1
- package/hive-server.cjs +5 -2
- package/hive-server.js +2 -0
- package/package.json +1 -1
package/hive-client.js
CHANGED
package/hive-server.cjs
CHANGED
|
@@ -191,6 +191,7 @@ var require_dist = __commonJS({
|
|
|
191
191
|
// Server/server.js
|
|
192
192
|
var server_exports = {};
|
|
193
193
|
__export(server_exports, {
|
|
194
|
+
DatabaseConnector: () => DatabaseConnector_default,
|
|
194
195
|
decryptFileWithPassword: () => decryptFileWithPassword,
|
|
195
196
|
encryptAndStoreFile: () => encryptAndStoreFile,
|
|
196
197
|
extractConfigurationForService: () => extractConfigurationForService,
|
|
@@ -530,14 +531,14 @@ async function saveConfiguration(configurationObject) {
|
|
|
530
531
|
await encryptAndStoreFile(
|
|
531
532
|
JSON.stringify(configurationObject.firebaseAdminCredentials),
|
|
532
533
|
import_path4.default.join(getAppDataDirectory(), "firebase_admin_credentials.dat"),
|
|
533
|
-
process.env.
|
|
534
|
+
process.env.SERVER_PASSWORD
|
|
534
535
|
);
|
|
535
536
|
}
|
|
536
537
|
if (configurationObject.databaseCredentials) {
|
|
537
538
|
await encryptAndStoreFile(
|
|
538
539
|
JSON.stringify(configurationObject.databaseCredentials),
|
|
539
540
|
import_path4.default.join(getAppDataDirectory(), "database_credentials.dat"),
|
|
540
|
-
process.env.
|
|
541
|
+
process.env.SERVER_PASSWORD
|
|
541
542
|
);
|
|
542
543
|
}
|
|
543
544
|
if (configurationObject.permissions) {
|
|
@@ -657,6 +658,7 @@ async function initServer({ serviceName, servicePort, remoteUrl, serverPassword
|
|
|
657
658
|
throw new Error("Server password is not provided. Please set the SERVER_PASSWORD environment variable.");
|
|
658
659
|
}
|
|
659
660
|
}
|
|
661
|
+
process.env.SERVER_PASSWORD = serverPassword;
|
|
660
662
|
HiveServerGlobals_default.initialize({ serviceName, servicePort, remoteUrl });
|
|
661
663
|
bInitialized = true;
|
|
662
664
|
}
|
|
@@ -1225,6 +1227,7 @@ async function registerService() {
|
|
|
1225
1227
|
}
|
|
1226
1228
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1227
1229
|
0 && (module.exports = {
|
|
1230
|
+
DatabaseConnector,
|
|
1228
1231
|
decryptFileWithPassword,
|
|
1229
1232
|
encryptAndStoreFile,
|
|
1230
1233
|
extractConfigurationForService,
|
package/hive-server.js
CHANGED
|
@@ -630,6 +630,7 @@ async function initServer({ serviceName, servicePort, remoteUrl, serverPassword
|
|
|
630
630
|
throw new Error("Server password is not provided. Please set the SERVER_PASSWORD environment variable.");
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
+
process.env.SERVER_PASSWORD = serverPassword;
|
|
633
634
|
HiveServerGlobals_default.initialize({ serviceName, servicePort, remoteUrl });
|
|
634
635
|
bInitialized = true;
|
|
635
636
|
}
|
|
@@ -1197,6 +1198,7 @@ async function registerService() {
|
|
|
1197
1198
|
}, 2e3);
|
|
1198
1199
|
}
|
|
1199
1200
|
export {
|
|
1201
|
+
DatabaseConnector_default as DatabaseConnector,
|
|
1200
1202
|
decryptFileWithPassword,
|
|
1201
1203
|
encryptAndStoreFile,
|
|
1202
1204
|
extractConfigurationForService,
|