@vue-skuilder/db 0.1.8-7 → 0.1.8

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.8-7",
6
+ "version": "0.1.8",
7
7
  "description": "Database layer for vue-skuilder",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@nilock2/pouchdb-authentication": "^1.0.2",
48
- "@vue-skuilder/common": "0.1.8-7",
48
+ "@vue-skuilder/common": "0.1.8",
49
49
  "moment": "^2.29.4",
50
50
  "pouchdb": "^9.0.0",
51
51
  "pouchdb-find": "^9.0.0",
@@ -9,6 +9,7 @@ import {
9
9
  UserDBInterface,
10
10
  } from '../../core/interfaces';
11
11
  import { logger } from '../../util/logger';
12
+ import { initializeDataDirectory } from '../../util/dataDirectory';
12
13
 
13
14
  import { getLoggedInUsername } from './auth';
14
15
 
@@ -45,6 +46,7 @@ export class CouchDataLayerProvider implements DataLayerProvider {
45
46
  logger.info(
46
47
  'CouchDataLayerProvider: Running in Node.js environment, creating guest UserDB for testing.'
47
48
  );
49
+ await initializeDataDirectory();
48
50
  // In Node.js (testing) environment, create a guest user instance
49
51
  const syncStrategy = new CouchDBSyncStrategy();
50
52
  this.userDB = await BaseUser.instance(syncStrategy);