From b6aeac439b9d038bbb9d2e16812d512c38246775 Mon Sep 17 00:00:00 2001 From: Andrew Porebski Date: Fri, 1 Oct 2021 16:16:35 +0200 Subject: [PATCH] Added error function to plugin. --- CHANGELOG.md | 4 ++++ lib/sqlite.core.js | 4 ++++ package.json | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 887690a3..0a9629e9 100644 --- a/CHANGELOG.md +++ b/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) diff --git a/lib/sqlite.core.js b/lib/sqlite.core.js index b15a33c7..9963042a 100644 --- a/lib/sqlite.core.js +++ b/lib/sqlite.core.js @@ -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"])) { diff --git a/package.json b/package.json index aed58848..8c5dc564 100644 --- a/package.json +++ b/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": {