@contrail/types
Advanced tools
Comparing version 2.0.14 to 2.0.15
@@ -16,4 +16,4 @@ import { DateFormatingOptions, NumberFormatingOptions, TypeProperty } from '../type-properties'; | ||
formatCurrencyValue(value: any): string; | ||
formatDate(isoString: string, dateFormatOptions?: DateFormatingOptions): string; | ||
formatDate(isoString: string | null, dateFormatOptions?: DateFormatingOptions): string; | ||
formatBoolean(value: boolean): string; | ||
} |
@@ -113,2 +113,5 @@ "use strict"; | ||
formatDate(isoString, dateFormatOptions = { includeTime: false }) { | ||
if (!isoString) { | ||
return ''; | ||
} | ||
const options = {}; | ||
@@ -115,0 +118,0 @@ return new Intl.DateTimeFormat(this.localizationConfig.locale, options).format(new Date(isoString).getTime()); |
{ | ||
"name": "@contrail/types", | ||
"version": "2.0.14", | ||
"version": "2.0.15", | ||
"description": "Types Utility module", | ||
@@ -16,5 +16,2 @@ "main": "lib/index.js", | ||
"license": "ISC", | ||
"files": [ | ||
"lib/**/*" | ||
], | ||
"devDependencies": { | ||
@@ -21,0 +18,0 @@ "@types/jest": "^23.3.14", |
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
20986
34
484