@ahmadmubarak98/namozaj 1.8.11 → 1.8.13

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 +5 -5
  2. package/package.json +1 -1
package/dist/namozaj.js CHANGED
@@ -6138,7 +6138,7 @@ const createYupSchema = (e) => {
6138
6138
  t.errorMessage ? t.errorMessage : `Minimum value is ${t.value}`
6139
6139
  );
6140
6140
  if (e.type === "string")
6141
- return e.length(
6141
+ return e.min(
6142
6142
  t.value,
6143
6143
  t.errorMessage ? t.errorMessage : `Minimum length is ${t.value}`
6144
6144
  );
@@ -6150,7 +6150,7 @@ const createYupSchema = (e) => {
6150
6150
  t.errorMessage ? t.errorMessage : `Maximum value is ${t.value}`
6151
6151
  );
6152
6152
  if (e.type === "string")
6153
- return e.length(
6153
+ return e.max(
6154
6154
  t.value,
6155
6155
  t.errorMessage ? t.errorMessage : `Maximum length is ${t.value}`
6156
6156
  );
@@ -50734,11 +50734,11 @@ const FileField = ({
50734
50734
  Me.target.files || []
50735
50735
  );
50736
50736
  if (Me.target.value = "", G)
50737
- return je(qe) ? G == null ? void 0 : G(
50737
+ return (je(qe) || []).length === 0 || G == null ? void 0 : G(
50738
50738
  qe,
50739
50739
  Z,
50740
50740
  (De) => Ve(De)
50741
- ) : void 0;
50741
+ );
50742
50742
  Ve(qe);
50743
50743
  },
50744
50744
  [Z]
@@ -50759,7 +50759,7 @@ const FileField = ({
50759
50759
  Y(!0);
50760
50760
  try {
50761
50761
  let De = Me;
50762
- if (!qe && (De = je(Me), !De))
50762
+ if (!qe && (De = je(Me), (De || []).length === 0))
50763
50763
  return;
50764
50764
  if (N && typeof N == "function") {
50765
50765
  const Je = De.map(async (n0) => ({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ahmadmubarak98/namozaj",
3
3
  "private": false,
4
- "version": "1.8.11",
4
+ "version": "1.8.13",
5
5
  "type": "module",
6
6
  "main": "dist/namozaj.js",
7
7
  "types": "dist/main.d.ts",