sql.js 1.11.0 → 1.12.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.
Binary file
Binary file
Binary file
@@ -137790,6 +137790,11 @@ function onModuleReady(SQL) {
137790
137790
  id: data["id"],
137791
137791
  results: db.exec(data["sql"], data["params"], config)
137792
137792
  });
137793
+ case "getRowsModified":
137794
+ return postMessage({
137795
+ id: data["id"],
137796
+ rowsModified: db.getRowsModified()
137797
+ });
137793
137798
  case "each":
137794
137799
  if (db === null) {
137795
137800
  createDb();
@@ -241,6 +241,11 @@ function onModuleReady(SQL) {
241
241
  id: data["id"],
242
242
  results: db.exec(data["sql"], data["params"], config)
243
243
  });
244
+ case "getRowsModified":
245
+ return postMessage({
246
+ id: data["id"],
247
+ rowsModified: db.getRowsModified()
248
+ });
244
249
  case "each":
245
250
  if (db === null) {
246
251
  createDb();
@@ -6911,6 +6911,11 @@ function onModuleReady(SQL) {
6911
6911
  id: data["id"],
6912
6912
  results: db.exec(data["sql"], data["params"], config)
6913
6913
  });
6914
+ case "getRowsModified":
6915
+ return postMessage({
6916
+ id: data["id"],
6917
+ rowsModified: db.getRowsModified()
6918
+ });
6914
6919
  case "each":
6915
6920
  if (db === null) {
6916
6921
  createDb();
@@ -224,6 +224,11 @@ function onModuleReady(SQL) {
224
224
  id: data["id"],
225
225
  results: db.exec(data["sql"], data["params"], config)
226
226
  });
227
+ case "getRowsModified":
228
+ return postMessage({
229
+ id: data["id"],
230
+ rowsModified: db.getRowsModified()
231
+ });
227
232
  case "each":
228
233
  if (db === null) {
229
234
  createDb();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sql.js",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "SQLite library with support for opening and writing databases, prepared statements, and more. This SQLite library is in pure javascript (compiled with emscripten).",
5
5
  "keywords": [
6
6
  "sql",