@spinajs/orm-sql
Advanced tools
Comparing version 2.0.286 to 2.0.288
@@ -39,3 +39,3 @@ "use strict"; | ||
} | ||
let dt = value instanceof luxon_1.DateTime ? value : luxon_1.DateTime.fromJSDate(value); | ||
let dt = luxon_1.DateTime.isDateTime(value) ? value : luxon_1.DateTime.fromJSDate(value); | ||
if (column) { | ||
@@ -52,2 +52,5 @@ if (DATE_NUMERICAL_TYPES.includes(column.Type)) { | ||
} | ||
if (luxon_1.DateTime.isDateTime(value)) { | ||
return value; | ||
} | ||
// we do this checks, becose at creating models from data | ||
@@ -54,0 +57,0 @@ // we call hydrators, and hydrators checks for converters. |
@@ -34,3 +34,3 @@ import { DatetimeValueConverter } from '@spinajs/orm'; | ||
} | ||
let dt = value instanceof DateTime ? value : DateTime.fromJSDate(value); | ||
let dt = DateTime.isDateTime(value) ? value : DateTime.fromJSDate(value); | ||
if (column) { | ||
@@ -47,2 +47,5 @@ if (DATE_NUMERICAL_TYPES.includes(column.Type)) { | ||
} | ||
if (DateTime.isDateTime(value)) { | ||
return value; | ||
} | ||
// we do this checks, becose at creating models from data | ||
@@ -49,0 +52,0 @@ // we call hydrators, and hydrators checks for converters. |
{ | ||
"name": "@spinajs/orm-sql", | ||
"version": "2.0.286", | ||
"version": "2.0.288", | ||
"description": "framework orm sql language module", | ||
@@ -55,5 +55,5 @@ | ||
"dependencies": { | ||
"@spinajs/di": "^2.0.286", | ||
"@spinajs/orm": "^2.0.286", | ||
"@spinajs/exceptions": "^2.0.286", | ||
"@spinajs/di": "^2.0.288", | ||
"@spinajs/orm": "^2.0.288", | ||
"@spinajs/exceptions": "^2.0.288", | ||
"luxon": "^3.2.1", | ||
@@ -60,0 +60,0 @@ "typescript-mix": "^3.1.3" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
404975
3626
Updated@spinajs/di@^2.0.288
Updated@spinajs/exceptions@^2.0.288
Updated@spinajs/orm@^2.0.288