mhz-helpers 1.4.31 → 1.4.33
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/api/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "../api-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "../api-CaQgKkC8.js";
|
|
2
2
|
export { i as api, n as deleteAuthHeader, r as handleError, t as setAuthHeader, e as setBaseURL };
|
|
@@ -991,7 +991,7 @@ var K = (e, t, n = 3) => {
|
|
|
991
991
|
//#endregion
|
|
992
992
|
//#region ../../node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
993
993
|
function Vt(e) {
|
|
994
|
-
return typeof e == "string"
|
|
994
|
+
return typeof e == "string" && /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
995
995
|
}
|
|
996
996
|
//#endregion
|
|
997
997
|
//#region ../../node_modules/axios/lib/helpers/combineURLs.js
|
|
@@ -1554,7 +1554,7 @@ Tn.transitional = function(e, t, n) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
return (n, i, a) => {
|
|
1556
1556
|
if (e === !1) throw new B(r(i, " has been removed" + (t ? " in " + t : "")), B.ERR_DEPRECATED);
|
|
1557
|
-
return t && !En[i] && (En[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e
|
|
1557
|
+
return t && !En[i] && (En[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), !e || e(n, i, a);
|
|
1558
1558
|
};
|
|
1559
1559
|
}, Tn.spelling = function(e) {
|
|
1560
1560
|
return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
package/dist/query/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, o as t, r as n, s as r } from "../api-
|
|
1
|
+
import { n as e, o as t, r as n, s as r } from "../api-CaQgKkC8.js";
|
|
2
2
|
import { logout as i } from "../useAuth/index.js";
|
|
3
3
|
import * as a from "vue";
|
|
4
4
|
//#region ../../node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
@@ -132,7 +132,18 @@ function x(e) {
|
|
|
132
132
|
return JSON.stringify(e, (e, t) => T(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
133
133
|
}
|
|
134
134
|
function S(e, t) {
|
|
135
|
-
|
|
135
|
+
if (e === t) return !0;
|
|
136
|
+
if (typeof e != typeof t) return !1;
|
|
137
|
+
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
138
|
+
if (Array.isArray(e) && Array.isArray(t)) {
|
|
139
|
+
for (let n = 0; n < t.length; n++) if (!S(e[n], t[n])) return !1;
|
|
140
|
+
return !0;
|
|
141
|
+
}
|
|
142
|
+
let n = Object.keys(t);
|
|
143
|
+
for (let r of n) if (!S(e[r], t[r])) return !1;
|
|
144
|
+
return !0;
|
|
145
|
+
}
|
|
146
|
+
return !1;
|
|
136
147
|
}
|
|
137
148
|
var ee = Object.prototype.hasOwnProperty;
|
|
138
149
|
function C(e, t, n = 0) {
|
|
@@ -336,7 +347,7 @@ function ue(e) {
|
|
|
336
347
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
337
348
|
}
|
|
338
349
|
function de(e) {
|
|
339
|
-
return (e ?? "online")
|
|
350
|
+
return (e ?? "online") !== "online" || M.isOnline();
|
|
340
351
|
}
|
|
341
352
|
var N = class extends Error {
|
|
342
353
|
constructor(e) {
|
|
@@ -545,7 +556,7 @@ var ge = class extends pe {
|
|
|
545
556
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
546
557
|
}
|
|
547
558
|
isStatic() {
|
|
548
|
-
return this.getObserversCount() > 0
|
|
559
|
+
return this.getObserversCount() > 0 && this.observers.some((e) => g(e.options.staleTime, this) === "static");
|
|
549
560
|
}
|
|
550
561
|
isStale() {
|
|
551
562
|
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
package/dist/test/index.js
CHANGED
|
@@ -6,7 +6,7 @@ function a(e) {
|
|
|
6
6
|
return `[data-test="${e}"]`;
|
|
7
7
|
}
|
|
8
8
|
var o = (e) => {
|
|
9
|
-
e.type === 1 && "props" in e && (e.props = e.props.filter((e) => e.type
|
|
9
|
+
e.type === 1 && "props" in e && (e.props = e.props.filter((e) => e.type !== 6 || e.name !== "data-test"));
|
|
10
10
|
};
|
|
11
11
|
async function s(e) {
|
|
12
12
|
await new Promise((t) => {
|
|
@@ -325,7 +325,7 @@ var N = function(e, t, n, r, i, a) {
|
|
|
325
325
|
return typeof e.getTime == "function" && typeof e.getMonth == "function" && typeof e.getYear == "function" && !isNaN(e.getTime());
|
|
326
326
|
},
|
|
327
327
|
number: function(e) {
|
|
328
|
-
return isNaN(e)
|
|
328
|
+
return !isNaN(e) && typeof e == "number";
|
|
329
329
|
},
|
|
330
330
|
object: function(e) {
|
|
331
331
|
return typeof e == "object" && !L.array(e);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhz-helpers",
|
|
3
3
|
"description": "Mhz helpers and composables",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.33",
|
|
5
5
|
"author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -24,52 +24,52 @@
|
|
|
24
24
|
"test:cov": "NODE_OPTIONS='--no-experimental-webstorage' vitest run --coverage"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tanstack/vue-query": "5.101.
|
|
27
|
+
"@tanstack/vue-query": "5.101.3",
|
|
28
28
|
"@vueuse/core": "14.3.0",
|
|
29
29
|
"@vueuse/integrations": "14.3.0",
|
|
30
30
|
"async-validator": "4.2.5",
|
|
31
31
|
"axios": "1.18.1",
|
|
32
|
-
"vue": "3.6.0-
|
|
33
|
-
"vue-router": "5.
|
|
32
|
+
"vue": "3.6.0-rc.1",
|
|
33
|
+
"vue-router": "5.2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@eslint/js": "10.0.1",
|
|
37
|
-
"@types/node": "26.1.
|
|
38
|
-
"@vitejs/plugin-vue": "6.0.
|
|
39
|
-
"@vitest/coverage-v8": "4.1.
|
|
40
|
-
"eslint": "10.
|
|
37
|
+
"@types/node": "26.1.1",
|
|
38
|
+
"@vitejs/plugin-vue": "6.0.8",
|
|
39
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
40
|
+
"eslint": "10.7.0",
|
|
41
41
|
"eslint-config-prettier": "10.1.8",
|
|
42
42
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
43
43
|
"eslint-plugin-import-x": "4.17.1",
|
|
44
44
|
"eslint-plugin-prettier": "5.5.6",
|
|
45
|
-
"eslint-plugin-sonarjs": "4.
|
|
46
|
-
"eslint-plugin-unicorn": "
|
|
47
|
-
"eslint-plugin-vue": "10.
|
|
45
|
+
"eslint-plugin-sonarjs": "4.2.0",
|
|
46
|
+
"eslint-plugin-unicorn": "72.0.0",
|
|
47
|
+
"eslint-plugin-vue": "10.10.0",
|
|
48
48
|
"globals": "17.7.0",
|
|
49
|
-
"happy-dom": "20.
|
|
49
|
+
"happy-dom": "20.11.0",
|
|
50
50
|
"postcss-html": "1.8.1",
|
|
51
|
-
"prettier": "3.9.
|
|
52
|
-
"stylelint": "17.14.
|
|
51
|
+
"prettier": "3.9.6",
|
|
52
|
+
"stylelint": "17.14.1",
|
|
53
53
|
"stylelint-config-recess-order": "7.7.0",
|
|
54
54
|
"stylelint-config-recommended-scss": "17.0.1",
|
|
55
55
|
"stylelint-config-recommended-vue": "1.6.1",
|
|
56
56
|
"stylelint-order": "8.1.1",
|
|
57
57
|
"stylelint-prettier": "5.0.3",
|
|
58
58
|
"typescript": "6.0.3",
|
|
59
|
-
"typescript-eslint": "8.
|
|
60
|
-
"vite": "8.1.
|
|
59
|
+
"typescript-eslint": "8.65.0",
|
|
60
|
+
"vite": "8.1.5",
|
|
61
61
|
"vite-plugin-dts": "5.0.3",
|
|
62
|
-
"vitest": "4.1.
|
|
62
|
+
"vitest": "4.1.10",
|
|
63
63
|
"vue-eslint-parser": "10.4.1",
|
|
64
64
|
"vue-linters-config": "0.5.9",
|
|
65
|
-
"vue-tsc": "3.3.
|
|
65
|
+
"vue-tsc": "3.3.7"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"vue": "3.6.0-
|
|
69
|
-
"vue-router": "5.
|
|
68
|
+
"vue": "3.6.0-rc.1",
|
|
69
|
+
"vue-router": "5.2.0"
|
|
70
70
|
},
|
|
71
71
|
"engines": {
|
|
72
72
|
"npm": ">=11.7.0",
|
|
73
|
-
"node": ">=
|
|
73
|
+
"node": ">=26.5.0"
|
|
74
74
|
}
|
|
75
75
|
}
|