@capacitor-community/sqlite 3.4.0-2 → 3.4.0-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.
@@ -114,8 +114,13 @@ public class UtilsSQLCipher {
114
114
  st.bindString(1, originalFile.getAbsolutePath());
115
115
  st.execute();
116
116
 
117
- db.rawExecSQL("SELECT sqlcipher_export('main', 'plaintext')");
118
- db.rawExecSQL("DETACH DATABASE plaintext");
117
+ StringBuilder sql1 = new StringBuilder();
118
+ sql1.append("SELECT sqlcipher_export('main', 'plaintext');");
119
+ db.rawExecSQL(sql1.toString());
120
+ StringBuilder sql2 = new StringBuilder();
121
+ sql2.append("DETACH DATABASE plaintext;");
122
+ db.rawExecSQL(sql2.toString());
123
+
119
124
  db.setVersion(version);
120
125
  st.close();
121
126
  db.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-community/sqlite",
3
- "version": "3.4.0-2",
3
+ "version": "3.4.0-3",
4
4
  "description": "Community plugin for native & electron SQLite databases",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -55,10 +55,10 @@
55
55
  "prepublishOnly": "npm run build && npm run build-electron && npm run docgen"
56
56
  },
57
57
  "devDependencies": {
58
- "@capacitor/android": "^3.4.0",
59
- "@capacitor/core": "^3.4.0",
58
+ "@capacitor/android": "~3.4.0",
59
+ "@capacitor/core": "~3.4.0",
60
60
  "@capacitor/docgen": "^0.1.1",
61
- "@capacitor/ios": "^3.4.0",
61
+ "@capacitor/ios": "~3.4.0",
62
62
  "@ionic/eslint-config": "^0.3.0",
63
63
  "@ionic/prettier-config": "^1.0.1",
64
64
  "@ionic/swiftlint-config": "^1.1.2",
@@ -74,7 +74,7 @@
74
74
  "typescript": "~4.0.5"
75
75
  },
76
76
  "peerDependencies": {
77
- "@capacitor/core": "^3.4.0"
77
+ "@capacitor/core": "~3.4.0"
78
78
  },
79
79
  "prettier": "@ionic/prettier-config",
80
80
  "swiftlint": "@ionic/swiftlint-config",