node_modules: update
This commit is contained in:
parent
c4ea5b96e9
commit
7c68f31a28
30 changed files with 673 additions and 856 deletions
24
node_modules/luxon/build/node/luxon.js
generated
vendored
24
node_modules/luxon/build/node/luxon.js
generated
vendored
|
@ -2517,19 +2517,23 @@ function extractIANAZone(match, cursor) {
|
|||
} // ISO duration parsing
|
||||
|
||||
|
||||
const isoDuration = /^P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
||||
const isoDuration = /^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
||||
|
||||
function extractISODuration(match) {
|
||||
const [, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] = match;
|
||||
const [s, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] = match;
|
||||
const hasNegativePrefix = s[0] === "-";
|
||||
|
||||
const maybeNegate = num => num && hasNegativePrefix ? -num : num;
|
||||
|
||||
return [{
|
||||
years: parseInteger(yearStr),
|
||||
months: parseInteger(monthStr),
|
||||
weeks: parseInteger(weekStr),
|
||||
days: parseInteger(dayStr),
|
||||
hours: parseInteger(hourStr),
|
||||
minutes: parseInteger(minuteStr),
|
||||
seconds: parseInteger(secondStr),
|
||||
milliseconds: parseMillis(millisecondsStr)
|
||||
years: maybeNegate(parseInteger(yearStr)),
|
||||
months: maybeNegate(parseInteger(monthStr)),
|
||||
weeks: maybeNegate(parseInteger(weekStr)),
|
||||
days: maybeNegate(parseInteger(dayStr)),
|
||||
hours: maybeNegate(parseInteger(hourStr)),
|
||||
minutes: maybeNegate(parseInteger(minuteStr)),
|
||||
seconds: maybeNegate(parseInteger(secondStr)),
|
||||
milliseconds: maybeNegate(parseMillis(millisecondsStr))
|
||||
}];
|
||||
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
||||
// and not just that we're in -240 *right now*. But since I don't think these are used that often
|
||||
|
|
2
node_modules/luxon/build/node/luxon.js.map
generated
vendored
2
node_modules/luxon/build/node/luxon.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue