@capacitor-community/sqlite 6.0.2 → 7.0.0
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/CapacitorCommunitySqlite.podspec +1 -1
- package/android/build.gradle +8 -8
- package/android/src/main/java/com/getcapacitor/community/database/sqlite/CapacitorSQLite.java +11 -13
- package/android/src/main/java/com/getcapacitor/community/database/sqlite/CapacitorSQLitePlugin.java +3 -6
- package/android/src/main/java/com/getcapacitor/community/database/sqlite/SQLite/ImportExportJson/ExportToJson.java +5 -6
- package/android/src/main/java/com/getcapacitor/community/database/sqlite/SQLite/ImportExportJson/ImportFromJson.java +63 -67
- package/android/src/main/java/com/getcapacitor/community/database/sqlite/SQLite/UtilsBiometric.java +27 -31
- package/android/src/main/java/com/getcapacitor/community/database/sqlite/SQLite/UtilsFile.java +2 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/plugin.cjs.js +0 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +0 -2
- package/dist/plugin.js.map +1 -1
- package/electron/dist/plugin.js +6197 -6076
- package/electron/dist/plugin.js.map +1 -1
- package/package.json +20 -20
- package/src/definitions.ts +11 -7
- package/src/web.ts +1 -1
- /package/electron/{rollup.config.js → rollup.config.mjs} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor-community/sqlite",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Community plugin for native & electron SQLite databases",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
46
46
|
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
47
47
|
"eslint": "eslint . --ext ts",
|
|
48
|
-
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
48
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
49
49
|
"swiftlint": "node-swiftlint",
|
|
50
50
|
"docgen": "npm run docgenPlugin && npm run docgenConnection && npm run docgenDBConnection",
|
|
51
51
|
"docgenPlugin": "docgen --api CapacitorSQLitePlugin --output-readme docs/API.md",
|
|
52
52
|
"docgenConnection": "docgen --api ISQLiteConnection --output-readme docs/APIConnection.md",
|
|
53
53
|
"docgenDBConnection": "docgen --api ISQLiteDBConnection --output-readme docs/APIDBConnection.md",
|
|
54
|
-
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.
|
|
55
|
-
"build-electron": "tsc --project electron/tsconfig.json && rollup -c electron/rollup.config.
|
|
54
|
+
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
55
|
+
"build-electron": "tsc --project electron/tsconfig.json && rollup -c electron/rollup.config.mjs && rimraf ./electron/build",
|
|
56
56
|
"clean": "rimraf ./dist",
|
|
57
57
|
"watch": "tsc --watch",
|
|
58
58
|
"test": "echo \"No test specified\"",
|
|
@@ -60,27 +60,27 @@
|
|
|
60
60
|
"release": "standard-version"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@capacitor/android": "
|
|
64
|
-
"@capacitor/cli": "
|
|
65
|
-
"@capacitor/core": "
|
|
66
|
-
"@capacitor/docgen": "0.0
|
|
67
|
-
"@capacitor/ios": "
|
|
63
|
+
"@capacitor/android": "7.0.0",
|
|
64
|
+
"@capacitor/cli": "7.0.0",
|
|
65
|
+
"@capacitor/core": "7.0.0",
|
|
66
|
+
"@capacitor/docgen": "0.3.0",
|
|
67
|
+
"@capacitor/ios": "7.0.0",
|
|
68
68
|
"@ionic/eslint-config": "0.4.0",
|
|
69
|
-
"@ionic/prettier-config": "
|
|
70
|
-
"@ionic/swiftlint-config": "
|
|
71
|
-
"@rollup/plugin-commonjs": "
|
|
72
|
-
"@rollup/plugin-node-resolve": "
|
|
69
|
+
"@ionic/prettier-config": "4.0.0",
|
|
70
|
+
"@ionic/swiftlint-config": "2.0.0",
|
|
71
|
+
"@rollup/plugin-commonjs": "28.0.2",
|
|
72
|
+
"@rollup/plugin-node-resolve": "16.0.0",
|
|
73
73
|
"eslint": "8.57.0",
|
|
74
|
-
"prettier": "
|
|
75
|
-
"prettier-plugin-java": "
|
|
76
|
-
"rimraf": "
|
|
77
|
-
"rollup": "
|
|
74
|
+
"prettier": "3.4.2",
|
|
75
|
+
"prettier-plugin-java": "2.6.6",
|
|
76
|
+
"rimraf": "6.0.1",
|
|
77
|
+
"rollup": "4.30.1",
|
|
78
78
|
"standard-version": "9.5.0",
|
|
79
|
-
"swiftlint": "
|
|
80
|
-
"typescript": "4.
|
|
79
|
+
"swiftlint": "2.0.0",
|
|
80
|
+
"typescript": "4.1.5"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@capacitor/core": "
|
|
83
|
+
"@capacitor/core": ">=7.0.0"
|
|
84
84
|
},
|
|
85
85
|
"prettier": "@ionic/prettier-config",
|
|
86
86
|
"swiftlint": "@ionic/swiftlint-config",
|
package/src/definitions.ts
CHANGED
|
@@ -1150,7 +1150,7 @@ export interface ISQLiteConnection {
|
|
|
1150
1150
|
encrypted: boolean,
|
|
1151
1151
|
mode: string,
|
|
1152
1152
|
version: number,
|
|
1153
|
-
readonly: boolean
|
|
1153
|
+
readonly: boolean,
|
|
1154
1154
|
): Promise<SQLiteDBConnection>;
|
|
1155
1155
|
/**
|
|
1156
1156
|
* Check if a connection exists
|
|
@@ -1447,7 +1447,7 @@ export class SQLiteConnection implements ISQLiteConnection {
|
|
|
1447
1447
|
encrypted: boolean,
|
|
1448
1448
|
mode: string,
|
|
1449
1449
|
version: number,
|
|
1450
|
-
readonly: boolean
|
|
1450
|
+
readonly: boolean,
|
|
1451
1451
|
): Promise<SQLiteDBConnection> {
|
|
1452
1452
|
try {
|
|
1453
1453
|
if (database.endsWith('.db')) database = database.slice(0, -3);
|
|
@@ -1857,7 +1857,7 @@ export interface ISQLiteDBConnection {
|
|
|
1857
1857
|
values?: any[],
|
|
1858
1858
|
transaction?: boolean,
|
|
1859
1859
|
returnMode?: string,
|
|
1860
|
-
isSQL92?: boolean
|
|
1860
|
+
isSQL92?: boolean,
|
|
1861
1861
|
): Promise<capSQLiteChanges>;
|
|
1862
1862
|
/**
|
|
1863
1863
|
* Execute SQLite DB Connection Set
|
|
@@ -1872,7 +1872,7 @@ export interface ISQLiteDBConnection {
|
|
|
1872
1872
|
set: capSQLiteSet[],
|
|
1873
1873
|
transaction?: boolean,
|
|
1874
1874
|
returnMode?: string,
|
|
1875
|
-
isSQL92?: boolean
|
|
1875
|
+
isSQL92?: boolean,
|
|
1876
1876
|
): Promise<capSQLiteChanges>;
|
|
1877
1877
|
/**
|
|
1878
1878
|
* Check if a SQLite DB Connection exists
|
|
@@ -1950,7 +1950,11 @@ export interface ISQLiteDBConnection {
|
|
|
1950
1950
|
* SQLiteDBConnection Class
|
|
1951
1951
|
*/
|
|
1952
1952
|
export class SQLiteDBConnection implements ISQLiteDBConnection {
|
|
1953
|
-
constructor(
|
|
1953
|
+
constructor(
|
|
1954
|
+
private dbName: string,
|
|
1955
|
+
private readonly: boolean,
|
|
1956
|
+
private sqlite: any,
|
|
1957
|
+
) {}
|
|
1954
1958
|
|
|
1955
1959
|
getConnectionDBName(): string {
|
|
1956
1960
|
return this.dbName;
|
|
@@ -2131,7 +2135,7 @@ export class SQLiteDBConnection implements ISQLiteDBConnection {
|
|
|
2131
2135
|
values?: any[],
|
|
2132
2136
|
transaction = true,
|
|
2133
2137
|
returnMode = 'no',
|
|
2134
|
-
isSQL92 = true
|
|
2138
|
+
isSQL92 = true,
|
|
2135
2139
|
): Promise<capSQLiteChanges> {
|
|
2136
2140
|
let res: any;
|
|
2137
2141
|
try {
|
|
@@ -2171,7 +2175,7 @@ export class SQLiteDBConnection implements ISQLiteDBConnection {
|
|
|
2171
2175
|
set: capSQLiteSet[],
|
|
2172
2176
|
transaction = true,
|
|
2173
2177
|
returnMode = 'no',
|
|
2174
|
-
isSQL92 = true
|
|
2178
|
+
isSQL92 = true,
|
|
2175
2179
|
): Promise<capSQLiteChanges> {
|
|
2176
2180
|
let res: any;
|
|
2177
2181
|
try {
|
package/src/web.ts
CHANGED
|
@@ -479,7 +479,7 @@ export class CapacitorSQLiteWeb extends WebPlugin implements CapacitorSQLitePlug
|
|
|
479
479
|
private ensureJeepSqliteIsAvailable() {
|
|
480
480
|
if (this.jeepSqliteElement === null) {
|
|
481
481
|
throw new Error(
|
|
482
|
-
`The jeep-sqlite element is not present in the DOM! Please check the @capacitor-community/sqlite documentation for instructions regarding the web platform
|
|
482
|
+
`The jeep-sqlite element is not present in the DOM! Please check the @capacitor-community/sqlite documentation for instructions regarding the web platform.`,
|
|
483
483
|
);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
File without changes
|