@capacitor-community/sqlite 3.2.4 → 3.3.1
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/CHANGELOG.md +46 -0
- package/CapacitorCommunitySqlite.podspec +1 -0
- package/README.md +26 -117
- package/android/src/main/java/com/getcapacitor/community/database/sqlite/CapacitorSQLite.java +5 -5
- package/android/src/main/java/com/getcapacitor/community/database/sqlite/CapacitorSQLitePlugin.java +3 -2
- package/android/src/main/java/com/getcapacitor/community/database/sqlite/SQLite/Database.java +0 -7
- package/android/src/main/java/com/getcapacitor/community/database/sqlite/SQLite/UtilsFile.java +71 -11
- package/android/src/main/java/com/getcapacitor/community/database/sqlite/SQLite/UtilsUpgrade.java +0 -1
- package/dist/esm/definitions.d.ts +13 -4
- package/dist/esm/definitions.js +3 -2
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +2 -2
- package/dist/esm/web.js +2 -2
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +5 -4
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +5 -4
- package/dist/plugin.js.map +1 -1
- package/electron/dist/plugin.js +257 -219
- package/electron/dist/plugin.js.map +1 -1
- package/electron/rollup.config.js +1 -1
- package/ios/Plugin/CapacitorSQLite.swift +20 -6
- package/ios/Plugin/CapacitorSQLitePlugin.swift +3 -1
- package/ios/Plugin/ImportExportJson/ExportToJson.swift +0 -1
- package/ios/Plugin/Utils/UtilsFile.swift +87 -30
- package/ios/Plugin/Utils/UtilsMigrate.swift +3 -3
- package/ios/Plugin/Utils/UtilsSecret.swift +2 -8
- package/package.json +6 -6
|
@@ -676,7 +676,7 @@ enum CapacitorSQLiteError: Error {
|
|
|
676
676
|
|
|
677
677
|
// MARK: - copyFromAssets
|
|
678
678
|
|
|
679
|
-
@objc func copyFromAssets() throws {
|
|
679
|
+
@objc func copyFromAssets(overwrite: Bool) throws {
|
|
680
680
|
|
|
681
681
|
// check if the assets/database folder exists
|
|
682
682
|
do {
|
|
@@ -687,7 +687,7 @@ enum CapacitorSQLiteError: Error {
|
|
|
687
687
|
if bRes {
|
|
688
688
|
// get the database files
|
|
689
689
|
let dbList: [String] = try UtilsFile
|
|
690
|
-
.getFileList(path: aPath)
|
|
690
|
+
.getFileList(path: aPath, ext: ".db")
|
|
691
691
|
// loop through the database files
|
|
692
692
|
for mDb in dbList {
|
|
693
693
|
// for each check if the suffix SQLite.db is there
|
|
@@ -698,13 +698,27 @@ enum CapacitorSQLiteError: Error {
|
|
|
698
698
|
// database folder
|
|
699
699
|
_ = try UtilsFile
|
|
700
700
|
.copyFromAssetToDatabase(fromDb: mDb,
|
|
701
|
-
toDb: toDb)
|
|
701
|
+
toDb: toDb, overwrite: overwrite)
|
|
702
|
+
}
|
|
703
|
+
// get the zip files
|
|
704
|
+
let zipList: [String] = try UtilsFile
|
|
705
|
+
.getFileList(path: aPath, ext: ".zip")
|
|
706
|
+
// loop through the database files
|
|
707
|
+
for zip in zipList {
|
|
708
|
+
// for each zip uncompress the file to the Application
|
|
709
|
+
// database folder
|
|
710
|
+
_ = try UtilsFile
|
|
711
|
+
.unzipFromAssetToDatabase(zip: zip, overwrite: overwrite)
|
|
702
712
|
}
|
|
703
713
|
return
|
|
704
714
|
} else {
|
|
705
715
|
let msg: String = "assets database path does not exist"
|
|
706
716
|
throw CapacitorSQLiteError.failed(message: msg)
|
|
707
717
|
}
|
|
718
|
+
} catch UtilsFileError.copyFromAssetToDatabaseFailed(let message) {
|
|
719
|
+
throw CapacitorSQLiteError.failed(message: message)
|
|
720
|
+
} catch UtilsFileError.unzipFromAssetToDatabaseFailed(let message) {
|
|
721
|
+
throw CapacitorSQLiteError.failed(message: message)
|
|
708
722
|
} catch let error {
|
|
709
723
|
let msg: String = "\(error)"
|
|
710
724
|
throw CapacitorSQLiteError.failed(message: msg)
|
|
@@ -717,7 +731,7 @@ enum CapacitorSQLiteError: Error {
|
|
|
717
731
|
do {
|
|
718
732
|
let aPath: String = try UtilsFile.getDatabasesPath()
|
|
719
733
|
// get the database files
|
|
720
|
-
let dbList: [String] = try UtilsFile.getFileList(path: aPath)
|
|
734
|
+
let dbList: [String] = try UtilsFile.getFileList(path: aPath, ext: ".db")
|
|
721
735
|
return dbList
|
|
722
736
|
|
|
723
737
|
} catch let error {
|
|
@@ -792,7 +806,7 @@ enum CapacitorSQLiteError: Error {
|
|
|
792
806
|
}
|
|
793
807
|
|
|
794
808
|
func closeAllConnections() throws {
|
|
795
|
-
|
|
809
|
+
let keys: [String] = Array(self.dbDict.keys)
|
|
796
810
|
|
|
797
811
|
for key in keys {
|
|
798
812
|
guard let mDb: Database = dbDict[key] else {
|
|
@@ -807,8 +821,8 @@ enum CapacitorSQLiteError: Error {
|
|
|
807
821
|
}
|
|
808
822
|
}
|
|
809
823
|
dbDict.removeValue(forKey: key)
|
|
810
|
-
return
|
|
811
824
|
}
|
|
825
|
+
return
|
|
812
826
|
}
|
|
813
827
|
}
|
|
814
828
|
// swiftlint:enable type_body_length
|
|
@@ -949,8 +949,10 @@ public class CapacitorSQLitePlugin: CAPPlugin {
|
|
|
949
949
|
// MARK: copyFromAssets
|
|
950
950
|
|
|
951
951
|
@objc func copyFromAssets(_ call: CAPPluginCall) {
|
|
952
|
+
let overwrite: Bool = call.getBool("overwrite") ?? true
|
|
953
|
+
|
|
952
954
|
do {
|
|
953
|
-
try implementation.copyFromAssets()
|
|
955
|
+
try implementation.copyFromAssets(overwrite: overwrite)
|
|
954
956
|
retHandler.rResult(call: call)
|
|
955
957
|
return
|
|
956
958
|
} catch CapacitorSQLiteError.failed(let message) {
|
|
@@ -706,7 +706,6 @@ class ExportToJson {
|
|
|
706
706
|
after: oPar)..<cPar]
|
|
707
707
|
row[1] = rstr[rstr.index(
|
|
708
708
|
cPar, offsetBy: 2)..<rstr.endIndex]
|
|
709
|
-
print("row[0] \(row[0]) row[1] \(row[1]) ")
|
|
710
709
|
columns["foreignkey"] = String(row[0])
|
|
711
710
|
}
|
|
712
711
|
columns["value"] = String(row[1]).replacingOccurrences(of: "§", with: ",")
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
//
|
|
8
8
|
|
|
9
9
|
import Foundation
|
|
10
|
+
import ZIPFoundation
|
|
11
|
+
|
|
10
12
|
enum UtilsFileError: Error {
|
|
11
13
|
case getFilePathFailed
|
|
12
14
|
case copyFileFailed
|
|
@@ -20,9 +22,11 @@ enum UtilsFileError: Error {
|
|
|
20
22
|
case getLibraryPathFailed
|
|
21
23
|
case getLibraryURLFailed
|
|
22
24
|
case getFileListFailed
|
|
23
|
-
case copyFromAssetToDatabaseFailed
|
|
25
|
+
case copyFromAssetToDatabaseFailed(message: String)
|
|
26
|
+
case unzipFromAssetToDatabaseFailed(message: String)
|
|
24
27
|
case copyFromNamesFailed
|
|
25
28
|
}
|
|
29
|
+
// swiftlint:disable file_length
|
|
26
30
|
// swiftlint:disable type_body_length
|
|
27
31
|
class UtilsFile {
|
|
28
32
|
|
|
@@ -165,13 +169,10 @@ class UtilsFile {
|
|
|
165
169
|
|
|
166
170
|
class func setPathSuffix(sDb: String ) -> String {
|
|
167
171
|
var toDb: String = sDb
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
if sDb.hasSuffix(ext) {
|
|
173
|
-
toDb = sDb.prefix(sDb.count - ext.count) + "SQLite.db"
|
|
174
|
-
}
|
|
172
|
+
let ext: String = ".db"
|
|
173
|
+
if sDb.hasSuffix(ext) {
|
|
174
|
+
if !sDb.contains("SQLite.db") {
|
|
175
|
+
toDb = sDb.prefix(sDb.count - ext.count) + "SQLite.db"
|
|
175
176
|
}
|
|
176
177
|
}
|
|
177
178
|
return toDb
|
|
@@ -179,12 +180,11 @@ class UtilsFile {
|
|
|
179
180
|
|
|
180
181
|
// MARK: - GetFileList
|
|
181
182
|
|
|
182
|
-
class func getFileList(path: String) throws -> [String] {
|
|
183
|
+
class func getFileList(path: String, ext: String) throws -> [String] {
|
|
183
184
|
do {
|
|
184
185
|
var dbs: [String] = []
|
|
185
186
|
let filenames = try FileManager.default
|
|
186
187
|
.contentsOfDirectory(atPath: path)
|
|
187
|
-
let ext: String = ".db"
|
|
188
188
|
for file in filenames {
|
|
189
189
|
if file.hasSuffix(ext) {
|
|
190
190
|
dbs.append(file)
|
|
@@ -206,7 +206,8 @@ class UtilsFile {
|
|
|
206
206
|
let uTo: URL = databaseURL.appendingPathComponent(toFile)
|
|
207
207
|
let pFrom: String = uFrom.path
|
|
208
208
|
let pTo: String = uTo.path
|
|
209
|
-
let bRet: Bool = try copyFile(pathName: pFrom, toPathName: pTo
|
|
209
|
+
let bRet: Bool = try copyFile(pathName: pFrom, toPathName: pTo,
|
|
210
|
+
overwrite: true)
|
|
210
211
|
if bRet {
|
|
211
212
|
return
|
|
212
213
|
} else {
|
|
@@ -222,7 +223,8 @@ class UtilsFile {
|
|
|
222
223
|
|
|
223
224
|
// MARK: - CopyFromAssetToDatabase
|
|
224
225
|
|
|
225
|
-
class func copyFromAssetToDatabase(fromDb: String, toDb: String
|
|
226
|
+
class func copyFromAssetToDatabase(fromDb: String, toDb: String,
|
|
227
|
+
overwrite: Bool) throws {
|
|
226
228
|
do {
|
|
227
229
|
let uAsset: URL = try getAssetsDatabasesPath()
|
|
228
230
|
.appendingPathComponent(fromDb)
|
|
@@ -230,42 +232,96 @@ class UtilsFile {
|
|
|
230
232
|
let uDb: URL = try getDatabasesUrl()
|
|
231
233
|
.appendingPathComponent(toDb)
|
|
232
234
|
let pDb: String = uDb.path
|
|
233
|
-
let bRet: Bool = try copyFile(pathName: pAsset, toPathName: pDb
|
|
235
|
+
let bRet: Bool = try copyFile(pathName: pAsset, toPathName: pDb,
|
|
236
|
+
overwrite: overwrite)
|
|
234
237
|
if bRet {
|
|
235
238
|
return
|
|
236
239
|
} else {
|
|
237
|
-
|
|
238
|
-
|
|
240
|
+
let msg = "Error: copyFile return false"
|
|
241
|
+
print("\(msg)")
|
|
242
|
+
throw UtilsFileError.copyFromAssetToDatabaseFailed(message: msg)
|
|
239
243
|
}
|
|
240
244
|
} catch UtilsFileError.getAssetsDatabasesPathFailed {
|
|
241
|
-
|
|
242
|
-
|
|
245
|
+
let msg = "Error: getAssetsDatabasesPath Failed"
|
|
246
|
+
print("\(msg)")
|
|
247
|
+
throw UtilsFileError.copyFromAssetToDatabaseFailed(message: msg)
|
|
243
248
|
} catch UtilsFileError.getDatabasesURLFailed {
|
|
244
|
-
|
|
245
|
-
|
|
249
|
+
let msg = "Error: getDatabasesUrl Failed"
|
|
250
|
+
print("\(msg)")
|
|
251
|
+
|
|
252
|
+
throw UtilsFileError.copyFromAssetToDatabaseFailed(message: msg)
|
|
246
253
|
} catch UtilsFileError.copyFileFailed {
|
|
247
|
-
|
|
248
|
-
|
|
254
|
+
let msg = "Error: copyFile Failed"
|
|
255
|
+
print("\(msg)")
|
|
256
|
+
|
|
257
|
+
throw UtilsFileError.copyFromAssetToDatabaseFailed(message: msg)
|
|
249
258
|
} catch let error {
|
|
250
|
-
|
|
251
|
-
|
|
259
|
+
let msg = "Error: \(error)"
|
|
260
|
+
print("\(msg)")
|
|
261
|
+
throw UtilsFileError.copyFromAssetToDatabaseFailed(message: msg)
|
|
252
262
|
}
|
|
253
263
|
|
|
254
264
|
}
|
|
255
265
|
|
|
266
|
+
class func unzipFromAssetToDatabase(zip: String, overwrite: Bool) throws {
|
|
267
|
+
do {
|
|
268
|
+
let zipAsset: URL = try getAssetsDatabasesPath()
|
|
269
|
+
.appendingPathComponent(zip)
|
|
270
|
+
guard let archive = Archive(url: zipAsset, accessMode: .read) else {
|
|
271
|
+
let msg = "Error: Read Archive: \(zipAsset) failed"
|
|
272
|
+
print("\(msg)")
|
|
273
|
+
throw UtilsFileError.unzipFromAssetToDatabaseFailed(message: msg)
|
|
274
|
+
}
|
|
275
|
+
for entry in archive {
|
|
276
|
+
let dbEntry = setPathSuffix(sDb: entry.path)
|
|
277
|
+
let zipCopy: URL = try getDatabasesUrl()
|
|
278
|
+
.appendingPathComponent(dbEntry)
|
|
279
|
+
do {
|
|
280
|
+
let isExist: Bool = isFileExist(filePath: zipCopy.path)
|
|
281
|
+
if !isExist || overwrite {
|
|
282
|
+
if overwrite && isExist {
|
|
283
|
+
_ = try deleteFile(filePath: zipCopy.path)
|
|
284
|
+
}
|
|
285
|
+
_ = try archive.extract(entry, to: zipCopy)
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
} catch {
|
|
289
|
+
let msg = "Error: Extracting \(entry.path) from archive failed \(error.localizedDescription)"
|
|
290
|
+
print("\(msg)")
|
|
291
|
+
throw UtilsFileError.unzipFromAssetToDatabaseFailed(message: msg)
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
} catch UtilsFileError.getAssetsDatabasesPathFailed {
|
|
295
|
+
let msg = "Error: getAssetsDatabasesPath Failed"
|
|
296
|
+
print("\(msg)")
|
|
297
|
+
throw UtilsFileError.unzipFromAssetToDatabaseFailed(message: msg)
|
|
298
|
+
} catch UtilsFileError.getDatabasesURLFailed {
|
|
299
|
+
let msg = "Error: getDatabasesUrl Failed"
|
|
300
|
+
print("\(msg)")
|
|
301
|
+
throw UtilsFileError.unzipFromAssetToDatabaseFailed(message: msg)
|
|
302
|
+
} catch let error {
|
|
303
|
+
let msg = "Error: \(error)"
|
|
304
|
+
print("\(msg)")
|
|
305
|
+
throw UtilsFileError.unzipFromAssetToDatabaseFailed(message: msg)
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
256
309
|
// MARK: - CopyFile
|
|
257
310
|
|
|
258
|
-
class func copyFile(pathName: String, toPathName: String) throws -> Bool {
|
|
311
|
+
class func copyFile(pathName: String, toPathName: String, overwrite: Bool) throws -> Bool {
|
|
259
312
|
if pathName.count > 0 && toPathName.count > 0 {
|
|
260
313
|
let isPath = isFileExist(filePath: pathName)
|
|
261
314
|
if isPath {
|
|
262
315
|
do {
|
|
263
|
-
|
|
264
|
-
|
|
316
|
+
let isExist: Bool = isFileExist(filePath: toPathName)
|
|
317
|
+
if !isExist || overwrite {
|
|
318
|
+
if overwrite && isExist {
|
|
319
|
+
_ = try deleteFile(filePath: toPathName)
|
|
320
|
+
}
|
|
321
|
+
let fileManager = FileManager.default
|
|
322
|
+
try fileManager.copyItem(atPath: pathName,
|
|
323
|
+
toPath: toPathName)
|
|
265
324
|
}
|
|
266
|
-
let fileManager = FileManager.default
|
|
267
|
-
try fileManager.copyItem(atPath: pathName,
|
|
268
|
-
toPath: toPathName)
|
|
269
325
|
return true
|
|
270
326
|
} catch let error {
|
|
271
327
|
print("Error: \(error)")
|
|
@@ -289,7 +345,7 @@ class UtilsFile {
|
|
|
289
345
|
do {
|
|
290
346
|
let fromPath: String = try getFilePath(fileName: fileName)
|
|
291
347
|
let toPath: String = try getFilePath(fileName: toFileName)
|
|
292
|
-
ret = try copyFile(pathName: fromPath, toPathName: toPath)
|
|
348
|
+
ret = try copyFile(pathName: fromPath, toPathName: toPath, overwrite: true)
|
|
293
349
|
return ret
|
|
294
350
|
} catch UtilsFileError.getFilePathFailed {
|
|
295
351
|
print("Error: getFilePath Failed")
|
|
@@ -373,3 +429,4 @@ class UtilsFile {
|
|
|
373
429
|
}
|
|
374
430
|
}
|
|
375
431
|
// swiftlint:enable type_body_length
|
|
432
|
+
// swiftlint:enable file_length
|
|
@@ -25,7 +25,7 @@ class UtilsMigrate {
|
|
|
25
25
|
if FileManager.default.fileExists(atPath: dbPathURL.relativePath,
|
|
26
26
|
isDirectory: &isDir) &&
|
|
27
27
|
isDir.boolValue {
|
|
28
|
-
mDbList = try UtilsFile.getFileList(path: dbPathURL.relativePath)
|
|
28
|
+
mDbList = try UtilsFile.getFileList(path: dbPathURL.relativePath, ext: ".db")
|
|
29
29
|
|
|
30
30
|
return mDbList
|
|
31
31
|
} else {
|
|
@@ -60,7 +60,7 @@ class UtilsMigrate {
|
|
|
60
60
|
isDirectory: &isDir) &&
|
|
61
61
|
isDir.boolValue {
|
|
62
62
|
let mDbList: [String] = try UtilsFile
|
|
63
|
-
.getFileList(path: dbPathURL.relativePath)
|
|
63
|
+
.getFileList(path: dbPathURL.relativePath, ext: ".db")
|
|
64
64
|
for file: String in mDbList {
|
|
65
65
|
if !file.contains("SQLite.db") {
|
|
66
66
|
fromFile = file
|
|
@@ -110,7 +110,7 @@ class UtilsMigrate {
|
|
|
110
110
|
isDirectory: &isDir) &&
|
|
111
111
|
isDir.boolValue {
|
|
112
112
|
let mDbList: [String] = try UtilsFile
|
|
113
|
-
.getFileList(path: dbPathURL.relativePath)
|
|
113
|
+
.getFileList(path: dbPathURL.relativePath, ext: ".db")
|
|
114
114
|
for file: String in mDbList {
|
|
115
115
|
if !file.contains("SQLite.db") {
|
|
116
116
|
if dbList.contains(file) {
|
|
@@ -100,11 +100,9 @@ class UtilsSecret {
|
|
|
100
100
|
if FileManager.default.fileExists(atPath: databaseURL.relativePath,
|
|
101
101
|
isDirectory: &isDir) && isDir.boolValue {
|
|
102
102
|
let dbList: [String] = try UtilsFile
|
|
103
|
-
.getFileList(path: databaseURL.relativePath)
|
|
103
|
+
.getFileList(path: databaseURL.relativePath, ext: ".db")
|
|
104
104
|
for file: String in dbList {
|
|
105
|
-
print("file: \(file)")
|
|
106
105
|
let state: State = UtilsSQLCipher.getDatabaseState(databaseName: file)
|
|
107
|
-
print("state: \(state)")
|
|
108
106
|
if state.rawValue == "ENCRYPTEDGLOBALSECRET" {
|
|
109
107
|
let globalData: GlobalSQLite = GlobalSQLite()
|
|
110
108
|
let password: String = globalData.secret
|
|
@@ -140,7 +138,6 @@ class UtilsSecret {
|
|
|
140
138
|
|
|
141
139
|
// MARK: - ChangeEncryptionSecret
|
|
142
140
|
|
|
143
|
-
// swiftlint:disable function_body_length
|
|
144
141
|
class func changeEncryptionSecret(passphrase: String, oldPassphrase: String) throws {
|
|
145
142
|
do {
|
|
146
143
|
if passphrase.isEmpty || oldPassphrase.isEmpty {
|
|
@@ -162,11 +159,9 @@ class UtilsSecret {
|
|
|
162
159
|
if FileManager.default.fileExists(atPath: databaseURL.relativePath,
|
|
163
160
|
isDirectory: &isDir) && isDir.boolValue {
|
|
164
161
|
let dbList: [String] = try UtilsFile
|
|
165
|
-
.getFileList(path: databaseURL.relativePath)
|
|
162
|
+
.getFileList(path: databaseURL.relativePath, ext: ".db")
|
|
166
163
|
for file: String in dbList {
|
|
167
|
-
print("file: \(file)")
|
|
168
164
|
let state: State = UtilsSQLCipher.getDatabaseState(databaseName: file)
|
|
169
|
-
print("state: \(state)")
|
|
170
165
|
if state.rawValue == "ENCRYPTEDSECRET" {
|
|
171
166
|
let dbPath: String = try UtilsFile
|
|
172
167
|
.getFilePath(fileName: file)
|
|
@@ -198,6 +193,5 @@ class UtilsSecret {
|
|
|
198
193
|
}
|
|
199
194
|
|
|
200
195
|
}
|
|
201
|
-
// swiftlint:enable function_body_length
|
|
202
196
|
|
|
203
197
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor-community/sqlite",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
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,16 +55,16 @@
|
|
|
55
55
|
"prepublishOnly": "npm run build && npm run build-electron && npm run docgen"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@capacitor/android": "^3.
|
|
59
|
-
"@capacitor/core": "3.
|
|
58
|
+
"@capacitor/android": "^3.3.1",
|
|
59
|
+
"@capacitor/core": "3.3.1",
|
|
60
60
|
"@capacitor/docgen": "^0.0.17",
|
|
61
|
-
"@capacitor/ios": "^3.
|
|
61
|
+
"@capacitor/ios": "^3.3.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",
|
|
65
65
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
66
66
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
67
|
-
"electron": "^13.
|
|
67
|
+
"electron": "^13.3.0",
|
|
68
68
|
"eslint": "^7.11.0",
|
|
69
69
|
"prettier": "~2.2.0",
|
|
70
70
|
"prettier-plugin-java": "~1.0.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typescript": "~4.0.5"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@capacitor/core": "^3.
|
|
77
|
+
"@capacitor/core": "^3.3.1"
|
|
78
78
|
},
|
|
79
79
|
"prettier": "@ionic/prettier-config",
|
|
80
80
|
"swiftlint": "@ionic/swiftlint-config",
|