@capacitor-community/sqlite 3.3.3-5 → 3.3.3-test211

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.
@@ -2116,7 +2116,7 @@ Object.defineProperty(utilsFile, "__esModule", { value: true });
2116
2116
  utilsFile.UtilsFile = void 0;
2117
2117
  class UtilsFile {
2118
2118
  constructor() {
2119
- this.pathDB = 'Databases';
2119
+ this.pathDB = './CapacitorDatabases';
2120
2120
  this.Path = null;
2121
2121
  this.NodeFs = null;
2122
2122
  this.JSZip = null;
@@ -2194,19 +2194,26 @@ class UtilsFile {
2194
2194
  * get the database folder path
2195
2195
  */
2196
2196
  getDatabasesPath() {
2197
- let retPath = '';
2198
- const dbFolder = this.pathDB;
2199
- retPath = this.Path.join(this.HomeDir, dbFolder, this.AppName);
2200
- let retB = this._createFolderIfNotExists(this.Path.join(this.HomeDir, dbFolder));
2201
- if (retB) {
2202
- retB = this._createFolderIfNotExists(this.Path.join(this.HomeDir, dbFolder, this.AppName));
2203
- if (!retB)
2204
- retPath = '';
2205
- }
2206
- else {
2207
- retPath = '';
2208
- }
2209
- return retPath;
2197
+ /* let retPath = '';
2198
+ const dbFolder: string = this.pathDB;
2199
+ retPath = this.Path.join(this.HomeDir, dbFolder, this.AppName);
2200
+ let retB: boolean = this._createFolderIfNotExists(
2201
+ this.Path.join(this.HomeDir, dbFolder),
2202
+ );
2203
+ if (retB) {
2204
+ retB = this._createFolderIfNotExists(
2205
+ this.Path.join(this.HomeDir, dbFolder, this.AppName),
2206
+ );
2207
+ if (!retB) retPath = '';
2208
+ } else {
2209
+ retPath = '';
2210
+ }
2211
+ */
2212
+ let dbFolder = this.pathDB;
2213
+ const retB = this._createFolderIfNotExists(dbFolder);
2214
+ if (!retB)
2215
+ dbFolder = '';
2216
+ return dbFolder;
2210
2217
  }
2211
2218
  /**
2212
2219
  * GetAssetsDatabasesPath