kanun 0.1.6 → 0.1.8

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/index.cjs CHANGED
@@ -66,7 +66,7 @@ var en_default = {
66
66
  digits_between: "The :attribute must be between :min and :max digits.",
67
67
  email: "The :attribute must be a valid email address.",
68
68
  ends_with: "The :attribute must end with one of the following: :values.",
69
- exists: ":value is not a valid :attribute.",
69
+ exists: "The selected :attribute is invalid.",
70
70
  gt: {
71
71
  number: "The :attribute must be greater than :value.",
72
72
  string: "The :attribute must be greater than :value characters.",
@@ -178,7 +178,7 @@ var ar_default = {
178
178
  digits_between: "يجب أن يحتوي الحقل :attribute بين :min و :max رقمًا/أرقام",
179
179
  email: "يجب أن يكون :attribute عنوان بريد إلكتروني صحيح البُنية",
180
180
  ends_with: "حقل :attribute يجب ان ينتهي بأحد القيم التالية :value.",
181
- exists: ":value غير صالح :attribute.",
181
+ exists: "الحقل :attribute غير موجود",
182
182
  gt: {
183
183
  number: "حقل :attribute يجب ان يكون اكبر من :value.",
184
184
  string: "حقل :attribute يجب ان يكون اكبر من :value حروفٍ/حرفًا.",
@@ -2999,6 +2999,7 @@ var ValidationException = class ValidationException extends Error {
2999
2999
  validator;
3000
3000
  response;
3001
3001
  status = 422;
3002
+ statusCode = 422;
3002
3003
  errorBag = "default";
3003
3004
  redirectTo;
3004
3005
  name = "ValidationException";
package/dist/index.d.ts CHANGED
@@ -1397,6 +1397,7 @@ declare class ValidationException extends Error {
1397
1397
  validator: Validator<any, any>;
1398
1398
  response?: any;
1399
1399
  status: number;
1400
+ statusCode: number;
1400
1401
  errorBag: string;
1401
1402
  redirectTo?: string;
1402
1403
  name: string;
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ var en_default = {
36
36
  digits_between: "The :attribute must be between :min and :max digits.",
37
37
  email: "The :attribute must be a valid email address.",
38
38
  ends_with: "The :attribute must end with one of the following: :values.",
39
- exists: ":value is not a valid :attribute.",
39
+ exists: "The selected :attribute is invalid.",
40
40
  gt: {
41
41
  number: "The :attribute must be greater than :value.",
42
42
  string: "The :attribute must be greater than :value characters.",
@@ -148,7 +148,7 @@ var ar_default = {
148
148
  digits_between: "يجب أن يحتوي الحقل :attribute بين :min و :max رقمًا/أرقام",
149
149
  email: "يجب أن يكون :attribute عنوان بريد إلكتروني صحيح البُنية",
150
150
  ends_with: "حقل :attribute يجب ان ينتهي بأحد القيم التالية :value.",
151
- exists: ":value غير صالح :attribute.",
151
+ exists: "الحقل :attribute غير موجود",
152
152
  gt: {
153
153
  number: "حقل :attribute يجب ان يكون اكبر من :value.",
154
154
  string: "حقل :attribute يجب ان يكون اكبر من :value حروفٍ/حرفًا.",
@@ -2969,6 +2969,7 @@ var ValidationException = class ValidationException extends Error {
2969
2969
  validator;
2970
2970
  response;
2971
2971
  status = 422;
2972
+ statusCode = 422;
2972
2973
  errorBag = "default";
2973
2974
  redirectTo;
2974
2975
  name = "ValidationException";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kanun",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Framework-agnostic TypeScript-first validation library.",
5
5
  "type": "module",
6
6
  "files": [