schemaglobin
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -39,2 +39,2 @@ /** Things that can be converted to dates. */ | ||
/** Format a date in the browser locale. */ | ||
export declare const formatDate: (date: PossibleDate) => string; | ||
export declare const formatDate: (date: PossibleDate, options?: Intl.DateTimeFormatOptions | undefined) => string; |
@@ -106,2 +106,2 @@ "use strict"; | ||
/** Format a date in the browser locale. */ | ||
exports.formatDate = (date) => exports.makeDate(date).toLocaleString(); | ||
exports.formatDate = (date, options) => new Intl.DateTimeFormat(undefined, options).format(exports.makeDate(date)); |
{ | ||
"name": "schemaglobin", | ||
"description": "Validate user-entered data.", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"repository": "https://github.com/dhoulb/schemaglobin", | ||
@@ -6,0 +6,0 @@ "author": "Dave Houlbrooke <dave@shax.com>", |
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
133157