@kontur.candy/generator 5.27.0-ss-doc-import.7 → 5.27.0-ss-doc-import.9
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/index.js +16 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -61220,7 +61220,22 @@ function addYears(date, amount) {
|
|
|
61220
61220
|
return date;
|
|
61221
61221
|
}
|
|
61222
61222
|
function dateToString(date, format) {
|
|
61223
|
-
|
|
61223
|
+
var _months;
|
|
61224
|
+
const months = {
|
|
61225
|
+
"1": "января",
|
|
61226
|
+
"2": "февраля",
|
|
61227
|
+
"3": "марта",
|
|
61228
|
+
"4": "апреля",
|
|
61229
|
+
"5": "мая",
|
|
61230
|
+
"6": "июня",
|
|
61231
|
+
"7": "июля",
|
|
61232
|
+
"8": "августа",
|
|
61233
|
+
"9": "сентября",
|
|
61234
|
+
"10": "октября",
|
|
61235
|
+
"11": "ноября",
|
|
61236
|
+
"12": "декабря"
|
|
61237
|
+
};
|
|
61238
|
+
return format.replace("HH", date.getHours().toString().padStart(2, "0")).replace("mm", date.getMinutes().toString().padStart(2, "0")).replace("dd", date.getDate().toString().padStart(2, "0")).replace("d", date.getDate().toString()).replace("MMMM", (_months = months[date.getMonth() + 1]) !== null && _months !== void 0 ? _months : "").replace("MM", (date.getMonth() + 1).toString().padStart(2, "0")).replace("yyyy", date.getFullYear().toString());
|
|
61224
61239
|
}
|
|
61225
61240
|
function isDate(date) {
|
|
61226
61241
|
return date instanceof Date && !isNaN(date.getTime());
|