@capacitor-community/sqlite 4.6.0 → 4.6.1-2

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.
@@ -1244,6 +1244,7 @@ enum CapacitorSQLiteError: Error {
1244
1244
  throws -> [Int: [String: Any]] {
1245
1245
  if isInit {
1246
1246
  var upgDict: [String: Any] = [:]
1247
+ var upgVersionDict: [Int: [String: Any]] = [:]
1247
1248
  for dict in upgrade {
1248
1249
  let keys = dict.keys
1249
1250
  if !(keys.contains("toVersion")) || !(keys.contains("statements")) {
@@ -1254,13 +1255,12 @@ enum CapacitorSQLiteError: Error {
1254
1255
  for (key, value) in dict {
1255
1256
  upgDict[key] = value
1256
1257
  }
1258
+ guard let toVersion = upgDict["toVersion"] as? Int else {
1259
+ let msg: String = "toVersion key must be an Int"
1260
+ throw CapacitorSQLiteError.failed(message: msg)
1261
+ }
1262
+ upgVersionDict[toVersion] = upgDict
1257
1263
  }
1258
- guard let toVersion = upgDict["toVersion"] as? Int else {
1259
- let msg: String = "toVersion key must be an Int"
1260
- throw CapacitorSQLiteError.failed(message: msg)
1261
- }
1262
- let upgVersionDict: [Int: [String: Any]] =
1263
- [toVersion: upgDict]
1264
1264
  return upgVersionDict
1265
1265
  } else {
1266
1266
  throw CapacitorSQLiteError.failed(message: initMessage)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-community/sqlite",
3
- "version": "4.6.0",
3
+ "version": "4.6.1-2",
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": "^4.6.0",
59
- "@capacitor/core": "^4.6.0",
58
+ "@capacitor/android": "^4.6.1",
59
+ "@capacitor/core": "^4.6.1",
60
60
  "@capacitor/docgen": "^0.0.17",
61
- "@capacitor/ios": "^4.6.0",
61
+ "@capacitor/ios": "^4.6.1",
62
62
  "@ionic/eslint-config": "^0.3.0",
63
63
  "@ionic/prettier-config": "^1.0.1",
64
64
  "@ionic/swiftlint-config": "^1.1.2",
@@ -93,6 +93,6 @@
93
93
  }
94
94
  },
95
95
  "dependencies": {
96
- "jeep-sqlite": "^1.6.9"
96
+ "jeep-sqlite": "^1.7.0"
97
97
  }
98
98
  }