@mionjs/type-formats 0.8.0-alpha.0

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 (134) hide show
  1. package/.dist/cjs/BigintFormats.cjs +14 -0
  2. package/.dist/cjs/BigintFormats.cjs.map +1 -0
  3. package/.dist/cjs/BigintFormats.d.ts +2 -0
  4. package/.dist/cjs/NumberFormats.cjs +20 -0
  5. package/.dist/cjs/NumberFormats.cjs.map +1 -0
  6. package/.dist/cjs/NumberFormats.d.ts +2 -0
  7. package/.dist/cjs/StringFormats.cjs +120 -0
  8. package/.dist/cjs/StringFormats.cjs.map +1 -0
  9. package/.dist/cjs/StringFormats.d.ts +11 -0
  10. package/.dist/cjs/constants.d.ts +1 -0
  11. package/.dist/cjs/package.json +1 -0
  12. package/.dist/cjs/src/bigint/bigIntFormat.runtype.cjs +152 -0
  13. package/.dist/cjs/src/bigint/bigIntFormat.runtype.cjs.map +1 -0
  14. package/.dist/cjs/src/bigint/bigIntFormat.runtype.d.ts +21 -0
  15. package/.dist/cjs/src/bigint/defaultBigNumberFormats.cjs +16 -0
  16. package/.dist/cjs/src/bigint/defaultBigNumberFormats.cjs.map +1 -0
  17. package/.dist/cjs/src/bigint/defaultBigNumberFormats.d.ts +29 -0
  18. package/.dist/cjs/src/constants.cjs +34 -0
  19. package/.dist/cjs/src/constants.cjs.map +1 -0
  20. package/.dist/cjs/src/constants.d.ts +15 -0
  21. package/.dist/cjs/src/constants.mock.cjs +111 -0
  22. package/.dist/cjs/src/constants.mock.cjs.map +1 -0
  23. package/.dist/cjs/src/constants.mock.d.ts +335 -0
  24. package/.dist/cjs/src/number/defaultNumberFormats.cjs +28 -0
  25. package/.dist/cjs/src/number/defaultNumberFormats.cjs.map +1 -0
  26. package/.dist/cjs/src/number/defaultNumberFormats.d.ts +63 -0
  27. package/.dist/cjs/src/number/numberFormat.runtype.cjs +214 -0
  28. package/.dist/cjs/src/number/numberFormat.runtype.cjs.map +1 -0
  29. package/.dist/cjs/src/number/numberFormat.runtype.d.ts +21 -0
  30. package/.dist/cjs/src/string/date.runtype.cjs +88 -0
  31. package/.dist/cjs/src/string/date.runtype.cjs.map +1 -0
  32. package/.dist/cjs/src/string/date.runtype.d.ts +19 -0
  33. package/.dist/cjs/src/string/dateTime.runtype.cjs +83 -0
  34. package/.dist/cjs/src/string/dateTime.runtype.cjs.map +1 -0
  35. package/.dist/cjs/src/string/dateTime.runtype.d.ts +26 -0
  36. package/.dist/cjs/src/string/defaultStringFormats.runtype.cjs +25 -0
  37. package/.dist/cjs/src/string/defaultStringFormats.runtype.cjs.map +1 -0
  38. package/.dist/cjs/src/string/defaultStringFormats.runtype.d.ts +45 -0
  39. package/.dist/cjs/src/string/domain.runtype.cjs +248 -0
  40. package/.dist/cjs/src/string/domain.runtype.cjs.map +1 -0
  41. package/.dist/cjs/src/string/domain.runtype.d.ts +72 -0
  42. package/.dist/cjs/src/string/email.runtype.cjs +159 -0
  43. package/.dist/cjs/src/string/email.runtype.cjs.map +1 -0
  44. package/.dist/cjs/src/string/email.runtype.d.ts +57 -0
  45. package/.dist/cjs/src/string/ip.runtype.cjs +72 -0
  46. package/.dist/cjs/src/string/ip.runtype.cjs.map +1 -0
  47. package/.dist/cjs/src/string/ip.runtype.d.ts +50 -0
  48. package/.dist/cjs/src/string/stringFormat.runtype.cjs +270 -0
  49. package/.dist/cjs/src/string/stringFormat.runtype.cjs.map +1 -0
  50. package/.dist/cjs/src/string/stringFormat.runtype.d.ts +21 -0
  51. package/.dist/cjs/src/string/time.runtype.cjs +100 -0
  52. package/.dist/cjs/src/string/time.runtype.cjs.map +1 -0
  53. package/.dist/cjs/src/string/time.runtype.d.ts +21 -0
  54. package/.dist/cjs/src/string/url.runtype.cjs +160 -0
  55. package/.dist/cjs/src/string/url.runtype.cjs.map +1 -0
  56. package/.dist/cjs/src/string/url.runtype.d.ts +81 -0
  57. package/.dist/cjs/src/string/uuid.runtype.cjs +44 -0
  58. package/.dist/cjs/src/string/uuid.runtype.cjs.map +1 -0
  59. package/.dist/cjs/src/string/uuid.runtype.d.ts +22 -0
  60. package/.dist/cjs/src/type-formats-pure-fns.cjs +390 -0
  61. package/.dist/cjs/src/type-formats-pure-fns.cjs.map +1 -0
  62. package/.dist/cjs/src/type-formats-pure-fns.d.ts +27 -0
  63. package/.dist/cjs/src/utils.cjs +14 -0
  64. package/.dist/cjs/src/utils.cjs.map +1 -0
  65. package/.dist/cjs/src/utils.d.ts +3 -0
  66. package/.dist/cjs/vitest.config.d.ts +2 -0
  67. package/.dist/esm/BigintFormats.d.ts +2 -0
  68. package/.dist/esm/BigintFormats.js +14 -0
  69. package/.dist/esm/BigintFormats.js.map +1 -0
  70. package/.dist/esm/NumberFormats.d.ts +2 -0
  71. package/.dist/esm/NumberFormats.js +20 -0
  72. package/.dist/esm/NumberFormats.js.map +1 -0
  73. package/.dist/esm/StringFormats.d.ts +11 -0
  74. package/.dist/esm/StringFormats.js +120 -0
  75. package/.dist/esm/StringFormats.js.map +1 -0
  76. package/.dist/esm/constants.d.ts +1 -0
  77. package/.dist/esm/src/bigint/bigIntFormat.runtype.d.ts +21 -0
  78. package/.dist/esm/src/bigint/bigIntFormat.runtype.js +152 -0
  79. package/.dist/esm/src/bigint/bigIntFormat.runtype.js.map +1 -0
  80. package/.dist/esm/src/bigint/defaultBigNumberFormats.d.ts +29 -0
  81. package/.dist/esm/src/bigint/defaultBigNumberFormats.js +16 -0
  82. package/.dist/esm/src/bigint/defaultBigNumberFormats.js.map +1 -0
  83. package/.dist/esm/src/constants.d.ts +15 -0
  84. package/.dist/esm/src/constants.js +34 -0
  85. package/.dist/esm/src/constants.js.map +1 -0
  86. package/.dist/esm/src/constants.mock.d.ts +335 -0
  87. package/.dist/esm/src/constants.mock.js +111 -0
  88. package/.dist/esm/src/constants.mock.js.map +1 -0
  89. package/.dist/esm/src/number/defaultNumberFormats.d.ts +63 -0
  90. package/.dist/esm/src/number/defaultNumberFormats.js +28 -0
  91. package/.dist/esm/src/number/defaultNumberFormats.js.map +1 -0
  92. package/.dist/esm/src/number/numberFormat.runtype.d.ts +21 -0
  93. package/.dist/esm/src/number/numberFormat.runtype.js +214 -0
  94. package/.dist/esm/src/number/numberFormat.runtype.js.map +1 -0
  95. package/.dist/esm/src/string/date.runtype.d.ts +19 -0
  96. package/.dist/esm/src/string/date.runtype.js +88 -0
  97. package/.dist/esm/src/string/date.runtype.js.map +1 -0
  98. package/.dist/esm/src/string/dateTime.runtype.d.ts +26 -0
  99. package/.dist/esm/src/string/dateTime.runtype.js +83 -0
  100. package/.dist/esm/src/string/dateTime.runtype.js.map +1 -0
  101. package/.dist/esm/src/string/defaultStringFormats.runtype.d.ts +45 -0
  102. package/.dist/esm/src/string/defaultStringFormats.runtype.js +25 -0
  103. package/.dist/esm/src/string/defaultStringFormats.runtype.js.map +1 -0
  104. package/.dist/esm/src/string/domain.runtype.d.ts +72 -0
  105. package/.dist/esm/src/string/domain.runtype.js +248 -0
  106. package/.dist/esm/src/string/domain.runtype.js.map +1 -0
  107. package/.dist/esm/src/string/email.runtype.d.ts +57 -0
  108. package/.dist/esm/src/string/email.runtype.js +159 -0
  109. package/.dist/esm/src/string/email.runtype.js.map +1 -0
  110. package/.dist/esm/src/string/ip.runtype.d.ts +50 -0
  111. package/.dist/esm/src/string/ip.runtype.js +72 -0
  112. package/.dist/esm/src/string/ip.runtype.js.map +1 -0
  113. package/.dist/esm/src/string/stringFormat.runtype.d.ts +21 -0
  114. package/.dist/esm/src/string/stringFormat.runtype.js +270 -0
  115. package/.dist/esm/src/string/stringFormat.runtype.js.map +1 -0
  116. package/.dist/esm/src/string/time.runtype.d.ts +21 -0
  117. package/.dist/esm/src/string/time.runtype.js +100 -0
  118. package/.dist/esm/src/string/time.runtype.js.map +1 -0
  119. package/.dist/esm/src/string/url.runtype.d.ts +81 -0
  120. package/.dist/esm/src/string/url.runtype.js +160 -0
  121. package/.dist/esm/src/string/url.runtype.js.map +1 -0
  122. package/.dist/esm/src/string/uuid.runtype.d.ts +22 -0
  123. package/.dist/esm/src/string/uuid.runtype.js +44 -0
  124. package/.dist/esm/src/string/uuid.runtype.js.map +1 -0
  125. package/.dist/esm/src/type-formats-pure-fns.d.ts +27 -0
  126. package/.dist/esm/src/type-formats-pure-fns.js +390 -0
  127. package/.dist/esm/src/type-formats-pure-fns.js.map +1 -0
  128. package/.dist/esm/src/utils.d.ts +3 -0
  129. package/.dist/esm/src/utils.js +14 -0
  130. package/.dist/esm/src/utils.js.map +1 -0
  131. package/.dist/esm/vitest.config.d.ts +2 -0
  132. package/LICENSE +21 -0
  133. package/README.md +123 -0
  134. package/package.json +80 -0
@@ -0,0 +1,390 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const core = require("@mionjs/core");
4
+ const cpf_isDateString = core.registerPureFnFactory("mionFormats", "isDateString", function() {
5
+ return function is_date_string(year, month, day) {
6
+ let y = void 0;
7
+ if (year) {
8
+ if (year.length !== 4)
9
+ return false;
10
+ y = Number(year);
11
+ if (isNaN(y))
12
+ return false;
13
+ if (y < 0 || y > 9999)
14
+ return false;
15
+ }
16
+ if (month.length !== 2)
17
+ return false;
18
+ const m = Number(month);
19
+ if (isNaN(m))
20
+ return false;
21
+ if (m < 1 || m > 12)
22
+ return false;
23
+ if (day) {
24
+ if (day.length !== 2)
25
+ return false;
26
+ const d = Number(day);
27
+ if (isNaN(d))
28
+ return false;
29
+ if (d < 1 || d > 31)
30
+ return false;
31
+ if (m === 2) {
32
+ if (d > 29)
33
+ return false;
34
+ if (y && d === 29 && !(y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0)))
35
+ return false;
36
+ } else if ((m === 4 || m === 6 || m === 9 || m === 11) && d > 30) {
37
+ return false;
38
+ }
39
+ }
40
+ return true;
41
+ };
42
+ }, { bodyHash: "1_oB_gADdf9PX4", paramNames: [], code: "return function is_date_string(year, month, day) {\n let y = void 0;\n if (year) {\n if (year.length !== 4) return false;\n y = Number(year);\n if (isNaN(y)) return false;\n if (y < 0 || y > 9999) return false;\n }\n if (month.length !== 2) return false;\n const m = Number(month);\n if (isNaN(m)) return false;\n if (m < 1 || m > 12) return false;\n if (day) {\n if (day.length !== 2) return false;\n const d = Number(day);\n if (isNaN(d)) return false;\n if (d < 1 || d > 31) return false;\n if (m === 2) {\n if (d > 29) return false;\n if (y && d === 29 && !(y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0))) return false;\n } else if ((m === 4 || m === 6 || m === 9 || m === 11) && d > 30) {\n return false;\n }\n }\n return true;\n };" });
43
+ const cpf_isDateString_YMD = core.registerPureFnFactory("mionFormats", "isDateString_YMD", function(jUtil) {
44
+ const isDate = jUtil.getPureFn("mionFormats", "isDateString");
45
+ return function is_date(value) {
46
+ const parts = value.split("-");
47
+ return parts.length === 3 && isDate(parts[0], parts[1], parts[2]);
48
+ };
49
+ }, { bodyHash: "TgdYN25ps-eNtS", paramNames: ["jUtil"], code: 'const isDate = jUtil.getPureFn("mionFormats", "isDateString");\n return function is_date(value) {\n const parts = value.split("-");\n return parts.length === 3 && isDate(parts[0], parts[1], parts[2]);\n };' });
50
+ const cpf_isDateString_DMY = core.registerPureFnFactory("mionFormats", "isDateString_DMY", function(jUtil) {
51
+ const isDate = jUtil.getPureFn("mionFormats", "isDateString");
52
+ return function is_date(value) {
53
+ const parts = value.split("-");
54
+ return parts.length === 3 && isDate(parts[2], parts[1], parts[0]);
55
+ };
56
+ }, { bodyHash: "aVDMyOqrsrbcbW", paramNames: ["jUtil"], code: 'const isDate = jUtil.getPureFn("mionFormats", "isDateString");\n return function is_date(value) {\n const parts = value.split("-");\n return parts.length === 3 && isDate(parts[2], parts[1], parts[0]);\n };' });
57
+ const cpf_isDateString_MDY = core.registerPureFnFactory("mionFormats", "isDateString_MDY", function(jUtil) {
58
+ const isDate = jUtil.getPureFn("mionFormats", "isDateString");
59
+ return function is_date(value) {
60
+ const parts = value.split("-");
61
+ return parts.length === 3 && isDate(parts[2], parts[0], parts[1]);
62
+ };
63
+ }, { bodyHash: "iM5EqlmgeDmVjF", paramNames: ["jUtil"], code: 'const isDate = jUtil.getPureFn("mionFormats", "isDateString");\n return function is_date(value) {\n const parts = value.split("-");\n return parts.length === 3 && isDate(parts[2], parts[0], parts[1]);\n };' });
64
+ const cpf_isDateString_YM = core.registerPureFnFactory("mionFormats", "isDateString_YM", function(jUtil) {
65
+ const isDate = jUtil.getPureFn("mionFormats", "isDateString");
66
+ return function is_date(value) {
67
+ const parts = value.split("-");
68
+ return parts.length === 2 && isDate(parts[0], parts[1]);
69
+ };
70
+ }, { bodyHash: "aYQTJv_F4JU3nI", paramNames: ["jUtil"], code: 'const isDate = jUtil.getPureFn("mionFormats", "isDateString");\n return function is_date(value) {\n const parts = value.split("-");\n return parts.length === 2 && isDate(parts[0], parts[1]);\n };' });
71
+ const cpf_isDateString_MD = core.registerPureFnFactory("mionFormats", "isDateString_MD", function(jUtil) {
72
+ const isDate = jUtil.getPureFn("mionFormats", "isDateString");
73
+ return function is_date(value) {
74
+ const parts = value.split("-");
75
+ return parts.length === 2 && isDate(void 0, parts[0], parts[1]);
76
+ };
77
+ }, { bodyHash: "NVGldNTml6x6cv", paramNames: ["jUtil"], code: 'const isDate = jUtil.getPureFn("mionFormats", "isDateString");\n return function is_date(value) {\n const parts = value.split("-");\n return parts.length === 2 && isDate(void 0, parts[0], parts[1]);\n };' });
78
+ const cpf_isDateString_DM = core.registerPureFnFactory("mionFormats", "isDateString_DM", function(jUtil) {
79
+ const isDate = jUtil.getPureFn("mionFormats", "isDateString");
80
+ return function is_date(value) {
81
+ const parts = value.split("-");
82
+ return parts.length === 2 && isDate(void 0, parts[1], parts[0]);
83
+ };
84
+ }, { bodyHash: "ItACHY5Jvp_3sG", paramNames: ["jUtil"], code: 'const isDate = jUtil.getPureFn("mionFormats", "isDateString");\n return function is_date(value) {\n const parts = value.split("-");\n return parts.length === 2 && isDate(void 0, parts[1], parts[0]);\n };' });
85
+ const dateFunctions = [
86
+ cpf_isDateString,
87
+ cpf_isDateString_YMD,
88
+ cpf_isDateString_DMY,
89
+ cpf_isDateString_MDY,
90
+ cpf_isDateString_YM,
91
+ cpf_isDateString_MD,
92
+ cpf_isDateString_DM
93
+ ];
94
+ const cpf_isTimeZone = core.registerPureFnFactory("mionFormats", "isTimeZone", function(jUtil) {
95
+ const isH = jUtil.getPureFn("mionFormats", "isHours");
96
+ const isM = jUtil.getPureFn("mionFormats", "isMinutes");
97
+ return function is_tz(timeZone) {
98
+ const isZ = timeZone === "Z" || timeZone === "z";
99
+ if (isZ)
100
+ return true;
101
+ const tzParts = timeZone.split(":");
102
+ if (tzParts.length !== 2)
103
+ return false;
104
+ const hours = tzParts[0];
105
+ const minutes = tzParts[1];
106
+ return isH(hours) && isM(minutes);
107
+ };
108
+ }, { bodyHash: "0Zcw0D7iktjrgz", paramNames: ["jUtil"], code: 'const isH = jUtil.getPureFn("mionFormats", "isHours");\n const isM = jUtil.getPureFn("mionFormats", "isMinutes");\n return function is_tz(timeZone) {\n const isZ = timeZone === "Z" || timeZone === "z";\n if (isZ) return true;\n const tzParts = timeZone.split(":");\n if (tzParts.length !== 2) return false;\n const hours = tzParts[0];\n const minutes = tzParts[1];\n return isH(hours) && isM(minutes);\n };' });
109
+ const cpf_isHours = core.registerPureFnFactory("mionFormats", "isHours", function() {
110
+ return function is_h(hours) {
111
+ if (!hours.length || hours.length > 2)
112
+ return false;
113
+ const numberHours = Number(hours);
114
+ if (isNaN(numberHours))
115
+ return false;
116
+ return numberHours >= 0 && numberHours <= 23;
117
+ };
118
+ }, { bodyHash: "wsGHZIT8eblMfW", paramNames: [], code: "return function is_h(hours) {\n if (!hours.length || hours.length > 2) return false;\n const numberHours = Number(hours);\n if (isNaN(numberHours)) return false;\n return numberHours >= 0 && numberHours <= 23;\n };" });
119
+ const cpf_isMinutes = core.registerPureFnFactory("mionFormats", "isMinutes", function() {
120
+ return function is_m(mins) {
121
+ if (!mins.length || mins.length > 2)
122
+ return false;
123
+ const numberMinutes = Number(mins);
124
+ if (isNaN(numberMinutes))
125
+ return false;
126
+ return numberMinutes >= 0 && numberMinutes <= 59;
127
+ };
128
+ }, { bodyHash: "KEMDuHWSc4_Cv1", paramNames: [], code: "return function is_m(mins) {\n if (!mins.length || mins.length > 2) return false;\n const numberMinutes = Number(mins);\n if (isNaN(numberMinutes)) return false;\n return numberMinutes >= 0 && numberMinutes <= 59;\n };" });
129
+ const cpf_isSeconds = core.registerPureFnFactory("mionFormats", "isSeconds", function() {
130
+ return function is_s(secs) {
131
+ if (!secs.length || secs.length > 2)
132
+ return false;
133
+ const numberSeconds = Number(secs);
134
+ if (isNaN(numberSeconds))
135
+ return false;
136
+ return numberSeconds >= 0 && numberSeconds <= 59;
137
+ };
138
+ }, { bodyHash: "nq28WUDHB__8hY", paramNames: [], code: "return function is_s(secs) {\n if (!secs.length || secs.length > 2) return false;\n const numberSeconds = Number(secs);\n if (isNaN(numberSeconds)) return false;\n return numberSeconds >= 0 && numberSeconds <= 59;\n };" });
139
+ const cpf_isSecondsWithMs = core.registerPureFnFactory("mionFormats", "isSecondsWithMs", function(jUtil) {
140
+ const isS = jUtil.getPureFn("mionFormats", "isSeconds");
141
+ return function is_s_ms(secsAnsMls) {
142
+ const parts = secsAnsMls.split(".");
143
+ if (parts.length > 2)
144
+ return false;
145
+ const secs = parts[0];
146
+ if (!isS(secs))
147
+ return false;
148
+ const mls = parts[1];
149
+ if (mls) {
150
+ if (mls.length !== 3)
151
+ return false;
152
+ const millisNumber = Number(mls);
153
+ if (isNaN(millisNumber))
154
+ return false;
155
+ if (millisNumber < 0 || millisNumber > 999)
156
+ return false;
157
+ }
158
+ return true;
159
+ };
160
+ }, { bodyHash: "w-3AxO5Z-3h_a6", paramNames: ["jUtil"], code: 'const isS = jUtil.getPureFn("mionFormats", "isSeconds");\n return function is_s_ms(secsAnsMls) {\n const parts = secsAnsMls.split(".");\n if (parts.length > 2) return false;\n const secs = parts[0];\n if (!isS(secs)) return false;\n const mls = parts[1];\n if (mls) {\n if (mls.length !== 3) return false;\n const millisNumber = Number(mls);\n if (isNaN(millisNumber)) return false;\n if (millisNumber < 0 || millisNumber > 999) return false;\n }\n return true;\n };' });
161
+ const cpf_isTimeString_ISO_TZ = core.registerPureFnFactory("mionFormats", "isTimeString_ISO_TZ", function(jUtil) {
162
+ const isTWms = jUtil.getPureFn("mionFormats", "isTimeString_ISO");
163
+ const isTZ = jUtil.getPureFn("mionFormats", "isTimeZone");
164
+ return function is_iso_time(value) {
165
+ const isZ = value.endsWith("Z") || value.endsWith("z");
166
+ const isPositiveTZ = isZ || value.indexOf("+") !== -1;
167
+ const isNegativeTZ = isZ || value.indexOf("-") !== -1;
168
+ if (!isZ && !isPositiveTZ && !isNegativeTZ)
169
+ return false;
170
+ const timeAndTz = isZ ? [value.substring(0, value.length - 1), "Z"] : value.split(isPositiveTZ ? "+" : "-");
171
+ if (timeAndTz.length !== 2)
172
+ return false;
173
+ const time = timeAndTz[0];
174
+ const tz = timeAndTz[1];
175
+ return isTWms(time) && isTZ(tz);
176
+ };
177
+ }, { bodyHash: "NCB_K_7BF-8PZQ", paramNames: ["jUtil"], code: 'const isTWms = jUtil.getPureFn("mionFormats", "isTimeString_ISO");\n const isTZ = jUtil.getPureFn("mionFormats", "isTimeZone");\n return function is_iso_time(value) {\n const isZ = value.endsWith("Z") || value.endsWith("z");\n const isPositiveTZ = isZ || value.indexOf("+") !== -1;\n const isNegativeTZ = isZ || value.indexOf("-") !== -1;\n if (!isZ && !isPositiveTZ && !isNegativeTZ) return false;\n const timeAndTz = isZ ? [value.substring(0, value.length - 1), "Z"] : value.split(isPositiveTZ ? "+" : "-");\n if (timeAndTz.length !== 2) return false;\n const time = timeAndTz[0];\n const tz = timeAndTz[1];\n return isTWms(time) && isTZ(tz);\n };' });
178
+ const cpf_isTimeString_ISO = core.registerPureFnFactory("mionFormats", "isTimeString_ISO", function(jUtil) {
179
+ const isH = jUtil.getPureFn("mionFormats", "isHours");
180
+ const isM = jUtil.getPureFn("mionFormats", "isMinutes");
181
+ const isSWithMls = jUtil.getPureFn("mionFormats", "isSecondsWithMs");
182
+ return function is_iso_time(value) {
183
+ const parts = value.split(":");
184
+ return parts.length === 3 && isH(parts[0]) && isM(parts[1]) && isSWithMls(parts[2]);
185
+ };
186
+ }, { bodyHash: "joUIF3KmQA7Aws", paramNames: ["jUtil"], code: 'const isH = jUtil.getPureFn("mionFormats", "isHours");\n const isM = jUtil.getPureFn("mionFormats", "isMinutes");\n const isSWithMls = jUtil.getPureFn("mionFormats", "isSecondsWithMs");\n return function is_iso_time(value) {\n const parts = value.split(":");\n return parts.length === 3 && isH(parts[0]) && isM(parts[1]) && isSWithMls(parts[2]);\n };' });
187
+ const cpf_isTimeString_HHmmss = core.registerPureFnFactory("mionFormats", "isTimeString_HHmmss", function(jUtil) {
188
+ const isH = jUtil.getPureFn("mionFormats", "isHours");
189
+ const isM = jUtil.getPureFn("mionFormats", "isMinutes");
190
+ const isS = jUtil.getPureFn("mionFormats", "isSeconds");
191
+ return function is_iso_time(value) {
192
+ const parts = value.split(":");
193
+ return parts.length === 3 && isH(parts[0]) && isM(parts[1]) && isS(parts[2]);
194
+ };
195
+ }, { bodyHash: "QU-R606PNQuAQE", paramNames: ["jUtil"], code: 'const isH = jUtil.getPureFn("mionFormats", "isHours");\n const isM = jUtil.getPureFn("mionFormats", "isMinutes");\n const isS = jUtil.getPureFn("mionFormats", "isSeconds");\n return function is_iso_time(value) {\n const parts = value.split(":");\n return parts.length === 3 && isH(parts[0]) && isM(parts[1]) && isS(parts[2]);\n };' });
196
+ const cpf_isTimeString_HHmm = core.registerPureFnFactory("mionFormats", "isTimeString_HHmm", function(jUtil) {
197
+ const isH = jUtil.getPureFn("mionFormats", "isHours");
198
+ const isM = jUtil.getPureFn("mionFormats", "isMinutes");
199
+ return function is_iso_time(value) {
200
+ const parts = value.split(":");
201
+ return parts.length === 2 && isH(parts[0]) && isM(parts[1]);
202
+ };
203
+ }, { bodyHash: "wK8lBvI2O4XQ09", paramNames: ["jUtil"], code: 'const isH = jUtil.getPureFn("mionFormats", "isHours");\n const isM = jUtil.getPureFn("mionFormats", "isMinutes");\n return function is_iso_time(value) {\n const parts = value.split(":");\n return parts.length === 2 && isH(parts[0]) && isM(parts[1]);\n };' });
204
+ const cpf_isTimeString_mmss = core.registerPureFnFactory("mionFormats", "isTimeString_mmss", function(jUtil) {
205
+ const isM = jUtil.getPureFn("mionFormats", "isMinutes");
206
+ const isS = jUtil.getPureFn("mionFormats", "isSeconds");
207
+ return function is_iso_time(value) {
208
+ const parts = value.split(":");
209
+ return parts.length === 2 && isM(parts[0]) && isS(parts[1]);
210
+ };
211
+ }, { bodyHash: "HBjntCm7aZu5JG", paramNames: ["jUtil"], code: 'const isM = jUtil.getPureFn("mionFormats", "isMinutes");\n const isS = jUtil.getPureFn("mionFormats", "isSeconds");\n return function is_iso_time(value) {\n const parts = value.split(":");\n return parts.length === 2 && isM(parts[0]) && isS(parts[1]);\n };' });
212
+ const pureTimeFns = [cpf_isTimeZone, cpf_isHours, cpf_isMinutes, cpf_isSeconds, cpf_isSecondsWithMs];
213
+ const timeFunctions = [
214
+ cpf_isTimeString_ISO_TZ,
215
+ cpf_isTimeString_ISO,
216
+ cpf_isTimeString_HHmmss,
217
+ cpf_isTimeString_HHmm,
218
+ cpf_isTimeString_mmss
219
+ ];
220
+ const cpf_isUUID = core.registerPureFnFactory("mionFormats", "isUUID", function() {
221
+ return function is_uuid(value, p) {
222
+ if (value.length !== 36)
223
+ return false;
224
+ for (let i = 0; i < 36; i++) {
225
+ if (i === 8 || i === 13 || i === 18 || i === 23) {
226
+ if (value[i] !== "-")
227
+ return false;
228
+ } else if (i === 14) {
229
+ if (value[i] !== p.version)
230
+ return false;
231
+ } else {
232
+ const charCode = value.charCodeAt(i);
233
+ const is09 = charCode >= 48 && charCode <= 57;
234
+ const isaf = charCode >= 97 && charCode <= 102;
235
+ const isAF = charCode >= 65 && charCode <= 70;
236
+ if (!(is09 || isaf || isAF))
237
+ return false;
238
+ }
239
+ }
240
+ return true;
241
+ };
242
+ }, { bodyHash: "32EsOFrtBtCSbQ", paramNames: [], code: 'return function is_uuid(value, p) {\n if (value.length !== 36) return false;\n for (let i = 0; i < 36; i++) {\n if (i === 8 || i === 13 || i === 18 || i === 23) {\n if (value[i] !== "-") return false;\n } else if (i === 14) {\n if (value[i] !== p.version) return false;\n } else {\n const charCode = value.charCodeAt(i);\n const is09 = charCode >= 48 && charCode <= 57;\n const isaf = charCode >= 97 && charCode <= 102;\n const isAF = charCode >= 65 && charCode <= 70;\n if (!(is09 || isaf || isAF)) return false;\n }\n }\n return true;\n };' });
243
+ const cpf_isLocalHost = core.registerPureFnFactory("mionFormats", "isLocalHost", function() {
244
+ const lhr = /^localhost$/i;
245
+ return function is_local_host(ip, p) {
246
+ if (p.version === 4)
247
+ return lhr.test(ip) || ip === "127:0:0:1";
248
+ if (p.version === 6)
249
+ return ip === "::1" || ip === "0:0:0:0:0:0:0:1";
250
+ return lhr.test(ip) || ip === "127:0:0:1" || ip === "::1" || ip === "0:0:0:0:0:0:0:1";
251
+ };
252
+ }, { bodyHash: "ik5yJC7tT_L6xO", paramNames: [], code: 'const lhr = /^localhost$/i;\n return function is_local_host(ip, p) {\n if (p.version === 4) return lhr.test(ip) || ip === "127:0:0:1";\n if (p.version === 6) return ip === "::1" || ip === "0:0:0:0:0:0:0:1";\n return lhr.test(ip) || ip === "127:0:0:1" || ip === "::1" || ip === "0:0:0:0:0:0:0:1";\n };' });
253
+ const cpf_isIPV4 = core.registerPureFnFactory("mionFormats", "isIPV4", function(utl) {
254
+ const is_Localhost = utl.getPureFn("mionFormats", "isLocalHost");
255
+ function get_address(ip, p) {
256
+ if (!p.allowPort)
257
+ return ip;
258
+ const parts = ip.split(":");
259
+ if (parts.length > 2)
260
+ return false;
261
+ const [address, portS] = parts;
262
+ if (!portS)
263
+ return address;
264
+ const port = Number(portS);
265
+ if (isNaN(port) || port < 0 || port > 65535)
266
+ return false;
267
+ return address;
268
+ }
269
+ return function is_ip_v4(ip, p) {
270
+ const address = get_address(ip, p);
271
+ if (address === false)
272
+ return false;
273
+ const isLocal = is_Localhost(address, p);
274
+ if (p.allowLocalHost && isLocal)
275
+ return true;
276
+ if (!p.allowLocalHost && isLocal)
277
+ return false;
278
+ const sections = address.split(".");
279
+ if (sections.length !== 4)
280
+ return false;
281
+ for (const section of sections) {
282
+ const num = Number(section);
283
+ if (isNaN(num) || num < 0 || num > 255)
284
+ return false;
285
+ }
286
+ return true;
287
+ };
288
+ }, { bodyHash: "DL89ezU80jTaqc", paramNames: ["utl"], code: 'const is_Localhost = utl.getPureFn("mionFormats", "isLocalHost");\n function get_address(ip, p) {\n if (!p.allowPort) return ip;\n const parts = ip.split(":");\n if (parts.length > 2) return false;\n const [address, portS] = parts;\n if (!portS) return address;\n const port = Number(portS);\n if (isNaN(port) || port < 0 || port > 65535) return false;\n return address;\n }\n return function is_ip_v4(ip, p) {\n const address = get_address(ip, p);\n if (address === false) return false;\n const isLocal = is_Localhost(address, p);\n if (p.allowLocalHost && isLocal) return true;\n if (!p.allowLocalHost && isLocal) return false;\n const sections = address.split(".");\n if (sections.length !== 4) return false;\n for (const section of sections) {\n const num = Number(section);\n if (isNaN(num) || num < 0 || num > 255) return false;\n }\n return true;\n };' });
289
+ const cpf_isIPV6 = core.registerPureFnFactory("mionFormats", "isIPV6", function(utl) {
290
+ const is_Localhost = utl.getPureFn("mionFormats", "isLocalHost");
291
+ const ipv6PortRegexp = /^\[([^\]]+)\](?::(\d+))?$/;
292
+ function get_address(ip, p) {
293
+ if (!p.allowPort)
294
+ return ip;
295
+ const match = ip.match(ipv6PortRegexp);
296
+ if (!match)
297
+ return false;
298
+ const address = match[1];
299
+ const port = match[2];
300
+ if (!port)
301
+ return address;
302
+ const num = Number(port);
303
+ if (isNaN(num) || num < 0 || num > 65535)
304
+ return false;
305
+ return address;
306
+ }
307
+ return function is_ip_v6(ip, p) {
308
+ const address = get_address(ip, p);
309
+ if (address === false)
310
+ return false;
311
+ const isLocal = is_Localhost(address, p);
312
+ if (p.allowLocalHost && isLocal)
313
+ return true;
314
+ if (!p.allowLocalHost && isLocal)
315
+ return false;
316
+ const sections = address.split(":");
317
+ if (sections.length < 3 || sections.length > 8)
318
+ return false;
319
+ let doubleColon = 0;
320
+ for (const section of sections) {
321
+ if (section.length === 0) {
322
+ doubleColon++;
323
+ if (doubleColon > 1)
324
+ return false;
325
+ continue;
326
+ }
327
+ if (section.length > 4)
328
+ return false;
329
+ const num = parseInt(section, 16);
330
+ if (isNaN(num) || num < 0 || num > 65535)
331
+ return false;
332
+ }
333
+ return true;
334
+ };
335
+ }, { bodyHash: "SL4Gk3IId9J6aa", paramNames: ["utl"], code: 'const is_Localhost = utl.getPureFn("mionFormats", "isLocalHost");\n const ipv6PortRegexp = /^\\[([^\\]]+)\\](?::(\\d+))?$/;\n function get_address(ip, p) {\n if (!p.allowPort) return ip;\n const match = ip.match(ipv6PortRegexp);\n if (!match) return false;\n const address = match[1];\n const port = match[2];\n if (!port) return address;\n const num = Number(port);\n if (isNaN(num) || num < 0 || num > 65535) return false;\n return address;\n }\n return function is_ip_v6(ip, p) {\n const address = get_address(ip, p);\n if (address === false) return false;\n const isLocal = is_Localhost(address, p);\n if (p.allowLocalHost && isLocal) return true;\n if (!p.allowLocalHost && isLocal) return false;\n const sections = address.split(":");\n if (sections.length < 3 || sections.length > 8) return false;\n let doubleColon = 0;\n for (const section of sections) {\n if (section.length === 0) {\n doubleColon++;\n if (doubleColon > 1) return false;\n continue;\n }\n if (section.length > 4) return false;\n const num = parseInt(section, 16);\n if (isNaN(num) || num < 0 || num > 65535) return false;\n }\n return true;\n };' });
336
+ const cpf_mionGetIPErrors = core.registerPureFnFactory("mionFormats", "mionGetIPErrors", function(utl) {
337
+ const is_ip_v4 = utl.getPureFn("mionFormats", "isIPV4");
338
+ const is_ip_v6 = utl.getPureFn("mionFormats", "isIPV6");
339
+ const noopDeps = {};
340
+ return function get_ip_errors(ip, p, fPath, fErrs, name = "ip") {
341
+ if (p.version === 4 && !is_ip_v4(ip, p, noopDeps))
342
+ return fErrs.push({ name, formatPath: [...fPath, "version"], val: 4 }), fErrs;
343
+ if (p.version === 6 && !is_ip_v6(ip, p, noopDeps))
344
+ return fErrs.push({ name, formatPath: [...fPath, "version"], val: 6 }), fErrs;
345
+ const isIP = is_ip_v4(ip, p, noopDeps) || is_ip_v6(ip, p, noopDeps);
346
+ if (!isIP)
347
+ fErrs.push({ name, formatPath: ["version"], val: "any" });
348
+ return fErrs;
349
+ };
350
+ }, { bodyHash: "DqM0k2QRxqOTpQ", paramNames: ["utl"], code: 'const is_ip_v4 = utl.getPureFn("mionFormats", "isIPV4");\n const is_ip_v6 = utl.getPureFn("mionFormats", "isIPV6");\n const noopDeps = {};\n return function get_ip_errors(ip, p, fPath, fErrs, name = "ip") {\n if (p.version === 4 && !is_ip_v4(ip, p, noopDeps))\n return fErrs.push({ name, formatPath: [...fPath, "version"], val: 4 }), fErrs;\n if (p.version === 6 && !is_ip_v6(ip, p, noopDeps))\n return fErrs.push({ name, formatPath: [...fPath, "version"], val: 6 }), fErrs;\n const isIP = is_ip_v4(ip, p, noopDeps) || is_ip_v6(ip, p, noopDeps);\n if (!isIP) fErrs.push({ name, formatPath: ["version"], val: "any" });\n return fErrs;\n };' });
351
+ const ipFunctions = [cpf_isLocalHost, cpf_isIPV4, cpf_isIPV6, cpf_mionGetIPErrors];
352
+ const mionFormatsPureFunctions = [
353
+ // Date functions
354
+ ...dateFunctions,
355
+ // Time functions
356
+ ...pureTimeFns,
357
+ ...timeFunctions,
358
+ // UUID functions
359
+ cpf_isUUID,
360
+ // IP functions
361
+ ...ipFunctions
362
+ ];
363
+ exports.cpf_isDateString = cpf_isDateString;
364
+ exports.cpf_isDateString_DM = cpf_isDateString_DM;
365
+ exports.cpf_isDateString_DMY = cpf_isDateString_DMY;
366
+ exports.cpf_isDateString_MD = cpf_isDateString_MD;
367
+ exports.cpf_isDateString_MDY = cpf_isDateString_MDY;
368
+ exports.cpf_isDateString_YM = cpf_isDateString_YM;
369
+ exports.cpf_isDateString_YMD = cpf_isDateString_YMD;
370
+ exports.cpf_isHours = cpf_isHours;
371
+ exports.cpf_isIPV4 = cpf_isIPV4;
372
+ exports.cpf_isIPV6 = cpf_isIPV6;
373
+ exports.cpf_isLocalHost = cpf_isLocalHost;
374
+ exports.cpf_isMinutes = cpf_isMinutes;
375
+ exports.cpf_isSeconds = cpf_isSeconds;
376
+ exports.cpf_isSecondsWithMs = cpf_isSecondsWithMs;
377
+ exports.cpf_isTimeString_HHmm = cpf_isTimeString_HHmm;
378
+ exports.cpf_isTimeString_HHmmss = cpf_isTimeString_HHmmss;
379
+ exports.cpf_isTimeString_ISO = cpf_isTimeString_ISO;
380
+ exports.cpf_isTimeString_ISO_TZ = cpf_isTimeString_ISO_TZ;
381
+ exports.cpf_isTimeString_mmss = cpf_isTimeString_mmss;
382
+ exports.cpf_isTimeZone = cpf_isTimeZone;
383
+ exports.cpf_isUUID = cpf_isUUID;
384
+ exports.cpf_mionGetIPErrors = cpf_mionGetIPErrors;
385
+ exports.dateFunctions = dateFunctions;
386
+ exports.ipFunctions = ipFunctions;
387
+ exports.mionFormatsPureFunctions = mionFormatsPureFunctions;
388
+ exports.pureTimeFns = pureTimeFns;
389
+ exports.timeFunctions = timeFunctions;
390
+ //# sourceMappingURL=type-formats-pure-fns.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-formats-pure-fns.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,27 @@
1
+ export declare const cpf_isDateString: import('@mionjs/core').CompiledPureFunction;
2
+ export declare const cpf_isDateString_YMD: import('@mionjs/core').CompiledPureFunction;
3
+ export declare const cpf_isDateString_DMY: import('@mionjs/core').CompiledPureFunction;
4
+ export declare const cpf_isDateString_MDY: import('@mionjs/core').CompiledPureFunction;
5
+ export declare const cpf_isDateString_YM: import('@mionjs/core').CompiledPureFunction;
6
+ export declare const cpf_isDateString_MD: import('@mionjs/core').CompiledPureFunction;
7
+ export declare const cpf_isDateString_DM: import('@mionjs/core').CompiledPureFunction;
8
+ export declare const dateFunctions: import('@mionjs/core').CompiledPureFunction[];
9
+ export declare const cpf_isTimeZone: import('@mionjs/core').CompiledPureFunction;
10
+ export declare const cpf_isHours: import('@mionjs/core').CompiledPureFunction;
11
+ export declare const cpf_isMinutes: import('@mionjs/core').CompiledPureFunction;
12
+ export declare const cpf_isSeconds: import('@mionjs/core').CompiledPureFunction;
13
+ export declare const cpf_isSecondsWithMs: import('@mionjs/core').CompiledPureFunction;
14
+ export declare const cpf_isTimeString_ISO_TZ: import('@mionjs/core').CompiledPureFunction;
15
+ export declare const cpf_isTimeString_ISO: import('@mionjs/core').CompiledPureFunction;
16
+ export declare const cpf_isTimeString_HHmmss: import('@mionjs/core').CompiledPureFunction;
17
+ export declare const cpf_isTimeString_HHmm: import('@mionjs/core').CompiledPureFunction;
18
+ export declare const cpf_isTimeString_mmss: import('@mionjs/core').CompiledPureFunction;
19
+ export declare const pureTimeFns: import('@mionjs/core').CompiledPureFunction[];
20
+ export declare const timeFunctions: import('@mionjs/core').CompiledPureFunction[];
21
+ export declare const cpf_isUUID: import('@mionjs/core').CompiledPureFunction;
22
+ export declare const cpf_isLocalHost: import('@mionjs/core').CompiledPureFunction;
23
+ export declare const cpf_isIPV4: import('@mionjs/core').CompiledPureFunction;
24
+ export declare const cpf_isIPV6: import('@mionjs/core').CompiledPureFunction;
25
+ export declare const cpf_mionGetIPErrors: import('@mionjs/core').CompiledPureFunction;
26
+ export declare const ipFunctions: import('@mionjs/core').CompiledPureFunction[];
27
+ export declare const mionFormatsPureFunctions: import('@mionjs/core').CompiledPureFunction[];
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const runTypes = require("@mionjs/run-types");
4
+ function paramVal(p) {
5
+ return runTypes.isFormatParamMeta(p) ? p.val : p;
6
+ }
7
+ paramVal.__type = ["FormatParam", "p", "paramVal", 'P"w!2""/#'];
8
+ function regexpEscape(val) {
9
+ return val.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&");
10
+ }
11
+ regexpEscape.__type = ["val", "regexpEscape", 'P&2!&/"'];
12
+ exports.paramVal = paramVal;
13
+ exports.regexpEscape = regexpEscape;
14
+ //# sourceMappingURL=utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ import { FormatParam, FormatParamLiteral } from '@mionjs/core';
2
+ export declare function paramVal<L extends FormatParamLiteral>(p: FormatParam<L>): L;
3
+ export declare function regexpEscape(val: string): string;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export * from './src/bigint/bigIntFormat.runtype.ts';
2
+ export * from './src/bigint/defaultBigNumberFormats.ts';
@@ -0,0 +1,14 @@
1
+ import { BIGINT_RUN_TYPE_FORMATTER, BigIntRunTypeFormat, __ΩFormatBigInt } from "./src/bigint/bigIntFormat.runtype.js";
2
+ import { __ΩFormatBigInt64, __ΩFormatBigNegative, __ΩFormatBigNegativeInt, __ΩFormatBigPositive, __ΩFormatBigPositiveInt, __ΩFormatBigUInt64 } from "./src/bigint/defaultBigNumberFormats.js";
3
+ export {
4
+ BIGINT_RUN_TYPE_FORMATTER,
5
+ BigIntRunTypeFormat,
6
+ __ΩFormatBigInt,
7
+ __ΩFormatBigInt64,
8
+ __ΩFormatBigNegative,
9
+ __ΩFormatBigNegativeInt,
10
+ __ΩFormatBigPositive,
11
+ __ΩFormatBigPositiveInt,
12
+ __ΩFormatBigUInt64
13
+ };
14
+ //# sourceMappingURL=BigintFormats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BigintFormats.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,2 @@
1
+ export * from './src/number/numberFormat.runtype.ts';
2
+ export * from './src/number/defaultNumberFormats.ts';
@@ -0,0 +1,20 @@
1
+ import { NUMBER_RUN_TYPE_FORMATTER, NumberRunTypeFormat, __ΩFormatNumber } from "./src/number/numberFormat.runtype.js";
2
+ import { __ΩFormatFloat, __ΩFormatInt16, __ΩFormatInt32, __ΩFormatInt8, __ΩFormatInteger, __ΩFormatNegative, __ΩFormatNegativeInt, __ΩFormatPositive, __ΩFormatPositiveInt, __ΩFormatUInt16, __ΩFormatUInt32, __ΩFormatUInt8 } from "./src/number/defaultNumberFormats.js";
3
+ export {
4
+ NUMBER_RUN_TYPE_FORMATTER,
5
+ NumberRunTypeFormat,
6
+ __ΩFormatFloat,
7
+ __ΩFormatInt16,
8
+ __ΩFormatInt32,
9
+ __ΩFormatInt8,
10
+ __ΩFormatInteger,
11
+ __ΩFormatNegative,
12
+ __ΩFormatNegativeInt,
13
+ __ΩFormatNumber,
14
+ __ΩFormatPositive,
15
+ __ΩFormatPositiveInt,
16
+ __ΩFormatUInt16,
17
+ __ΩFormatUInt32,
18
+ __ΩFormatUInt8
19
+ };
20
+ //# sourceMappingURL=NumberFormats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberFormats.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,11 @@
1
+ export * from './src/string/stringFormat.runtype.ts';
2
+ export * from './src/string/date.runtype.ts';
3
+ export * from './src/string/dateTime.runtype.ts';
4
+ export * from './src/string/time.runtype.ts';
5
+ export * from './src/string/email.runtype.ts';
6
+ export * from './src/string/domain.runtype.ts';
7
+ export * from './src/string/url.runtype.ts';
8
+ export * from './src/string/ip.runtype.ts';
9
+ export * from './src/string/uuid.runtype.ts';
10
+ export * from './src/string/defaultStringFormats.runtype.ts';
11
+ export * from './src/type-formats-pure-fns.ts';
@@ -0,0 +1,120 @@
1
+ import { cpf_isDateString, cpf_isDateString_DM, cpf_isDateString_DMY, cpf_isDateString_MD, cpf_isDateString_MDY, cpf_isDateString_YM, cpf_isDateString_YMD, cpf_isHours, cpf_isIPV4, cpf_isIPV6, cpf_isLocalHost, cpf_isMinutes, cpf_isSeconds, cpf_isSecondsWithMs, cpf_isTimeString_HHmm, cpf_isTimeString_HHmmss, cpf_isTimeString_ISO, cpf_isTimeString_ISO_TZ, cpf_isTimeString_mmss, cpf_isTimeZone, cpf_isUUID, cpf_mionGetIPErrors, dateFunctions, ipFunctions, mionFormatsPureFunctions, pureTimeFns, timeFunctions } from "./src/type-formats-pure-fns.js";
2
+ import { DATE_RUN_TYPE_FORMATTER, DateStringRunTypeFormat, __ΩDEFAULT_DATE_PARAMS, __ΩFormatStringDate } from "./src/string/date.runtype.js";
3
+ import { DATE_TIME_RUN_TYPE_FORMATTER, DateTimeRunTypeFormat, __ΩDEFAULT_DATE_TIME_PARAMS, __ΩFormatStringDateTime } from "./src/string/dateTime.runtype.js";
4
+ import { TIME_RUN_TYPE_FORMATTER, TimeStringRunTypeFormat, __ΩDEFAULT_TIME_FORMAT_PARAMS, __ΩFormatStringTime, mockMilliseconds, mockTimeZone } from "./src/string/time.runtype.js";
5
+ import { EMAIL_PATTERN, EMAIL_PATTERN_PUNYCODE, EMAIL_RUN_TYPE_FORMATTER, EmailRunTypeFormat, __ΩDEFAULT_EMAIL_PARAMS, __ΩDEFAULT_STRICT_EMAIL_PARAMS, __ΩFormatEmail, __ΩFormatEmailPattern, __ΩFormatEmailPunycode, __ΩFormatEmailStrict } from "./src/string/email.runtype.js";
6
+ import { DOMAIN_ALLOWED_CHARS_PATTERN, DOMAIN_PATTERN, DOMAIN_PATTERN_PUNYCODE, DOMAIN_PATTERN_UNICODE, DOMAIN_RUN_TYPE_FORMATTER, DomainRunTypeFormat, TLD_ALLOWED_CHARS_PATTERN, __ΩDEFAULT_DMM_TLD_PARAMS, __ΩDEFAULT_DOMAIN_PARAMS, __ΩDEFAULT_DOM_NAME_PARAMS, __ΩDEFAULT_STRICT_DOMAIN_PARAMS, __ΩFormatDomain, __ΩFormatDomainStrict } from "./src/string/domain.runtype.js";
7
+ import { URLRunTypeFormat, URL_FILE_REGEXP, URL_HTTP_REGEXP, URL_REGEXP, URL_RUN_TYPE_FORMATTER, __ΩDEFAULT_URL_FILE_PARAMS, __ΩDEFAULT_URL_HTTP_PARAMS, __ΩDEFAULT_URL_PARAMS, __ΩDEFAULT_URL_SOCIAL_MEDIA_PARAMS, __ΩFormatUrl, __ΩFormatUrlFile, __ΩFormatUrlHttp, __ΩFormatUrlSocialMedia } from "./src/string/url.runtype.js";
8
+ import { IPRunTypeFormat, IP_RUN_TYPE_FORMATTER, __ΩFormatIP, __ΩFormatIPWithPort, __ΩFormatIPv4, __ΩFormatIPv4WithPort, __ΩFormatIPv6, __ΩFormatIPv6WithPort, mockIpV4, mockIpV6 } from "./src/string/ip.runtype.js";
9
+ import { UUIDRunTypeFormat, UUID_RUN_TYPE_FORMATTER, __ΩFormatUUIDv4, __ΩFormatUUIDv7 } from "./src/string/uuid.runtype.js";
10
+ import { ALPHANUMERIC_REGEX, ALPHA_REGEX, NUMERIC_REGEX, __ΩFormatAlpha, __ΩFormatAlphaNumeric, __ΩFormatCapitalize, __ΩFormatLowercase, __ΩFormatNumeric, __ΩFormatUppercase } from "./src/string/defaultStringFormats.runtype.js";
11
+ import { STRING_RUN_TYPE_FORMATTER, StringRunTypeFormat, __ΩFormatString, isPatternParam, patternParamsToStrParams, stringIgnoreProps } from "./src/string/stringFormat.runtype.js";
12
+ export {
13
+ ALPHANUMERIC_REGEX,
14
+ ALPHA_REGEX,
15
+ DATE_RUN_TYPE_FORMATTER,
16
+ DATE_TIME_RUN_TYPE_FORMATTER,
17
+ DOMAIN_ALLOWED_CHARS_PATTERN,
18
+ DOMAIN_PATTERN,
19
+ DOMAIN_PATTERN_PUNYCODE,
20
+ DOMAIN_PATTERN_UNICODE,
21
+ DOMAIN_RUN_TYPE_FORMATTER,
22
+ DateStringRunTypeFormat,
23
+ DateTimeRunTypeFormat,
24
+ DomainRunTypeFormat,
25
+ EMAIL_PATTERN,
26
+ EMAIL_PATTERN_PUNYCODE,
27
+ EMAIL_RUN_TYPE_FORMATTER,
28
+ EmailRunTypeFormat,
29
+ IPRunTypeFormat,
30
+ IP_RUN_TYPE_FORMATTER,
31
+ NUMERIC_REGEX,
32
+ STRING_RUN_TYPE_FORMATTER,
33
+ StringRunTypeFormat,
34
+ TIME_RUN_TYPE_FORMATTER,
35
+ TLD_ALLOWED_CHARS_PATTERN,
36
+ TimeStringRunTypeFormat,
37
+ URLRunTypeFormat,
38
+ URL_FILE_REGEXP,
39
+ URL_HTTP_REGEXP,
40
+ URL_REGEXP,
41
+ URL_RUN_TYPE_FORMATTER,
42
+ UUIDRunTypeFormat,
43
+ UUID_RUN_TYPE_FORMATTER,
44
+ __ΩDEFAULT_DATE_PARAMS,
45
+ __ΩDEFAULT_DATE_TIME_PARAMS,
46
+ __ΩDEFAULT_DMM_TLD_PARAMS,
47
+ __ΩDEFAULT_DOMAIN_PARAMS,
48
+ __ΩDEFAULT_DOM_NAME_PARAMS,
49
+ __ΩDEFAULT_EMAIL_PARAMS,
50
+ __ΩDEFAULT_STRICT_DOMAIN_PARAMS,
51
+ __ΩDEFAULT_STRICT_EMAIL_PARAMS,
52
+ __ΩDEFAULT_TIME_FORMAT_PARAMS,
53
+ __ΩDEFAULT_URL_FILE_PARAMS,
54
+ __ΩDEFAULT_URL_HTTP_PARAMS,
55
+ __ΩDEFAULT_URL_PARAMS,
56
+ __ΩDEFAULT_URL_SOCIAL_MEDIA_PARAMS,
57
+ __ΩFormatAlpha,
58
+ __ΩFormatAlphaNumeric,
59
+ __ΩFormatCapitalize,
60
+ __ΩFormatDomain,
61
+ __ΩFormatDomainStrict,
62
+ __ΩFormatEmail,
63
+ __ΩFormatEmailPattern,
64
+ __ΩFormatEmailPunycode,
65
+ __ΩFormatEmailStrict,
66
+ __ΩFormatIP,
67
+ __ΩFormatIPWithPort,
68
+ __ΩFormatIPv4,
69
+ __ΩFormatIPv4WithPort,
70
+ __ΩFormatIPv6,
71
+ __ΩFormatIPv6WithPort,
72
+ __ΩFormatLowercase,
73
+ __ΩFormatNumeric,
74
+ __ΩFormatString,
75
+ __ΩFormatStringDate,
76
+ __ΩFormatStringDateTime,
77
+ __ΩFormatStringTime,
78
+ __ΩFormatUUIDv4,
79
+ __ΩFormatUUIDv7,
80
+ __ΩFormatUppercase,
81
+ __ΩFormatUrl,
82
+ __ΩFormatUrlFile,
83
+ __ΩFormatUrlHttp,
84
+ __ΩFormatUrlSocialMedia,
85
+ cpf_isDateString,
86
+ cpf_isDateString_DM,
87
+ cpf_isDateString_DMY,
88
+ cpf_isDateString_MD,
89
+ cpf_isDateString_MDY,
90
+ cpf_isDateString_YM,
91
+ cpf_isDateString_YMD,
92
+ cpf_isHours,
93
+ cpf_isIPV4,
94
+ cpf_isIPV6,
95
+ cpf_isLocalHost,
96
+ cpf_isMinutes,
97
+ cpf_isSeconds,
98
+ cpf_isSecondsWithMs,
99
+ cpf_isTimeString_HHmm,
100
+ cpf_isTimeString_HHmmss,
101
+ cpf_isTimeString_ISO,
102
+ cpf_isTimeString_ISO_TZ,
103
+ cpf_isTimeString_mmss,
104
+ cpf_isTimeZone,
105
+ cpf_isUUID,
106
+ cpf_mionGetIPErrors,
107
+ dateFunctions,
108
+ ipFunctions,
109
+ isPatternParam,
110
+ mionFormatsPureFunctions,
111
+ mockIpV4,
112
+ mockIpV6,
113
+ mockMilliseconds,
114
+ mockTimeZone,
115
+ patternParamsToStrParams,
116
+ pureTimeFns,
117
+ stringIgnoreProps,
118
+ timeFunctions
119
+ };
120
+ //# sourceMappingURL=StringFormats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringFormats.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ export { FormatNames, FormatName } from './src/constants.ts';