@nocobase/utils 1.4.0-alpha.9 → 1.4.0-beta.10
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/lib/date.js +6 -3
- package/package.json +2 -2
package/lib/date.js
CHANGED
|
@@ -87,9 +87,12 @@ const toLocal = /* @__PURE__ */ __name((value) => {
|
|
|
87
87
|
}
|
|
88
88
|
}, "toLocal");
|
|
89
89
|
const convertQuarterToFirstDay = /* @__PURE__ */ __name((quarterStr) => {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
if ((0, import_dayjs.dayjs)(quarterStr).isValid()) {
|
|
91
|
+
const year = parseInt(quarterStr.slice(0, 4));
|
|
92
|
+
const quarter = parseInt(quarterStr.slice(-1));
|
|
93
|
+
return (0, import_dayjs.dayjs)().quarter(quarter).year(year);
|
|
94
|
+
}
|
|
95
|
+
return null;
|
|
93
96
|
}, "convertQuarterToFirstDay");
|
|
94
97
|
const toMoment = /* @__PURE__ */ __name((val, options) => {
|
|
95
98
|
if (!val) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/utils",
|
|
3
|
-
"version": "1.4.0-
|
|
3
|
+
"version": "1.4.0-beta.10",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"multer": "^1.4.5-lts.1",
|
|
17
17
|
"object-path": "^0.11.8"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "4e3bbdab89b6eea6011a7b86fdefd66e0d0080d4"
|
|
20
20
|
}
|