@capacitor-community/sqlite
Advanced tools
Comparing version 2.9.13 to 2.9.14
@@ -1,8 +0,19 @@ | ||
# 2.9.13 (2021-02-24) REFACTOR | ||
## 2.9.14 (2021-03-19) REFACTOR | ||
### Chore | ||
- update to @capacitor/core@2.4.7 | ||
### Bug Fixes | ||
- Fix issue#89 Android, iOS | ||
- Fix issue#97 | ||
## 2.9.13 (2021-02-24) REFACTOR | ||
### Bug Fixes | ||
- Fix issue#84 Android | ||
# 2.9.12 (2021-02-15) REFACTOR | ||
## 2.9.12 (2021-02-15) REFACTOR | ||
@@ -13,3 +24,3 @@ ### Bug Fixes | ||
# 2.9.11 (2021-02-15) REFACTOR | ||
## 2.9.11 (2021-02-15) REFACTOR | ||
@@ -20,3 +31,3 @@ ### Added Features | ||
# 2.9.10 (2021-02-14) REFACTOR | ||
## 2.9.10 (2021-02-14) REFACTOR | ||
@@ -23,0 +34,0 @@ ### Added Features |
@@ -343,3 +343,3 @@ import { __awaiter } from "tslib"; | ||
} | ||
const timeEvent = sqlArr[1].split(tableName, 1)[0].trim(); | ||
let timeEvent = sqlArr[1].split(tableName, 1)[0].trim(); | ||
sqlArr = sqlArr[1].split(timeEvent + ' ' + tableName); | ||
@@ -365,2 +365,5 @@ if (sqlArr.length != 2) { | ||
let trigger = {}; | ||
if (timeEvent.toUpperCase().slice(timeEvent.length - 3) === ' ON') { | ||
timeEvent = timeEvent.slice(0, -3); | ||
} | ||
trigger.name = name; | ||
@@ -367,0 +370,0 @@ trigger.logic = logic; |
@@ -157,3 +157,7 @@ import { __awaiter } from "tslib"; | ||
let stmt = `CREATE TRIGGER IF NOT EXISTS `; | ||
stmt += `${trigger.name} ${trigger.timeevent} ON ${tableName} `; | ||
let timeEvent = trigger.timeevent; | ||
if (timeEvent.toUpperCase().slice(timeEvent.length - 3) === ' ON') { | ||
timeEvent = timeEvent.slice(0, -3); | ||
} | ||
stmt += `${trigger.name} ${timeEvent} ON ${tableName} `; | ||
if (trigger.condition) | ||
@@ -160,0 +164,0 @@ stmt += `${trigger.condition} `; |
@@ -354,3 +354,3 @@ import { | ||
} | ||
const timeEvent = sqlArr[1].split(tableName, 1)[0].trim(); | ||
let timeEvent = sqlArr[1].split(tableName, 1)[0].trim(); | ||
sqlArr = sqlArr[1].split(timeEvent + ' ' + tableName); | ||
@@ -386,2 +386,7 @@ if (sqlArr.length != 2) { | ||
let trigger: JsonTrigger = {} as JsonTrigger; | ||
if ( | ||
timeEvent.toUpperCase().slice(timeEvent.length - 3) === ' ON' | ||
) { | ||
timeEvent = timeEvent.slice(0, -3); | ||
} | ||
trigger.name = name; | ||
@@ -388,0 +393,0 @@ trigger.logic = logic; |
@@ -191,3 +191,8 @@ import { UtilsSQLite } from '../utilsSQLite'; | ||
let stmt: string = `CREATE TRIGGER IF NOT EXISTS `; | ||
stmt += `${trigger.name} ${trigger.timeevent} ON ${tableName} `; | ||
let timeEvent: String = trigger.timeevent; | ||
if (timeEvent.toUpperCase().slice(timeEvent.length - 3) === ' ON') { | ||
timeEvent = timeEvent.slice(0, -3); | ||
} | ||
stmt += `${trigger.name} ${timeEvent} ON ${tableName} `; | ||
if (trigger.condition) stmt += `${trigger.condition} `; | ||
@@ -194,0 +199,0 @@ stmt += `${trigger.logic};`; |
{ | ||
"name": "@capacitor-community/sqlite", | ||
"version": "2.9.13", | ||
"version": "2.9.14", | ||
"description": "Capacitor SQLite Plugin", | ||
@@ -27,6 +27,6 @@ "homepage": "https://github.com/capacitor-community/sqlite", | ||
"devDependencies": { | ||
"@capacitor/android": "^2.4.6", | ||
"@capacitor/core": "^2.4.6", | ||
"@capacitor/android": "^2.4.7", | ||
"@capacitor/core": "2.4.7", | ||
"@capacitor/docgen": "0.0.14", | ||
"@capacitor/ios": "^2.4.6", | ||
"@capacitor/ios": "^2.4.7", | ||
"@ionic/prettier-config": "^1.0.1", | ||
@@ -55,3 +55,3 @@ "@ionic/swiftlint-config": "^1.1.2", | ||
"peerDependencies": { | ||
"@capacitor/core": "^2.4.6" | ||
"@capacitor/core": "^2.4.7" | ||
}, | ||
@@ -58,0 +58,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3080654
250
18083