universe-code 0.0.41 → 0.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.
|
@@ -15,15 +15,15 @@ export const setDBConfig = ({
|
|
|
15
15
|
version,
|
|
16
16
|
}) => {
|
|
17
17
|
|
|
18
|
-
if (!
|
|
18
|
+
if (!dbName) {
|
|
19
19
|
throw new Error("index db name is missing");
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
if (!
|
|
22
|
+
if (!storeName) {
|
|
23
23
|
throw new Error("index db store name is missing");
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
if (!
|
|
26
|
+
if (!version) {
|
|
27
27
|
throw new Error("index db version is missing");
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -34,6 +34,8 @@ export const setDBConfig = ({
|
|
|
34
34
|
if (dbName) DB_NAME = dbName;
|
|
35
35
|
if (storeName) STORE_NAME = storeName;
|
|
36
36
|
if (version) DB_VERSION = version;
|
|
37
|
+
|
|
38
|
+
connectDB();
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
// ✅ index db connection
|