dev-classes 1.0.11 → 1.0.12

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.
@@ -45,6 +45,7 @@ export interface DateProcessingI {
45
45
  }): 'Сегодня' | 'Вчера' | 'Позавчера' | string;
46
46
  getCurrentDate(): string;
47
47
  getDaysInMonth(a: number, b: number): number;
48
+ getCurrentYear(): number;
48
49
  }
49
50
  export declare class DateProcessing {
50
51
  static getActiveColorClassInDiffDate: DateProcessingI['getActiveColorClassInDiffDate'];
@@ -73,6 +74,7 @@ export declare class DateProcessing {
73
74
  static cropSecond: DateProcessingI['cropSecond'];
74
75
  static getRenderDate: DateProcessingI['getRenderDate'];
75
76
  static getCurrentDate: DateProcessingI['getCurrentDate'];
77
+ static getCurrentYear: DateProcessingI['getCurrentYear'];
76
78
  static getDaysInMonth: DateProcessingI['getDaysInMonth'];
77
79
  }
78
80
  export {};
@@ -99,9 +99,9 @@ a(_DateProcessing, "getActiveColorClassInDiffDate", (e, t, r) => {
99
99
  return _DateProcessing.correctionDate(e, { shortYear: !0, withOutCurrentYear: r });
100
100
  }
101
101
  }), a(_DateProcessing, "getCurrentDate", () => {
102
- const e = /* @__PURE__ */ new Date(), t = e.getFullYear(), r = e.toJSON().split("T")[0].slice(5);
102
+ const e = /* @__PURE__ */ new Date(), t = _DateProcessing.getCurrentYear(), r = e.toJSON().split("T")[0].slice(5);
103
103
  return `${t}-${r}`;
104
- }), a(_DateProcessing, "getDaysInMonth", (e, t) => new Date(t, e, 0).getDate());
104
+ }), a(_DateProcessing, "getCurrentYear", () => (/* @__PURE__ */ new Date()).getFullYear()), a(_DateProcessing, "getDaysInMonth", (e, t) => new Date(t, e, 0).getDate());
105
105
  let DateProcessing = _DateProcessing;
106
106
  export {
107
107
  DateProcessing
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "git+https://github.com/SinGlEBW/dev-classes.git"
8
8
  },
9
9
  "license": "MIT",
10
- "version": "1.0.11",
10
+ "version": "1.0.12",
11
11
  "type": "module",
12
12
  "module": "./dist/index.js",
13
13
  "main": "./dist/index.js",