Skip to content

Commit b6aeac4

Browse files
author
Andrew Porebski
committed
Added error function to plugin.
1 parent a6c8fa3 commit b6aeac4

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Version History
2+
3+
v6.0.1
4+
1. Add missing error function to plugin.
5+
26
v6.0.0
37
1. Added RNW>=0.62 WinRT CPP implementation thanks to tsytsarkin (https://github.com/andpor/react-native-sqlite-storage/pull/461)
48
2. Fix xcode 12 compatibility (https://github.com/andpor/react-native-sqlite-storage/pull/447)

lib/sqlite.core.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ plugin.warn = function(...messages) {
9999
console.warn(...messages)
100100
}
101101

102+
plugin.error = function(...messages) {
103+
console.error(...messages)
104+
}
105+
102106
SQLitePlugin = function(openargs, openSuccess, openError) {
103107
var dbname;
104108
if (!(openargs && openargs["name"])) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-sqlite-storage",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"description": "SQLite3 bindings for React Native (Android & iOS)",
55
"main": "sqlite.js",
66
"scripts": {

0 commit comments

Comments
 (0)