@oino-ts/db-bunsqlite 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -131,7 +131,7 @@ class OINODbBunSqlite extends db_1.OINODb {
|
|
|
131
131
|
else if (sqlValue === undefined) {
|
|
132
132
|
return undefined;
|
|
133
133
|
}
|
|
134
|
-
else if (((sqlType == "DATETIME") || (sqlType == "DATE")) && (typeof (sqlValue) == "string")) {
|
|
134
|
+
else if (((sqlType == "DATETIME") || (sqlType == "DATE")) && (typeof (sqlValue) == "string") && (sqlValue != "")) {
|
|
135
135
|
return new Date(sqlValue);
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
@@ -128,7 +128,7 @@ export class OINODbBunSqlite extends OINODb {
|
|
|
128
128
|
else if (sqlValue === undefined) {
|
|
129
129
|
return undefined;
|
|
130
130
|
}
|
|
131
|
-
else if (((sqlType == "DATETIME") || (sqlType == "DATE")) && (typeof (sqlValue) == "string")) {
|
|
131
|
+
else if (((sqlType == "DATETIME") || (sqlType == "DATE")) && (typeof (sqlValue) == "string") && (sqlValue != "")) {
|
|
132
132
|
return new Date(sqlValue);
|
|
133
133
|
}
|
|
134
134
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oino-ts/db-bunsqlite",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "OINO TS package for using Bun Sqlite databases.",
|
|
5
5
|
"author": "Matias Kiviniemi (pragmatta)",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"module": "./dist/esm/index.js",
|
|
21
21
|
"types": "./dist/types/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@oino-ts/db": "^0.5.
|
|
23
|
+
"@oino-ts/db": "^0.5.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^20.12.7",
|
package/src/OINODbBunSqlite.ts
CHANGED
|
@@ -139,7 +139,7 @@ export class OINODbBunSqlite extends OINODb {
|
|
|
139
139
|
} else if (sqlValue === undefined) {
|
|
140
140
|
return undefined
|
|
141
141
|
|
|
142
|
-
} else if (((sqlType == "DATETIME") || (sqlType == "DATE")) && (typeof(sqlValue) == "string")) {
|
|
142
|
+
} else if (((sqlType == "DATETIME") || (sqlType == "DATE")) && (typeof(sqlValue) == "string") && (sqlValue != "")) {
|
|
143
143
|
return new Date(sqlValue)
|
|
144
144
|
|
|
145
145
|
} else {
|