mhz-helpers 1.4.31 → 1.4.32

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-B8d96xru.js";
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" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
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 ? e(n, i, a) : !0;
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);
@@ -1,4 +1,4 @@
1
- import { n as e, o as t, r as n, s as r } from "../api-B8d96xru.js";
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
@@ -336,7 +336,7 @@ function ue(e) {
336
336
  return Math.min(1e3 * 2 ** e, 3e4);
337
337
  }
338
338
  function de(e) {
339
- return (e ?? "online") === "online" ? M.isOnline() : !0;
339
+ return (e ?? "online") !== "online" || M.isOnline();
340
340
  }
341
341
  var N = class extends Error {
342
342
  constructor(e) {
@@ -545,7 +545,7 @@ var ge = class extends pe {
545
545
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
546
546
  }
547
547
  isStatic() {
548
- return this.getObserversCount() > 0 ? this.observers.some((e) => g(e.options.staleTime, this) === "static") : !1;
548
+ return this.getObserversCount() > 0 && this.observers.some((e) => g(e.options.staleTime, this) === "static");
549
549
  }
550
550
  isStale() {
551
551
  return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
@@ -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 === 6 ? e.name !== "data-test" : !0));
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) ? !1 : typeof e == "number";
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.31",
4
+ "version": "1.4.32",
5
5
  "author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -34,9 +34,9 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@eslint/js": "10.0.1",
37
- "@types/node": "26.1.0",
37
+ "@types/node": "26.1.1",
38
38
  "@vitejs/plugin-vue": "6.0.7",
39
- "@vitest/coverage-v8": "4.1.9",
39
+ "@vitest/coverage-v8": "4.1.10",
40
40
  "eslint": "10.6.0",
41
41
  "eslint-config-prettier": "10.1.8",
42
42
  "eslint-import-resolver-typescript": "4.4.5",
@@ -56,13 +56,13 @@
56
56
  "stylelint-order": "8.1.1",
57
57
  "stylelint-prettier": "5.0.3",
58
58
  "typescript": "6.0.3",
59
- "typescript-eslint": "8.62.1",
60
- "vite": "8.1.3",
59
+ "typescript-eslint": "8.63.0",
60
+ "vite": "8.1.4",
61
61
  "vite-plugin-dts": "5.0.3",
62
- "vitest": "4.1.9",
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.6"
65
+ "vue-tsc": "3.3.7"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "vue": "3.6.0-beta.17",
@@ -70,6 +70,6 @@
70
70
  },
71
71
  "engines": {
72
72
  "npm": ">=11.7.0",
73
- "node": ">=25.4.0"
73
+ "node": ">=26.5.0"
74
74
  }
75
75
  }