@fedify/redis 2.4.0-dev.1666 → 2.4.0-dev.1727
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/chunks/apiHelpers.cjs +3 -3
- package/dist/node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/chunks/classApi-basic.cjs +23 -23
- package/dist/node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/chunks/internal.cjs +154 -84
- package/dist/node_modules/.pnpm/temporal-utils@1.0.1/node_modules/temporal-utils/dist/utils.cjs +1 -0
- package/package.json +4 -4
|
@@ -134,10 +134,10 @@ exports.PlainYearMonthBranding = PlainYearMonthBranding;
|
|
|
134
134
|
exports.ZonedDateTimeBranding = ZonedDateTimeBranding;
|
|
135
135
|
exports.attachDebugString = attachDebugString;
|
|
136
136
|
exports.dateDerivedGetters = dateDerivedGetters;
|
|
137
|
-
exports.dateFieldGetters
|
|
137
|
+
exports.dateFieldGetters = dateFieldGetters$1;
|
|
138
138
|
exports.defineTemporalClass = defineTemporalClass;
|
|
139
139
|
exports.forbiddenValueOf = forbiddenValueOf;
|
|
140
140
|
exports.invalidRecordType = invalidRecordType;
|
|
141
|
-
exports.monthDayFieldGetters
|
|
141
|
+
exports.monthDayFieldGetters = monthDayFieldGetters$1;
|
|
142
142
|
exports.yearMonthDerivedGetters = yearMonthDerivedGetters;
|
|
143
|
-
exports.yearMonthFieldGetters
|
|
143
|
+
exports.yearMonthFieldGetters = yearMonthFieldGetters$1;
|
|
@@ -10,8 +10,8 @@ function resolveBasicCalendarId(rawCalendarId) {
|
|
|
10
10
|
function resolveBasicCalendarArg(rawCalendarId = require_internal.isoCalendarId) {
|
|
11
11
|
return resolveBasicCalendarId(rawCalendarId);
|
|
12
12
|
}
|
|
13
|
-
const zonedDateTimeSlotsMap =
|
|
14
|
-
const ZonedDateTime =
|
|
13
|
+
const zonedDateTimeSlotsMap = /*@__PURE__*/ new WeakMap();
|
|
14
|
+
const ZonedDateTime = /*@__PURE__*/ require_apiHelpers.defineTemporalClass(require_apiHelpers.ZonedDateTimeBranding, class {
|
|
15
15
|
constructor(epochNanoseconds, timeZoneId, calendar = void 0) {
|
|
16
16
|
const epochNano = require_internal.checkEpochNanoInBounds(require_internal.toBigInt(epochNanoseconds));
|
|
17
17
|
const timeZone = require_internal.queryTimeZone(require_internal.refineTimeZoneId(timeZoneId));
|
|
@@ -124,7 +124,7 @@ const ZonedDateTime = /* @__PURE__ */ require_apiHelpers.defineTemporalClass(req
|
|
|
124
124
|
valueOf() {
|
|
125
125
|
return require_apiHelpers.forbiddenValueOf();
|
|
126
126
|
}
|
|
127
|
-
}, getZonedDateTimeIsoSlots, require_apiHelpers.dateFieldGetters
|
|
127
|
+
}, getZonedDateTimeIsoSlots, require_apiHelpers.dateFieldGetters, require_apiHelpers.dateDerivedGetters, require_internal.timeGetters);
|
|
128
128
|
function createZonedDateTime(slots) {
|
|
129
129
|
return initZonedDateTime(Object.create(ZonedDateTime.prototype), slots);
|
|
130
130
|
}
|
|
@@ -159,8 +159,8 @@ function refineTimeZoneArg(arg) {
|
|
|
159
159
|
}
|
|
160
160
|
return ((arg) => require_internal.resolveTimeZoneId(require_internal.parseTimeZoneId(require_internal.requireString(arg))))(arg);
|
|
161
161
|
}
|
|
162
|
-
const instantSlotsMap =
|
|
163
|
-
const Instant =
|
|
162
|
+
const instantSlotsMap = /*@__PURE__*/ new WeakMap();
|
|
163
|
+
const Instant = /*@__PURE__*/ require_apiHelpers.defineTemporalClass(require_apiHelpers.InstantBranding, class {
|
|
164
164
|
constructor(epochNanoseconds) {
|
|
165
165
|
const epochNano = require_internal.checkEpochNanoInBounds(require_internal.toBigInt(epochNanoseconds));
|
|
166
166
|
initInstant(this, require_internal.createEpochNanoSlots(epochNano));
|
|
@@ -245,8 +245,8 @@ const { toTemporalInstant } = { toTemporalInstant() {
|
|
|
245
245
|
function initInstant(instance, slots) {
|
|
246
246
|
return instantSlotsMap.set(instance, slots), require_apiHelpers.attachDebugString(instance), instance;
|
|
247
247
|
}
|
|
248
|
-
const plainMonthDaySlotsMap =
|
|
249
|
-
const PlainMonthDay =
|
|
248
|
+
const plainMonthDaySlotsMap = /*@__PURE__*/ new WeakMap();
|
|
249
|
+
const PlainMonthDay = /*@__PURE__*/ require_apiHelpers.defineTemporalClass(require_apiHelpers.PlainMonthDayBranding, class {
|
|
250
250
|
constructor(isoMonth, isoDay, calendar = void 0, referenceIsoYear) {
|
|
251
251
|
const isoMonthInt = require_utils.toIntegerWithTrunc(isoMonth);
|
|
252
252
|
const isoDayInt = require_utils.toIntegerWithTrunc(isoDay);
|
|
@@ -287,7 +287,7 @@ const PlainMonthDay = /* @__PURE__ */ require_apiHelpers.defineTemporalClass(req
|
|
|
287
287
|
valueOf() {
|
|
288
288
|
return require_apiHelpers.forbiddenValueOf();
|
|
289
289
|
}
|
|
290
|
-
}, getPlainMonthDaySlots, require_apiHelpers.monthDayFieldGetters
|
|
290
|
+
}, getPlainMonthDaySlots, require_apiHelpers.monthDayFieldGetters);
|
|
291
291
|
function createPlainMonthDay(slots) {
|
|
292
292
|
return initPlainMonthDay(Object.create(PlainMonthDay.prototype), slots);
|
|
293
293
|
}
|
|
@@ -310,8 +310,8 @@ function toPlainMonthDaySlots(arg, options) {
|
|
|
310
310
|
function initPlainMonthDay(instance, slots) {
|
|
311
311
|
return plainMonthDaySlotsMap.set(instance, slots), require_apiHelpers.attachDebugString(instance), instance;
|
|
312
312
|
}
|
|
313
|
-
const plainYearMonthSlotsMap =
|
|
314
|
-
const PlainYearMonth =
|
|
313
|
+
const plainYearMonthSlotsMap = /*@__PURE__*/ new WeakMap();
|
|
314
|
+
const PlainYearMonth = /*@__PURE__*/ require_apiHelpers.defineTemporalClass(require_apiHelpers.PlainYearMonthBranding, class {
|
|
315
315
|
constructor(isoYear, isoMonth, calendar = void 0, referenceIsoDay) {
|
|
316
316
|
const isoYearInt = require_utils.toIntegerWithTrunc(isoYear);
|
|
317
317
|
const isoMonthInt = require_utils.toIntegerWithTrunc(isoMonth);
|
|
@@ -373,7 +373,7 @@ const PlainYearMonth = /* @__PURE__ */ require_apiHelpers.defineTemporalClass(re
|
|
|
373
373
|
valueOf() {
|
|
374
374
|
return require_apiHelpers.forbiddenValueOf();
|
|
375
375
|
}
|
|
376
|
-
}, getPlainYearMonthSlots, require_apiHelpers.yearMonthFieldGetters
|
|
376
|
+
}, getPlainYearMonthSlots, require_apiHelpers.yearMonthFieldGetters, require_apiHelpers.yearMonthDerivedGetters);
|
|
377
377
|
function createPlainYearMonth(slots) {
|
|
378
378
|
return initPlainYearMonth(Object.create(PlainYearMonth.prototype), slots);
|
|
379
379
|
}
|
|
@@ -403,8 +403,8 @@ function getTemporalBrandingAndSlots(obj) {
|
|
|
403
403
|
function validateBag(bag) {
|
|
404
404
|
return (getTemporalBrandingAndSlots(bag) || void 0 !== bag.calendar || void 0 !== bag.timeZone) && require_internal.throwTypeError("Invalid bag"), bag;
|
|
405
405
|
}
|
|
406
|
-
const plainTimeSlotsMap =
|
|
407
|
-
const PlainTime =
|
|
406
|
+
const plainTimeSlotsMap = /*@__PURE__*/ new WeakMap();
|
|
407
|
+
const PlainTime = /*@__PURE__*/ require_apiHelpers.defineTemporalClass(require_apiHelpers.PlainTimeBranding, class {
|
|
408
408
|
constructor(hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0) {
|
|
409
409
|
const fields = require_internal.validateTimeFields(require_internal.mapProps(require_utils.toIntegerWithTrunc, {
|
|
410
410
|
hour,
|
|
@@ -486,8 +486,8 @@ function optionalToPlainTimeFields(timeArg) {
|
|
|
486
486
|
function initPlainTime(instance, slots) {
|
|
487
487
|
return plainTimeSlotsMap.set(instance, slots), require_apiHelpers.attachDebugString(instance), instance;
|
|
488
488
|
}
|
|
489
|
-
const plainDateTimeSlotsMap =
|
|
490
|
-
const PlainDateTime =
|
|
489
|
+
const plainDateTimeSlotsMap = /*@__PURE__*/ new WeakMap();
|
|
490
|
+
const PlainDateTime = /*@__PURE__*/ require_apiHelpers.defineTemporalClass(require_apiHelpers.PlainDateTimeBranding, class {
|
|
491
491
|
constructor(isoYear, isoMonth, isoDay, hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0, calendar = void 0) {
|
|
492
492
|
const fields = require_internal.checkIsoDateTimeInBounds(require_internal.validateIsoDateTimeFields(require_internal.mapProps(require_utils.toIntegerWithTrunc, {
|
|
493
493
|
year: isoYear,
|
|
@@ -572,7 +572,7 @@ const PlainDateTime = /* @__PURE__ */ require_apiHelpers.defineTemporalClass(req
|
|
|
572
572
|
valueOf() {
|
|
573
573
|
return require_apiHelpers.forbiddenValueOf();
|
|
574
574
|
}
|
|
575
|
-
}, getPlainDateTimeSlots, require_apiHelpers.dateFieldGetters
|
|
575
|
+
}, getPlainDateTimeSlots, require_apiHelpers.dateFieldGetters, require_apiHelpers.dateDerivedGetters, require_internal.timeGetters);
|
|
576
576
|
function createPlainDateTime(slots) {
|
|
577
577
|
return initPlainDateTime(Object.create(PlainDateTime.prototype), slots);
|
|
578
578
|
}
|
|
@@ -598,8 +598,8 @@ function toPlainDateTimeSlots(arg, options) {
|
|
|
598
598
|
function initPlainDateTime(instance, slots) {
|
|
599
599
|
return plainDateTimeSlotsMap.set(instance, slots), require_apiHelpers.attachDebugString(instance), instance;
|
|
600
600
|
}
|
|
601
|
-
const plainDateSlotsMap =
|
|
602
|
-
const PlainDate =
|
|
601
|
+
const plainDateSlotsMap = /*@__PURE__*/ new WeakMap();
|
|
602
|
+
const PlainDate = /*@__PURE__*/ require_apiHelpers.defineTemporalClass(require_apiHelpers.PlainDateBranding, class {
|
|
603
603
|
constructor(isoYear, isoMonth, isoDay, calendar = void 0) {
|
|
604
604
|
const fields = require_internal.checkIsoDateInBounds(require_internal.validateIsoDateFields(require_internal.mapProps(require_utils.toIntegerWithTrunc, {
|
|
605
605
|
year: isoYear,
|
|
@@ -676,7 +676,7 @@ const PlainDate = /* @__PURE__ */ require_apiHelpers.defineTemporalClass(require
|
|
|
676
676
|
valueOf() {
|
|
677
677
|
return require_apiHelpers.forbiddenValueOf();
|
|
678
678
|
}
|
|
679
|
-
}, getPlainDateSlots, require_apiHelpers.dateFieldGetters
|
|
679
|
+
}, getPlainDateSlots, require_apiHelpers.dateFieldGetters, require_apiHelpers.dateDerivedGetters);
|
|
680
680
|
function createPlainDate(slots) {
|
|
681
681
|
return initPlainDate(Object.create(PlainDate.prototype), slots);
|
|
682
682
|
}
|
|
@@ -717,8 +717,8 @@ function refineCalendarArg(arg) {
|
|
|
717
717
|
}
|
|
718
718
|
return ((arg) => resolveBasicCalendarId(require_internal.parseCalendarId(require_internal.requireString(arg))))(arg);
|
|
719
719
|
}
|
|
720
|
-
const durationSlotsMap =
|
|
721
|
-
const Duration =
|
|
720
|
+
const durationSlotsMap = /*@__PURE__*/ new WeakMap();
|
|
721
|
+
const Duration = /*@__PURE__*/ require_apiHelpers.defineTemporalClass(require_apiHelpers.DurationBranding, class {
|
|
722
722
|
constructor(years = 0, months = 0, weeks = 0, days = 0, hours = 0, minutes = 0, seconds = 0, milliseconds = 0, microseconds = 0, nanoseconds = 0) {
|
|
723
723
|
const fields = require_internal.validateDurationFields(require_internal.mapProps(require_internal.toStrictInteger, {
|
|
724
724
|
years,
|
|
@@ -811,7 +811,7 @@ function refinePublicRelativeTo(relativeTo) {
|
|
|
811
811
|
function initDuration(instance, slots) {
|
|
812
812
|
return durationSlotsMap.set(instance, slots), require_apiHelpers.attachDebugString(instance), instance;
|
|
813
813
|
}
|
|
814
|
-
const Now =
|
|
814
|
+
const Now = /*@__PURE__*/ Object.defineProperties({}, {
|
|
815
815
|
...require_internal.createStringTagDescriptors("Temporal.Now"),
|
|
816
816
|
...require_internal.createPropDescriptors({
|
|
817
817
|
timeZoneId() {
|
|
@@ -835,7 +835,7 @@ const Now = /* @__PURE__ */ Object.defineProperties({}, {
|
|
|
835
835
|
}
|
|
836
836
|
})
|
|
837
837
|
});
|
|
838
|
-
const Temporal =
|
|
838
|
+
const Temporal = /*@__PURE__*/ Object.defineProperties({}, {
|
|
839
839
|
...require_internal.createStringTagDescriptors("Temporal"),
|
|
840
840
|
...require_internal.createPropDescriptors({
|
|
841
841
|
PlainYearMonth,
|
|
@@ -14,6 +14,7 @@ const invalidLeapMonth = "Invalid leap month";
|
|
|
14
14
|
const invalidCalendar = (calendarId) => require_errorMessages.invalidEntity("Calendar", calendarId);
|
|
15
15
|
const exoticCalendarRequired = (calendarId, remedy) => `Unknown calendar ${calendarId}; might need ${remedy}`;
|
|
16
16
|
const invalidTimeZone = (calendarId) => require_errorMessages.invalidEntity("TimeZone", calendarId);
|
|
17
|
+
const outOfBoundsDate = "Out-of-bounds date";
|
|
17
18
|
const failedParse = (s) => `Cannot parse: ${s}`;
|
|
18
19
|
const invalidSubstring = (substring) => `Invalid substring: ${substring}`;
|
|
19
20
|
const constrainToRange = require_utils.constrainToRange;
|
|
@@ -105,7 +106,7 @@ function parseInt0(s) {
|
|
|
105
106
|
function padNumber(digits, num) {
|
|
106
107
|
return String(num).padStart(digits, "0");
|
|
107
108
|
}
|
|
108
|
-
const padNumber2 =
|
|
109
|
+
const padNumber2 = /*@__PURE__*/ bindArgs(padNumber, 2);
|
|
109
110
|
function compareNumbers(a, b) {
|
|
110
111
|
return Math.sign(a - b);
|
|
111
112
|
}
|
|
@@ -174,7 +175,7 @@ const unitNameMap = {
|
|
|
174
175
|
month: 8,
|
|
175
176
|
year: 9
|
|
176
177
|
};
|
|
177
|
-
const unitNamesAsc =
|
|
178
|
+
const unitNamesAsc = /*@__PURE__*/ Object.keys(unitNameMap);
|
|
178
179
|
const nanoInMicro = require_utils.nanoInMicro;
|
|
179
180
|
const nanoInMilli = require_utils.nanoInMilli;
|
|
180
181
|
const nanoInSec = require_utils.nanoInSec;
|
|
@@ -190,19 +191,19 @@ const unitNanoMap = [
|
|
|
190
191
|
nanoInHour,
|
|
191
192
|
nanoInUtcDay
|
|
192
193
|
];
|
|
193
|
-
const bigNanoInMicro =
|
|
194
|
-
const bigNanoInMilli =
|
|
195
|
-
const bigNanoInSec =
|
|
196
|
-
const bigNanoInMinute =
|
|
197
|
-
const bigNanoInHour =
|
|
198
|
-
const bigNanoInUtcDay =
|
|
194
|
+
const bigNanoInMicro = /*@__PURE__*/ BigInt(nanoInMicro);
|
|
195
|
+
const bigNanoInMilli = /*@__PURE__*/ BigInt(nanoInMilli);
|
|
196
|
+
const bigNanoInSec = /*@__PURE__*/ BigInt(nanoInSec);
|
|
197
|
+
const bigNanoInMinute = /*@__PURE__*/ BigInt(nanoInMinute);
|
|
198
|
+
const bigNanoInHour = /*@__PURE__*/ BigInt(nanoInHour);
|
|
199
|
+
const bigNanoInUtcDay = /*@__PURE__*/ BigInt(nanoInUtcDay);
|
|
199
200
|
function divideBigNanoToExactNumber(bigNano, divisorNano) {
|
|
200
201
|
const days = Number(bigNano / bigNanoInUtcDay);
|
|
201
202
|
const timeNano = Number(bigNano % bigNanoInUtcDay);
|
|
202
203
|
return days * (nanoInUtcDay / divisorNano) + (Math.trunc(timeNano / divisorNano) + timeNano % divisorNano / divisorNano);
|
|
203
204
|
}
|
|
204
|
-
const timeFieldNamesAsc =
|
|
205
|
-
const timeGetters =
|
|
205
|
+
const timeFieldNamesAsc = /*@__PURE__*/ unitNamesAsc.slice(0, 6);
|
|
206
|
+
const timeGetters = /*@__PURE__*/ createPropGetters(timeFieldNamesAsc);
|
|
206
207
|
const yearFieldNamesAsc = ["year"];
|
|
207
208
|
const dayFieldNamesAsc = ["day"];
|
|
208
209
|
const calendarDateFieldNamesAsc = [
|
|
@@ -224,24 +225,24 @@ const monthDayFieldNames = [
|
|
|
224
225
|
"month",
|
|
225
226
|
"monthCode"
|
|
226
227
|
];
|
|
227
|
-
const timeFieldNamesAlpha =
|
|
228
|
-
const yearFieldNamesWithEraAlpha =
|
|
229
|
-
const yearMonthFieldNamesAlpha =
|
|
230
|
-
const yearMonthFieldNamesWithEraAlpha =
|
|
231
|
-
const yearMonthCodeFieldNamesAlpha =
|
|
232
|
-
const yearMonthCodeFieldNamesWithEraAlpha =
|
|
233
|
-
const monthCodeDayFieldNamesAlpha =
|
|
234
|
-
const dateFieldNamesAlpha =
|
|
235
|
-
const dateFieldNamesWithEraAlpha =
|
|
236
|
-
const dateTimeFieldNamesAlpha =
|
|
237
|
-
const dateTimeFieldNamesWithEraAlpha =
|
|
238
|
-
const dateTimeAndOffsetFieldNamesAlpha =
|
|
239
|
-
const dateTimeAndOffsetFieldNamesWithEraAlpha =
|
|
240
|
-
const dateTimeAndZoneFieldNamesAlpha =
|
|
241
|
-
const dateTimeAndZoneFieldNamesWithEraAlpha =
|
|
242
|
-
const yearMonthCodeDayFieldNamesAlpha =
|
|
243
|
-
const yearMonthCodeDayFieldNamesWithEraAlpha =
|
|
244
|
-
const timeFieldDefaults =
|
|
228
|
+
const timeFieldNamesAlpha = /*@__PURE__*/ sortStrings(timeFieldNamesAsc);
|
|
229
|
+
const yearFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(eraYearFieldNames, yearFieldNamesAsc);
|
|
230
|
+
const yearMonthFieldNamesAlpha = /*@__PURE__*/ sortStrings(monthFieldNames, yearFieldNamesAsc);
|
|
231
|
+
const yearMonthFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(eraYearFieldNames, yearMonthFieldNamesAlpha);
|
|
232
|
+
const yearMonthCodeFieldNamesAlpha = /*@__PURE__*/ sortStrings(["monthCode"], yearFieldNamesAsc);
|
|
233
|
+
const yearMonthCodeFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(eraYearFieldNames, yearMonthCodeFieldNamesAlpha);
|
|
234
|
+
const monthCodeDayFieldNamesAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, ["monthCode"]);
|
|
235
|
+
const dateFieldNamesAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, yearMonthFieldNamesAlpha);
|
|
236
|
+
const dateFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, eraYearFieldNames, yearMonthFieldNamesAlpha);
|
|
237
|
+
const dateTimeFieldNamesAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc);
|
|
238
|
+
const dateTimeFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc);
|
|
239
|
+
const dateTimeAndOffsetFieldNamesAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc, offsetFieldNames);
|
|
240
|
+
const dateTimeAndOffsetFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc, offsetFieldNames);
|
|
241
|
+
const dateTimeAndZoneFieldNamesAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc, offsetFieldNames, timeZoneFieldNames);
|
|
242
|
+
const dateTimeAndZoneFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc, offsetFieldNames, timeZoneFieldNames);
|
|
243
|
+
const yearMonthCodeDayFieldNamesAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, yearMonthCodeFieldNamesAlpha);
|
|
244
|
+
const yearMonthCodeDayFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, eraYearFieldNames, yearMonthCodeFieldNamesAlpha);
|
|
245
|
+
const timeFieldDefaults = /*@__PURE__*/ zipPropsConst(timeFieldNamesAsc, 0);
|
|
245
246
|
function validateTimeFields(timeFields) {
|
|
246
247
|
return constrainTimeFields(timeFields, 1), timeFields;
|
|
247
248
|
}
|
|
@@ -471,20 +472,20 @@ function computeCalendarWeekOfYear(calendar, isoDate) {
|
|
|
471
472
|
function computeCalendarYearOfWeek(calendar, isoDate) {
|
|
472
473
|
return calendar === void 0 ? computeIsoWeekFields(isoDate).yearOfWeek : void 0;
|
|
473
474
|
}
|
|
474
|
-
const durationFieldNamesAsc =
|
|
475
|
-
const durationGetters =
|
|
476
|
-
const durationFieldNamesAlpha =
|
|
477
|
-
const durationTimeFieldNamesAsc =
|
|
478
|
-
const durationDateFieldNamesAsc =
|
|
479
|
-
const durationCalendarFieldNamesAsc =
|
|
480
|
-
const durationFieldIndexes =
|
|
481
|
-
const durationFieldDefaults =
|
|
482
|
-
const durationTimeFieldDefaults =
|
|
483
|
-
const clearDurationFields =
|
|
475
|
+
const durationFieldNamesAsc = /*@__PURE__*/ unitNamesAsc.map((unitName) => unitName + "s");
|
|
476
|
+
const durationGetters = /*@__PURE__*/ createPropGetters(durationFieldNamesAsc);
|
|
477
|
+
const durationFieldNamesAlpha = /*@__PURE__*/ sortStrings(durationFieldNamesAsc);
|
|
478
|
+
const durationTimeFieldNamesAsc = /*@__PURE__*/ durationFieldNamesAsc.slice(0, 6);
|
|
479
|
+
const durationDateFieldNamesAsc = /*@__PURE__*/ durationFieldNamesAsc.slice(6);
|
|
480
|
+
const durationCalendarFieldNamesAsc = /*@__PURE__*/ durationDateFieldNamesAsc.slice(1);
|
|
481
|
+
const durationFieldIndexes = /*@__PURE__*/ durationFieldNamesAsc.reduce((indexes, fieldName, i) => (indexes[fieldName] = i, indexes), {});
|
|
482
|
+
const durationFieldDefaults = /*@__PURE__*/ zipPropsConst(durationFieldNamesAsc, 0);
|
|
483
|
+
const durationTimeFieldDefaults = /*@__PURE__*/ zipPropsConst(durationTimeFieldNamesAsc, 0);
|
|
484
|
+
const clearDurationFields = /*@__PURE__*/ bindArgs(zeroOutProps, durationFieldNamesAsc);
|
|
484
485
|
function requirePropDefined(optionName, optionVal) {
|
|
485
486
|
return optionVal ?? throwRangeError(missingField(optionName)), optionVal;
|
|
486
487
|
}
|
|
487
|
-
const requireString =
|
|
488
|
+
const requireString = /*@__PURE__*/ bindArgs(requireType, "string");
|
|
488
489
|
function requireType(typeName, arg, entityName = typeName) {
|
|
489
490
|
return typeof arg !== typeName && throwTypeError(invalidEntity(entityName, arg)), arg;
|
|
490
491
|
}
|
|
@@ -596,17 +597,17 @@ function coerceChoiceOption(optionName, enumNameMap, options, defaultChoice = 0)
|
|
|
596
597
|
const enumNum = enumNameMap[enumStr];
|
|
597
598
|
return void 0 === enumNum && throwRangeError(invalidChoice(optionName, enumStr, enumNameMap)), enumNum;
|
|
598
599
|
}
|
|
599
|
-
const coerceSmallestUnit =
|
|
600
|
-
const coerceLargestUnit =
|
|
601
|
-
const coerceTotalUnit =
|
|
602
|
-
const coerceOverflow =
|
|
603
|
-
const coerceEpochDisambig =
|
|
604
|
-
const coerceOffsetDisambig =
|
|
605
|
-
const coerceCalendarDisplay =
|
|
606
|
-
const coerceTimeZoneDisplay =
|
|
607
|
-
const coerceOffsetDisplay =
|
|
608
|
-
const coerceRoundingMode =
|
|
609
|
-
const coerceDirection =
|
|
600
|
+
const coerceSmallestUnit = /*@__PURE__*/ bindArgs(coerceUnitOption, smallestUnitStr);
|
|
601
|
+
const coerceLargestUnit = /*@__PURE__*/ bindArgs(coerceUnitOption, "largestUnit");
|
|
602
|
+
const coerceTotalUnit = /*@__PURE__*/ bindArgs(coerceUnitOption, "unit");
|
|
603
|
+
const coerceOverflow = /*@__PURE__*/ bindArgs(coerceChoiceOption, "overflow", overflowMap);
|
|
604
|
+
const coerceEpochDisambig = /*@__PURE__*/ bindArgs(coerceChoiceOption, "disambiguation", epochDisambigMap);
|
|
605
|
+
const coerceOffsetDisambig = /*@__PURE__*/ bindArgs(coerceChoiceOption, "offset", offsetDisambigMap);
|
|
606
|
+
const coerceCalendarDisplay = /*@__PURE__*/ bindArgs(coerceChoiceOption, "calendarName", calendarDisplayMap);
|
|
607
|
+
const coerceTimeZoneDisplay = /*@__PURE__*/ bindArgs(coerceChoiceOption, "timeZoneName", timeZoneDisplayMap);
|
|
608
|
+
const coerceOffsetDisplay = /*@__PURE__*/ bindArgs(coerceChoiceOption, "offset", offsetDisplayMap);
|
|
609
|
+
const coerceRoundingMode = /*@__PURE__*/ bindArgs(coerceChoiceOption, "roundingMode", roundingModeMap);
|
|
610
|
+
const coerceDirection = /*@__PURE__*/ bindArgs(coerceChoiceOption, "direction", directionMap);
|
|
610
611
|
function validateRoundingInc(roundingInc, smallestUnit, allowManyLargeUnits, solarMode) {
|
|
611
612
|
const upUnitNano = solarMode ? nanoInUtcDay : unitNanoMap[smallestUnit + 1];
|
|
612
613
|
if (upUnitNano) {
|
|
@@ -660,8 +661,8 @@ function refineZonedFieldOptions(options, defaultOffsetDisambig = 0) {
|
|
|
660
661
|
epochDisambig
|
|
661
662
|
];
|
|
662
663
|
}
|
|
663
|
-
const epochNanoMax =
|
|
664
|
-
const epochNanoMin =
|
|
664
|
+
const epochNanoMax = /*@__PURE__*/ BigInt(1e8) * bigNanoInUtcDay;
|
|
665
|
+
const epochNanoMin = /*@__PURE__*/ BigInt(-1e8) * bigNanoInUtcDay;
|
|
665
666
|
const plainDateEpochNanoMin = epochNanoMin - bigNanoInUtcDay;
|
|
666
667
|
const isoYearMonthIndexMin = -3261848;
|
|
667
668
|
function checkIsoYearMonthInBounds(isoDate) {
|
|
@@ -932,11 +933,12 @@ function nudgeRelativeDuration(sign, durationFields, endEpochNano, _largestUnit,
|
|
|
932
933
|
}
|
|
933
934
|
function getTimeZoneTransitionEpochNanoseconds(slots, options) {
|
|
934
935
|
return slots.timeZone.U(slots.epochNanoseconds, ((options) => {
|
|
935
|
-
const
|
|
936
|
+
const normalizedOptions = normalizeOptionsOrString(options, "direction");
|
|
937
|
+
const res = coerceDirection(normalizedOptions, 0);
|
|
936
938
|
return res || throwRangeError(invalidEntity("direction", res)), res;
|
|
937
939
|
})(options));
|
|
938
940
|
}
|
|
939
|
-
const zonedEpochSlotsToIso =
|
|
941
|
+
const zonedEpochSlotsToIso = /*@__PURE__*/ memoize(_zonedEpochSlotsToIso, WeakMap);
|
|
940
942
|
function _zonedEpochSlotsToIso(slots) {
|
|
941
943
|
const { epochNanoseconds, timeZone } = slots;
|
|
942
944
|
const offsetNanoseconds = timeZone.C(epochNanoseconds);
|
|
@@ -1502,7 +1504,7 @@ function resolveTimeFields(fields, overflow) {
|
|
|
1502
1504
|
...fields
|
|
1503
1505
|
}), overflow);
|
|
1504
1506
|
}
|
|
1505
|
-
const offsetRegExp =
|
|
1507
|
+
const offsetRegExp = /*@__PURE__*/ createRegExp("([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?");
|
|
1506
1508
|
function parseOffsetNano(s) {
|
|
1507
1509
|
const offsetNano = parseOffsetNanoMaybe(s);
|
|
1508
1510
|
return void 0 === offsetNano && throwRangeError(failedParse(s)), offsetNano;
|
|
@@ -1537,13 +1539,13 @@ const dateFieldRefiners = {
|
|
|
1537
1539
|
},
|
|
1538
1540
|
day: require_utils.toPositiveIntegerWithTruncation
|
|
1539
1541
|
};
|
|
1540
|
-
const timeFieldRefiners =
|
|
1541
|
-
const durationFieldRefiners =
|
|
1542
|
+
const timeFieldRefiners = /*@__PURE__*/ zipPropsConst(timeFieldNamesAsc, require_utils.toIntegerWithTrunc);
|
|
1543
|
+
const durationFieldRefiners = /*@__PURE__*/ zipPropsConst(durationFieldNamesAsc, toStrictInteger);
|
|
1542
1544
|
const offsetFieldRefiners = { offset(offsetString) {
|
|
1543
1545
|
return parseOffsetNano(toStringViaPrimitive(offsetString));
|
|
1544
1546
|
} };
|
|
1545
|
-
const dateTimeFieldRefiners =
|
|
1546
|
-
const zonedDateTimeFieldRefiners =
|
|
1547
|
+
const dateTimeFieldRefiners = /*@__PURE__*/ Object.assign({}, dateFieldRefiners, timeFieldRefiners);
|
|
1548
|
+
const zonedDateTimeFieldRefiners = /*@__PURE__*/ Object.assign({}, dateTimeFieldRefiners, offsetFieldRefiners);
|
|
1547
1549
|
function readAndRefineBagFields(bag, validFieldNames, fieldRefiners, requiredFieldNames, disallowEmpty = !requiredFieldNames) {
|
|
1548
1550
|
const res = {};
|
|
1549
1551
|
let anyMatching = 0;
|
|
@@ -1646,7 +1648,9 @@ const timeZonePeriodDaysByName = {
|
|
|
1646
1648
|
const minPossibleTransitionSec = -388152e4;
|
|
1647
1649
|
function refineTimeDisplayTuple(options, maxSmallestUnit = 4) {
|
|
1648
1650
|
const subsecDigits = coerceFractionalSecondDigits(options);
|
|
1649
|
-
|
|
1651
|
+
const roundingMode = coerceRoundingMode(options, 4);
|
|
1652
|
+
const smallestUnit = coerceSmallestUnit(options);
|
|
1653
|
+
return [roundingMode, ...resolveSmallestUnitAndSubsecDigits(validateUnitRange(smallestUnitStr, smallestUnit, 0, maxSmallestUnit), subsecDigits)];
|
|
1650
1654
|
}
|
|
1651
1655
|
function refineDateDisplayOptions(options) {
|
|
1652
1656
|
return coerceCalendarDisplay(require_utils.normalizeOptions(options));
|
|
@@ -1821,15 +1825,17 @@ function resolveTimeZoneRecord(rawId) {
|
|
|
1821
1825
|
kind: "fixed",
|
|
1822
1826
|
...offsetRecord
|
|
1823
1827
|
};
|
|
1824
|
-
|
|
1828
|
+
const normId = "UTC" === upperRawId ? "UTC" : ((rawId) => (badCharactersRegExp.test(rawId) && throwRangeError(invalidTimeZone(rawId)), icuRegExp.test(rawId) && throwRangeError("Forbidden ICU TimeZone"), rawId.toLowerCase().split("/").map((part, partI) => (part.length <= 3 || /\d/.test(part)) && !/etc|yap/.test(part) ? part.toUpperCase() : part.replace(/baja|dumont|[a-z]+/g, (a, i) => a.length <= 2 && !partI || "in" === a || "chat" === a ? a.toUpperCase() : a.length > 2 || !i ? capitalize(a).replace(/island|noronha|murdo|rivadavia|urville/, capitalize) : a)).join("/")))(rawId);
|
|
1829
|
+
return queryNamedTimeZoneRecord(normId);
|
|
1825
1830
|
}
|
|
1826
|
-
const queryNamedTimeZoneRecord =
|
|
1831
|
+
const queryNamedTimeZoneRecord = /*@__PURE__*/ memoize((normId) => {
|
|
1827
1832
|
if ("UTC" === normId) return {
|
|
1828
1833
|
kind: "utc",
|
|
1829
1834
|
id: normId,
|
|
1830
1835
|
o: normId
|
|
1831
1836
|
};
|
|
1832
|
-
const
|
|
1837
|
+
const upperNormId = normId.toUpperCase();
|
|
1838
|
+
const format = queryTimeZoneIntlFormat(upperNormId);
|
|
1833
1839
|
return {
|
|
1834
1840
|
kind: "named",
|
|
1835
1841
|
id: normId,
|
|
@@ -1837,7 +1843,7 @@ const queryNamedTimeZoneRecord = /* @__PURE__ */ memoize((normId) => {
|
|
|
1837
1843
|
o: format.resolvedOptions().timeZone
|
|
1838
1844
|
};
|
|
1839
1845
|
});
|
|
1840
|
-
const queryTimeZoneIntlFormat =
|
|
1846
|
+
const queryTimeZoneIntlFormat = /*@__PURE__*/ memoize((upperNormId) => new RawDateTimeFormat("en-u-hc-h23", {
|
|
1841
1847
|
calendar: "iso8601",
|
|
1842
1848
|
timeZone: upperNormId,
|
|
1843
1849
|
era: "short",
|
|
@@ -1852,7 +1858,7 @@ function queryTimeZone(rawTimeZoneId) {
|
|
|
1852
1858
|
const record = resolveTimeZoneRecord(rawTimeZoneId);
|
|
1853
1859
|
return queryTimeZoneRecord(record.id, record);
|
|
1854
1860
|
}
|
|
1855
|
-
const queryTimeZoneRecord =
|
|
1861
|
+
const queryTimeZoneRecord = /*@__PURE__*/ memoize((normTimeZoneId, record) => "named" === record.kind ? new IntlTimeZone(normTimeZoneId, record.o, record.format) : new FixedTimeZone(normTimeZoneId, record.o, "fixed" === record.kind ? record._ : 0));
|
|
1856
1862
|
var FixedTimeZone = class {
|
|
1857
1863
|
constructor(id, compareKey, offsetNano) {
|
|
1858
1864
|
this.id = id, this.o = compareKey, this._ = offsetNano;
|
|
@@ -1934,7 +1940,8 @@ var IntlTimeZone = class {
|
|
|
1934
1940
|
return void 0 !== intlParts.era && "bce" === normalizeEraName(intlParts.era) ? 1 - year : year;
|
|
1935
1941
|
})(intlParts), parseInt(intlParts.month), parseInt(intlParts.day)) + 3600 * parseInt(intlParts.hour) + 60 * parseInt(intlParts.minute) + parseInt(intlParts.second) - epochSec;
|
|
1936
1942
|
})(format), ((timeZoneId) => {
|
|
1937
|
-
|
|
1943
|
+
const timeZoneName = timeZoneId.split("/").pop();
|
|
1944
|
+
return timeZonePeriodDaysByName[timeZoneName] || 60;
|
|
1938
1945
|
})(id));
|
|
1939
1946
|
}
|
|
1940
1947
|
C(epochNano) {
|
|
@@ -2158,12 +2165,12 @@ function offsetRegExpStr(separatorIndex) {
|
|
|
2158
2165
|
return "([+-])" + timeRegExpStr(separatorIndex);
|
|
2159
2166
|
}
|
|
2160
2167
|
const dateTimeRegExpStr = "(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]" + timeRegExpStr(8) + "(Z|" + offsetRegExpStr(15) + ")?)?";
|
|
2161
|
-
const yearMonthRegExp =
|
|
2162
|
-
const monthDayRegExp =
|
|
2163
|
-
const dateTimeRegExp =
|
|
2164
|
-
const timeRegExp =
|
|
2165
|
-
const annotationRegExp =
|
|
2166
|
-
const durationRegExp =
|
|
2168
|
+
const yearMonthRegExp = /*@__PURE__*/ createRegExp("(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})");
|
|
2169
|
+
const monthDayRegExp = /*@__PURE__*/ createRegExp("(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})");
|
|
2170
|
+
const dateTimeRegExp = /*@__PURE__*/ createRegExp(dateTimeRegExpStr + "((?:\\[(!?)([^\\]]*)\\]){0,9})");
|
|
2171
|
+
const timeRegExp = /*@__PURE__*/ createRegExp("T?" + timeRegExpStr(2) + `(${offsetRegExpStr(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`);
|
|
2172
|
+
const annotationRegExp = /*@__PURE__*/ new RegExp("\\[(!?)([^\\]]*)\\]", "g");
|
|
2173
|
+
const durationRegExp = /*@__PURE__*/ createRegExp("([+-])?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)(?:[.,](\\d{1,9}))?H)?(?:(\\d+)(?:[.,](\\d{1,9}))?M)?(?:(\\d+)(?:[.,](\\d{1,9}))?S)?)?");
|
|
2167
2174
|
function parseDateTimeLike(s) {
|
|
2168
2175
|
const parts = dateTimeRegExp.exec(s);
|
|
2169
2176
|
return parts ? ((parts) => {
|
|
@@ -2441,8 +2448,8 @@ const timeDefaultShapeFields = {
|
|
|
2441
2448
|
minute: "numeric",
|
|
2442
2449
|
second: "numeric"
|
|
2443
2450
|
};
|
|
2444
|
-
const dateTimeDefaultShapeFields =
|
|
2445
|
-
const zonedDateTimeDefaultShapeFields =
|
|
2451
|
+
const dateTimeDefaultShapeFields = /*@__PURE__*/ Object.assign({}, dateDefaultShapeFields, timeDefaultShapeFields);
|
|
2452
|
+
const zonedDateTimeDefaultShapeFields = /*@__PURE__*/ Object.assign({}, dateTimeDefaultShapeFields, { timeZoneName: "short" });
|
|
2446
2453
|
const yearMonthDefaultShapeFields = {
|
|
2447
2454
|
year: "numeric",
|
|
2448
2455
|
month: "numeric"
|
|
@@ -2466,15 +2473,15 @@ const timeShapeFieldNames = [
|
|
|
2466
2473
|
"fractionalSecondDigits",
|
|
2467
2474
|
"timeStyle"
|
|
2468
2475
|
];
|
|
2469
|
-
const dateTimeShapeFieldNames =
|
|
2470
|
-
const yearMonthIgnoredFieldNames =
|
|
2471
|
-
const monthDayIgnoredFieldNames =
|
|
2472
|
-
const transformInstantOptions =
|
|
2473
|
-
const transformZonedOptions =
|
|
2474
|
-
const transformDateTimeOptions =
|
|
2475
|
-
const transformDateOptions =
|
|
2476
|
-
const transformTimeOptions =
|
|
2477
|
-
const transformYearMonthOptions =
|
|
2476
|
+
const dateTimeShapeFieldNames = /*@__PURE__*/ dateShapeFieldNames.concat(timeShapeFieldNames);
|
|
2477
|
+
const yearMonthIgnoredFieldNames = /*@__PURE__*/ ["weekday", "day"].concat(timeShapeFieldNames);
|
|
2478
|
+
const monthDayIgnoredFieldNames = /*@__PURE__*/ ["weekday", "year"].concat(timeShapeFieldNames);
|
|
2479
|
+
const transformInstantOptions = /*@__PURE__*/ createOptionsTransformer(dateTimeShapeFieldNames, [], [], dateTimeDefaultShapeFields);
|
|
2480
|
+
const transformZonedOptions = /*@__PURE__*/ createOptionsTransformer(dateTimeShapeFieldNames, [], [], zonedDateTimeDefaultShapeFields);
|
|
2481
|
+
const transformDateTimeOptions = /*@__PURE__*/ createOptionsTransformer(dateTimeShapeFieldNames, [], ["timeZoneName"], dateTimeDefaultShapeFields);
|
|
2482
|
+
const transformDateOptions = /*@__PURE__*/ createOptionsTransformer(dateShapeFieldNames, timeShapeFieldNames, ["timeZoneName"], dateDefaultShapeFields);
|
|
2483
|
+
const transformTimeOptions = /*@__PURE__*/ createOptionsTransformer(timeShapeFieldNames, dateShapeFieldNames, ["timeZoneName", "era"], timeDefaultShapeFields);
|
|
2484
|
+
const transformYearMonthOptions = /*@__PURE__*/ createOptionsTransformer([
|
|
2478
2485
|
"year",
|
|
2479
2486
|
"month",
|
|
2480
2487
|
"dateStyle"
|
|
@@ -2496,7 +2503,7 @@ const transformYearMonthOptions = /* @__PURE__ */ createOptionsTransformer([
|
|
|
2496
2503
|
month: "numeric"
|
|
2497
2504
|
}
|
|
2498
2505
|
});
|
|
2499
|
-
const transformMonthDayOptions =
|
|
2506
|
+
const transformMonthDayOptions = /*@__PURE__*/ createOptionsTransformer([
|
|
2500
2507
|
"month",
|
|
2501
2508
|
"day",
|
|
2502
2509
|
"dateStyle"
|
|
@@ -2540,20 +2547,33 @@ function getCurrentTimeZoneId() {
|
|
|
2540
2547
|
//#endregion
|
|
2541
2548
|
exports.RawDateTimeFormat = RawDateTimeFormat;
|
|
2542
2549
|
exports.absDuration = absDuration;
|
|
2550
|
+
exports.addDateMonths = addDateMonths;
|
|
2543
2551
|
exports.addDurations = addDurations;
|
|
2552
|
+
exports.addIsoMonths = addIsoMonths;
|
|
2544
2553
|
exports.applyPlainFormatTimeZone = applyPlainFormatTimeZone;
|
|
2545
2554
|
exports.applyZonedFormatTimeZone = applyZonedFormatTimeZone;
|
|
2555
|
+
exports.bigNanoInHour = bigNanoInHour;
|
|
2556
|
+
exports.bigNanoInMicro = bigNanoInMicro;
|
|
2546
2557
|
exports.bigNanoInMilli = bigNanoInMilli;
|
|
2558
|
+
exports.bigNanoInMinute = bigNanoInMinute;
|
|
2559
|
+
exports.bigNanoInSec = bigNanoInSec;
|
|
2560
|
+
exports.bigNanoInUtcDay = bigNanoInUtcDay;
|
|
2561
|
+
exports.bindArgs = bindArgs;
|
|
2547
2562
|
exports.checkEpochNanoInBounds = checkEpochNanoInBounds;
|
|
2548
2563
|
exports.checkIsoDateInBounds = checkIsoDateInBounds;
|
|
2549
2564
|
exports.checkIsoDateTimeInBounds = checkIsoDateTimeInBounds;
|
|
2550
2565
|
exports.checkIsoYearMonthInBounds = checkIsoYearMonthInBounds;
|
|
2551
2566
|
exports.checkResolvedCalendarCompatible = checkResolvedCalendarCompatible;
|
|
2567
|
+
exports.clampEntity = clampEntity;
|
|
2568
|
+
exports.coerceRoundingIncInteger = coerceRoundingIncInteger;
|
|
2569
|
+
exports.coerceRoundingMode = coerceRoundingMode;
|
|
2552
2570
|
exports.combineDateAndTime = combineDateAndTime;
|
|
2571
|
+
exports.compareBigInts = compareBigInts;
|
|
2553
2572
|
exports.compareDurations = compareDurations;
|
|
2554
2573
|
exports.compareInstants = compareInstants;
|
|
2555
2574
|
exports.compareIsoDateFields = compareIsoDateFields;
|
|
2556
2575
|
exports.compareIsoDateTimeFields = compareIsoDateTimeFields;
|
|
2576
|
+
exports.compareNumbers = compareNumbers;
|
|
2557
2577
|
exports.compareTimeFields = compareTimeFields;
|
|
2558
2578
|
exports.compareZonedDateTimes = compareZonedDateTimes;
|
|
2559
2579
|
exports.computeBigNanoInc = computeBigNanoInc;
|
|
@@ -2563,14 +2583,25 @@ exports.computeCalendarDaysInMonth = computeCalendarDaysInMonth;
|
|
|
2563
2583
|
exports.computeCalendarDaysInYear = computeCalendarDaysInYear;
|
|
2564
2584
|
exports.computeCalendarEraFields = computeCalendarEraFields;
|
|
2565
2585
|
exports.computeCalendarInLeapYear = computeCalendarInLeapYear;
|
|
2586
|
+
exports.computeCalendarIsoFieldsFromParts = computeCalendarIsoFieldsFromParts;
|
|
2566
2587
|
exports.computeCalendarMonthCode = computeCalendarMonthCode;
|
|
2567
2588
|
exports.computeCalendarMonthsInYear = computeCalendarMonthsInYear;
|
|
2568
2589
|
exports.computeCalendarWeekOfYear = computeCalendarWeekOfYear;
|
|
2569
2590
|
exports.computeCalendarYearOfWeek = computeCalendarYearOfWeek;
|
|
2591
|
+
exports.computeEpochNanoFrac = computeEpochNanoFrac;
|
|
2592
|
+
exports.computeGregoryEraFields = computeGregoryEraFields;
|
|
2570
2593
|
exports.computeIsoDayOfWeek = computeIsoDayOfWeek;
|
|
2594
|
+
exports.computeIsoDaysInMonth = computeIsoDaysInMonth;
|
|
2595
|
+
exports.computeIsoDaysInYear = computeIsoDaysInYear;
|
|
2596
|
+
exports.computeIsoFieldsFromParts = computeIsoFieldsFromParts;
|
|
2597
|
+
exports.computeIsoInLeapYear = computeIsoInLeapYear;
|
|
2598
|
+
exports.computeIsoMonthCodeParts = computeIsoMonthCodeParts;
|
|
2599
|
+
exports.computeIsoWeekFields = computeIsoWeekFields;
|
|
2600
|
+
exports.computeIsoYearMonthFieldsForMonthDay = computeIsoYearMonthFieldsForMonthDay;
|
|
2571
2601
|
exports.computeNanoInc = computeNanoInc;
|
|
2572
2602
|
exports.computeZonedHoursInDay = computeZonedHoursInDay;
|
|
2573
2603
|
exports.computeZonedStartOfDay = computeZonedStartOfDay;
|
|
2604
|
+
exports.constrainToRange = constrainToRange;
|
|
2574
2605
|
exports.convertPlainMonthDayToDate = convertPlainMonthDayToDate;
|
|
2575
2606
|
exports.convertPlainYearMonthToDate = convertPlainYearMonthToDate;
|
|
2576
2607
|
exports.convertToPlainMonthDay = convertToPlainMonthDay;
|
|
@@ -2579,25 +2610,36 @@ exports.createDateSlots = createDateSlots;
|
|
|
2579
2610
|
exports.createDateTimeSlots = createDateTimeSlots;
|
|
2580
2611
|
exports.createDurationSlots = createDurationSlots;
|
|
2581
2612
|
exports.createEpochNanoSlots = createEpochNanoSlots;
|
|
2613
|
+
exports.createMarkerMoveOps = createMarkerMoveOps;
|
|
2582
2614
|
exports.createNameDescriptors = createNameDescriptors;
|
|
2583
2615
|
exports.createPlainDateTimeFromRefinedFields = createPlainDateTimeFromRefinedFields;
|
|
2616
|
+
exports.createPlainMonthDayFromFields = createPlainMonthDayFromFields;
|
|
2617
|
+
exports.createPlainYearMonthFromFields = createPlainYearMonthFromFields;
|
|
2584
2618
|
exports.createPropDescriptors = createPropDescriptors;
|
|
2585
2619
|
exports.createPropGetters = createPropGetters;
|
|
2586
2620
|
exports.createStringTagDescriptors = createStringTagDescriptors;
|
|
2587
2621
|
exports.createTimeSlots = createTimeSlots;
|
|
2588
2622
|
exports.createZonedEpochNanoSlots = createZonedEpochNanoSlots;
|
|
2623
|
+
exports.diffCalendarDates = diffCalendarDates;
|
|
2589
2624
|
exports.diffInstants = diffInstants;
|
|
2625
|
+
exports.diffIsoMonthSlots = diffIsoMonthSlots;
|
|
2590
2626
|
exports.diffPlainDateTimes = diffPlainDateTimes;
|
|
2591
2627
|
exports.diffPlainDates = diffPlainDates;
|
|
2592
2628
|
exports.diffPlainTimes = diffPlainTimes;
|
|
2593
2629
|
exports.diffPlainYearMonth = diffPlainYearMonth;
|
|
2594
2630
|
exports.diffZonedDateTimes = diffZonedDateTimes;
|
|
2631
|
+
exports.divideBigNanoToExactNumber = divideBigNanoToExactNumber;
|
|
2632
|
+
exports.durationFieldDefaults = durationFieldDefaults;
|
|
2595
2633
|
exports.durationGetters = durationGetters;
|
|
2634
|
+
exports.epochDaysToIsoDate = epochDaysToIsoDate;
|
|
2596
2635
|
exports.epochMilliToInstant = epochMilliToInstant;
|
|
2597
2636
|
exports.epochNanoToInstant = epochNanoToInstant;
|
|
2637
|
+
exports.epochNanoToIsoDateTime = epochNanoToIsoDateTime;
|
|
2638
|
+
exports.eraYearToYear = eraYearToYear;
|
|
2598
2639
|
exports.exoticCalendarRequired = exoticCalendarRequired;
|
|
2599
2640
|
exports.forbiddenValueOf = forbiddenValueOf;
|
|
2600
2641
|
exports.formatDurationIso = formatDurationIso;
|
|
2642
|
+
exports.formatEpochMilliToPartsRecord = formatEpochMilliToPartsRecord;
|
|
2601
2643
|
exports.formatInstantIso = formatInstantIso;
|
|
2602
2644
|
exports.formatOffsetNano = formatOffsetNano;
|
|
2603
2645
|
exports.formatPlainDateIso = formatPlainDateIso;
|
|
@@ -2608,14 +2650,18 @@ exports.formatPlainYearMonthIso = formatPlainYearMonthIso;
|
|
|
2608
2650
|
exports.formatZonedDateTimeIso = formatZonedDateTimeIso;
|
|
2609
2651
|
exports.getCalendarSlotId = getCalendarSlotId;
|
|
2610
2652
|
exports.getCommonCalendar = getCommonCalendar;
|
|
2653
|
+
exports.getCommonTimeZone = getCommonTimeZone;
|
|
2611
2654
|
exports.getCurrentEpochNano = getCurrentEpochNano;
|
|
2612
2655
|
exports.getCurrentIsoDateTime = getCurrentIsoDateTime;
|
|
2613
2656
|
exports.getCurrentTimeZoneId = getCurrentTimeZoneId;
|
|
2614
2657
|
exports.getEpochMilli = getEpochMilli;
|
|
2615
2658
|
exports.getEpochNano = getEpochNano;
|
|
2659
|
+
exports.getMatchingInstantFor = getMatchingInstantFor;
|
|
2660
|
+
exports.getSingleInstantFor = getSingleInstantFor;
|
|
2616
2661
|
exports.getTimeZoneTransitionEpochNanoseconds = getTimeZoneTransitionEpochNanoseconds;
|
|
2617
2662
|
exports.getZonedTimeZoneId = getZonedTimeZoneId;
|
|
2618
2663
|
exports.gregoryCalendarId = gregoryCalendarId;
|
|
2664
|
+
exports.gregoryEraOrigins = gregoryEraOrigins;
|
|
2619
2665
|
exports.instantToZonedDateTime = instantToZonedDateTime;
|
|
2620
2666
|
exports.instantsEqual = instantsEqual;
|
|
2621
2667
|
exports.invalidBag = invalidBag;
|
|
@@ -2623,11 +2669,16 @@ exports.invalidCalendar = invalidCalendar;
|
|
|
2623
2669
|
exports.invalidCallingContext = invalidCallingContext;
|
|
2624
2670
|
exports.invalidTimeZone = invalidTimeZone;
|
|
2625
2671
|
exports.isObjectLike = isObjectLike;
|
|
2672
|
+
exports.isoArgsToEpochDays = isoArgsToEpochDays;
|
|
2626
2673
|
exports.isoCalendarId = isoCalendarId;
|
|
2627
2674
|
exports.isoDateTimeToEpochMilli = isoDateTimeToEpochMilli;
|
|
2675
|
+
exports.isoDateTimeToEpochNano = isoDateTimeToEpochNano;
|
|
2676
|
+
exports.isoDateToEpochDays = isoDateToEpochDays;
|
|
2628
2677
|
exports.isoDateToEpochMilli = isoDateToEpochMilli;
|
|
2678
|
+
exports.isoDateToEpochNano = isoDateToEpochNano;
|
|
2629
2679
|
exports.isoEpochFirstLeapYear = isoEpochFirstLeapYear;
|
|
2630
2680
|
exports.mapProps = mapProps;
|
|
2681
|
+
exports.memoize = memoize;
|
|
2631
2682
|
exports.mergeDurationFields = mergeDurationFields;
|
|
2632
2683
|
exports.mergePlainDateFields = mergePlainDateFields;
|
|
2633
2684
|
exports.mergePlainDateTimeFields = mergePlainDateTimeFields;
|
|
@@ -2635,15 +2686,27 @@ exports.mergePlainMonthDayFields = mergePlainMonthDayFields;
|
|
|
2635
2686
|
exports.mergePlainTimeFields = mergePlainTimeFields;
|
|
2636
2687
|
exports.mergePlainYearMonthFields = mergePlainYearMonthFields;
|
|
2637
2688
|
exports.mergeZonedDateTimeFields = mergeZonedDateTimeFields;
|
|
2689
|
+
exports.modFloor = modFloor;
|
|
2690
|
+
exports.monthCodeNumberToMonth = monthCodeNumberToMonth;
|
|
2691
|
+
exports.moveByDays = moveByDays;
|
|
2638
2692
|
exports.moveDate = moveDate;
|
|
2639
2693
|
exports.moveDateTime = moveDateTime;
|
|
2640
2694
|
exports.moveEpochNano = moveEpochNano;
|
|
2641
2695
|
exports.moveTime = moveTime;
|
|
2642
2696
|
exports.moveYearMonth = moveYearMonth;
|
|
2643
2697
|
exports.moveZonedEpochSlots = moveZonedEpochSlots;
|
|
2698
|
+
exports.nanoInHour = nanoInHour;
|
|
2699
|
+
exports.nanoInMicro = nanoInMicro;
|
|
2700
|
+
exports.nanoInMilli = nanoInMilli;
|
|
2701
|
+
exports.nanoInMinute = nanoInMinute;
|
|
2702
|
+
exports.nanoInSec = nanoInSec;
|
|
2703
|
+
exports.nanoInUtcDay = nanoInUtcDay;
|
|
2704
|
+
exports.nanoToTimeAndDay = nanoToTimeAndDay;
|
|
2644
2705
|
exports.negateDuration = negateDuration;
|
|
2645
2706
|
exports.negateDurationFields = negateDurationFields;
|
|
2646
2707
|
exports.noop = noop;
|
|
2708
|
+
exports.normalizeOptionsOrString = normalizeOptionsOrString;
|
|
2709
|
+
exports.outOfBoundsDate = outOfBoundsDate;
|
|
2647
2710
|
exports.parseCalendarId = parseCalendarId;
|
|
2648
2711
|
exports.parseDuration = parseDuration;
|
|
2649
2712
|
exports.parseInstant = parseInstant;
|
|
@@ -2662,6 +2725,7 @@ exports.plainDatesEqual = plainDatesEqual;
|
|
|
2662
2725
|
exports.plainMonthDaysEqual = plainMonthDaysEqual;
|
|
2663
2726
|
exports.plainTimesEqual = plainTimesEqual;
|
|
2664
2727
|
exports.plainYearMonthsEqual = plainYearMonthsEqual;
|
|
2728
|
+
exports.prepareZonedEpochDiff = prepareZonedEpochDiff;
|
|
2665
2729
|
exports.queryTimeZone = queryTimeZone;
|
|
2666
2730
|
exports.refineDurationObjectLike = refineDurationObjectLike;
|
|
2667
2731
|
exports.refineMaybeZonedDateTimeObjectLike = refineMaybeZonedDateTimeObjectLike;
|
|
@@ -2679,18 +2743,23 @@ exports.requireNumberIsInteger = requireNumberIsInteger;
|
|
|
2679
2743
|
exports.requireString = requireString;
|
|
2680
2744
|
exports.resolveTimeZoneId = resolveTimeZoneId;
|
|
2681
2745
|
exports.roundBigNanoToDayOriginInc = roundBigNanoToDayOriginInc;
|
|
2746
|
+
exports.roundBigNanoToInc = roundBigNanoToInc;
|
|
2682
2747
|
exports.roundDateTimeToNano = roundDateTimeToNano;
|
|
2683
2748
|
exports.roundDuration = roundDuration;
|
|
2749
|
+
exports.roundNumberToInc = roundNumberToInc;
|
|
2684
2750
|
exports.roundTimeToNano = roundTimeToNano;
|
|
2751
|
+
exports.roundWithMode = roundWithMode;
|
|
2685
2752
|
exports.roundZonedEpochSlotsToUnit = roundZonedEpochSlotsToUnit;
|
|
2686
2753
|
exports.throwRangeError = throwRangeError;
|
|
2687
2754
|
exports.throwTypeError = throwTypeError;
|
|
2688
2755
|
exports.timeFieldDefaults = timeFieldDefaults;
|
|
2689
2756
|
exports.timeFieldsToMilli = timeFieldsToMilli;
|
|
2757
|
+
exports.timeFieldsToNano = timeFieldsToNano;
|
|
2690
2758
|
exports.timeGetters = timeGetters;
|
|
2691
2759
|
exports.toBigInt = toBigInt;
|
|
2692
2760
|
exports.toStrictInteger = toStrictInteger;
|
|
2693
2761
|
exports.totalDuration = totalDuration;
|
|
2762
|
+
exports.totalRelativeDuration = totalRelativeDuration;
|
|
2694
2763
|
exports.transformDateOptions = transformDateOptions;
|
|
2695
2764
|
exports.transformDateTimeOptions = transformDateTimeOptions;
|
|
2696
2765
|
exports.transformInstantOptions = transformInstantOptions;
|
|
@@ -2701,6 +2770,7 @@ exports.transformZonedOptions = transformZonedOptions;
|
|
|
2701
2770
|
exports.validateDurationFields = validateDurationFields;
|
|
2702
2771
|
exports.validateIsoDateFields = validateIsoDateFields;
|
|
2703
2772
|
exports.validateIsoDateTimeFields = validateIsoDateTimeFields;
|
|
2773
|
+
exports.validateRoundingInc = validateRoundingInc;
|
|
2704
2774
|
exports.validateTimeFields = validateTimeFields;
|
|
2705
2775
|
exports.zonedDateTimeToInstant = zonedDateTimeToInstant;
|
|
2706
2776
|
exports.zonedDateTimeToPlainDate = zonedDateTimeToPlainDate;
|
package/dist/node_modules/.pnpm/temporal-utils@1.0.1/node_modules/temporal-utils/dist/utils.cjs
CHANGED
|
@@ -45,6 +45,7 @@ exports.nanoInMilli = nanoInMilli;
|
|
|
45
45
|
exports.nanoInMinute = nanoInMinute;
|
|
46
46
|
exports.nanoInSec = nanoInSec;
|
|
47
47
|
exports.normalizeOptions = normalizeOptions;
|
|
48
|
+
exports.requireNumberIsPositive = requireNumberIsPositive;
|
|
48
49
|
exports.requireObjectLike = requireObjectLike;
|
|
49
50
|
exports.toFiniteNumber = toFiniteNumber;
|
|
50
51
|
exports.toIntegerWithTrunc = toIntegerWithTrunc;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/redis",
|
|
3
|
-
"version": "2.4.0-dev.
|
|
3
|
+
"version": "2.4.0-dev.1727+1eadcb04",
|
|
4
4
|
"description": "Redis drivers for Fedify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fedify",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"ioredis": "^5.8.2",
|
|
82
|
-
"@fedify/fedify": "^2.4.0-dev.
|
|
82
|
+
"@fedify/fedify": "^2.4.0-dev.1727+1eadcb04"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@std/async": "npm:@jsr/std__async@^1.0.13",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"@types/node": "^22.17.0",
|
|
88
88
|
"tsdown": "^0.22.0",
|
|
89
89
|
"typescript": "^6.0.0",
|
|
90
|
-
"@fedify/
|
|
91
|
-
"@fedify/
|
|
90
|
+
"@fedify/fixture": "^2.0.0",
|
|
91
|
+
"@fedify/testing": "^2.4.0-dev.1727+1eadcb04"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|
|
94
94
|
"build:self": "tsdown",
|