Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "luxon", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Immutable date wrapper", | ||
@@ -5,0 +5,0 @@ "author": "Isaac Cambron", |
@@ -230,2 +230,6 @@ import { parseMillis, isUndefined, untruncateYear, signedOffset, hasOwnProperty } from "./util.js"; | ||
}, | ||
timeZoneName: { | ||
long: "ZZZZZ", | ||
short: "ZZZ", | ||
}, | ||
}; | ||
@@ -383,16 +387,8 @@ | ||
const formatOpts = Formatter.macroTokenToFormatOpts(token.val); | ||
const tokens = formatOptsToTokens(formatOpts, locale); | ||
if (!formatOpts) { | ||
if (tokens == null || tokens.includes(undefined)) { | ||
return token; | ||
} | ||
const formatter = Formatter.create(locale, formatOpts); | ||
const parts = formatter.formatDateTimeParts(getDummyDateTime()); | ||
const tokens = parts.map((p) => tokenForPart(p, locale, formatOpts)); | ||
if (tokens.includes(undefined)) { | ||
return token; | ||
} | ||
return tokens; | ||
@@ -436,1 +432,11 @@ } | ||
} | ||
export function formatOptsToTokens(formatOpts, locale) { | ||
if (!formatOpts) { | ||
return null; | ||
} | ||
const formatter = Formatter.create(locale, formatOpts); | ||
const parts = formatter.formatDateTimeParts(getDummyDateTime()); | ||
return parts.map((p) => tokenForPart(p, locale, formatOpts)); | ||
} |
@@ -12,3 +12,3 @@ import DateTime from "./datetime.js"; | ||
const VERSION = "3.0.0"; | ||
const VERSION = "3.0.1"; | ||
@@ -15,0 +15,0 @@ export { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
3883447
41162