tripstorekrabi-shared 1.18.3 → 1.18.5
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/availability.js +1 -1
- package/package.json +3 -3
package/availability.js
CHANGED
|
@@ -168,7 +168,7 @@ export function isLastMinuteDate(dateValue, cutoffTime) {
|
|
|
168
168
|
let date = dayjs(dateValue, "DD.MM.YYYY").tz("Asia/Bangkok");
|
|
169
169
|
let now = dayjs().tz("Asia/Bangkok");
|
|
170
170
|
|
|
171
|
-
return now.add(cutoffTime, "hour").
|
|
171
|
+
return now.add(cutoffTime, "hour").isSameOrAfter(date, "day");
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
export function isPastDate(dateValue, schedule) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tripstorekrabi-shared",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.5",
|
|
4
4
|
"description": "Shared library for Trip Store Krabi",
|
|
5
5
|
"author": "Stefan Sommer <tonprince@gmail.com>",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"dayjs": "^1.11.13",
|
|
19
|
-
"libphonenumber-js": "^1.11.
|
|
20
|
-
"nanoid": "^5.0.
|
|
19
|
+
"libphonenumber-js": "^1.11.15",
|
|
20
|
+
"nanoid": "^5.0.8"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"deploy": "npm publish"
|