@leancodepl/api-date-datefns 7.2.4 → 7.3.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/index.cjs.js +1 -2
- package/index.esm.js +1 -2
- package/package.json +3 -3
package/index.cjs.js
CHANGED
|
@@ -64,9 +64,8 @@ function fromApiTimeSpan(timeSpan) {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
function padTo2(x) {
|
|
67
|
-
var _x;
|
|
68
67
|
var _x_toFixed;
|
|
69
|
-
const stringified = (_x_toFixed =
|
|
68
|
+
const stringified = (_x_toFixed = x == null ? void 0 : x.toFixed(0)) != null ? _x_toFixed : "0";
|
|
70
69
|
return stringified.padStart(2, "0");
|
|
71
70
|
}
|
|
72
71
|
|
package/index.esm.js
CHANGED
|
@@ -60,9 +60,8 @@ function fromApiTimeSpan(timeSpan) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
function padTo2(x) {
|
|
63
|
-
var _x;
|
|
64
63
|
var _x_toFixed;
|
|
65
|
-
const stringified = (_x_toFixed =
|
|
64
|
+
const stringified = (_x_toFixed = x == null ? void 0 : x.toFixed(0)) != null ? _x_toFixed : "0";
|
|
66
65
|
return stringified.padStart(2, "0");
|
|
67
66
|
}
|
|
68
67
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leancodepl/api-date-datefns",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@leancodepl/api-date": "7.
|
|
7
|
-
"@leancodepl/api-date-utils": "7.
|
|
6
|
+
"@leancodepl/api-date": "7.3.0",
|
|
7
|
+
"@leancodepl/api-date-utils": "7.3.0",
|
|
8
8
|
"date-fns": ">=2.0.0"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|