@ancon/wildcat-utils 1.43.0-timezone-refactor.7 → 1.43.0
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/_baseIsEqual-39cef2eb.mjs +530 -0
- package/_baseIsEqual-b3df9240.js +1 -0
- package/_baseIteratee-13e892b8.mjs +151 -0
- package/_baseIteratee-be26bb18.js +1 -0
- package/card/getScannedWalletReadingInfo.d.ts +2 -2
- package/card/getScannedWalletReadingInfo.js +1 -1
- package/card/getScannedWalletReadingInfo.mjs +6 -6
- package/checkout/getCheckoutOrderStatusTexts.js +1 -1
- package/checkout/getCheckoutOrderStatusTexts.mjs +5 -7
- package/checkout/getCheckoutPenguinLockersMetaData.js +1 -1
- package/checkout/getCheckoutPenguinLockersMetaData.mjs +2 -2
- package/checkout/index.js +1 -1
- package/checkout/index.mjs +47 -49
- package/checkout/isCheckoutItemsAreEqual.js +1 -1
- package/checkout/isCheckoutItemsAreEqual.mjs +13 -14
- package/currency/getFormattedCurrency.d.ts +15 -0
- package/currency/getFormattedCurrency.js +1 -1
- package/currency/getFormattedCurrency.mjs +25 -10
- package/error/isAPIError.d.ts +1 -1
- package/error/isAPIError.js +1 -1
- package/error/isAPIError.mjs +7 -7
- package/index.d.ts +1 -2
- package/index.js +1 -1
- package/index.mjs +237 -255
- package/license/getLicenseUIState.d.ts +1 -1
- package/license/getLicenseUIState.js +1 -1
- package/license/getLicenseUIState.mjs +30 -11
- package/logger/index.js +1 -1
- package/logger/index.mjs +7 -8
- package/logger/pascalCaseFormatter.js +1 -1
- package/logger/pascalCaseFormatter.mjs +27 -21
- package/order/getCheckOrderItemsMappedByTicketItemStatus.js +1 -1
- package/order/getCheckOrderItemsMappedByTicketItemStatus.mjs +13 -15
- package/order/getCheckOrderMinimumStatusTicketItem.js +1 -1
- package/order/getCheckOrderMinimumStatusTicketItem.mjs +17 -19
- package/order/index.js +1 -1
- package/order/index.mjs +9 -11
- package/outlet/constants.d.ts +1 -0
- package/outlet/constants.js +1 -1
- package/outlet/constants.mjs +4 -3
- package/outlet/getExpressAvailableOrderFormats.js +1 -1
- package/outlet/getExpressAvailableOrderFormats.mjs +26 -27
- package/outlet/getExpressNextAvailabilityShiftTime.d.ts +2 -2
- package/outlet/getExpressNextAvailabilityShiftTime.js +1 -1
- package/outlet/getExpressNextAvailabilityShiftTime.mjs +18 -19
- package/outlet/getExpressServiceIntervalEnd.d.ts +2 -2
- package/outlet/getExpressServiceIntervalEnd.js +1 -1
- package/outlet/getExpressServiceIntervalEnd.mjs +9 -7
- package/outlet/getExpressServiceIntervalStart.d.ts +2 -2
- package/outlet/getExpressServiceIntervalStart.js +1 -1
- package/outlet/getExpressServiceIntervalStart.mjs +9 -7
- package/outlet/getListOutletOpeningHoursTable.d.ts +1 -1
- package/outlet/getListOutletOpeningHoursTable.js +1 -1
- package/outlet/getListOutletOpeningHoursTable.mjs +150 -135
- package/outlet/getMomentFromDateAndTimeString.js +1 -1
- package/outlet/getMomentFromDateAndTimeString.mjs +1 -1
- package/outlet/getOutletActiveOpeningInterval.d.ts +2 -2
- package/outlet/getOutletActiveOpeningInterval.js +1 -1
- package/outlet/getOutletActiveOpeningInterval.mjs +12 -15
- package/outlet/getOutletAvailabilityInfo.js +1 -1
- package/outlet/getOutletAvailabilityInfo.mjs +25 -23
- package/outlet/getOutletCurrentActiveOperatingHour.js +1 -1
- package/outlet/getOutletCurrentActiveOperatingHour.mjs +15 -16
- package/outlet/getOutletCurrentAvailabilityInfo.js +1 -1
- package/outlet/getOutletCurrentAvailabilityInfo.mjs +26 -27
- package/outlet/getOutletCurrentClosingTimeText.js +1 -1
- package/outlet/getOutletCurrentClosingTimeText.mjs +10 -14
- package/outlet/getOutletDeliveryFee.js +1 -1
- package/outlet/getOutletDeliveryFee.mjs +5 -5
- package/outlet/getOutletFormattedAddress.d.ts +1 -9
- package/outlet/getOutletFormattedAddress.js +1 -1
- package/outlet/getOutletFormattedAddress.mjs +4 -9
- package/outlet/getOutletNextOpeningTagInformation.js +1 -1
- package/outlet/getOutletNextOpeningTagInformation.mjs +7 -8
- package/outlet/getOutletNextOpeningTimeText.js +1 -1
- package/outlet/getOutletNextOpeningTimeText.mjs +8 -10
- package/outlet/getOutletNextReadyToOrderTime.js +1 -1
- package/outlet/getOutletNextReadyToOrderTime.mjs +29 -21
- package/outlet/getOutletNextServiceTimeOffset.d.ts +11 -0
- package/outlet/getOutletNextServiceTimeOffset.js +1 -0
- package/outlet/getOutletNextServiceTimeOffset.mjs +10 -0
- package/outlet/getOutletPickerTimesForDay.js +1 -1
- package/outlet/getOutletPickerTimesForDay.mjs +38 -36
- package/outlet/getOutletPickerTimesForWeek.js +1 -1
- package/outlet/getOutletPickerTimesForWeek.mjs +2 -2
- package/outlet/getOutletTagInformation.d.ts +1 -1
- package/outlet/getOutletTagInformation.js +1 -1
- package/outlet/getOutletTagInformation.mjs +70 -69
- package/outlet/getOutletTodayOpeningTimes.js +1 -1
- package/outlet/getOutletTodayOpeningTimes.mjs +39 -43
- package/outlet/getPartitionedOutletsList.js +1 -1
- package/outlet/getPartitionedOutletsList.mjs +4 -4
- package/outlet/getPickerIntervalsForDay.js +1 -1
- package/outlet/getPickerIntervalsForDay.mjs +12 -20
- package/outlet/getServiceIntervalEnd.d.ts +1 -1
- package/outlet/getServiceIntervalEnd.js +1 -1
- package/outlet/getServiceIntervalEnd.mjs +10 -12
- package/outlet/getServiceIntervalRange.d.ts +2 -1
- package/outlet/getServiceIntervalRange.js +1 -1
- package/outlet/getServiceIntervalRange.mjs +12 -8
- package/outlet/getServiceIntervalStart.d.ts +1 -1
- package/outlet/getServiceIntervalStart.js +1 -1
- package/outlet/getServiceIntervalStart.mjs +7 -6
- package/outlet/getServiceIntervalsForOrderFormat.d.ts +8 -7
- package/outlet/getStructuredOutletAddress.js +1 -1
- package/outlet/getStructuredOutletAddress.mjs +7 -7
- package/outlet/index.d.ts +2 -1
- package/outlet/index.js +1 -1
- package/outlet/index.mjs +68 -71
- package/outlet/searchNextOpeningMoment.d.ts +1 -1
- package/outlet/searchNextOpeningMoment.js +1 -1
- package/outlet/searchNextOpeningMoment.mjs +56 -49
- package/outlet/serviceDateTimesFromOpeningHours.d.ts +5 -3
- package/outlet/serviceDateTimesFromOpeningHours.js +1 -1
- package/outlet/serviceDateTimesFromOpeningHours.mjs +27 -342
- package/outlet/types.d.ts +2 -0
- package/package.json +16 -21
- package/quantity/getFormattedQuantity.d.ts +24 -0
- package/quantity/getFormattedQuantity.js +1 -0
- package/quantity/getFormattedQuantity.mjs +30 -0
- package/quantity/index.d.ts +2 -0
- package/quantity/index.js +1 -0
- package/quantity/index.mjs +4 -0
- package/time/getEndTimeSpanOfTimePeriod.js +1 -1
- package/time/getEndTimeSpanOfTimePeriod.mjs +9 -5
- package/toString-425512fc.js +1 -0
- package/{toString-3b91b335.mjs → toString-e631a957.mjs} +11 -12
- package/_baseIsEqual-12d01a44.mjs +0 -169
- package/_baseIsEqual-bcac9024.js +0 -1
- package/_baseIteratee-075c204c.js +0 -1
- package/_baseIteratee-4c4d0995.mjs +0 -97
- package/_baseSlice-4d543985.mjs +0 -10
- package/_baseSlice-e1b41ceb.js +0 -1
- package/_getTag-4e44633b.mjs +0 -382
- package/_getTag-b8923c48.js +0 -1
- package/date/createLocalTimezoneDate.d.ts +0 -8
- package/date/createLocalTimezoneDate.js +0 -1
- package/date/createLocalTimezoneDate.mjs +0 -8
- package/date/createLocalTimezoneMoment.d.ts +0 -9
- package/date/createLocalTimezoneMoment.js +0 -1
- package/date/createLocalTimezoneMoment.mjs +0 -8
- package/date/getFormattedUTCDateTime.d.ts +0 -10
- package/date/getFormattedUTCDateTime.js +0 -1
- package/date/getFormattedUTCDateTime.mjs +0 -8
- package/date/index.d.ts +0 -4
- package/date/index.js +0 -1
- package/date/index.mjs +0 -9
- package/identity-1bae7cf8.js +0 -1
- package/identity-6eafe87b.mjs +0 -64
- package/toString-9eae9442.js +0 -1
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This function creates a date object from the input value of `YYYY-MM-DDTHH:mm:ssZ` format in local timezone
|
|
3
|
-
* by ignoring the 'Z' from being added to the date.
|
|
4
|
-
*
|
|
5
|
-
* @param value The input in `YYYY-MM-DDTHH:mm:ssZ` format
|
|
6
|
-
* @returns The date object in local timezone
|
|
7
|
-
*/
|
|
8
|
-
export default function createLocalTimezoneDate(value: string): Date;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./createLocalTimezoneMoment.js");require("moment");function r(e){return t(e).toDate()}module.exports=r;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
|
-
/**
|
|
3
|
-
* This function creates a Moment object from the input value of `YYYY-MM-DDTHH:mm:ssZ` format in local timezone
|
|
4
|
-
* by ignoring the 'Z' from being added to the date.
|
|
5
|
-
*
|
|
6
|
-
* @param value The input in `YYYY-MM-DDTHH:mm:ssZ` format
|
|
7
|
-
* @returns Moment instance in local timezone
|
|
8
|
-
*/
|
|
9
|
-
export default function createLocalTimezoneMoment(value: string): moment.Moment;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("moment"),o="YYYY-MM-DDTHH:mm:ss";function m(e){return t(e,o)}module.exports=m;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MomentInput } from 'moment';
|
|
2
|
-
/**
|
|
3
|
-
* This converts the input date to UTC and returns the formatted date time. If no input is provided,
|
|
4
|
-
* it returns the current UTC date time
|
|
5
|
-
*
|
|
6
|
-
* @param input The input date to be converted to UTC
|
|
7
|
-
* @param format The format of the output date. Default is 'YYYY-MM-DDTHH:mm:ss'
|
|
8
|
-
* @returns The formatted UTC date time
|
|
9
|
-
*/
|
|
10
|
-
export default function getFormattedUTCDateTime(input?: MomentInput, format?: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const m=require("moment"),r="YYYY-MM-DDTHH:mm:ss";function o(t,e=r){return m.utc(t).format(e)}module.exports=o;
|
package/date/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import createLocalTimezoneDate from './createLocalTimezoneDate';
|
|
2
|
-
import createLocalTimezoneMoment from './createLocalTimezoneMoment';
|
|
3
|
-
import getFormattedUTCDateTime from './getFormattedUTCDateTime';
|
|
4
|
-
export { createLocalTimezoneDate, createLocalTimezoneMoment, getFormattedUTCDateTime, };
|
package/date/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./createLocalTimezoneDate.js"),t=require("./createLocalTimezoneMoment.js"),a=require("./getFormattedUTCDateTime.js");require("moment");exports.createLocalTimezoneDate=e;exports.createLocalTimezoneMoment=t;exports.getFormattedUTCDateTime=a;
|
package/date/index.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as o } from "./createLocalTimezoneDate.mjs";
|
|
2
|
-
import { default as m } from "./createLocalTimezoneMoment.mjs";
|
|
3
|
-
import { default as l } from "./getFormattedUTCDateTime.mjs";
|
|
4
|
-
import "moment";
|
|
5
|
-
export {
|
|
6
|
-
o as createLocalTimezoneDate,
|
|
7
|
-
m as createLocalTimezoneMoment,
|
|
8
|
-
l as getFormattedUTCDateTime
|
|
9
|
-
};
|
package/identity-1bae7cf8.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("./isArray-640f9811.js"),c=require("./toString-9eae9442.js"),f=require("./_getTag-b8923c48.js");var g=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m=/^\w*$/;function h(r,t){if(u.isArray(r))return!1;var e=typeof r;return e=="number"||e=="symbol"||e=="boolean"||r==null||c.isSymbol(r)?!0:m.test(r)||!g.test(r)||t!=null&&r in Object(t)}var d="Expected a function";function s(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(d);var e=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=e.cache;if(i.has(a))return i.get(a);var o=r.apply(this,n);return e.cache=i.set(a,o)||i,o};return e.cache=new(s.Cache||f.MapCache),e}s.Cache=f.MapCache;var l=500;function C(r){var t=s(r,function(n){return e.size===l&&e.clear(),n}),e=t.cache;return t}var E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/\\(\\)?/g,I=C(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(E,function(e,n,a,i){t.push(a?i.replace(P,"$1"):n||e)}),t});const T=I;function p(r,t){return u.isArray(r)?r:h(r,t)?[r]:T(c.toString(r))}var w=1/0;function y(r){if(typeof r=="string"||c.isSymbol(r))return r;var t=r+"";return t=="0"&&1/r==-w?"-0":t}function A(r,t){t=p(t,r);for(var e=0,n=t.length;r!=null&&e<n;)r=r[y(t[e++])];return e&&e==n?r:void 0}function M(r){return r}exports.baseGet=A;exports.castPath=p;exports.identity=M;exports.isKey=h;exports.toKey=y;
|
package/identity-6eafe87b.mjs
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { a as c } from "./isArray-0d9c7aaa.mjs";
|
|
2
|
-
import { i as f, t as p } from "./toString-3b91b335.mjs";
|
|
3
|
-
import { M as u } from "./_getTag-4e44633b.mjs";
|
|
4
|
-
var h = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, m = /^\w*$/;
|
|
5
|
-
function y(r, t) {
|
|
6
|
-
if (c(r))
|
|
7
|
-
return !1;
|
|
8
|
-
var n = typeof r;
|
|
9
|
-
return n == "number" || n == "symbol" || n == "boolean" || r == null || f(r) ? !0 : m.test(r) || !h.test(r) || t != null && r in Object(t);
|
|
10
|
-
}
|
|
11
|
-
var d = "Expected a function";
|
|
12
|
-
function o(r, t) {
|
|
13
|
-
if (typeof r != "function" || t != null && typeof t != "function")
|
|
14
|
-
throw new TypeError(d);
|
|
15
|
-
var n = function() {
|
|
16
|
-
var e = arguments, a = t ? t.apply(this, e) : e[0], i = n.cache;
|
|
17
|
-
if (i.has(a))
|
|
18
|
-
return i.get(a);
|
|
19
|
-
var s = r.apply(this, e);
|
|
20
|
-
return n.cache = i.set(a, s) || i, s;
|
|
21
|
-
};
|
|
22
|
-
return n.cache = new (o.Cache || u)(), n;
|
|
23
|
-
}
|
|
24
|
-
o.Cache = u;
|
|
25
|
-
var g = 500;
|
|
26
|
-
function l(r) {
|
|
27
|
-
var t = o(r, function(e) {
|
|
28
|
-
return n.size === g && n.clear(), e;
|
|
29
|
-
}), n = t.cache;
|
|
30
|
-
return t;
|
|
31
|
-
}
|
|
32
|
-
var E = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, C = /\\(\\)?/g, I = l(function(r) {
|
|
33
|
-
var t = [];
|
|
34
|
-
return r.charCodeAt(0) === 46 && t.push(""), r.replace(E, function(n, e, a, i) {
|
|
35
|
-
t.push(a ? i.replace(C, "$1") : e || n);
|
|
36
|
-
}), t;
|
|
37
|
-
});
|
|
38
|
-
const P = I;
|
|
39
|
-
function T(r, t) {
|
|
40
|
-
return c(r) ? r : y(r, t) ? [r] : P(p(r));
|
|
41
|
-
}
|
|
42
|
-
var w = 1 / 0;
|
|
43
|
-
function M(r) {
|
|
44
|
-
if (typeof r == "string" || f(r))
|
|
45
|
-
return r;
|
|
46
|
-
var t = r + "";
|
|
47
|
-
return t == "0" && 1 / r == -w ? "-0" : t;
|
|
48
|
-
}
|
|
49
|
-
function $(r, t) {
|
|
50
|
-
t = T(t, r);
|
|
51
|
-
for (var n = 0, e = t.length; r != null && n < e; )
|
|
52
|
-
r = r[M(t[n++])];
|
|
53
|
-
return n && n == e ? r : void 0;
|
|
54
|
-
}
|
|
55
|
-
function x(r) {
|
|
56
|
-
return r;
|
|
57
|
-
}
|
|
58
|
-
export {
|
|
59
|
-
y as a,
|
|
60
|
-
$ as b,
|
|
61
|
-
T as c,
|
|
62
|
-
x as i,
|
|
63
|
-
M as t
|
|
64
|
-
};
|
package/toString-9eae9442.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./isArray-640f9811.js");var l="[object Symbol]";function b(r){return typeof r=="symbol"||t.isObjectLike(r)&&t.baseGetTag(r)==l}function f(r,n){for(var o=-1,i=r==null?0:r.length,e=Array(i);++o<i;)e[o]=n(r[o],o,r);return e}var S=1/0,s=t.Symbol?t.Symbol.prototype:void 0,y=s?s.toString:void 0;function g(r){if(typeof r=="string")return r;if(t.isArray(r))return f(r,g)+"";if(b(r))return y?y.call(r):"";var n=r+"";return n=="0"&&1/r==-S?"-0":n}function c(r){return r==null?"":g(r)}exports.arrayMap=f;exports.isSymbol=b;exports.toString=c;
|