@spinajs/orm
Advanced tools
Comparing version 2.0.296 to 2.0.297
@@ -36,5 +36,5 @@ "use strict"; | ||
if ((pt = Object.getPrototypeOf(pt))) | ||
cs.push(pt.constructor.name || null); | ||
cs.push(pt.name || null); | ||
} while (pt != null); | ||
return cs.filter((x) => x !== 'Function' && x !== 'Object'); | ||
return cs.filter((x) => x !== 'Function' && x !== 'Object' && x !== null); | ||
} | ||
@@ -53,6 +53,3 @@ function extractModelDescriptor(targetOrForward) { | ||
...metadata[c], | ||
Converters: new Map({ | ||
...prev.Converters, | ||
...metadata[c].Converters | ||
}), | ||
Converters: new Map([...(prev.Converters ?? []), ...(metadata[c] ? metadata[c].Converters : [])]), | ||
}; | ||
@@ -59,0 +56,0 @@ }, {}); |
@@ -178,2 +178,4 @@ "use strict"; | ||
this.Container.register(interfaces_js_1.DatetimeValueConverter).asMapValue('__orm_db_value_converters__', luxon_1.DateTime.name); | ||
this.Container.register(interfaces_js_1.BooleanValueConverter).asMapValue('__orm_db_value_converters__', Boolean.name); | ||
this.Container.register(interfaces_js_1.BooleanValueConverter).asMapValue('__orm_db_value_converters__', 'Bool'); | ||
this.Container.register(interfaces_js_1.BooleanValueConverter).asMapValue('__orm_db_value_converters__', Boolean.name.toLowerCase()); | ||
@@ -180,0 +182,0 @@ this.Container.register(interfaces_js_1.BooleanValueConverter).asMapValue('__orm_db_value_converters__', 'bool'); |
@@ -30,5 +30,5 @@ import { SortOrder } from './enums.js'; | ||
if ((pt = Object.getPrototypeOf(pt))) | ||
cs.push(pt.constructor.name || null); | ||
cs.push(pt.name || null); | ||
} while (pt != null); | ||
return cs.filter((x) => x !== 'Function' && x !== 'Object'); | ||
return cs.filter((x) => x !== 'Function' && x !== 'Object' && x !== null); | ||
} | ||
@@ -47,6 +47,3 @@ export function extractModelDescriptor(targetOrForward) { | ||
...metadata[c], | ||
Converters: new Map({ | ||
...prev.Converters, | ||
...metadata[c].Converters | ||
}), | ||
Converters: new Map([...(prev.Converters ?? []), ...(metadata[c] ? metadata[c].Converters : [])]), | ||
}; | ||
@@ -53,0 +50,0 @@ }, {}); |
@@ -172,2 +172,4 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
this.Container.register(DatetimeValueConverter).asMapValue('__orm_db_value_converters__', DateTime.name); | ||
this.Container.register(BooleanValueConverter).asMapValue('__orm_db_value_converters__', Boolean.name); | ||
this.Container.register(BooleanValueConverter).asMapValue('__orm_db_value_converters__', 'Bool'); | ||
this.Container.register(BooleanValueConverter).asMapValue('__orm_db_value_converters__', Boolean.name.toLowerCase()); | ||
@@ -174,0 +176,0 @@ this.Container.register(BooleanValueConverter).asMapValue('__orm_db_value_converters__', 'bool'); |
{ | ||
"name": "@spinajs/orm", | ||
"version": "2.0.296", | ||
"version": "2.0.297", | ||
"description": "framework orm module", | ||
@@ -58,6 +58,6 @@ "main": "lib/cjs/index.js", | ||
"dependencies": { | ||
"@spinajs/configuration-common": "^2.0.296", | ||
"@spinajs/di": "^2.0.296", | ||
"@spinajs/exceptions": "^2.0.296", | ||
"@spinajs/log-common": "^2.0.296", | ||
"@spinajs/configuration-common": "^2.0.297", | ||
"@spinajs/di": "^2.0.297", | ||
"@spinajs/exceptions": "^2.0.297", | ||
"@spinajs/log-common": "^2.0.297", | ||
"glob": "^8.1.0", | ||
@@ -64,0 +64,0 @@ "glob-to-regexp": "^0.4.1", |
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
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
1301536
17524