@capgo/capacitor-fast-sql 8.0.13 → 8.0.15

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.
@@ -19,7 +19,7 @@ import java.util.Map;
19
19
  @CapacitorPlugin(name = "CapgoCapacitorFastSql")
20
20
  public class CapgoCapacitorFastSqlPlugin extends Plugin {
21
21
 
22
- private final String pluginVersion = "8.0.13";
22
+ private final String pluginVersion = "8.0.15";
23
23
 
24
24
  private Map<String, DatabaseConnection> databases = new HashMap<>();
25
25
  private SQLHTTPServer server;
@@ -10,7 +10,7 @@ import SQLite3
10
10
  */
11
11
  @objc(CapgoCapacitorFastSqlPlugin)
12
12
  public class CapgoCapacitorFastSqlPlugin: CAPPlugin, CAPBridgedPlugin {
13
- private let pluginVersion: String = "8.0.13"
13
+ private let pluginVersion: String = "8.0.15"
14
14
  public let identifier = "CapgoCapacitorFastSqlPlugin"
15
15
  public let jsName = "CapgoCapacitorFastSql"
16
16
  public let pluginMethods: [CAPPluginMethod] = [
@@ -44,7 +44,7 @@ class SQLDatabase {
44
44
  guard let key = encryptionKey, !key.isEmpty else {
45
45
  throw SQLError.encryptionKeyMissing
46
46
  }
47
- #if canImport(SQLCipher)
47
+ #if canImport(SQLCipher)
48
48
  guard let keyData = key.data(using: .utf8) else {
49
49
  throw SQLError.encryptionFailed(message: "Invalid encryption key encoding")
50
50
  }
@@ -55,9 +55,9 @@ class SQLDatabase {
55
55
  let error = String(cString: sqlite3_errmsg(db))
56
56
  throw SQLError.encryptionFailed(message: error)
57
57
  }
58
- #else
58
+ #else
59
59
  throw SQLError.encryptionUnavailable
60
- #endif
60
+ #endif
61
61
  }
62
62
 
63
63
  // Enable foreign keys
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-fast-sql",
3
- "version": "8.0.13",
3
+ "version": "8.0.15",
4
4
  "description": "High-performance native SQLite plugin with custom protocol for efficient sync operations and IndexedDB replacement",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -50,7 +50,8 @@
50
50
  "build": "npm run clean && tsc && rollup -c rollup.config.mjs",
51
51
  "clean": "rimraf ./dist",
52
52
  "watch": "tsc --watch",
53
- "prepublishOnly": "npm run build"
53
+ "prepublishOnly": "npm run build",
54
+ "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs"
54
55
  },
55
56
  "devDependencies": {
56
57
  "@capacitor/android": "^8.0.0",