@capacitor-community/sqlite 5.5.0 → 5.5.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.
@@ -458,9 +458,12 @@ public class ImportFromJson {
458
458
  String formattedRow = null;
459
459
  formattedRow = String.join(", ", rowIndex.stream().map(item -> {
460
460
  if (item instanceof String) {
461
- StringBuilder formattedValue = new StringBuilder();
462
- formattedValue.append('"').append(item).append('"');
463
- return formattedValue.toString();
461
+ String val = (String) item;
462
+ String rVal = val;
463
+ if(val.contains("'")) {
464
+ rVal = val.replace("'","''");
465
+ }
466
+ return "'" + rVal + "'";
464
467
  } else {
465
468
  return item.toString();
466
469
  }
@@ -474,7 +477,12 @@ public class ImportFromJson {
474
477
  }
475
478
  Object item = rowIndex.get(i);
476
479
  if (item instanceof String) {
477
- formattedRow.append('"').append(item).append('"');
480
+ String val = (String) item;
481
+ String rVal = val;
482
+ if(val.contains("'")) {
483
+ rVal = val.replace("'","''");
484
+ }
485
+ formattedRow.append("'").append(rVal).append("'");
478
486
  } else {
479
487
  formattedRow.append(item);
480
488
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-community/sqlite",
3
- "version": "5.5.0",
3
+ "version": "5.5.1-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",
@@ -59,11 +59,11 @@
59
59
  "prepublishOnly": "npm run build && npm run build-electron && npm run docgen"
60
60
  },
61
61
  "devDependencies": {
62
- "@capacitor/android": "^5.5.0",
63
- "@capacitor/cli": "^5.5.0",
64
- "@capacitor/core": "^5.5.0",
62
+ "@capacitor/android": "^5.5.1",
63
+ "@capacitor/cli": "^5.5.1",
64
+ "@capacitor/core": "^5.5.1",
65
65
  "@capacitor/docgen": "^0.0.17",
66
- "@capacitor/ios": "^5.5.0",
66
+ "@capacitor/ios": "^5.5.1",
67
67
  "@ionic/eslint-config": "^0.3.0",
68
68
  "@ionic/prettier-config": "^1.0.1",
69
69
  "@ionic/swiftlint-config": "^1.1.2",