@starklabs/backend-core 1.2.5 → 1.2.6

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/js/lib/db.js CHANGED
@@ -29,6 +29,10 @@ const connectDB = async (isOffline, mongoDBURI, databaseName) => {
29
29
 
30
30
  if (isOffline) return connectLocally(databaseName);
31
31
 
32
+ setTimeout(() => {
33
+ AppLog("loading", "db", "Connecting to mongodb...");
34
+ }, 10);
35
+
32
36
  await mongoose.connect(`${mongoDBURI}/${databaseName}`);
33
37
  AppLog("check", "db", "Connected successfully!");
34
38
  } catch (error) {
@@ -2,7 +2,8 @@
2
2
  const emojis = {
3
3
  check: "✅",
4
4
  X: "❌",
5
- db: "📚"
5
+ db: "📚",
6
+ loading: "⏳"
6
7
  };
7
8
 
8
9
  // console logs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starklabs/backend-core",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "A comprehensive backend authentication library featuring MongoDB integration, JWT-based authentication, encryption/decryption using libsodium, and utilities for error handling and logging. Supports both ES modules and CommonJS. Requires MONGODB_URI, DB_NAME, MASTER_KEY, and JWT_SECRET environment variables.",
5
5
  "keywords": [
6
6
  "auth-mongo",