mhz-helpers 1.0.74 → 1.0.76
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/helpers/api.d.ts +1 -2
- package/dist/helpers/date.d.ts +1 -1
- package/dist/index.js +3 -2
- package/package.json +6 -6
package/dist/helpers/api.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const api: axios.AxiosStatic;
|
|
1
|
+
export declare const api: import('axios').AxiosStatic;
|
|
3
2
|
export declare function setBaseURL(url: string): void;
|
|
4
3
|
export declare function setAuthHeader(token: string): void;
|
|
5
4
|
export declare function deleteAuthHeader(): void;
|
package/dist/helpers/date.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function formatDate(dateRaw?: string | Date, lang?: 'ru' | 'en'): string;
|
|
2
2
|
export declare function formatDateTime(dateRaw?: string | Date, lang?: 'ru' | 'en'): string;
|
|
3
3
|
export declare function addZero(value: number): string;
|
|
4
|
-
export declare function formatDuration(duration
|
|
4
|
+
export declare function formatDuration(duration?: number): string;
|
|
5
5
|
export declare function subtractDates(dateRaw1?: string | Date, dateRaw2?: string | Date, isRawResult?: boolean): string | number;
|
package/dist/index.js
CHANGED
|
@@ -960,8 +960,9 @@ function Jr(t) {
|
|
|
960
960
|
return t.toString().length > 1 ? `${t}` : `0${t}`;
|
|
961
961
|
}
|
|
962
962
|
function Gr(t) {
|
|
963
|
+
if (!t) return "-";
|
|
963
964
|
const e = Math.floor(t / 60), n = t - e * 60;
|
|
964
|
-
return `${e} мин. ${Jr(n)} сек.`;
|
|
965
|
+
return `${e ? `${e} мин. ` : ""}${Jr(n)} сек.`;
|
|
965
966
|
}
|
|
966
967
|
function No(t, e, n) {
|
|
967
968
|
if (!t || !e) return "-";
|
|
@@ -2312,7 +2313,7 @@ function Qt(t) {
|
|
|
2312
2313
|
), r.response.headers = U.from(r.response.headers))), Promise.reject(r);
|
|
2313
2314
|
});
|
|
2314
2315
|
}
|
|
2315
|
-
const Un = "1.7.
|
|
2316
|
+
const Un = "1.7.9", Ue = {};
|
|
2316
2317
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
2317
2318
|
Ue[t] = function(r) {
|
|
2318
2319
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhz-helpers",
|
|
3
3
|
"description": "9000 Mhz frontend helpers and composables",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.76",
|
|
5
5
|
"author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@vueuse/core": "12.0.0",
|
|
27
27
|
"@vueuse/integrations": "12.0.0",
|
|
28
28
|
"async-validator": "4.2.5",
|
|
29
|
-
"axios": "1.7.
|
|
29
|
+
"axios": "1.7.9",
|
|
30
30
|
"vue": "3.5.13",
|
|
31
31
|
"vue-router": "4.5.0"
|
|
32
32
|
},
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"@vitejs/plugin-vue": "5.2.1",
|
|
37
37
|
"eslint": "9.16.0",
|
|
38
38
|
"eslint-config-prettier": "9.1.0",
|
|
39
|
-
"eslint-import-resolver-typescript": "3.
|
|
39
|
+
"eslint-import-resolver-typescript": "3.7.0",
|
|
40
40
|
"eslint-plugin-import-x": "4.5.0",
|
|
41
41
|
"eslint-plugin-prettier": "5.2.1",
|
|
42
42
|
"eslint-plugin-vue": "9.32.0",
|
|
43
43
|
"globals": "15.13.0",
|
|
44
44
|
"postcss-html": "1.7.0",
|
|
45
|
-
"prettier": "3.4.
|
|
45
|
+
"prettier": "3.4.2",
|
|
46
46
|
"stylelint": "16.11.0",
|
|
47
47
|
"stylelint-config-recess-order": "5.1.1",
|
|
48
48
|
"stylelint-config-recommended-scss": "14.1.0",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"stylelint-prettier": "5.0.2",
|
|
51
51
|
"typescript": "5.6.3",
|
|
52
52
|
"typescript-eslint": "8.17.0",
|
|
53
|
-
"vite": "6.0.
|
|
53
|
+
"vite": "6.0.3",
|
|
54
54
|
"vite-plugin-dts": "4.3.0",
|
|
55
55
|
"vue-eslint-parser": "9.4.3",
|
|
56
|
-
"vue-linters-config": "0.3.
|
|
56
|
+
"vue-linters-config": "0.3.10",
|
|
57
57
|
"vue-tsc": "2.1.10"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|