@open-tender/utils 0.5.15 → 0.5.16

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.
@@ -127,4 +127,4 @@ export declare const makeMenuItemLayout: (position: ThemeImagePosition) => {
127
127
  flexDirection: string;
128
128
  alignItems: string;
129
129
  };
130
- export declare const makeSuspendUnitlMsg: (suspendedUntil: number, tz: Timezone, soldOutMessage: string | undefined, withTime?: boolean) => string;
130
+ export declare const makeSuspendUnitlMsg: (suspendedUntil: number | null | undefined, tz: Timezone, soldOutMessage: string | undefined, withTime?: boolean) => string;
@@ -88,7 +88,7 @@ const makeSuspendUnitlMsg = (suspendedUntil, tz, soldOutMessage, withTime = true
88
88
  const soldOutDynamicMsg = soldOutMessage === null || soldOutMessage === void 0 ? void 0 : soldOutMessage.replace('{{suspended_until}}', suspendedUntilDate
89
89
  ? (0, datetimes_1.makeReadableDateStrFromIso)(suspendedUntilDate.toISOString(), tz, false, withTime)
90
90
  : '');
91
- const soldOutMsg = soldOutDynamicMsg || 'Sold out';
91
+ const soldOutMsg = soldOutDynamicMsg || 'Sold out for the day';
92
92
  return soldOutMsg;
93
93
  };
94
94
  exports.makeSuspendUnitlMsg = makeSuspendUnitlMsg;
@@ -127,4 +127,4 @@ export declare const makeMenuItemLayout: (position: ThemeImagePosition) => {
127
127
  flexDirection: string;
128
128
  alignItems: string;
129
129
  };
130
- export declare const makeSuspendUnitlMsg: (suspendedUntil: number, tz: Timezone, soldOutMessage: string | undefined, withTime?: boolean) => string;
130
+ export declare const makeSuspendUnitlMsg: (suspendedUntil: number | null | undefined, tz: Timezone, soldOutMessage: string | undefined, withTime?: boolean) => string;
@@ -80,6 +80,6 @@ export const makeSuspendUnitlMsg = (suspendedUntil, tz, soldOutMessage, withTime
80
80
  const soldOutDynamicMsg = soldOutMessage === null || soldOutMessage === void 0 ? void 0 : soldOutMessage.replace('{{suspended_until}}', suspendedUntilDate
81
81
  ? makeReadableDateStrFromIso(suspendedUntilDate.toISOString(), tz, false, withTime)
82
82
  : '');
83
- const soldOutMsg = soldOutDynamicMsg || 'Sold out';
83
+ const soldOutMsg = soldOutDynamicMsg || 'Sold out for the day';
84
84
  return soldOutMsg;
85
85
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.5.15",
3
+ "version": "0.5.16",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",