semanticdb-core 1.0.42 → 1.0.43
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/dist/common/date.js +1 -10
- package/package.json +1 -1
package/dist/common/date.js
CHANGED
|
@@ -98,16 +98,7 @@ function getMinGran(date, flag = false) {
|
|
|
98
98
|
}
|
|
99
99
|
return 'day';
|
|
100
100
|
}
|
|
101
|
-
if (date.$options === '
|
|
102
|
-
return 'year';
|
|
103
|
-
}
|
|
104
|
-
if (date.$options === 'QTD') {
|
|
105
|
-
return 'quarter';
|
|
106
|
-
}
|
|
107
|
-
if (date.$options === 'MTD') {
|
|
108
|
-
return 'month';
|
|
109
|
-
}
|
|
110
|
-
if (date.$options === 'DTD') {
|
|
101
|
+
if (typeof date.$options === 'string' && date.$options.endsWith('TD')) {
|
|
111
102
|
return 'day';
|
|
112
103
|
}
|
|
113
104
|
const checkLTEValid = (lte, tw) => {
|