@quenty/countdowntext 4.9.0-canary.0a5db80.0 → 4.9.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/CHANGELOG.md CHANGED
@@ -3,7 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [4.9.0-canary.0a5db80.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/countdowntext@4.8.2...@quenty/countdowntext@4.9.0-canary.0a5db80.0) (2025-05-10)
6
+ # [4.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/countdowntext@4.8.3...@quenty/countdowntext@4.9.0) (2025-05-10)
7
+
8
+ **Note:** Version bump only for package @quenty/countdowntext
9
+
10
+
11
+
12
+
13
+
14
+ ## [4.8.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/countdowntext@4.8.2...@quenty/countdowntext@4.8.3) (2025-04-10)
7
15
 
8
16
  **Note:** Version bump only for package @quenty/countdowntext
9
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/countdowntext",
3
- "version": "4.9.0-canary.0a5db80.0",
3
+ "version": "4.9.0",
4
4
  "description": "Utility methods to format countdown text",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,10 +25,10 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/loader": "10.9.0-canary.0a5db80.0"
28
+ "@quenty/loader": "^10.9.0"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },
33
- "gitHead": "0a5db8004684dc3e76fd5944599a22602d48cfa9"
33
+ "gitHead": "20cff952c2cf06b959f2f11d2293bdef38acc604"
34
34
  }
@@ -28,7 +28,7 @@ function CountdownTextUtils.formatCountdown(seconds: number, whenAtZeroText: str
28
28
  end
29
29
 
30
30
  -- less than 1 hour
31
- if seconds <= 60*60 then
31
+ if seconds <= 60 * 60 then
32
32
  local hours = math.floor(seconds / 60)
33
33
  return string.format("%0d:%02d", hours, seconds % 60)
34
34
  end
@@ -38,28 +38,18 @@ function CountdownTextUtils.formatCountdown(seconds: number, whenAtZeroText: str
38
38
  local minutes = math.floor(seconds / 60) % 60
39
39
 
40
40
  if days == 0 then
41
- return string.format("%d:%02d:%02d",
42
- hours,
43
- minutes,
44
- seconds % 60)
41
+ return string.format("%d:%02d:%02d", hours, minutes, seconds % 60)
45
42
  elseif days == 1 then
46
43
  -- People would be confused about "1 day 2:15:00"
47
44
  -- So show 47:15:00
48
45
  hours = math.floor(seconds / 60 / 60) % 48
49
46
 
50
- return string.format("%d:%02d:%02d",
51
- hours,
52
- minutes,
53
- seconds % 60)
47
+ return string.format("%d:%02d:%02d", hours, minutes, seconds % 60)
54
48
  else
55
49
  -- TODO: Localize this "days" part?
56
50
 
57
- return string.format("%d days %d:%02d:%02d",
58
- days,
59
- hours,
60
- minutes,
61
- seconds % 60)
51
+ return string.format("%d days %d:%02d:%02d", days, hours, minutes, seconds % 60)
62
52
  end
63
53
  end
64
54
 
65
- return CountdownTextUtils
55
+ return CountdownTextUtils