Skip to content

Commit

Permalink
Added error function to plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Porebski committed Oct 1, 2021
1 parent a6c8fa3 commit b6aeac4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,4 +1,8 @@
# Version History

v6.0.1
1. Add missing error function to plugin.

v6.0.0
1. Added RNW>=0.62 WinRT CPP implementation thanks to tsytsarkin (https://github.com/andpor/react-native-sqlite-storage/pull/461)
2. Fix xcode 12 compatibility (https://github.com/andpor/react-native-sqlite-storage/pull/447)
Expand Down
4 changes: 4 additions & 0 deletions lib/sqlite.core.js
Expand Up @@ -99,6 +99,10 @@ plugin.warn = function(...messages) {
console.warn(...messages)
}

plugin.error = function(...messages) {
console.error(...messages)
}

SQLitePlugin = function(openargs, openSuccess, openError) {
var dbname;
if (!(openargs && openargs["name"])) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-native-sqlite-storage",
"version": "6.0.0",
"version": "6.0.1",
"description": "SQLite3 bindings for React Native (Android & iOS)",
"main": "sqlite.js",
"scripts": {
Expand Down

0 comments on commit b6aeac4

Please sign in to comment.