expo-sqlite 13.1.0 → 13.1.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 CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 13.1.1 — 2023-12-19
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 13.1.0 — 2023-12-13
14
18
 
15
19
  ### 🛠 Breaking changes
@@ -4,7 +4,7 @@ apply plugin: 'maven-publish'
4
4
  apply plugin: 'de.undercouch.download'
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '13.1.0'
7
+ version = '13.1.1'
8
8
 
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
10
10
  if (expoModulesCorePlugin.exists()) {
@@ -106,7 +106,7 @@ android {
106
106
  namespace "expo.modules.sqlite"
107
107
  defaultConfig {
108
108
  versionCode 18
109
- versionName "13.1.0"
109
+ versionName "13.1.1"
110
110
 
111
111
  externalNativeBuild {
112
112
  cmake {
@@ -211,8 +211,11 @@ class SQLiteModuleNext : Module() {
211
211
  // expo-modules-core AnyTypeConverter casts JavaScript Number to Kotlin Double,
212
212
  // here to cast as Long if the value is an integer.
213
213
  val normalizedParam =
214
- if (param is Double && param.toDouble() % 1.0 == 0.0) param.toLong()
215
- else param
214
+ if (param is Double && param.toDouble() % 1.0 == 0.0) {
215
+ param.toLong()
216
+ } else {
217
+ param
218
+ }
216
219
  statement.ref.bindStatementParam(index, normalizedParam)
217
220
  }
218
221
  }
@@ -228,12 +231,15 @@ class SQLiteModuleNext : Module() {
228
231
  throw SQLiteErrorException(database.ref.convertSqlLiteErrorToString())
229
232
  }
230
233
  val firstRowValues: SQLiteColumnValues =
231
- if (ret == NativeDatabaseBinding.SQLITE_ROW) statement.ref.getColumnValues()
232
- else arrayListOf()
234
+ if (ret == NativeDatabaseBinding.SQLITE_ROW) {
235
+ statement.ref.getColumnValues()
236
+ } else {
237
+ arrayListOf()
238
+ }
233
239
  return mapOf(
234
240
  "lastInsertRowId" to database.ref.sqlite3_last_insert_rowid().toInt(),
235
241
  "changes" to database.ref.sqlite3_changes(),
236
- "firstRowValues" to firstRowValues,
242
+ "firstRowValues" to firstRowValues
237
243
  )
238
244
  }
239
245
 
@@ -314,7 +320,7 @@ class SQLiteModuleNext : Module() {
314
320
  "databaseFilePath" to databaseFilePath,
315
321
  "tableName" to tableName,
316
322
  "rowId" to rowID,
317
- "typeId" to SQLAction.fromCode(operationType).value,
323
+ "typeId" to SQLAction.fromCode(operationType).value
318
324
  )
319
325
  )
320
326
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-sqlite",
3
- "version": "13.1.0",
3
+ "version": "13.1.1",
4
4
  "description": "Provides access to a database that can be queried through a WebSQL-like API (https://www.w3.org/TR/webdatabase/). The database is persisted across restarts of your app.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -47,5 +47,5 @@
47
47
  "peerDependencies": {
48
48
  "expo": "*"
49
49
  },
50
- "gitHead": "47ac42bc3d05f9f7a930b7eaafad3c1cec3729fd"
50
+ "gitHead": "43f1b4f8a5a9bca649e4e7ca6e4155482a162431"
51
51
  }