Comparing version 0.0.19 to 0.0.20
@@ -27,5 +27,6 @@ "use strict"; | ||
if (typeFunction && !_metadataBuilderFieldTypes.FieldTypes.validateTypeInFunction(typeFunction)) throw new _exceptionWrongFieldTypeException.WrongFieldTypeException(typeFunction, object.constructor.name, propertyName); | ||
// temporary fix for date type. need better implementation | ||
var type = Reflect.getMetadata('design:type', object, propertyName); | ||
if (type && type.name && !typeFunction) typeFunction = function () { | ||
return type; | ||
if (!typeFunction && type && type.name && type.name.toLowerCase() === 'date') typeFunction = function () { | ||
return 'date'; | ||
}; | ||
@@ -32,0 +33,0 @@ // if type is not given then try to guess it using metadata |
{ | ||
"name": "typeodm", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "ODM for MongoDB used Typescript", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
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
326233
6613