kanun 0.1.5 → 0.1.7

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
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  }) : target, mod));
27
27
 
28
28
  //#endregion
29
- let dayjs_plugin_customParseFormat = require("dayjs/plugin/customParseFormat");
30
- dayjs_plugin_customParseFormat = __toESM(dayjs_plugin_customParseFormat);
29
+ let dayjs_plugin_customParseFormat_js = require("dayjs/plugin/customParseFormat.js");
30
+ dayjs_plugin_customParseFormat_js = __toESM(dayjs_plugin_customParseFormat_js);
31
31
  let dayjs = require("dayjs");
32
32
  dayjs = __toESM(dayjs);
33
33
 
@@ -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 حروفٍ/حرفًا.",
@@ -2451,7 +2451,7 @@ var ValidationRule = class extends IRuleContract {
2451
2451
 
2452
2452
  //#endregion
2453
2453
  //#region src/Rules/ExtendedRules.ts
2454
- dayjs.default.extend(dayjs_plugin_customParseFormat.default);
2454
+ dayjs.default.extend(dayjs_plugin_customParseFormat_js.default);
2455
2455
  var ExtendedRules = class extends ValidationRule {
2456
2456
  /**
2457
2457
  * The validator instance.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import customParseFormat from "dayjs/plugin/customParseFormat";
1
+ import customParseFormat from "dayjs/plugin/customParseFormat.js";
2
2
  import dayjs from "dayjs";
3
3
 
4
4
  //#region src/Rules/baseRule.ts
@@ -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 حروفٍ/حرفًا.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kanun",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Framework-agnostic TypeScript-first validation library.",
5
5
  "type": "module",
6
6
  "files": [