@capawesome/capacitor-libsql 0.1.1 → 0.2.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/Package.swift +2 -2
- package/README.md +27 -8
- package/android/build.gradle +18 -13
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/Libsql.kt +25 -5
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/libsql/LibsqlPlugin.java +21 -3
- package/dist/docs.json +8 -8
- package/dist/esm/definitions.d.ts +19 -12
- package/dist/esm/definitions.js.map +1 -1
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js.map +1 -1
- package/package.json +11 -10
package/Package.swift
CHANGED
|
@@ -3,14 +3,14 @@ import PackageDescription
|
|
|
3
3
|
|
|
4
4
|
let package = Package(
|
|
5
5
|
name: "CapawesomeCapacitorLibsql",
|
|
6
|
-
platforms: [.iOS(.
|
|
6
|
+
platforms: [.iOS(.v15)],
|
|
7
7
|
products: [
|
|
8
8
|
.library(
|
|
9
9
|
name: "CapawesomeCapacitorLibsql",
|
|
10
10
|
targets: ["LibsqlPlugin"])
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
|
-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0"),
|
|
14
14
|
.package(url: "https://github.com/tursodatabase/libsql-swift", from: "0.1.1")
|
|
15
15
|
],
|
|
16
16
|
targets: [
|
package/README.md
CHANGED
|
@@ -8,6 +8,13 @@ Capacitor plugin for [libSQL](https://docs.turso.tech/libsql) databases.[^1]
|
|
|
8
8
|
</a>
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
|
+
## Compatibility
|
|
12
|
+
|
|
13
|
+
| Plugin Version | Capacitor Version | Status |
|
|
14
|
+
| -------------- | ----------------- | -------------- |
|
|
15
|
+
| 0.2.x | >=8.x.x | Active support |
|
|
16
|
+
| 0.1.x | 7.x.x | Deprecated |
|
|
17
|
+
|
|
11
18
|
## Installation
|
|
12
19
|
|
|
13
20
|
```bash
|
|
@@ -15,6 +22,16 @@ npm install @capawesome/capacitor-libsql
|
|
|
15
22
|
npx cap sync
|
|
16
23
|
```
|
|
17
24
|
|
|
25
|
+
### Android
|
|
26
|
+
|
|
27
|
+
#### Variables
|
|
28
|
+
|
|
29
|
+
If needed, you can define the following project variable in your app's `variables.gradle` file to change the default version of the dependency:
|
|
30
|
+
|
|
31
|
+
- `$libsqlVersion` version of `tech.turso.libsql:libsql` (default: `0.1.2`)
|
|
32
|
+
|
|
33
|
+
This can be useful if you encounter dependency conflicts with other plugins in your project.
|
|
34
|
+
|
|
18
35
|
## Usage
|
|
19
36
|
|
|
20
37
|
```typescript
|
|
@@ -174,7 +191,8 @@ execute(options: ExecuteOptions) => Promise<void>
|
|
|
174
191
|
|
|
175
192
|
Execute a single SQL statement on the specified database connection.
|
|
176
193
|
|
|
177
|
-
This method can be used to execute any SQL statement, including
|
|
194
|
+
This method can be used to execute any SQL statement, including
|
|
195
|
+
`INSERT`, `UPDATE`, `DELETE`, and `CREATE TABLE`.
|
|
178
196
|
|
|
179
197
|
| Param | Type |
|
|
180
198
|
| ------------- | --------------------------------------------------------- |
|
|
@@ -212,7 +230,8 @@ query(options: QueryOptions) => Promise<QueryResult>
|
|
|
212
230
|
|
|
213
231
|
Query the database and return the result set.
|
|
214
232
|
|
|
215
|
-
This method can be used to execute `SELECT` statements
|
|
233
|
+
This method can be used to execute `SELECT` statements
|
|
234
|
+
and retrieve the result set.
|
|
216
235
|
|
|
217
236
|
| Param | Type |
|
|
218
237
|
| ------------- | ----------------------------------------------------- |
|
|
@@ -254,7 +273,7 @@ sync(options: SyncOptions) => Promise<void>
|
|
|
254
273
|
|
|
255
274
|
Synchronize the database with the remote server.
|
|
256
275
|
|
|
257
|
-
|
|
276
|
+
Available on iOS and Android.
|
|
258
277
|
|
|
259
278
|
| Param | Type |
|
|
260
279
|
| ------------- | --------------------------------------------------- |
|
|
@@ -318,11 +337,11 @@ Only available on iOS.
|
|
|
318
337
|
|
|
319
338
|
#### ExecuteBatchOptions
|
|
320
339
|
|
|
321
|
-
| Prop | Type | Description
|
|
322
|
-
| ------------------ | ---------------------- |
|
|
323
|
-
| **`connectionId`** | <code>string</code> | The ID of the connection to execute the batch on.
|
|
324
|
-
| **`statement`** | <code>string[]</code> | The SQL statements to execute in the batch.
|
|
325
|
-
| **`values`** | <code>Value[][]</code> | The
|
|
340
|
+
| Prop | Type | Description | Since |
|
|
341
|
+
| ------------------ | ---------------------- | ------------------------------------------------- | ----- |
|
|
342
|
+
| **`connectionId`** | <code>string</code> | The ID of the connection to execute the batch on. | 0.0.0 |
|
|
343
|
+
| **`statement`** | <code>string[]</code> | The SQL statements to execute in the batch. | 0.0.0 |
|
|
344
|
+
| **`values`** | <code>Value[][]</code> | The values to bind to the SQL statements. | 0.0.0 |
|
|
326
345
|
|
|
327
346
|
|
|
328
347
|
#### QueryResult
|
package/android/build.gradle
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
2
|
+
|
|
1
3
|
ext {
|
|
2
4
|
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
-
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.
|
|
4
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.
|
|
5
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
6
|
-
libsqlVersion = project.hasProperty('libsqlVersion') ? rootProject.ext.libsqlVersion : '0.1.
|
|
5
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
|
|
6
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
|
|
7
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
|
|
8
|
+
libsqlVersion = project.hasProperty('libsqlVersion') ? rootProject.ext.libsqlVersion : '0.1.2'
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
buildscript {
|
|
10
|
-
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '
|
|
12
|
+
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '2.2.20'
|
|
11
13
|
repositories {
|
|
12
14
|
google()
|
|
13
15
|
mavenCentral()
|
|
14
16
|
}
|
|
15
17
|
dependencies {
|
|
16
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
18
|
+
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
17
19
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -22,11 +24,11 @@ apply plugin: 'com.android.library'
|
|
|
22
24
|
apply plugin: 'org.jetbrains.kotlin.android'
|
|
23
25
|
|
|
24
26
|
android {
|
|
25
|
-
namespace "io.capawesome.capacitorjs.plugins.libsql"
|
|
26
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
27
|
+
namespace = "io.capawesome.capacitorjs.plugins.libsql"
|
|
28
|
+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
27
29
|
defaultConfig {
|
|
28
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
29
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
30
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
31
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
30
32
|
versionCode 1
|
|
31
33
|
versionName "1.0"
|
|
32
34
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -38,14 +40,17 @@ android {
|
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
lintOptions {
|
|
41
|
-
abortOnError false
|
|
43
|
+
abortOnError = false
|
|
42
44
|
}
|
|
43
45
|
compileOptions {
|
|
44
46
|
sourceCompatibility JavaVersion.VERSION_21
|
|
45
47
|
targetCompatibility JavaVersion.VERSION_21
|
|
46
48
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
kotlin {
|
|
52
|
+
compilerOptions {
|
|
53
|
+
jvmTarget = JvmTarget.JVM_21
|
|
49
54
|
}
|
|
50
55
|
}
|
|
51
56
|
|
|
@@ -4,6 +4,7 @@ import io.capawesome.capacitorjs.plugins.libsql.classes.options.*
|
|
|
4
4
|
import io.capawesome.capacitorjs.plugins.libsql.classes.results.*
|
|
5
5
|
import io.capawesome.capacitorjs.plugins.libsql.interfaces.*
|
|
6
6
|
import tech.turso.libsql.Database
|
|
7
|
+
import tech.turso.libsql.EmbeddedReplicaDatabase
|
|
7
8
|
import java.io.File
|
|
8
9
|
import tech.turso.libsql.Connection as LibsqlConnection
|
|
9
10
|
import java.util.concurrent.ConcurrentHashMap
|
|
@@ -22,7 +23,7 @@ class Libsql(private val plugin: LibsqlPlugin) {
|
|
|
22
23
|
|
|
23
24
|
val database = when {
|
|
24
25
|
options.url != null && options.path != null -> {
|
|
25
|
-
|
|
26
|
+
// Embedded replica mode
|
|
26
27
|
tech.turso.libsql.Libsql.open(
|
|
27
28
|
url = options.url!!,
|
|
28
29
|
authToken = options.authToken!!,
|
|
@@ -30,18 +31,18 @@ class Libsql(private val plugin: LibsqlPlugin) {
|
|
|
30
31
|
)
|
|
31
32
|
}
|
|
32
33
|
options.url != null -> {
|
|
33
|
-
|
|
34
|
+
// Remote-only mode
|
|
34
35
|
tech.turso.libsql.Libsql.open(
|
|
35
36
|
url = options.url!!,
|
|
36
37
|
authToken = options.authToken!!
|
|
37
38
|
)
|
|
38
39
|
}
|
|
39
40
|
options.path != null -> {
|
|
40
|
-
|
|
41
|
+
// Local-only mode
|
|
41
42
|
tech.turso.libsql.Libsql.open(path = resolvePath(options.path!!))
|
|
42
43
|
}
|
|
43
44
|
else -> {
|
|
44
|
-
|
|
45
|
+
// In-memory database
|
|
45
46
|
tech.turso.libsql.Libsql.open(path = ":memory:")
|
|
46
47
|
}
|
|
47
48
|
}
|
|
@@ -178,6 +179,25 @@ class Libsql(private val plugin: LibsqlPlugin) {
|
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
181
|
|
|
182
|
+
|
|
183
|
+
@Throws(Exception::class)
|
|
184
|
+
fun sync(options: SyncOptions, callback: EmptyCallback) {
|
|
185
|
+
try {
|
|
186
|
+
val database = databases[options.connectionId]
|
|
187
|
+
?: throw Exception("Database not found: ${options.connectionId}")
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
val embeddedDb = database as? EmbeddedReplicaDatabase
|
|
191
|
+
?: throw Exception("Sync is only available for embedded replica databases")
|
|
192
|
+
|
|
193
|
+
embeddedDb.sync()
|
|
194
|
+
callback.success()
|
|
195
|
+
} catch (exception: Exception) {
|
|
196
|
+
callback.error(exception)
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
|
|
181
201
|
private fun resolvePath(path: String): String {
|
|
182
202
|
var file = File(path)
|
|
183
203
|
if (!file.isAbsolute) {
|
|
@@ -185,4 +205,4 @@ class Libsql(private val plugin: LibsqlPlugin) {
|
|
|
185
205
|
}
|
|
186
206
|
return file.absolutePath
|
|
187
207
|
}
|
|
188
|
-
}
|
|
208
|
+
}
|
|
@@ -187,7 +187,25 @@ public class LibsqlPlugin extends Plugin {
|
|
|
187
187
|
|
|
188
188
|
@PluginMethod
|
|
189
189
|
public void sync(PluginCall call) {
|
|
190
|
-
|
|
190
|
+
try {
|
|
191
|
+
SyncOptions options = new SyncOptions(call);
|
|
192
|
+
EmptyCallback callback = new EmptyCallback() {
|
|
193
|
+
@Override
|
|
194
|
+
public void success() {
|
|
195
|
+
resolveCall(call);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@Override
|
|
199
|
+
public void error(@NonNull Exception exception) {
|
|
200
|
+
rejectCall(call, exception);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
assert implementation != null;
|
|
205
|
+
implementation.sync(options, callback);
|
|
206
|
+
} catch (Exception exception) {
|
|
207
|
+
rejectCall(call, exception);
|
|
208
|
+
}
|
|
191
209
|
}
|
|
192
210
|
|
|
193
211
|
private void rejectCall(@NonNull PluginCall call, @NonNull Exception exception) {
|
|
@@ -199,8 +217,8 @@ public class LibsqlPlugin extends Plugin {
|
|
|
199
217
|
call.reject(message);
|
|
200
218
|
}
|
|
201
219
|
|
|
202
|
-
private void
|
|
203
|
-
call.unimplemented("Not
|
|
220
|
+
private void rejectCallAsUnimplemented(@NonNull PluginCall call) {
|
|
221
|
+
call.unimplemented("Not implemented on this platform.");
|
|
204
222
|
}
|
|
205
223
|
|
|
206
224
|
private void resolveCall(@NonNull PluginCall call) {
|
package/dist/docs.json
CHANGED
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"text": "0.0.0"
|
|
94
94
|
}
|
|
95
95
|
],
|
|
96
|
-
"docs": "Execute a single SQL statement on the specified database connection.\n\nThis method can be used to execute any SQL statement, including `INSERT`, `UPDATE`, `DELETE`, and `CREATE TABLE`.",
|
|
96
|
+
"docs": "Execute a single SQL statement on the specified database connection.\n\nThis method can be used to execute any SQL statement, including \n`INSERT`, `UPDATE`, `DELETE`, and `CREATE TABLE`.",
|
|
97
97
|
"complexTypes": [
|
|
98
98
|
"ExecuteOptions"
|
|
99
99
|
],
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"text": "0.0.0"
|
|
140
140
|
}
|
|
141
141
|
],
|
|
142
|
-
"docs": "Query the database and return the result set.\n\nThis method can be used to execute `SELECT` statements
|
|
142
|
+
"docs": "Query the database and return the result set.\n\nThis method can be used to execute `SELECT` statements \nand retrieve the result set.",
|
|
143
143
|
"complexTypes": [
|
|
144
144
|
"QueryResult",
|
|
145
145
|
"QueryOptions"
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"text": "0.0.0"
|
|
187
187
|
}
|
|
188
188
|
],
|
|
189
|
-
"docs": "Synchronize the database with the remote server.\n\
|
|
189
|
+
"docs": "Synchronize the database with the remote server.\n\nAvailable on iOS and Android.",
|
|
190
190
|
"complexTypes": [
|
|
191
191
|
"SyncOptions"
|
|
192
192
|
],
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
"name": "since"
|
|
328
328
|
}
|
|
329
329
|
],
|
|
330
|
-
"docs": "The authentication token for the database.\n\nThis is required for connecting to a remote database.\nIf the database is local (i.e., a file on the device),
|
|
330
|
+
"docs": "The authentication token for the database.\n\nThis is required for connecting to a remote database.\nIf the database is local (i.e., a file on the device), \nthis can be omitted.",
|
|
331
331
|
"complexTypes": [],
|
|
332
332
|
"type": "string | undefined"
|
|
333
333
|
},
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
"name": "example"
|
|
344
344
|
}
|
|
345
345
|
],
|
|
346
|
-
"docs": "The path to the database file.\n\nIf no path or URL is provided, the plugin will create
|
|
346
|
+
"docs": "The path to the database file.\n\nIf no path or URL is provided, the plugin will create \na new in-memory database.\n\nIf no file exists at the specified path, \na new file will be created.",
|
|
347
347
|
"complexTypes": [],
|
|
348
348
|
"type": "string | undefined"
|
|
349
349
|
},
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
"name": "since"
|
|
356
356
|
}
|
|
357
357
|
],
|
|
358
|
-
"docs": "The URL of the database.\n\nThis can be used to connect to a remote database.\nIf the URL is provided, the `authToken` must also be provided.\n\nIf no path or URL is provided, the plugin will create
|
|
358
|
+
"docs": "The URL of the database.\n\nThis can be used to connect to a remote database.\nIf the URL is provided, the `authToken` must also be provided.\n\nIf no path or URL is provided, the plugin will create \na new in-memory database.",
|
|
359
359
|
"complexTypes": [],
|
|
360
360
|
"type": "string | undefined"
|
|
361
361
|
}
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
"name": "since"
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
|
-
"text": "['INSERT INTO users (name, age) VALUES (?, ?)'
|
|
468
|
+
"text": "[\n'INSERT INTO users (name, age) VALUES (?, ?)',\n'UPDATE users SET age = ? WHERE name = ?'\n]",
|
|
469
469
|
"name": "example"
|
|
470
470
|
}
|
|
471
471
|
],
|
|
@@ -481,7 +481,7 @@
|
|
|
481
481
|
"name": "since"
|
|
482
482
|
}
|
|
483
483
|
],
|
|
484
|
-
"docs": "The
|
|
484
|
+
"docs": "The values to bind to the SQL statements.",
|
|
485
485
|
"complexTypes": [
|
|
486
486
|
"Value"
|
|
487
487
|
],
|
|
@@ -26,7 +26,8 @@ export interface LibsqlPlugin {
|
|
|
26
26
|
/**
|
|
27
27
|
* Execute a single SQL statement on the specified database connection.
|
|
28
28
|
*
|
|
29
|
-
* This method can be used to execute any SQL statement, including
|
|
29
|
+
* This method can be used to execute any SQL statement, including
|
|
30
|
+
* `INSERT`, `UPDATE`, `DELETE`, and `CREATE TABLE`.
|
|
30
31
|
*
|
|
31
32
|
* @since 0.0.0
|
|
32
33
|
*/
|
|
@@ -42,7 +43,8 @@ export interface LibsqlPlugin {
|
|
|
42
43
|
/**
|
|
43
44
|
* Query the database and return the result set.
|
|
44
45
|
*
|
|
45
|
-
* This method can be used to execute `SELECT` statements
|
|
46
|
+
* This method can be used to execute `SELECT` statements
|
|
47
|
+
* and retrieve the result set.
|
|
46
48
|
*
|
|
47
49
|
* @since 0.0.0
|
|
48
50
|
*/
|
|
@@ -60,7 +62,7 @@ export interface LibsqlPlugin {
|
|
|
60
62
|
/**
|
|
61
63
|
* Synchronize the database with the remote server.
|
|
62
64
|
*
|
|
63
|
-
*
|
|
65
|
+
* Available on iOS and Android.
|
|
64
66
|
*
|
|
65
67
|
* @since 0.0.0
|
|
66
68
|
*/
|
|
@@ -110,7 +112,8 @@ export interface ConnectOptions {
|
|
|
110
112
|
* The authentication token for the database.
|
|
111
113
|
*
|
|
112
114
|
* This is required for connecting to a remote database.
|
|
113
|
-
* If the database is local (i.e., a file on the device),
|
|
115
|
+
* If the database is local (i.e., a file on the device),
|
|
116
|
+
* this can be omitted.
|
|
114
117
|
*
|
|
115
118
|
* @since 0.0.0
|
|
116
119
|
*/
|
|
@@ -118,9 +121,11 @@ export interface ConnectOptions {
|
|
|
118
121
|
/**
|
|
119
122
|
* The path to the database file.
|
|
120
123
|
*
|
|
121
|
-
* If no path or URL is provided, the plugin will create
|
|
124
|
+
* If no path or URL is provided, the plugin will create
|
|
125
|
+
* a new in-memory database.
|
|
122
126
|
*
|
|
123
|
-
* If no file exists at the specified path,
|
|
127
|
+
* If no file exists at the specified path,
|
|
128
|
+
* a new file will be created.
|
|
124
129
|
*
|
|
125
130
|
* @since 0.0.0
|
|
126
131
|
* @example '/data/user/0/com.example.plugin/cache/data.db'
|
|
@@ -132,7 +137,8 @@ export interface ConnectOptions {
|
|
|
132
137
|
* This can be used to connect to a remote database.
|
|
133
138
|
* If the URL is provided, the `authToken` must also be provided.
|
|
134
139
|
*
|
|
135
|
-
* If no path or URL is provided, the plugin will create
|
|
140
|
+
* If no path or URL is provided, the plugin will create
|
|
141
|
+
* a new in-memory database.
|
|
136
142
|
*
|
|
137
143
|
* @since 0.0.0
|
|
138
144
|
*/
|
|
@@ -196,13 +202,14 @@ export interface ExecuteBatchOptions {
|
|
|
196
202
|
* The SQL statements to execute in the batch.
|
|
197
203
|
*
|
|
198
204
|
* @since 0.0.0
|
|
199
|
-
* @example [
|
|
205
|
+
* @example [
|
|
206
|
+
* 'INSERT INTO users (name, age) VALUES (?, ?)',
|
|
207
|
+
* 'UPDATE users SET age = ? WHERE name = ?'
|
|
208
|
+
* ]
|
|
200
209
|
*/
|
|
201
210
|
statement: string[];
|
|
202
211
|
/**
|
|
203
|
-
* The
|
|
204
|
-
*
|
|
205
|
-
* Only available on Android.
|
|
212
|
+
* The values to bind to the SQL statements.
|
|
206
213
|
*
|
|
207
214
|
* @since 0.0.0
|
|
208
215
|
*/
|
|
@@ -284,4 +291,4 @@ export interface SyncOptions {
|
|
|
284
291
|
/**
|
|
285
292
|
* @since 0.0.0
|
|
286
293
|
*/
|
|
287
|
-
export
|
|
294
|
+
export type Value = string | number | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface LibsqlPlugin {\n /**\n * Begin a transaction on the specified database connection.\n *\n * Only available on Android.\n *\n * @since 0.0.0\n */\n beginTransaction(\n options: BeginTransactionOptions,\n ): Promise<BeginTransactionResult>;\n /**\n * Commit the current transaction on the specified database connection.\n *\n * Only available on Android.\n *\n * @since 0.0.0\n */\n commitTransaction(options: CommitTransactionOptions): Promise<void>;\n /**\n * Connect to a database.\n *\n * This method must be called before any other methods that interact with the database.\n *\n * @since 0.0.0\n */\n connect(options: ConnectOptions): Promise<ConnectResult>;\n /**\n * Execute a single SQL statement on the specified database connection.\n *\n * This method can be used to execute any SQL statement, including `INSERT`, `UPDATE`, `DELETE`, and `CREATE TABLE`.\n *\n * @since 0.0.0\n */\n execute(options: ExecuteOptions): Promise<void>;\n /**\n * Execute a batch of SQL statements on the specified database connection.\n *\n * This method can be used to execute multiple SQL statements in a single call.\n *\n * @since 0.0.0\n */\n executeBatch(options: ExecuteBatchOptions): Promise<void>;\n /**\n * Query the database and return the result set.\n *\n * This method can be used to execute `SELECT` statements and retrieve the result set.\n *\n * @since 0.0.0\n */\n query(options: QueryOptions): Promise<QueryResult>;\n /**\n * Rollback the current transaction on the specified database connection.\n *\n * This method will undo all changes made in the current transaction.\n *\n * Only available on Android.\n *\n * @since 0.0.0\n */\n rollbackTransaction(options: RollbackTransactionOptions): Promise<void>;\n /**\n * Synchronize the database with the remote server.\n *\n *
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface LibsqlPlugin {\n /**\n * Begin a transaction on the specified database connection.\n *\n * Only available on Android.\n *\n * @since 0.0.0\n */\n beginTransaction(\n options: BeginTransactionOptions,\n ): Promise<BeginTransactionResult>;\n /**\n * Commit the current transaction on the specified database connection.\n *\n * Only available on Android.\n *\n * @since 0.0.0\n */\n commitTransaction(options: CommitTransactionOptions): Promise<void>;\n /**\n * Connect to a database.\n *\n * This method must be called before any other methods that interact with the database.\n *\n * @since 0.0.0\n */\n connect(options: ConnectOptions): Promise<ConnectResult>;\n /**\n * Execute a single SQL statement on the specified database connection.\n *\n * This method can be used to execute any SQL statement, including \n * `INSERT`, `UPDATE`, `DELETE`, and `CREATE TABLE`.\n *\n * @since 0.0.0\n */\n execute(options: ExecuteOptions): Promise<void>;\n /**\n * Execute a batch of SQL statements on the specified database connection.\n *\n * This method can be used to execute multiple SQL statements in a single call.\n *\n * @since 0.0.0\n */\n executeBatch(options: ExecuteBatchOptions): Promise<void>;\n /**\n * Query the database and return the result set.\n *\n * This method can be used to execute `SELECT` statements \n * and retrieve the result set.\n *\n * @since 0.0.0\n */\n query(options: QueryOptions): Promise<QueryResult>;\n /**\n * Rollback the current transaction on the specified database connection.\n *\n * This method will undo all changes made in the current transaction.\n *\n * Only available on Android.\n *\n * @since 0.0.0\n */\n rollbackTransaction(options: RollbackTransactionOptions): Promise<void>;\n /**\n * Synchronize the database with the remote server.\n *\n * Available on iOS and Android.\n *\n * @since 0.0.0\n */\n sync(options: SyncOptions): Promise<void>;\n}\n\n/**\n * @since 0.0.0\n */\nexport interface BeginTransactionOptions {\n /**\n * The ID of the connection to begin the transaction on.\n *\n * @since 0.0.0\n */\n connectionId: string;\n}\n\n/**\n * @since 0.0.0\n */\nexport interface BeginTransactionResult {\n /**\n * The ID of the transaction that was started.\n *\n * @since 0.0.0\n */\n transactionId: string;\n}\n\n/**\n * @since 0.0.0\n */\nexport interface CommitTransactionOptions {\n /**\n * The ID of the connection to commit the transaction on.\n *\n * @since 0.0.0\n */\n connectionId: string;\n /**\n * The ID of the transaction to commit.\n *\n * @since 0.0.0\n */\n transactionId: string;\n}\n\nexport interface ConnectOptions {\n /**\n * The authentication token for the database.\n *\n * This is required for connecting to a remote database.\n * If the database is local (i.e., a file on the device), \n * this can be omitted.\n *\n * @since 0.0.0\n */\n authToken?: string;\n /**\n * The path to the database file.\n *\n * If no path or URL is provided, the plugin will create \n * a new in-memory database.\n *\n * If no file exists at the specified path, \n * a new file will be created.\n *\n * @since 0.0.0\n * @example '/data/user/0/com.example.plugin/cache/data.db'\n */\n path?: string;\n /**\n * The URL of the database.\n *\n * This can be used to connect to a remote database.\n * If the URL is provided, the `authToken` must also be provided.\n *\n * If no path or URL is provided, the plugin will create \n * a new in-memory database.\n *\n * @since 0.0.0\n */\n url?: string;\n}\n\n/**\n * @since 0.0.0\n */\nexport interface ConnectResult {\n /**\n * The ID of the connection.\n *\n * @since 0.0.0\n */\n connectionId: string;\n}\n\n/**\n * @since 0.0.0\n */\nexport interface ExecuteOptions {\n /**\n * The ID of the connection to execute the SQL statement on.\n *\n * @since 0.0.0\n */\n connectionId: string;\n /**\n * The SQL statement to execute.\n *\n * @since 0.0.0\n * @example 'INSERT INTO users (name, age) VALUES (?, ?)'\n */\n statement: string;\n /**\n * The transaction ID to use for the SQL statement.\n *\n * Only available on Android.\n *\n * @since 0.0.0\n */\n transactionId?: string;\n /**\n * The values to bind to the SQL statement.\n *\n * @since 0.0.0\n * @example ['Alice', 30]\n */\n values?: Value[];\n}\n\n/**\n * @since 0.0.0\n */\nexport interface ExecuteBatchOptions {\n /**\n * The ID of the connection to execute the batch on.\n *\n * @since 0.0.0\n */\n connectionId: string;\n /**\n * The SQL statements to execute in the batch.\n *\n * @since 0.0.0\n * @example [\n * 'INSERT INTO users (name, age) VALUES (?, ?)',\n * 'UPDATE users SET age = ? WHERE name = ?'\n * ]\n */\n statement: string[];\n /**\n * The values to bind to the SQL statements.\n *\n * @since 0.0.0\n */\n values?: Value[][];\n}\n\n/**\n * @since 0.0.0\n */\nexport interface QueryOptions {\n /**\n * The ID of the connection to query.\n *\n * @since 0.0.0\n */\n connectionId: string;\n /**\n * The SQL statement to execute.\n *\n * @since 0.0.0\n * @example 'SELECT name, age FROM users WHERE age > ?'\n */\n statement: string;\n /**\n * The transaction ID to use for the query.\n *\n * Only available on Android.\n *\n * @since 0.0.0\n */\n transactionId?: string;\n /**\n * The values to bind to the SQL statement.\n *\n * @since 0.0.0\n * @example ['Alice', 30]\n */\n values?: Value[];\n}\n\n/**\n * @since 0.0.0\n */\nexport interface QueryResult {\n /**\n * The values returned by the query.\n *\n * @since 0.0.0\n * @example [['Alice', 30], ['Bob', 25]]\n */\n rows: Value[][];\n}\n\n/**\n * @since 0.0.0\n */\nexport interface RollbackTransactionOptions {\n /**\n * The ID of the connection to rollback the transaction on.\n *\n * @since 0.0.0\n */\n connectionId: string;\n /**\n * The ID of the transaction to rollback.\n *\n * @since 0.0.0\n */\n transactionId: string;\n}\n\n/**\n * @since 0.0.0\n */\nexport interface SyncOptions {\n /**\n * The ID of the connection to sync.\n *\n * @since 0.0.0\n */\n connectionId: string;\n}\n\n/**\n * @since 0.0.0\n */\nexport type Value = string | number | null;\n"]}
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Libsql = registerPlugin('Libsql', {\n web: () => import('./web').then(m => new m.LibsqlWeb()),\n});\nexport * from './definitions';\nexport { Libsql };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class LibsqlWeb extends WebPlugin {\n async beginTransaction(options) {\n console.log('beginTransaction', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async commitTransaction(options) {\n console.log('commitTransaction', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async connect(options) {\n console.log('connect', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async execute(options) {\n console.log('execute', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async executeBatch(options) {\n console.log('executeBatch', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async query(options) {\n console.log('query', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async rollbackTransaction(options) {\n console.log('rollbackTransaction', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async sync(options) {\n console.log('sync', options);\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,MAAM,GAAGA,mBAAc,CAAC,QAAQ,EAAE;AACxC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;AAC3D,CAAC;;ACFM,MAAM,SAAS,SAASC,cAAS,CAAC;AACzC,IAAI,MAAM,gBAAgB,CAAC,OAAO,EAAE;AACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC;AAChD,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D;
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Libsql = registerPlugin('Libsql', {\n web: () => import('./web').then(m => new m.LibsqlWeb()),\n});\nexport * from './definitions';\nexport { Libsql };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class LibsqlWeb extends WebPlugin {\n async beginTransaction(options) {\n console.log('beginTransaction', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async commitTransaction(options) {\n console.log('commitTransaction', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async connect(options) {\n console.log('connect', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async execute(options) {\n console.log('execute', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async executeBatch(options) {\n console.log('executeBatch', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async query(options) {\n console.log('query', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async rollbackTransaction(options) {\n console.log('rollbackTransaction', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async sync(options) {\n console.log('sync', options);\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,MAAM,GAAGA,mBAAc,CAAC,QAAQ,EAAE;AACxC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;AAC3D,CAAC;;ACFM,MAAM,SAAS,SAASC,cAAS,CAAC;AACzC,IAAI,MAAM,gBAAgB,CAAC,OAAO,EAAE;AACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC;AAChD,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,iBAAiB,CAAC,OAAO,EAAE;AACrC,QAAQ,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC;AACjD,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,OAAO,CAAC,OAAO,EAAE;AAC3B,QAAQ,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC;AACvC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,OAAO,CAAC,OAAO,EAAE;AAC3B,QAAQ,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC;AACvC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;AAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC;AAC5C,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,KAAK,CAAC,OAAO,EAAE;AACzB,QAAQ,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC;AACrC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,mBAAmB,CAAC,OAAO,EAAE;AACvC,QAAQ,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC;AACnD,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;AACxB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;AACpC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ;;;;;;;;;"}
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Libsql = registerPlugin('Libsql', {\n web: () => import('./web').then(m => new m.LibsqlWeb()),\n});\nexport * from './definitions';\nexport { Libsql };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class LibsqlWeb extends WebPlugin {\n async beginTransaction(options) {\n console.log('beginTransaction', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async commitTransaction(options) {\n console.log('commitTransaction', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async connect(options) {\n console.log('connect', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async execute(options) {\n console.log('execute', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async executeBatch(options) {\n console.log('executeBatch', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async query(options) {\n console.log('query', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async rollbackTransaction(options) {\n console.log('rollbackTransaction', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async sync(options) {\n console.log('sync', options);\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,MAAM,GAAGA,mBAAc,CAAC,QAAQ,EAAE;IACxC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;IAC3D,CAAC;;ICFM,MAAM,SAAS,SAASC,cAAS,CAAC;IACzC,IAAI,MAAM,gBAAgB,CAAC,OAAO,EAAE;IACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC;IAChD,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D;
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Libsql = registerPlugin('Libsql', {\n web: () => import('./web').then(m => new m.LibsqlWeb()),\n});\nexport * from './definitions';\nexport { Libsql };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class LibsqlWeb extends WebPlugin {\n async beginTransaction(options) {\n console.log('beginTransaction', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async commitTransaction(options) {\n console.log('commitTransaction', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async connect(options) {\n console.log('connect', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async execute(options) {\n console.log('execute', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async executeBatch(options) {\n console.log('executeBatch', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async query(options) {\n console.log('query', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async rollbackTransaction(options) {\n console.log('rollbackTransaction', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async sync(options) {\n console.log('sync', options);\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,MAAM,GAAGA,mBAAc,CAAC,QAAQ,EAAE;IACxC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;IAC3D,CAAC;;ICFM,MAAM,SAAS,SAASC,cAAS,CAAC;IACzC,IAAI,MAAM,gBAAgB,CAAC,OAAO,EAAE;IACpC,QAAQ,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC;IAChD,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,iBAAiB,CAAC,OAAO,EAAE;IACrC,QAAQ,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACjD,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,OAAO,CAAC,OAAO,EAAE;IAC3B,QAAQ,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC;IACvC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,OAAO,CAAC,OAAO,EAAE;IAC3B,QAAQ,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC;IACvC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,YAAY,CAAC,OAAO,EAAE;IAChC,QAAQ,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC;IAC5C,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,KAAK,CAAC,OAAO,EAAE;IACzB,QAAQ,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC;IACrC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,mBAAmB,CAAC,OAAO,EAAE;IACvC,QAAQ,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,OAAO,CAAC;IACnD,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ,IAAI,MAAM,IAAI,CAAC,OAAO,EAAE;IACxB,QAAQ,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IACpC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;IAC3D,IAAI;IACJ;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capawesome/capacitor-libsql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Capacitor plugin for libSQL databases.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"url": "https://opencollective.com/capawesome"
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
|
+
"homepage": "https://capawesome.io/plugins/libsql/",
|
|
35
36
|
"keywords": [
|
|
36
37
|
"capacitor",
|
|
37
38
|
"plugin",
|
|
@@ -55,23 +56,23 @@
|
|
|
55
56
|
"prepublishOnly": "npm run build"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
|
-
"@capacitor/android": "
|
|
59
|
-
"@capacitor/cli": "
|
|
60
|
-
"@capacitor/core": "
|
|
61
|
-
"@capacitor/docgen": "0.3.
|
|
62
|
-
"@capacitor/ios": "
|
|
59
|
+
"@capacitor/android": "8.0.0",
|
|
60
|
+
"@capacitor/cli": "8.0.0",
|
|
61
|
+
"@capacitor/core": "8.0.0",
|
|
62
|
+
"@capacitor/docgen": "0.3.1",
|
|
63
|
+
"@capacitor/ios": "8.0.0",
|
|
63
64
|
"@ionic/eslint-config": "0.4.0",
|
|
64
65
|
"@ionic/swiftlint-config": "2.0.0",
|
|
65
66
|
"eslint": "8.57.0",
|
|
66
67
|
"prettier": "3.4.2",
|
|
67
68
|
"prettier-plugin-java": "2.6.7",
|
|
68
|
-
"rimraf": "6.
|
|
69
|
-
"rollup": "4.
|
|
69
|
+
"rimraf": "6.1.2",
|
|
70
|
+
"rollup": "4.53.3",
|
|
70
71
|
"swiftlint": "2.0.0",
|
|
71
|
-
"typescript": "
|
|
72
|
+
"typescript": "5.9.3"
|
|
72
73
|
},
|
|
73
74
|
"peerDependencies": {
|
|
74
|
-
"@capacitor/core": ">=
|
|
75
|
+
"@capacitor/core": ">=8.0.0"
|
|
75
76
|
},
|
|
76
77
|
"swiftlint": "@ionic/swiftlint-config",
|
|
77
78
|
"eslintConfig": {
|