@capacitor-community/sqlite 3.3.3-test211 → 3.3.3

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/README.md CHANGED
@@ -16,7 +16,7 @@
16
16
  <a href="https://www.npmjs.com/package/@capacitor-community/sqlite"><img src="https://img.shields.io/npm/dw/@capacitor-community/sqlite?style=flat-square" /></a>
17
17
  <a href="https://www.npmjs.com/package/@capacitor-community/sqlite"><img src="https://img.shields.io/npm/v/@capacitor-community/sqlite?style=flat-square" /></a>
18
18
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
19
- <a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-11-orange?style=flat-square" /></a>
19
+ <a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-12-orange?style=flat-square" /></a>
20
20
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
21
21
  </p>
22
22
 
@@ -80,6 +80,12 @@ The test has been achieved on:
80
80
 
81
81
  - a [Ionic/Vue app](https://github.com/jepiqueau/vue-sqlite-app-starter)
82
82
 
83
+ - a [React Vite app](https://github.com/jepiqueau/react-vite-sqlite-app)
84
+
85
+ - a [Vue Vite app](https://github.com/jepiqueau/vuevite-app)
86
+
87
+ - a [Vue TypeORM app](https://github.com/jepiqueau/vue-typeorm-app)
88
+
83
89
 
84
90
  ## Browser Support
85
91
 
@@ -329,7 +335,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
329
335
  <td align="center"><a href="https://github.com/gion-andri"><img src="https://avatars.githubusercontent.com/u/540998?v=4" width="100px;" alt=""/><br /><sub><b>Gion-Andri Cantieni</b></sub></a><br /><a href="https://github.com/capacitor-community/sqlite/commits?author=jepiqueau" title="Documentation">📖</a></td>
330
336
  <td align="center"><a href="https://github.com/robingenz"><img src="https://avatars.githubusercontent.com/u/13857929?v=4" width="100px;" alt=""/><br /><sub><b>Robin Genz</b></sub></a><br /><a href="https://github.com/capacitor-community/sqlite/commits?author=jepiqueau" title="Documentation">📖</a></td>
331
337
  <td align="center"><a href="https://github.com/dewald-els"><img src="https://avatars.githubusercontent.com/u/10051247?v=4" width="100px;" alt=""/><br /><sub><b>Dewald Els</b></sub></a><br /><a href="https://github.com/capacitor-community/sqlite/commits?author=jepiqueau" title="Code">💻</a></td>
332
- </tr>
338
+ <td align="center"><a href="https://github.com/joewoodhouse"><img src="https://avatars.githubusercontent.com/u/3168135?v=4" width="100px;" alt=""/><br /><sub><b>Joe Woodhouse</b></sub></a><br /><a href="https://github.com/capacitor-community/sqlite/commits?author=jepiqueau" title="Documentation">📖</a></td> </tr>
333
339
  </table>
334
340
 
335
341
  <!-- markdownlint-enable -->
@@ -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 = './CapacitorDatabases';
2119
+ this.pathDB = 'Databases';
2120
2120
  this.Path = null;
2121
2121
  this.NodeFs = null;
2122
2122
  this.JSZip = null;
@@ -2194,26 +2194,19 @@ class UtilsFile {
2194
2194
  * get the database folder path
2195
2195
  */
2196
2196
  getDatabasesPath() {
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;
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;
2217
2210
  }
2218
2211
  /**
2219
2212
  * GetAssetsDatabasesPath