@open-tender/utils 0.0.19 → 0.0.21
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
CHANGED
|
@@ -306,7 +306,7 @@ export declare const makeDisplayItem: (item: Partial<CartItem & CartItemOption>,
|
|
|
306
306
|
export declare const makeDisplayItems: (orders: Orders) => Partial<CartItem>[];
|
|
307
307
|
export declare const makeUniqueDisplayItems: (orders: Orders) => Partial<CartItem>[];
|
|
308
308
|
export declare const makeFavoritesLookup: (favorites: Favorites) => {};
|
|
309
|
-
export declare const makeOrderAddress: (address: Address) => string;
|
|
309
|
+
export declare const makeOrderAddress: (address: Address | null) => string;
|
|
310
310
|
export declare const makeFullAddress: (address: Address) => string;
|
|
311
311
|
export declare const calcCartCounts: (cart: Cart) => any;
|
|
312
312
|
export declare const addItem: (cart: Cart, item: CartItem) => {
|
|
@@ -28,8 +28,8 @@ export declare const zonedTimeToDateStr: (str: string, timezone: TimezonePython,
|
|
|
28
28
|
export declare const makeLocalDateStr: (date?: Date | null, days?: number, fmt?: string) => string;
|
|
29
29
|
export declare const todayDate: () => string;
|
|
30
30
|
export declare const tomorrowDate: () => string;
|
|
31
|
-
export declare const isoToDate: (iso: ISOString, tz?: Timezone | TimezonePython) => Date;
|
|
32
|
-
export declare const isoToDateStr: (iso: ISOString, tz: Timezone | TimezonePython, fmt?: string) => string;
|
|
31
|
+
export declare const isoToDate: (iso: ISOString, tz?: Timezone | TimezonePython | null) => Date;
|
|
32
|
+
export declare const isoToDateStr: (iso: ISOString, tz: Timezone | TimezonePython | null, fmt?: string) => string;
|
|
33
33
|
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;
|
package/dist/esm/utils/cart.d.ts
CHANGED
|
@@ -306,7 +306,7 @@ export declare const makeDisplayItem: (item: Partial<CartItem & CartItemOption>,
|
|
|
306
306
|
export declare const makeDisplayItems: (orders: Orders) => Partial<CartItem>[];
|
|
307
307
|
export declare const makeUniqueDisplayItems: (orders: Orders) => Partial<CartItem>[];
|
|
308
308
|
export declare const makeFavoritesLookup: (favorites: Favorites) => {};
|
|
309
|
-
export declare const makeOrderAddress: (address: Address) => string;
|
|
309
|
+
export declare const makeOrderAddress: (address: Address | null) => string;
|
|
310
310
|
export declare const makeFullAddress: (address: Address) => string;
|
|
311
311
|
export declare const calcCartCounts: (cart: Cart) => any;
|
|
312
312
|
export declare const addItem: (cart: Cart, item: CartItem) => {
|
|
@@ -28,8 +28,8 @@ export declare const zonedTimeToDateStr: (str: string, timezone: TimezonePython,
|
|
|
28
28
|
export declare const makeLocalDateStr: (date?: Date | null, days?: number, fmt?: string) => string;
|
|
29
29
|
export declare const todayDate: () => string;
|
|
30
30
|
export declare const tomorrowDate: () => string;
|
|
31
|
-
export declare const isoToDate: (iso: ISOString, tz?: Timezone | TimezonePython) => Date;
|
|
32
|
-
export declare const isoToDateStr: (iso: ISOString, tz: Timezone | TimezonePython, fmt?: string) => string;
|
|
31
|
+
export declare const isoToDate: (iso: ISOString, tz?: Timezone | TimezonePython | null) => Date;
|
|
32
|
+
export declare const isoToDateStr: (iso: ISOString, tz: Timezone | TimezonePython | null, fmt?: string) => string;
|
|
33
33
|
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;
|
package/package.json
CHANGED