@ancon/wildcat-utils 1.44.0-r13-2-tz.47 → 1.44.0-r13-2-tz.49

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.
Files changed (38) hide show
  1. package/date/convertToSpecificTimezone.d.ts +10 -2
  2. package/date/convertToSpecificTimezone.js +1 -1
  3. package/date/convertToSpecificTimezone.mjs +2 -4
  4. package/date/getTimezoneUtcOffsetDifference.d.ts +4 -4
  5. package/date/index.d.ts +1 -2
  6. package/date/index.js +1 -1
  7. package/date/index.mjs +5 -7
  8. package/date/isDSTShiftPresentInRange.d.ts +2 -2
  9. package/index.js +1 -1
  10. package/index.mjs +324 -325
  11. package/outlet/getOutletCurrentActiveOperatingHour.js +1 -1
  12. package/outlet/getOutletCurrentActiveOperatingHour.mjs +26 -39
  13. package/outlet/getOutletCurrentAvailabilityInfo.js +1 -1
  14. package/outlet/getOutletCurrentAvailabilityInfo.mjs +16 -15
  15. package/outlet/getOutletNextOpeningTagInformation.js +1 -1
  16. package/outlet/getOutletNextOpeningTagInformation.mjs +5 -4
  17. package/outlet/getOutletNextOpeningTimeText.js +1 -1
  18. package/outlet/getOutletNextOpeningTimeText.mjs +5 -4
  19. package/outlet/getOutletNextReadyToOrderTime.js +1 -1
  20. package/outlet/getOutletNextReadyToOrderTime.mjs +4 -3
  21. package/outlet/getOutletPickerTimesForDay.js +1 -1
  22. package/outlet/getOutletPickerTimesForDay.mjs +3 -2
  23. package/outlet/getOutletPickerTimesForWeek.js +1 -1
  24. package/outlet/getOutletPickerTimesForWeek.mjs +7 -6
  25. package/outlet/getOutletTagInformation.js +1 -1
  26. package/outlet/getOutletTagInformation.mjs +60 -60
  27. package/outlet/getTimezoneAdjustedServiceInterval.d.ts +15 -0
  28. package/outlet/getTimezoneAdjustedServiceInterval.js +1 -0
  29. package/outlet/getTimezoneAdjustedServiceInterval.mjs +26 -0
  30. package/outlet/index.js +1 -1
  31. package/outlet/index.mjs +66 -65
  32. package/outlet/searchNextOpeningMoment.js +1 -1
  33. package/outlet/searchNextOpeningMoment.mjs +55 -84
  34. package/outlet/types.d.ts +1 -1
  35. package/package.json +6 -6
  36. package/date/isDSTShiftPresentOnDate.d.ts +0 -8
  37. package/date/isDSTShiftPresentOnDate.js +0 -1
  38. package/date/isDSTShiftPresentOnDate.mjs +0 -15
package/outlet/index.mjs CHANGED
@@ -1,35 +1,35 @@
1
- import { default as W } from "./getListOutletOpeningHoursTable.mjs";
2
- import { default as q } from "./getOutletTagInformation.mjs";
3
- import { default as z } from "./getOutletAvailabilityInfo.mjs";
4
- import { default as G } from "./getOutletOfflineOrderFormats.mjs";
5
- import { default as K } from "./getOutletAvailableOrderFormats.mjs";
6
- import { default as U } from "./getOutletFormattedDistance.mjs";
7
- import { default as X } from "./isOutletAcceptingPreOrders.mjs";
8
- import { default as Z } from "./getOutletDeliveryFee.mjs";
9
- import { default as $ } from "./getOutletTodayOpeningTimes.mjs";
10
- import { default as et } from "./getOutletOrderFormats.mjs";
11
- import { default as ot } from "./serviceDateTimesFromOpeningHours.mjs";
12
- import { default as it } from "./getPickerIntervalsForDay.mjs";
13
- import { default as pt } from "./getServiceIntervalRange.mjs";
14
- import { default as ft } from "./getServiceIntervalsForOrderFormat.mjs";
15
- import { default as ut } from "./getOutletFormattedAddress.mjs";
16
- import { default as Ot } from "./getPartitionedOutletsList.mjs";
17
- import { default as gt } from "./getOutletPickerTimesForWeek.mjs";
18
- import { default as Tt } from "./getOutletPickerTimesForDay.mjs";
19
- import { default as ct } from "./getOutletOrderPrepTime.mjs";
20
- import { default as At } from "./getStructuredOutletAddress.mjs";
21
- import { default as bt } from "./getOutletNextOpeningTimeText.mjs";
22
- import { default as It } from "./getOutletCurrentClosingTimeText.mjs";
23
- import { default as Dt } from "./getOutletNextReadyToOrderTime.mjs";
24
- import { default as kt } from "./getOutletNextOpeningTagInformation.mjs";
25
- import { default as Et } from "./getOutletCurrentAvailabilityInfo.mjs";
26
- import { default as ht } from "./getExpressAvailableOrderFormats.mjs";
27
- import { default as Mt } from "./getExpressNextAvailabilityShiftTime.mjs";
28
- import { default as Wt } from "./getOrderFormatAOTipSettings.mjs";
29
- import { default as qt } from "./isAOTippingEnabledForOrderFormat.mjs";
30
- import { default as zt } from "./isMenuTreeHierarchyProductAvailable.mjs";
31
- import { default as Gt } from "./getOutletMenuProductsSortCriteria.mjs";
32
- import { default as Kt } from "./getOutletNextServiceTimeOffset.mjs";
1
+ import { default as j } from "./getListOutletOpeningHoursTable.mjs";
2
+ import { default as w } from "./getOutletTagInformation.mjs";
3
+ import { default as B } from "./getOutletAvailabilityInfo.mjs";
4
+ import { default as J } from "./getOutletOfflineOrderFormats.mjs";
5
+ import { default as Q } from "./getOutletAvailableOrderFormats.mjs";
6
+ import { default as V } from "./getOutletFormattedDistance.mjs";
7
+ import { default as Y } from "./isOutletAcceptingPreOrders.mjs";
8
+ import { default as _ } from "./getOutletDeliveryFee.mjs";
9
+ import { default as tt } from "./getOutletTodayOpeningTimes.mjs";
10
+ import { default as rt } from "./getOutletOrderFormats.mjs";
11
+ import { default as at } from "./serviceDateTimesFromOpeningHours.mjs";
12
+ import { default as mt } from "./getPickerIntervalsForDay.mjs";
13
+ import { default as lt } from "./getServiceIntervalRange.mjs";
14
+ import { default as st } from "./getServiceIntervalsForOrderFormat.mjs";
15
+ import { default as dt } from "./getOutletFormattedAddress.mjs";
16
+ import { default as xt } from "./getPartitionedOutletsList.mjs";
17
+ import { default as nt } from "./getOutletPickerTimesForWeek.mjs";
18
+ import { default as Ft } from "./getOutletPickerTimesForDay.mjs";
19
+ import { default as vt } from "./getOutletOrderPrepTime.mjs";
20
+ import { default as yt } from "./getStructuredOutletAddress.mjs";
21
+ import { default as Pt } from "./getOutletNextOpeningTimeText.mjs";
22
+ import { default as St } from "./getOutletCurrentClosingTimeText.mjs";
23
+ import { default as Nt } from "./getOutletNextReadyToOrderTime.mjs";
24
+ import { default as Ct } from "./getOutletNextOpeningTagInformation.mjs";
25
+ import { default as Ht } from "./getOutletCurrentAvailabilityInfo.mjs";
26
+ import { default as Lt } from "./getExpressAvailableOrderFormats.mjs";
27
+ import { default as Rt } from "./getExpressNextAvailabilityShiftTime.mjs";
28
+ import { default as jt } from "./getOrderFormatAOTipSettings.mjs";
29
+ import { default as wt } from "./isAOTippingEnabledForOrderFormat.mjs";
30
+ import { default as Bt } from "./isMenuTreeHierarchyProductAvailable.mjs";
31
+ import { default as Jt } from "./getOutletMenuProductsSortCriteria.mjs";
32
+ import { default as Qt } from "./getOutletNextServiceTimeOffset.mjs";
33
33
  import "moment";
34
34
  import "@ancon/wildcat-types";
35
35
  import "../shared/isWithinFlag.mjs";
@@ -39,8 +39,9 @@ import "../time/getTimeSpanParts.mjs";
39
39
  import "../date/createLocalTimezoneMoment.mjs";
40
40
  import "./constants.mjs";
41
41
  import "./getOutletCurrentActiveOperatingHour.mjs";
42
- import "../date/convertToSpecificTimezone.mjs";
42
+ import "./getTimezoneAdjustedServiceInterval.mjs";
43
43
  import "../date/getTimezoneUtcOffsetDifference.mjs";
44
+ import "../date/convertToSpecificTimezone.mjs";
44
45
  import "./getServiceIntervalTimeSpanMoment.mjs";
45
46
  import "./searchNextOpeningMoment.mjs";
46
47
  import "../_baseIteratee-4c4d0995.mjs";
@@ -66,36 +67,36 @@ import "./hoursAndMinutesToMinutes.mjs";
66
67
  import "./getExpressServiceIntervalStart.mjs";
67
68
  import "./getExpressServiceIntervalEnd.mjs";
68
69
  export {
69
- ht as getExpressAvailableOrderFormats,
70
- Mt as getExpressNextAvailabilityShiftTime,
71
- W as getListOutletOpeningHoursTable,
72
- Wt as getOrderFormatAOTipSettings,
73
- z as getOutletAvailabilityInfo,
74
- K as getOutletAvailableOrderFormats,
75
- Et as getOutletCurrentAvailabilityInfo,
76
- It as getOutletCurrentClosingTimeText,
77
- Z as getOutletDeliveryFee,
78
- ut as getOutletFormattedAddress,
79
- U as getOutletFormattedDistance,
80
- Gt as getOutletMenuProductsSortCriteria,
81
- kt as getOutletNextOpeningTagInformation,
82
- bt as getOutletNextOpeningTimeText,
83
- Dt as getOutletNextReadyToOrderTime,
84
- Kt as getOutletNextServiceTimeOffset,
85
- G as getOutletOfflineOrderFormats,
86
- et as getOutletOrderFormats,
87
- ct as getOutletOrderPreparationTime,
88
- Tt as getOutletPickerTimesForDay,
89
- gt as getOutletPickerTimesForWeek,
90
- q as getOutletTagInformation,
91
- $ as getOutletTodayOpeningTimes,
92
- Ot as getPartitionedOutletsList,
93
- it as getPickerIntervalsForDay,
94
- pt as getServiceIntervalRange,
95
- ft as getServiceIntervalsForOrderFormat,
96
- At as getStructuredOutletAddress,
97
- qt as isAOTippingEnabledForOrderFormat,
98
- zt as isMenuTreeHierarchyProductAvailable,
99
- X as isOutletAcceptingPreOrders,
100
- ot as serviceDateTimesFromOpeningHours
70
+ Lt as getExpressAvailableOrderFormats,
71
+ Rt as getExpressNextAvailabilityShiftTime,
72
+ j as getListOutletOpeningHoursTable,
73
+ jt as getOrderFormatAOTipSettings,
74
+ B as getOutletAvailabilityInfo,
75
+ Q as getOutletAvailableOrderFormats,
76
+ Ht as getOutletCurrentAvailabilityInfo,
77
+ St as getOutletCurrentClosingTimeText,
78
+ _ as getOutletDeliveryFee,
79
+ dt as getOutletFormattedAddress,
80
+ V as getOutletFormattedDistance,
81
+ Jt as getOutletMenuProductsSortCriteria,
82
+ Ct as getOutletNextOpeningTagInformation,
83
+ Pt as getOutletNextOpeningTimeText,
84
+ Nt as getOutletNextReadyToOrderTime,
85
+ Qt as getOutletNextServiceTimeOffset,
86
+ J as getOutletOfflineOrderFormats,
87
+ rt as getOutletOrderFormats,
88
+ vt as getOutletOrderPreparationTime,
89
+ Ft as getOutletPickerTimesForDay,
90
+ nt as getOutletPickerTimesForWeek,
91
+ w as getOutletTagInformation,
92
+ tt as getOutletTodayOpeningTimes,
93
+ xt as getPartitionedOutletsList,
94
+ mt as getPickerIntervalsForDay,
95
+ lt as getServiceIntervalRange,
96
+ st as getServiceIntervalsForOrderFormat,
97
+ yt as getStructuredOutletAddress,
98
+ wt as isAOTippingEnabledForOrderFormat,
99
+ Bt as isMenuTreeHierarchyProductAvailable,
100
+ Y as isOutletAcceptingPreOrders,
101
+ at as serviceDateTimesFromOpeningHours
101
102
  };
@@ -1 +1 @@
1
- "use strict";const D=require("moment"),p=require("@ancon/wildcat-types"),d=require("../time/getTimeSpanParts.js"),u=require("../date/convertToSpecificTimezone.js"),O=require("../date/getTimezoneUtcOffsetDifference.js"),m=require("./constants.js"),a=require("./getServiceIntervalTimeSpanMoment.js");function y(c){let n=null;const{intervals:t,exception:o}=c;if(o){const{state:i}=o;i||(n=o)}else{const i=t.sort((e,f)=>d(e.from).hours-d(f.from).hours),[r]=i;return r}return n}function v(c,n,t){var i,r;const o=[];if(n.exception){if(n.exception.state===p.IntervalState.Opened){let e=a(c,n.exception.from);e=u(e,t.utcOffset(),!0),t.isBefore(e)&&o.push({interval:n.exception,moment:e})}}else for(let e=0;e<n.intervals.length;e+=1){const f=n.intervals[e];let s=a(c,f.from);const l=s.clone().add(f.duration);O(s,l)&&(s=u(s,t.utcOffset(),!0)),console.log("relevantMoment",t.format()),console.log("openingMoment",s.format()),t.isBefore(s)&&o.push({interval:f,moment:s})}return o.length<2?((i=o[0])==null?void 0:i.interval)??null:((r=o.sort((e,f)=>e.moment-t-(f.moment-t))[0])==null?void 0:r.interval)??null}function x(c,n){let t=null;const o=D(n).format(m.OutletMapKeyFormatter),i=v(o,c[o],n);if(console.log("initialDayOperatingHour",i,n.format()),i){t=a(o,i.from);const r=t.clone().add(i.duration);O(t,r)&&(t=u(t,n.utcOffset(),!0))}if(console.log("initialDayOperatingHour",t==null?void 0:t.format()),!t)for(let r=1;r<m.OutletTimelineDayCount;r+=1){const e=D(n).add(r,"d"),f=e.format(m.OutletMapKeyFormatter),s=c[f],l=y(s);if(l){t=a(f,l.from);const g=t.clone().add(l.duration);O(t,g)&&(t=u(t,e.utcOffset(),!0));break}}return t}module.exports=x;
1
+ "use strict";const m=require("moment"),g=require("@ancon/wildcat-types"),d=require("../time/getTimeSpanParts.js"),a=require("./constants.js"),c=require("./getTimezoneAdjustedServiceInterval.js");require("../date/getTimezoneUtcOffsetDifference.js");require("../date/convertToSpecificTimezone.js");require("./getServiceIntervalTimeSpanMoment.js");function p(l){let t=null;const{intervals:e,exception:n}=l;if(n){const{state:r}=n;r||(t=n)}else{const r=e.sort((i,o)=>d(i.from).hours-d(o.from).hours),[s]=r;return s}return t}function O(l,t,e){var r,s;const n=[];if(t.exception){if(t.exception.state===g.IntervalState.Opened){const o=c(l,t.exception,e.utcOffset()).openingTime;e.isBefore(o)&&n.push({interval:t.exception,moment:o})}}else for(let i=0;i<t.intervals.length;i+=1){const o=t.intervals[i],u=c(l,o,e.utcOffset()).openingTime;console.log("relevantMoment",e.format()),console.log("openingMoment",u.format()),e.isBefore(u)&&n.push({interval:o,moment:u})}return n.length<2?((r=n[0])==null?void 0:r.interval)??null:((s=n.sort((i,o)=>i.moment-e-(o.moment-e))[0])==null?void 0:s.interval)??null}function y(l,t){let e=null;const n=m(t).format(a.OutletMapKeyFormatter),r=O(n,l[n],t);if(console.log("initialDayOperatingHour",r,t.format()),r&&(e=c(n,r,t.utcOffset()).openingTime),console.log("initialDayOperatingHour",e==null?void 0:e.format()),!e)for(let s=1;s<a.OutletTimelineDayCount;s+=1){const i=m(t).add(s,"d"),o=i.format(a.OutletMapKeyFormatter),f=l[o],u=p(f);if(u){e=c(o,u,i.utcOffset()).openingTime;break}}return e}module.exports=y;
@@ -1,112 +1,83 @@
1
- import g from "moment";
1
+ import a from "moment";
2
2
  import { IntervalState as d } from "@ancon/wildcat-types";
3
- import p from "../time/getTimeSpanParts.mjs";
4
- import u from "../date/convertToSpecificTimezone.mjs";
5
- import m from "../date/getTimezoneUtcOffsetDifference.mjs";
6
- import { OutletMapKeyFormatter as D, OutletTimelineDayCount as y } from "./constants.mjs";
7
- import a from "./getServiceIntervalTimeSpanMoment.mjs";
8
- function v(l) {
9
- let o = null;
3
+ import c from "../time/getTimeSpanParts.mjs";
4
+ import { OutletMapKeyFormatter as p, OutletTimelineDayCount as g } from "./constants.mjs";
5
+ import m from "./getTimezoneAdjustedServiceInterval.mjs";
6
+ import "../date/getTimezoneUtcOffsetDifference.mjs";
7
+ import "../date/convertToSpecificTimezone.mjs";
8
+ import "./getServiceIntervalTimeSpanMoment.mjs";
9
+ function O(l) {
10
+ let e = null;
10
11
  const { intervals: t, exception: n } = l;
11
12
  if (n) {
12
- const { state: i } = n;
13
- i || (o = n);
13
+ const { state: r } = n;
14
+ r || (e = n);
14
15
  } else {
15
- const i = t.sort(
16
- (e, r) => p(e.from).hours - p(r.from).hours
17
- ), [f] = i;
18
- return f;
16
+ const r = t.sort(
17
+ (i, o) => c(i.from).hours - c(o.from).hours
18
+ ), [s] = r;
19
+ return s;
19
20
  }
20
- return o;
21
+ return e;
21
22
  }
22
- function x(l, o, t) {
23
- var i, f;
23
+ function y(l, e, t) {
24
+ var r, s;
24
25
  const n = [];
25
- if (o.exception) {
26
- if (o.exception.state === d.Opened) {
27
- let e = a(
26
+ if (e.exception) {
27
+ if (e.exception.state === d.Opened) {
28
+ const o = m(
28
29
  l,
29
- o.exception.from
30
- );
31
- e = u(
32
- e,
33
- t.utcOffset(),
34
- !0
35
- ), t.isBefore(e) && n.push({
36
- interval: o.exception,
37
- moment: e
30
+ e.exception,
31
+ t.utcOffset()
32
+ ).openingTime;
33
+ t.isBefore(o) && n.push({
34
+ interval: e.exception,
35
+ moment: o
38
36
  });
39
37
  }
40
38
  } else
41
- for (let e = 0; e < o.intervals.length; e += 1) {
42
- const r = o.intervals[e];
43
- let s = a(
39
+ for (let i = 0; i < e.intervals.length; i += 1) {
40
+ const o = e.intervals[i], f = m(
44
41
  l,
45
- r.from
46
- );
47
- const c = s.clone().add(r.duration);
48
- m(
49
- s,
50
- c
51
- ) && (s = u(
52
- s,
53
- t.utcOffset(),
54
- !0
55
- )), console.log("relevantMoment", t.format()), console.log("openingMoment", s.format()), t.isBefore(s) && n.push({ interval: r, moment: s });
42
+ o,
43
+ t.utcOffset()
44
+ ).openingTime;
45
+ console.log("relevantMoment", t.format()), console.log("openingMoment", f.format()), t.isBefore(f) && n.push({ interval: o, moment: f });
56
46
  }
57
- return n.length < 2 ? ((i = n[0]) == null ? void 0 : i.interval) ?? null : ((f = n.sort(
47
+ return n.length < 2 ? ((r = n[0]) == null ? void 0 : r.interval) ?? null : ((s = n.sort(
58
48
  // @ts-ignore TODO
59
- (e, r) => e.moment - t - (r.moment - t)
60
- )[0]) == null ? void 0 : f.interval) ?? null;
49
+ (i, o) => i.moment - t - (o.moment - t)
50
+ )[0]) == null ? void 0 : s.interval) ?? null;
61
51
  }
62
- function F(l, o) {
52
+ function K(l, e) {
63
53
  let t = null;
64
- const n = g(o).format(D), i = x(
54
+ const n = a(e).format(p), r = y(
65
55
  n,
66
56
  l[n],
67
- o
57
+ e
68
58
  );
69
59
  if (console.log(
70
60
  "initialDayOperatingHour",
71
- i,
72
- o.format()
73
- ), i) {
74
- t = a(
75
- n,
76
- i.from
77
- );
78
- const f = t.clone().add(i.duration);
79
- m(
80
- t,
81
- f
82
- ) && (t = u(
83
- t,
84
- o.utcOffset(),
85
- !0
86
- ));
87
- }
88
- if (console.log("initialDayOperatingHour", t == null ? void 0 : t.format()), !t)
89
- for (let f = 1; f < y; f += 1) {
90
- const e = g(o).add(f, "d"), r = e.format(D), s = l[r], c = v(s);
91
- if (c) {
92
- t = a(
93
- r,
94
- c.from
95
- );
96
- const O = t.clone().add(c.duration);
97
- m(
98
- t,
99
- O
100
- ) && (t = u(
101
- t,
102
- e.utcOffset(),
103
- !0
104
- ));
61
+ r,
62
+ e.format()
63
+ ), r && (t = m(
64
+ n,
65
+ r,
66
+ e.utcOffset()
67
+ ).openingTime), console.log("initialDayOperatingHour", t == null ? void 0 : t.format()), !t)
68
+ for (let s = 1; s < g; s += 1) {
69
+ const i = a(e).add(s, "d"), o = i.format(p), u = l[o], f = O(u);
70
+ if (f) {
71
+ t = m(
72
+ o,
73
+ f,
74
+ i.utcOffset()
75
+ ).openingTime;
105
76
  break;
106
77
  }
107
78
  }
108
79
  return t;
109
80
  }
110
81
  export {
111
- F as default
82
+ K as default
112
83
  };
package/outlet/types.d.ts CHANGED
@@ -32,7 +32,7 @@ export declare type PickerTime = {
32
32
  timestamp: number;
33
33
  timeLabel: string;
34
34
  dayLabel: string;
35
- /** This is available if the picker day is in DST */
35
+ /** This is available if the picker time is in an interval that has a DST shift */
36
36
  timezoneTag?: PickerTimeTimezoneTag;
37
37
  };
38
38
  export declare type PickerDay = PickerTime[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ancon/wildcat-utils",
3
- "version": "1.44.0-r13-2-tz.47",
3
+ "version": "1.44.0-r13-2-tz.49",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -341,11 +341,6 @@
341
341
  "require": "./date/isDSTShiftPresentInRange.js",
342
342
  "types": "./date/isDSTShiftPresentInRange.d.ts"
343
343
  },
344
- "./date/isDSTShiftPresentOnDate": {
345
- "import": "./date/isDSTShiftPresentOnDate.mjs",
346
- "require": "./date/isDSTShiftPresentOnDate.js",
347
- "types": "./date/isDSTShiftPresentOnDate.d.ts"
348
- },
349
344
  "./error/createCodedError": {
350
345
  "import": "./error/createCodedError.mjs",
351
346
  "require": "./error/createCodedError.js",
@@ -796,6 +791,11 @@
796
791
  "require": "./outlet/getStructuredOutletAddress.js",
797
792
  "types": "./outlet/getStructuredOutletAddress.d.ts"
798
793
  },
794
+ "./outlet/getTimezoneAdjustedServiceInterval": {
795
+ "import": "./outlet/getTimezoneAdjustedServiceInterval.mjs",
796
+ "require": "./outlet/getTimezoneAdjustedServiceInterval.js",
797
+ "types": "./outlet/getTimezoneAdjustedServiceInterval.d.ts"
798
+ },
799
799
  "./outlet/hoursAndMinutesToMinutes": {
800
800
  "import": "./outlet/hoursAndMinutesToMinutes.mjs",
801
801
  "require": "./outlet/hoursAndMinutesToMinutes.js",
@@ -1,8 +0,0 @@
1
- import { MomentInput } from 'moment';
2
- /**
3
- * This function checks if DST shift is present on the given date
4
- *
5
- * @param date The date to check
6
- * @returns The flag indicating whether DST shift is present
7
- */
8
- export default function isDSTShiftPresentOnDate(date: MomentInput): boolean;
@@ -1 +0,0 @@
1
- "use strict";const r=require("moment"),s=require("./isDSTShiftPresentInRange.js");require("./getTimezoneUtcOffsetDifference.js");function a(o){const t=r(o),e=t.clone().startOf("day"),n=t.clone().endOf("day");return console.log("isDSTShiftPresentOnDate",t.format(),e.format(),n.format()),s(e,n)}module.exports=a;
@@ -1,15 +0,0 @@
1
- import r from "moment";
2
- import a from "./isDSTShiftPresentInRange.mjs";
3
- import "./getTimezoneUtcOffsetDifference.mjs";
4
- function i(o) {
5
- const t = r(o), e = t.clone().startOf("day"), n = t.clone().endOf("day");
6
- return console.log(
7
- "isDSTShiftPresentOnDate",
8
- t.format(),
9
- e.format(),
10
- n.format()
11
- ), a(e, n);
12
- }
13
- export {
14
- i as default
15
- };