@ahmadmubarak98/namozaj 1.6.62 → 1.6.63

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.
Files changed (2) hide show
  1. package/dist/namozaj.js +18 -14
  2. package/package.json +1 -1
package/dist/namozaj.js CHANGED
@@ -50490,20 +50490,24 @@ const _ = /* @__PURE__ */ getDefaultExportFromCjs(lodashExports), FileField = ({
50490
50490
  return typeof g == "number" ? g || 1 / 0 : typeof g == "object" ? g.value || 1 / 0 : typeof g == "function" ? ((j = g(G.getValues(p), G)) == null ? void 0 : j.value) || 1 / 0 : 0;
50491
50491
  }, [g]), e0 = useCallback(
50492
50492
  (j) => {
50493
- const ze = [];
50494
- for (const ye of j) {
50495
- const Ne = ye.name.split(".").pop() || "";
50496
- let we = !1, Ue = "";
50497
- typeof b == "string" ? Ue = b.split(",").map((l0) => l0.trim()).join("|") : Ue = b.join("|"), we = Ue.length > 0 ? oe === "*" || new RegExp("^(" + Ue + ")$", "i").test(
50498
- Ne
50499
- ) : !0;
50500
- const i0 = ye.size > Fe, r0 = ye.size < qe;
50501
- if (!we) return re(v);
50502
- if (i0) return re(De);
50503
- if (r0) return re(ve);
50504
- ze.push(ye);
50505
- }
50506
- return ze.length + te.length > y ? re(`You can only upload up to ${y} files.`) : (re(null), ze);
50493
+ try {
50494
+ const ze = [];
50495
+ for (const ye of j) {
50496
+ const Ne = ye.name.split(".").pop() || "";
50497
+ let we = !1, Ue = "";
50498
+ typeof b == "string" ? Ue = b.split(",").map((l0) => l0.trim()).join("|") : Ue = b.join("|"), we = Ue.length > 0 ? oe === "*" || new RegExp("^(" + Ue + ")$", "i").test(
50499
+ Ne
50500
+ ) : !0;
50501
+ const i0 = ye.size > Fe, r0 = ye.size < qe;
50502
+ if (!we) return re(v);
50503
+ if (i0) return re(De);
50504
+ if (r0) return re(ve);
50505
+ ze.push(ye);
50506
+ }
50507
+ return ze.length + te.length > y ? re(`You can only upload up to ${y} files.`) : (re(null), ze);
50508
+ } catch (ze) {
50509
+ console.log("validateFiles error", ze);
50510
+ }
50507
50511
  },
50508
50512
  [
50509
50513
  b,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ahmadmubarak98/namozaj",
3
3
  "private": false,
4
- "version": "1.6.62",
4
+ "version": "1.6.63",
5
5
  "type": "module",
6
6
  "main": "dist/namozaj.js",
7
7
  "types": "dist/main.d.ts",