@simplism/core
Advanced tools
Comparing version 7.0.18 to 7.0.19
@@ -120,3 +120,3 @@ "use strict"; | ||
if (!config.type.some(function (type) { return type === value.constructor; })) { | ||
return { value: value, type: config.type }; | ||
return { value: value, type: config.type.map(function (item) { return item.name; }) }; | ||
} | ||
@@ -123,0 +123,0 @@ } |
@@ -222,3 +222,3 @@ "use strict"; | ||
DateTime.prototype.toString = function () { | ||
return this.toFormatString("yyyy-MM-ddTHH:mm:ss.fffZzzz"); | ||
return this.toFormatString("yyyy-MM-ddTHH:mm:ss.fffzzz"); | ||
}; | ||
@@ -225,0 +225,0 @@ return DateTime; |
{ | ||
"name": "@simplism/core", | ||
"version": "7.0.18", | ||
"version": "7.0.19", | ||
"description": "Simplism Core Package", | ||
@@ -5,0 +5,0 @@ "repository": "github:kslhunter/simplism", |
@@ -155,3 +155,3 @@ import {DateOnly} from "../types/DateOnly"; | ||
if (!config.type.some((type: any) => type === value.constructor)) { | ||
return {value, type: config.type}; | ||
return {value, type: config.type.map((item: Type<any>) => item.name)}; | ||
} | ||
@@ -158,0 +158,0 @@ } |
@@ -238,4 +238,4 @@ import {InvalidArgumentsException} from "../exceptions/InvalidArgumentsException"; | ||
public toString(): string { | ||
return this.toFormatString("yyyy-MM-ddTHH:mm:ss.fffZzzz"); | ||
return this.toFormatString("yyyy-MM-ddTHH:mm:ss.fffzzz"); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
155927