@vue-skuilder/db 0.1.8-3 → 0.1.8-5

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.
@@ -205,7 +205,11 @@ var init_tuiLogger = __esm({
205
205
 
206
206
  // src/util/dataDirectory.ts
207
207
  function getAppDataDirectory() {
208
- return path.join(os.homedir(), ".tuilder");
208
+ if (ENV.LOCAL_STORAGE_PREFIX) {
209
+ return path.join(os.homedir(), `.tuilder`, ENV.LOCAL_STORAGE_PREFIX);
210
+ } else {
211
+ return path.join(os.homedir(), ".tuilder");
212
+ }
209
213
  }
210
214
  function getDbPath(dbName) {
211
215
  return path.join(getAppDataDirectory(), dbName);
@@ -217,6 +221,7 @@ var init_dataDirectory = __esm({
217
221
  path = __toESM(require("path"));
218
222
  os = __toESM(require("os"));
219
223
  init_tuiLogger();
224
+ init_factory();
220
225
  }
221
226
  });
222
227
 
@@ -2411,7 +2416,8 @@ var init_factory = __esm({
2411
2416
  init_logger();
2412
2417
  ENV = {
2413
2418
  COUCHDB_SERVER_PROTOCOL: "NOT_SET",
2414
- COUCHDB_SERVER_URL: "NOT_SET"
2419
+ COUCHDB_SERVER_URL: "NOT_SET",
2420
+ LOCAL_STORAGE_PREFIX: ""
2415
2421
  };
2416
2422
  dataLayerInstance = null;
2417
2423
  }