10000 Fix non new on constructor · NathanaelA/nativescript-sqlite@84c1483 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jul 7, 2022. It is now read-only.

Commit 84c1483

Browse files
committed
Fix non new on constructor
1 parent 6c4938e commit 84c1483

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ v2.6.1 - Fixed creating :memory: table on Android. - Thanks Lars Hollenbach
3636
v2.6.2 - Doc fixes, version not returning a number when on promise based path, sqlexec eating errors on ios - Thanks Eugine Mirotin & jscti
3737
v2.6.3 - Issue with using w/o constructor fixed
3838
v2.6.4 - Fixes in Blob handling on android, now directly supports byte[] arrays on android.
39+
v2.6.5 - Issue with using w/o "new" on iOS fixed

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-sqlite",
3-
"version": "2.6.4",
3+
"version": "2.6.5 ",
44
"description": "A sqlite NativeScript module for Android and iOS",
55
"main": "sqlite",
66
"nativescript": {

src/sqlite.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function CursorStatement(statement, resultType, valuesType) {
6969
* @constructor
7070
*/
7171
function Database(dbname, options, callback) {
72-
if (!this instanceof Database) { // jshint ignore:line
72+
if (!(this instanceof Database)) { // jshint ignore:line
7373
//noinspection JSValidateTypes
7474
return new Database(dbname, options, callback);
7575
}

0 commit comments

Comments
 (0)
0