@open-tender/utils 0.0.8 → 0.0.10
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/cjs/utils/cart.d.ts +6 -6
- package/dist/cjs/utils/cart.js +13 -18
- package/dist/cjs/utils/datetimes.d.ts +2 -1
- package/dist/cjs/utils/datetimes.js +22 -3
- package/dist/esm/utils/cart.d.ts +6 -6
- package/dist/esm/utils/cart.js +13 -18
- package/dist/esm/utils/datetimes.d.ts +2 -1
- package/dist/esm/utils/datetimes.js +20 -2
- package/package.json +1 -1
package/dist/cjs/utils/cart.d.ts
CHANGED
|
@@ -219,7 +219,7 @@ export declare const rehydrateCart: (menuItems: MenuItems, simpleCartItems: Arra
|
|
|
219
219
|
}[];
|
|
220
220
|
cartCounts: any;
|
|
221
221
|
};
|
|
222
|
-
export declare const rehydrateCheckoutForm: (order: Order) => {
|
|
222
|
+
export declare const rehydrateCheckoutForm: (order: Partial<Order>) => {
|
|
223
223
|
details: {
|
|
224
224
|
cart_id: number | null | undefined;
|
|
225
225
|
eating_utensils: boolean | undefined;
|
|
@@ -232,14 +232,14 @@ export declare const rehydrateCheckoutForm: (order: Order) => {
|
|
|
232
232
|
address: Partial<Address>;
|
|
233
233
|
surcharges: {
|
|
234
234
|
id?: number | undefined;
|
|
235
|
-
}[];
|
|
235
|
+
}[] | undefined;
|
|
236
236
|
discounts: {
|
|
237
237
|
id: number;
|
|
238
238
|
ext_id?: string | null | undefined;
|
|
239
|
-
}[];
|
|
240
|
-
promoCodes: string[];
|
|
241
|
-
tenders: import("@open-tender/types").OrderTender[];
|
|
242
|
-
tip: `${number}.${number}`;
|
|
239
|
+
}[] | undefined;
|
|
240
|
+
promoCodes: string[] | undefined;
|
|
241
|
+
tenders: import("@open-tender/types").OrderTender[] | undefined;
|
|
242
|
+
tip: number | `${number}.${number}`;
|
|
243
243
|
};
|
|
244
244
|
export declare const makeGuestLookup: (cartGuests: Array<GuestItem>) => Partial<GuestItem & {
|
|
245
245
|
[key: number]: GuestData;
|
package/dist/cjs/utils/cart.js
CHANGED
|
@@ -357,23 +357,17 @@ const rehydrateAddress = (address) => {
|
|
|
357
357
|
};
|
|
358
358
|
};
|
|
359
359
|
const rehydrateSurcharges = (surcharges) => {
|
|
360
|
-
return surcharges
|
|
361
|
-
.filter(i => i.is_optional)
|
|
362
|
-
.map(i => ({ id: i.surcharge_id }));
|
|
360
|
+
return surcharges === null || surcharges === void 0 ? void 0 : surcharges.filter(i => i.is_optional).map(i => ({ id: i.surcharge_id }));
|
|
363
361
|
};
|
|
364
362
|
const rehydrateDiscounts = (discounts) => {
|
|
365
|
-
return discounts
|
|
366
|
-
.filter(i => !i.is_promo_code)
|
|
367
|
-
.map(i => ({ id: i.discount_id || i.id, ext_id: i.ext_id }));
|
|
363
|
+
return discounts === null || discounts === void 0 ? void 0 : discounts.filter(i => !i.is_promo_code).map(i => ({ id: i.discount_id || i.id, ext_id: i.ext_id }));
|
|
368
364
|
};
|
|
369
365
|
const rehydratePromoCodes = (discounts) => {
|
|
370
|
-
return discounts.filter(i => i.is_promo_code).map(i => i.name);
|
|
366
|
+
return discounts === null || discounts === void 0 ? void 0 : discounts.filter(i => i.is_promo_code).map(i => i.name);
|
|
371
367
|
};
|
|
372
368
|
const rehydrateTenders = (tenders) => {
|
|
373
369
|
// const giftCards = tenders.filter((i) => i.tender_type === 'GIFT_CARD')
|
|
374
|
-
const other = tenders
|
|
375
|
-
// .filter((i) => i.tender_type !== 'GIFT_CARD')
|
|
376
|
-
.map(i => {
|
|
370
|
+
const other = tenders === null || tenders === void 0 ? void 0 : tenders.map(i => {
|
|
377
371
|
if (i.tender_type === 'CREDIT') {
|
|
378
372
|
return Object.assign(Object.assign({}, i), i.credit_card);
|
|
379
373
|
}
|
|
@@ -387,15 +381,16 @@ const rehydrateTenders = (tenders) => {
|
|
|
387
381
|
return other;
|
|
388
382
|
};
|
|
389
383
|
const rehydrateCheckoutForm = (order) => {
|
|
384
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
390
385
|
const form = {
|
|
391
|
-
details: rehydrateDetails(order.details),
|
|
392
|
-
customer: rehydrateCustomer(order.customer),
|
|
393
|
-
address: rehydrateAddress(order.address),
|
|
394
|
-
surcharges: rehydrateSurcharges(order.surcharges),
|
|
395
|
-
discounts: rehydrateDiscounts(order.discounts),
|
|
396
|
-
promoCodes: rehydratePromoCodes(order.discounts),
|
|
397
|
-
tenders: rehydrateTenders(order.tenders),
|
|
398
|
-
tip: order.totals.tip
|
|
386
|
+
details: rehydrateDetails((_a = order.details) !== null && _a !== void 0 ? _a : null),
|
|
387
|
+
customer: rehydrateCustomer((_b = order.customer) !== null && _b !== void 0 ? _b : null),
|
|
388
|
+
address: rehydrateAddress((_c = order.address) !== null && _c !== void 0 ? _c : null),
|
|
389
|
+
surcharges: rehydrateSurcharges((_d = order.surcharges) !== null && _d !== void 0 ? _d : null),
|
|
390
|
+
discounts: rehydrateDiscounts((_e = order.discounts) !== null && _e !== void 0 ? _e : null),
|
|
391
|
+
promoCodes: rehydratePromoCodes((_f = order.discounts) !== null && _f !== void 0 ? _f : null),
|
|
392
|
+
tenders: rehydrateTenders((_g = order.tenders) !== null && _g !== void 0 ? _g : null),
|
|
393
|
+
tip: (_j = (_h = order.totals) === null || _h === void 0 ? void 0 : _h.tip) !== null && _j !== void 0 ? _j : 0
|
|
399
394
|
};
|
|
400
395
|
return form;
|
|
401
396
|
};
|
|
@@ -34,7 +34,7 @@ export declare const cleanISOString: (date: Date) => ISOString;
|
|
|
34
34
|
export declare const dateToIso: (date: Date, tz: Timezone | TimezonePython) => ISOString;
|
|
35
35
|
export declare const adjustIso: (iso: ISOString, tz: Timezone | TimezonePython, adjustment: Duration) => ISOString;
|
|
36
36
|
export declare const adjustZonedIso: (zonedIso: ISOString, tz: Timezone | TimezonePython, adjustment: Duration) => string;
|
|
37
|
-
export declare const dateToZonedDateStr: (date: Date, tz: Timezone | TimezonePython, fmt?: string) => string;
|
|
37
|
+
export declare const dateToZonedDateStr: (date: Date, tz: Timezone | TimezonePython, fmt?: string, days?: number) => string;
|
|
38
38
|
export declare const dateToZonedIso: (date: Date, tz: Timezone | TimezonePython) => string;
|
|
39
39
|
export declare const currentLocalDate: (tz: Timezone | TimezonePython) => Date;
|
|
40
40
|
export declare const currentLocalDateStr: (tz: Timezone | TimezonePython, fmt?: string) => string;
|
|
@@ -182,3 +182,4 @@ export declare const makeIntervals: (tz: Timezone | TimezonePython) => Array<Int
|
|
|
182
182
|
orders: Array<Partial<Order>>;
|
|
183
183
|
}>;
|
|
184
184
|
export declare const formatTimeList: (dateStr: ISOString, tz: Timezone | TimezonePython, includeDate: boolean) => string;
|
|
185
|
+
export declare const makeCartDateStr: (requestedAt: string, tz: Timezone | TimezonePython, waitTime?: number | null) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.time24ToDateStr = exports.time24ToDate = exports.minutesToDate = exports.setTimeForDate = exports.time24ToMinutes = exports.makeClosedWeekdays = exports.makeWeekdaysExcluded = exports.makeOppositeTimes = exports.makeEstimatedTime = exports.makeRequestedAtStr = exports.makeRequestedIso = exports.makeReadableDateStrFromIso = exports.isoToDateStrMinutes = exports.dateStrMinutesToIso = exports.formatTimeStr = exports.formatDateStr = exports.dateStrToZonedWeekday = exports.dateStrToZonedDate = exports.dateStrToDate = exports.currentLocalDateStr = exports.currentLocalDate = exports.dateToZonedIso = exports.dateToZonedDateStr = exports.adjustZonedIso = exports.adjustIso = exports.dateToIso = exports.cleanISOString = exports.isoToDateStr = exports.isoToDate = exports.tomorrowDate = exports.todayDate = exports.makeLocalDateStr = exports.zonedTimeToDateStr = exports.zonedTimeToDate = exports.makeLocalDate = exports.getUserTimezone = exports.fmtDate = exports.parseIsoToDate = exports.weekdayAndTimeToDate = exports.dateForWeekday = exports.timeLeft = exports.secondsToTime = exports.secondsLeft = exports.minutesLeft = exports.makeWeekday = exports.weekdayOptions = exports.weekdaysLower = exports.weekdaysUpper = exports.weekdays = exports.timezoneMap = void 0;
|
|
4
|
-
exports.formatTimeList = exports.makeIntervals = exports.getLastInterval = exports.makeGroupOrderTimeStr = exports.formatTime = exports.makeGroupOrderTime = exports.getFirstTime = exports.adjustRequestedAt = exports.getNextInterval = exports.makeFirstTimes = exports.makeFirstRequestedAt = exports.makeFirstTime = exports.findOrderTime = exports.makeOrderTimes = exports.makeWeekdayIndices = exports.makeDatePickerDates = exports.makeDatePickerTimes = exports.makeDatepickerArgs = exports.makeTimes = exports.makeDates = exports.makeTimeIntervals = exports.getNextIntervalMinutes = exports.getMinutesfromDate = exports.minutesToDates = void 0;
|
|
4
|
+
exports.makeCartDateStr = exports.formatTimeList = exports.makeIntervals = exports.getLastInterval = exports.makeGroupOrderTimeStr = exports.formatTime = exports.makeGroupOrderTime = exports.getFirstTime = exports.adjustRequestedAt = exports.getNextInterval = exports.makeFirstTimes = exports.makeFirstRequestedAt = exports.makeFirstTime = exports.findOrderTime = exports.makeOrderTimes = exports.makeWeekdayIndices = exports.makeDatePickerDates = exports.makeDatePickerTimes = exports.makeDatepickerArgs = exports.makeTimes = exports.makeDates = exports.makeTimeIntervals = exports.getNextIntervalMinutes = exports.getMinutesfromDate = exports.minutesToDates = void 0;
|
|
5
5
|
const date_fns_1 = require("date-fns");
|
|
6
6
|
const date_fns_tz_1 = require("date-fns-tz");
|
|
7
7
|
/* CONSTANTS */
|
|
@@ -136,8 +136,9 @@ const adjustZonedIso = (zonedIso, tz, adjustment) => {
|
|
|
136
136
|
return dateStr;
|
|
137
137
|
};
|
|
138
138
|
exports.adjustZonedIso = adjustZonedIso;
|
|
139
|
-
const dateToZonedDateStr = (date, tz, fmt = "yyyy-MM-dd'T'HH:mm:ssXXX") => {
|
|
140
|
-
const
|
|
139
|
+
const dateToZonedDateStr = (date, tz, fmt = "yyyy-MM-dd'T'HH:mm:ssXXX", days = 0) => {
|
|
140
|
+
const adjustedDate = (0, date_fns_1.add)(date, { days: days });
|
|
141
|
+
const zoned = (0, date_fns_tz_1.utcToZonedTime)(adjustedDate, tz);
|
|
141
142
|
return (0, date_fns_tz_1.format)(zoned, fmt, { timeZone: tz });
|
|
142
143
|
};
|
|
143
144
|
exports.dateToZonedDateStr = dateToZonedDateStr;
|
|
@@ -702,3 +703,21 @@ const formatTimeList = (dateStr, tz, includeDate) => {
|
|
|
702
703
|
return (0, date_fns_tz_1.format)(date, fmt).replace('AM', 'am').replace('PM', 'pm');
|
|
703
704
|
};
|
|
704
705
|
exports.formatTimeList = formatTimeList;
|
|
706
|
+
const makeCartDateStr = (requestedAt, tz, waitTime) => {
|
|
707
|
+
if (requestedAt === 'asap')
|
|
708
|
+
return `Ready in about ${waitTime} minutes`;
|
|
709
|
+
const requestedDateStr = (0, exports.isoToDateStr)(requestedAt, tz, 'yyyy-MM-dd');
|
|
710
|
+
const now = new Date();
|
|
711
|
+
const today = (0, exports.dateToZonedDateStr)(now, tz, 'yyyy-MM-dd');
|
|
712
|
+
const tomorrow = (0, exports.dateToZonedDateStr)(now, tz, 'yyyy-MM-dd', 1);
|
|
713
|
+
const isToday = requestedDateStr === today;
|
|
714
|
+
const isTomorrow = requestedDateStr === tomorrow;
|
|
715
|
+
const timeStr = (0, exports.isoToDateStr)(requestedAt, tz, 'h:mma').toLowerCase();
|
|
716
|
+
const dateStr = (0, exports.isoToDateStr)(requestedAt, tz, 'EEE, MMM dd');
|
|
717
|
+
if (isToday)
|
|
718
|
+
return `Ready by ${timeStr}`;
|
|
719
|
+
if (isTomorrow)
|
|
720
|
+
return `Ready by ${timeStr} tomorrow`;
|
|
721
|
+
return `Ready by ${timeStr} on ${dateStr}`;
|
|
722
|
+
};
|
|
723
|
+
exports.makeCartDateStr = makeCartDateStr;
|
package/dist/esm/utils/cart.d.ts
CHANGED
|
@@ -219,7 +219,7 @@ export declare const rehydrateCart: (menuItems: MenuItems, simpleCartItems: Arra
|
|
|
219
219
|
}[];
|
|
220
220
|
cartCounts: any;
|
|
221
221
|
};
|
|
222
|
-
export declare const rehydrateCheckoutForm: (order: Order) => {
|
|
222
|
+
export declare const rehydrateCheckoutForm: (order: Partial<Order>) => {
|
|
223
223
|
details: {
|
|
224
224
|
cart_id: number | null | undefined;
|
|
225
225
|
eating_utensils: boolean | undefined;
|
|
@@ -232,14 +232,14 @@ export declare const rehydrateCheckoutForm: (order: Order) => {
|
|
|
232
232
|
address: Partial<Address>;
|
|
233
233
|
surcharges: {
|
|
234
234
|
id?: number | undefined;
|
|
235
|
-
}[];
|
|
235
|
+
}[] | undefined;
|
|
236
236
|
discounts: {
|
|
237
237
|
id: number;
|
|
238
238
|
ext_id?: string | null | undefined;
|
|
239
|
-
}[];
|
|
240
|
-
promoCodes: string[];
|
|
241
|
-
tenders: import("@open-tender/types").OrderTender[];
|
|
242
|
-
tip: `${number}.${number}`;
|
|
239
|
+
}[] | undefined;
|
|
240
|
+
promoCodes: string[] | undefined;
|
|
241
|
+
tenders: import("@open-tender/types").OrderTender[] | undefined;
|
|
242
|
+
tip: number | `${number}.${number}`;
|
|
243
243
|
};
|
|
244
244
|
export declare const makeGuestLookup: (cartGuests: Array<GuestItem>) => Partial<GuestItem & {
|
|
245
245
|
[key: number]: GuestData;
|
package/dist/esm/utils/cart.js
CHANGED
|
@@ -337,23 +337,17 @@ const rehydrateAddress = (address) => {
|
|
|
337
337
|
};
|
|
338
338
|
};
|
|
339
339
|
const rehydrateSurcharges = (surcharges) => {
|
|
340
|
-
return surcharges
|
|
341
|
-
.filter(i => i.is_optional)
|
|
342
|
-
.map(i => ({ id: i.surcharge_id }));
|
|
340
|
+
return surcharges === null || surcharges === void 0 ? void 0 : surcharges.filter(i => i.is_optional).map(i => ({ id: i.surcharge_id }));
|
|
343
341
|
};
|
|
344
342
|
const rehydrateDiscounts = (discounts) => {
|
|
345
|
-
return discounts
|
|
346
|
-
.filter(i => !i.is_promo_code)
|
|
347
|
-
.map(i => ({ id: i.discount_id || i.id, ext_id: i.ext_id }));
|
|
343
|
+
return discounts === null || discounts === void 0 ? void 0 : discounts.filter(i => !i.is_promo_code).map(i => ({ id: i.discount_id || i.id, ext_id: i.ext_id }));
|
|
348
344
|
};
|
|
349
345
|
const rehydratePromoCodes = (discounts) => {
|
|
350
|
-
return discounts.filter(i => i.is_promo_code).map(i => i.name);
|
|
346
|
+
return discounts === null || discounts === void 0 ? void 0 : discounts.filter(i => i.is_promo_code).map(i => i.name);
|
|
351
347
|
};
|
|
352
348
|
const rehydrateTenders = (tenders) => {
|
|
353
349
|
// const giftCards = tenders.filter((i) => i.tender_type === 'GIFT_CARD')
|
|
354
|
-
const other = tenders
|
|
355
|
-
// .filter((i) => i.tender_type !== 'GIFT_CARD')
|
|
356
|
-
.map(i => {
|
|
350
|
+
const other = tenders === null || tenders === void 0 ? void 0 : tenders.map(i => {
|
|
357
351
|
if (i.tender_type === 'CREDIT') {
|
|
358
352
|
return Object.assign(Object.assign({}, i), i.credit_card);
|
|
359
353
|
}
|
|
@@ -367,15 +361,16 @@ const rehydrateTenders = (tenders) => {
|
|
|
367
361
|
return other;
|
|
368
362
|
};
|
|
369
363
|
export const rehydrateCheckoutForm = (order) => {
|
|
364
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
370
365
|
const form = {
|
|
371
|
-
details: rehydrateDetails(order.details),
|
|
372
|
-
customer: rehydrateCustomer(order.customer),
|
|
373
|
-
address: rehydrateAddress(order.address),
|
|
374
|
-
surcharges: rehydrateSurcharges(order.surcharges),
|
|
375
|
-
discounts: rehydrateDiscounts(order.discounts),
|
|
376
|
-
promoCodes: rehydratePromoCodes(order.discounts),
|
|
377
|
-
tenders: rehydrateTenders(order.tenders),
|
|
378
|
-
tip: order.totals.tip
|
|
366
|
+
details: rehydrateDetails((_a = order.details) !== null && _a !== void 0 ? _a : null),
|
|
367
|
+
customer: rehydrateCustomer((_b = order.customer) !== null && _b !== void 0 ? _b : null),
|
|
368
|
+
address: rehydrateAddress((_c = order.address) !== null && _c !== void 0 ? _c : null),
|
|
369
|
+
surcharges: rehydrateSurcharges((_d = order.surcharges) !== null && _d !== void 0 ? _d : null),
|
|
370
|
+
discounts: rehydrateDiscounts((_e = order.discounts) !== null && _e !== void 0 ? _e : null),
|
|
371
|
+
promoCodes: rehydratePromoCodes((_f = order.discounts) !== null && _f !== void 0 ? _f : null),
|
|
372
|
+
tenders: rehydrateTenders((_g = order.tenders) !== null && _g !== void 0 ? _g : null),
|
|
373
|
+
tip: (_j = (_h = order.totals) === null || _h === void 0 ? void 0 : _h.tip) !== null && _j !== void 0 ? _j : 0
|
|
379
374
|
};
|
|
380
375
|
return form;
|
|
381
376
|
};
|
|
@@ -34,7 +34,7 @@ export declare const cleanISOString: (date: Date) => ISOString;
|
|
|
34
34
|
export declare const dateToIso: (date: Date, tz: Timezone | TimezonePython) => ISOString;
|
|
35
35
|
export declare const adjustIso: (iso: ISOString, tz: Timezone | TimezonePython, adjustment: Duration) => ISOString;
|
|
36
36
|
export declare const adjustZonedIso: (zonedIso: ISOString, tz: Timezone | TimezonePython, adjustment: Duration) => string;
|
|
37
|
-
export declare const dateToZonedDateStr: (date: Date, tz: Timezone | TimezonePython, fmt?: string) => string;
|
|
37
|
+
export declare const dateToZonedDateStr: (date: Date, tz: Timezone | TimezonePython, fmt?: string, days?: number) => string;
|
|
38
38
|
export declare const dateToZonedIso: (date: Date, tz: Timezone | TimezonePython) => string;
|
|
39
39
|
export declare const currentLocalDate: (tz: Timezone | TimezonePython) => Date;
|
|
40
40
|
export declare const currentLocalDateStr: (tz: Timezone | TimezonePython, fmt?: string) => string;
|
|
@@ -182,3 +182,4 @@ export declare const makeIntervals: (tz: Timezone | TimezonePython) => Array<Int
|
|
|
182
182
|
orders: Array<Partial<Order>>;
|
|
183
183
|
}>;
|
|
184
184
|
export declare const formatTimeList: (dateStr: ISOString, tz: Timezone | TimezonePython, includeDate: boolean) => string;
|
|
185
|
+
export declare const makeCartDateStr: (requestedAt: string, tz: Timezone | TimezonePython, waitTime?: number | null) => string;
|
|
@@ -110,8 +110,9 @@ export const adjustZonedIso = (zonedIso, tz, adjustment) => {
|
|
|
110
110
|
const dateStr = format(zoned, "yyyy-MM-dd'T'HH:mm:ssXXX", { timeZone: tz });
|
|
111
111
|
return dateStr;
|
|
112
112
|
};
|
|
113
|
-
export const dateToZonedDateStr = (date, tz, fmt = "yyyy-MM-dd'T'HH:mm:ssXXX") => {
|
|
114
|
-
const
|
|
113
|
+
export const dateToZonedDateStr = (date, tz, fmt = "yyyy-MM-dd'T'HH:mm:ssXXX", days = 0) => {
|
|
114
|
+
const adjustedDate = add(date, { days: days });
|
|
115
|
+
const zoned = utcToZonedTime(adjustedDate, tz);
|
|
115
116
|
return format(zoned, fmt, { timeZone: tz });
|
|
116
117
|
};
|
|
117
118
|
export const dateToZonedIso = (date, tz) => {
|
|
@@ -629,3 +630,20 @@ export const formatTimeList = (dateStr, tz, includeDate) => {
|
|
|
629
630
|
const fmt = includeDate ? 'MMM d, h:mma' : 'h:mma';
|
|
630
631
|
return format(date, fmt).replace('AM', 'am').replace('PM', 'pm');
|
|
631
632
|
};
|
|
633
|
+
export const makeCartDateStr = (requestedAt, tz, waitTime) => {
|
|
634
|
+
if (requestedAt === 'asap')
|
|
635
|
+
return `Ready in about ${waitTime} minutes`;
|
|
636
|
+
const requestedDateStr = isoToDateStr(requestedAt, tz, 'yyyy-MM-dd');
|
|
637
|
+
const now = new Date();
|
|
638
|
+
const today = dateToZonedDateStr(now, tz, 'yyyy-MM-dd');
|
|
639
|
+
const tomorrow = dateToZonedDateStr(now, tz, 'yyyy-MM-dd', 1);
|
|
640
|
+
const isToday = requestedDateStr === today;
|
|
641
|
+
const isTomorrow = requestedDateStr === tomorrow;
|
|
642
|
+
const timeStr = isoToDateStr(requestedAt, tz, 'h:mma').toLowerCase();
|
|
643
|
+
const dateStr = isoToDateStr(requestedAt, tz, 'EEE, MMM dd');
|
|
644
|
+
if (isToday)
|
|
645
|
+
return `Ready by ${timeStr}`;
|
|
646
|
+
if (isTomorrow)
|
|
647
|
+
return `Ready by ${timeStr} tomorrow`;
|
|
648
|
+
return `Ready by ${timeStr} on ${dateStr}`;
|
|
649
|
+
};
|
package/package.json
CHANGED