@sudobility/types 1.8.21

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 (248) hide show
  1. package/CLAUDE.md +285 -0
  2. package/README.md +310 -0
  3. package/dist/index.cjs +62 -0
  4. package/dist/index.d.ts +18 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +62 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/types/blockchain/common.cjs +102 -0
  9. package/dist/types/blockchain/common.d.ts +262 -0
  10. package/dist/types/blockchain/common.d.ts.map +1 -0
  11. package/dist/types/blockchain/common.js +102 -0
  12. package/dist/types/blockchain/common.js.map +1 -0
  13. package/dist/types/blockchain/index.cjs +18 -0
  14. package/dist/types/blockchain/index.d.ts +4 -0
  15. package/dist/types/blockchain/index.d.ts.map +1 -0
  16. package/dist/types/blockchain/index.js +18 -0
  17. package/dist/types/blockchain/index.js.map +1 -0
  18. package/dist/types/blockchain/validation.cjs +88 -0
  19. package/dist/types/blockchain/validation.d.ts +9 -0
  20. package/dist/types/blockchain/validation.d.ts.map +1 -0
  21. package/dist/types/blockchain/validation.js +88 -0
  22. package/dist/types/blockchain/validation.js.map +1 -0
  23. package/dist/types/business/enums.cjs +314 -0
  24. package/dist/types/business/enums.d.ts +227 -0
  25. package/dist/types/business/enums.d.ts.map +1 -0
  26. package/dist/types/business/enums.js +314 -0
  27. package/dist/types/business/enums.js.map +1 -0
  28. package/dist/types/business/index.cjs +33 -0
  29. package/dist/types/business/index.d.ts +5 -0
  30. package/dist/types/business/index.d.ts.map +1 -0
  31. package/dist/types/business/index.js +33 -0
  32. package/dist/types/business/index.js.map +1 -0
  33. package/dist/types/business/wallet-status.cjs +38 -0
  34. package/dist/types/business/wallet-status.d.ts +32 -0
  35. package/dist/types/business/wallet-status.d.ts.map +1 -0
  36. package/dist/types/business/wallet-status.js +38 -0
  37. package/dist/types/business/wallet-status.js.map +1 -0
  38. package/dist/types/common.cjs +6 -0
  39. package/dist/types/common.d.ts +142 -0
  40. package/dist/types/common.d.ts.map +1 -0
  41. package/dist/types/common.js +6 -0
  42. package/dist/types/common.js.map +1 -0
  43. package/dist/types/config/app-config.cjs +6 -0
  44. package/dist/types/config/app-config.d.ts +67 -0
  45. package/dist/types/config/app-config.d.ts.map +1 -0
  46. package/dist/types/config/app-config.js +6 -0
  47. package/dist/types/config/app-config.js.map +1 -0
  48. package/dist/types/config/environment.cjs +24 -0
  49. package/dist/types/config/environment.d.ts +68 -0
  50. package/dist/types/config/environment.d.ts.map +1 -0
  51. package/dist/types/config/environment.js +24 -0
  52. package/dist/types/config/environment.js.map +1 -0
  53. package/dist/types/config/index.cjs +6 -0
  54. package/dist/types/config/index.d.ts +4 -0
  55. package/dist/types/config/index.d.ts.map +1 -0
  56. package/dist/types/config/index.js +6 -0
  57. package/dist/types/config/index.js.map +1 -0
  58. package/dist/types/index.cjs +35 -0
  59. package/dist/types/index.d.ts +10 -0
  60. package/dist/types/index.d.ts.map +1 -0
  61. package/dist/types/index.js +35 -0
  62. package/dist/types/index.js.map +1 -0
  63. package/dist/types/indexer/index.cjs +19 -0
  64. package/dist/types/indexer/index.d.ts +3 -0
  65. package/dist/types/indexer/index.d.ts.map +1 -0
  66. package/dist/types/indexer/index.js +19 -0
  67. package/dist/types/indexer/index.js.map +1 -0
  68. package/dist/types/indexer/indexer-guards.cjs +145 -0
  69. package/dist/types/indexer/indexer-guards.d.ts +26 -0
  70. package/dist/types/indexer/indexer-guards.d.ts.map +1 -0
  71. package/dist/types/indexer/indexer-guards.js +145 -0
  72. package/dist/types/indexer/indexer-guards.js.map +1 -0
  73. package/dist/types/indexer/indexer-responses.cjs +8 -0
  74. package/dist/types/indexer/indexer-responses.d.ts +136 -0
  75. package/dist/types/indexer/indexer-responses.d.ts.map +1 -0
  76. package/dist/types/indexer/indexer-responses.js +8 -0
  77. package/dist/types/indexer/indexer-responses.js.map +1 -0
  78. package/dist/types/infrastructure/analytics.cjs +212 -0
  79. package/dist/types/infrastructure/analytics.d.ts +449 -0
  80. package/dist/types/infrastructure/analytics.d.ts.map +1 -0
  81. package/dist/types/infrastructure/analytics.js +212 -0
  82. package/dist/types/infrastructure/analytics.js.map +1 -0
  83. package/dist/types/infrastructure/api.cjs +17 -0
  84. package/dist/types/infrastructure/api.d.ts +152 -0
  85. package/dist/types/infrastructure/api.d.ts.map +1 -0
  86. package/dist/types/infrastructure/api.js +17 -0
  87. package/dist/types/infrastructure/api.js.map +1 -0
  88. package/dist/types/infrastructure/index.cjs +14 -0
  89. package/dist/types/infrastructure/index.d.ts +9 -0
  90. package/dist/types/infrastructure/index.d.ts.map +1 -0
  91. package/dist/types/infrastructure/index.js +14 -0
  92. package/dist/types/infrastructure/index.js.map +1 -0
  93. package/dist/types/infrastructure/navigation.cjs +3 -0
  94. package/dist/types/infrastructure/navigation.d.ts +56 -0
  95. package/dist/types/infrastructure/navigation.d.ts.map +1 -0
  96. package/dist/types/infrastructure/navigation.js +3 -0
  97. package/dist/types/infrastructure/navigation.js.map +1 -0
  98. package/dist/types/infrastructure/network.cjs +18 -0
  99. package/dist/types/infrastructure/network.d.ts +48 -0
  100. package/dist/types/infrastructure/network.d.ts.map +1 -0
  101. package/dist/types/infrastructure/network.js +18 -0
  102. package/dist/types/infrastructure/network.js.map +1 -0
  103. package/dist/types/infrastructure/wallet.cjs +37 -0
  104. package/dist/types/infrastructure/wallet.d.ts +33 -0
  105. package/dist/types/infrastructure/wallet.d.ts.map +1 -0
  106. package/dist/types/infrastructure/wallet.js +37 -0
  107. package/dist/types/infrastructure/wallet.js.map +1 -0
  108. package/dist/types/kyc/index.cjs +19 -0
  109. package/dist/types/kyc/index.d.ts +2 -0
  110. package/dist/types/kyc/index.d.ts.map +1 -0
  111. package/dist/types/kyc/index.js +19 -0
  112. package/dist/types/kyc/index.js.map +1 -0
  113. package/dist/types/kyc/kyc-types.cjs +12 -0
  114. package/dist/types/kyc/kyc-types.d.ts +260 -0
  115. package/dist/types/kyc/kyc-types.d.ts.map +1 -0
  116. package/dist/types/kyc/kyc-types.js +12 -0
  117. package/dist/types/kyc/kyc-types.js.map +1 -0
  118. package/dist/types/mailer/index.cjs +19 -0
  119. package/dist/types/mailer/index.d.ts +2 -0
  120. package/dist/types/mailer/index.d.ts.map +1 -0
  121. package/dist/types/mailer/index.js +19 -0
  122. package/dist/types/mailer/index.js.map +1 -0
  123. package/dist/types/mailer/mail-types.cjs +38 -0
  124. package/dist/types/mailer/mail-types.d.ts +296 -0
  125. package/dist/types/mailer/mail-types.d.ts.map +1 -0
  126. package/dist/types/mailer/mail-types.js +38 -0
  127. package/dist/types/mailer/mail-types.js.map +1 -0
  128. package/dist/types/wildduck/index.cjs +19 -0
  129. package/dist/types/wildduck/index.d.ts +2 -0
  130. package/dist/types/wildduck/index.d.ts.map +1 -0
  131. package/dist/types/wildduck/index.js +19 -0
  132. package/dist/types/wildduck/index.js.map +1 -0
  133. package/dist/types/wildduck/wildduck-types.cjs +48 -0
  134. package/dist/types/wildduck/wildduck-types.d.ts +1239 -0
  135. package/dist/types/wildduck/wildduck-types.d.ts.map +1 -0
  136. package/dist/types/wildduck/wildduck-types.js +48 -0
  137. package/dist/types/wildduck/wildduck-types.js.map +1 -0
  138. package/dist/utils/async-helpers.cjs +130 -0
  139. package/dist/utils/async-helpers.d.ts +35 -0
  140. package/dist/utils/async-helpers.d.ts.map +1 -0
  141. package/dist/utils/async-helpers.js +130 -0
  142. package/dist/utils/async-helpers.js.map +1 -0
  143. package/dist/utils/auth/auth.cjs +96 -0
  144. package/dist/utils/auth/auth.d.ts +40 -0
  145. package/dist/utils/auth/auth.d.ts.map +1 -0
  146. package/dist/utils/auth/auth.js +96 -0
  147. package/dist/utils/auth/auth.js.map +1 -0
  148. package/dist/utils/auth/index.cjs +14 -0
  149. package/dist/utils/auth/index.d.ts +2 -0
  150. package/dist/utils/auth/index.d.ts.map +1 -0
  151. package/dist/utils/auth/index.js +14 -0
  152. package/dist/utils/auth/index.js.map +1 -0
  153. package/dist/utils/blockchain/address.cjs +231 -0
  154. package/dist/utils/blockchain/address.d.ts +65 -0
  155. package/dist/utils/blockchain/address.d.ts.map +1 -0
  156. package/dist/utils/blockchain/address.js +231 -0
  157. package/dist/utils/blockchain/address.js.map +1 -0
  158. package/dist/utils/blockchain/event-helpers.cjs +143 -0
  159. package/dist/utils/blockchain/event-helpers.d.ts +87 -0
  160. package/dist/utils/blockchain/event-helpers.d.ts.map +1 -0
  161. package/dist/utils/blockchain/event-helpers.js +143 -0
  162. package/dist/utils/blockchain/event-helpers.js.map +1 -0
  163. package/dist/utils/blockchain/index.cjs +30 -0
  164. package/dist/utils/blockchain/index.d.ts +8 -0
  165. package/dist/utils/blockchain/index.d.ts.map +1 -0
  166. package/dist/utils/blockchain/index.js +30 -0
  167. package/dist/utils/blockchain/index.js.map +1 -0
  168. package/dist/utils/blockchain/rpc-helpers.cjs +865 -0
  169. package/dist/utils/blockchain/rpc-helpers.d.ts +251 -0
  170. package/dist/utils/blockchain/rpc-helpers.d.ts.map +1 -0
  171. package/dist/utils/blockchain/rpc-helpers.js +865 -0
  172. package/dist/utils/blockchain/rpc-helpers.js.map +1 -0
  173. package/dist/utils/constants/application.cjs +158 -0
  174. package/dist/utils/constants/application.d.ts +119 -0
  175. package/dist/utils/constants/application.d.ts.map +1 -0
  176. package/dist/utils/constants/application.js +158 -0
  177. package/dist/utils/constants/application.js.map +1 -0
  178. package/dist/utils/constants/index.cjs +30 -0
  179. package/dist/utils/constants/index.d.ts +7 -0
  180. package/dist/utils/constants/index.d.ts.map +1 -0
  181. package/dist/utils/constants/index.js +30 -0
  182. package/dist/utils/constants/index.js.map +1 -0
  183. package/dist/utils/constants/status-values.cjs +14 -0
  184. package/dist/utils/constants/status-values.d.ts +12 -0
  185. package/dist/utils/constants/status-values.d.ts.map +1 -0
  186. package/dist/utils/constants/status-values.js +14 -0
  187. package/dist/utils/constants/status-values.js.map +1 -0
  188. package/dist/utils/formatting/currency.cjs +36 -0
  189. package/dist/utils/formatting/currency.d.ts +26 -0
  190. package/dist/utils/formatting/currency.d.ts.map +1 -0
  191. package/dist/utils/formatting/currency.js +36 -0
  192. package/dist/utils/formatting/currency.js.map +1 -0
  193. package/dist/utils/formatting/date.cjs +138 -0
  194. package/dist/utils/formatting/date.d.ts +33 -0
  195. package/dist/utils/formatting/date.d.ts.map +1 -0
  196. package/dist/utils/formatting/date.js +138 -0
  197. package/dist/utils/formatting/date.js.map +1 -0
  198. package/dist/utils/formatting/index.cjs +37 -0
  199. package/dist/utils/formatting/index.d.ts +4 -0
  200. package/dist/utils/formatting/index.d.ts.map +1 -0
  201. package/dist/utils/formatting/index.js +37 -0
  202. package/dist/utils/formatting/index.js.map +1 -0
  203. package/dist/utils/formatting/string.cjs +193 -0
  204. package/dist/utils/formatting/string.d.ts +69 -0
  205. package/dist/utils/formatting/string.d.ts.map +1 -0
  206. package/dist/utils/formatting/string.js +193 -0
  207. package/dist/utils/formatting/string.js.map +1 -0
  208. package/dist/utils/index.cjs +28 -0
  209. package/dist/utils/index.d.ts +12 -0
  210. package/dist/utils/index.d.ts.map +1 -0
  211. package/dist/utils/index.js +28 -0
  212. package/dist/utils/index.js.map +1 -0
  213. package/dist/utils/logging/index.cjs +16 -0
  214. package/dist/utils/logging/index.d.ts +5 -0
  215. package/dist/utils/logging/index.d.ts.map +1 -0
  216. package/dist/utils/logging/index.js +16 -0
  217. package/dist/utils/logging/index.js.map +1 -0
  218. package/dist/utils/logging/logger.cjs +92 -0
  219. package/dist/utils/logging/logger.d.ts +70 -0
  220. package/dist/utils/logging/logger.d.ts.map +1 -0
  221. package/dist/utils/logging/logger.js +92 -0
  222. package/dist/utils/logging/logger.js.map +1 -0
  223. package/dist/utils/url/index.cjs +13 -0
  224. package/dist/utils/url/index.d.ts +5 -0
  225. package/dist/utils/url/index.d.ts.map +1 -0
  226. package/dist/utils/url/index.js +13 -0
  227. package/dist/utils/url/index.js.map +1 -0
  228. package/dist/utils/url/url-params.cjs +128 -0
  229. package/dist/utils/url/url-params.d.ts +36 -0
  230. package/dist/utils/url/url-params.d.ts.map +1 -0
  231. package/dist/utils/url/url-params.js +128 -0
  232. package/dist/utils/url/url-params.js.map +1 -0
  233. package/dist/utils/validation/index.cjs +25 -0
  234. package/dist/utils/validation/index.d.ts +5 -0
  235. package/dist/utils/validation/index.d.ts.map +1 -0
  236. package/dist/utils/validation/index.js +25 -0
  237. package/dist/utils/validation/index.js.map +1 -0
  238. package/dist/utils/validation/type-validation.cjs +167 -0
  239. package/dist/utils/validation/type-validation.d.ts +68 -0
  240. package/dist/utils/validation/type-validation.d.ts.map +1 -0
  241. package/dist/utils/validation/type-validation.js +167 -0
  242. package/dist/utils/validation/type-validation.js.map +1 -0
  243. package/dist/utils/validation/web3-username-validator.cjs +132 -0
  244. package/dist/utils/validation/web3-username-validator.d.ts +43 -0
  245. package/dist/utils/validation/web3-username-validator.d.ts.map +1 -0
  246. package/dist/utils/validation/web3-username-validator.js +132 -0
  247. package/dist/utils/validation/web3-username-validator.js.map +1 -0
  248. package/package.json +80 -0
@@ -0,0 +1,193 @@
1
+ "use strict";
2
+ /**
3
+ * String formatting and manipulation utilities
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.truncate = truncate;
7
+ exports.capitalize = capitalize;
8
+ exports.toTitleCase = toTitleCase;
9
+ exports.toKebabCase = toKebabCase;
10
+ exports.toCamelCase = toCamelCase;
11
+ exports.toSnakeCase = toSnakeCase;
12
+ exports.normalizeWhitespace = normalizeWhitespace;
13
+ exports.isBlank = isBlank;
14
+ exports.isNotBlank = isNotBlank;
15
+ exports.escapeHtml = escapeHtml;
16
+ exports.stripHtml = stripHtml;
17
+ exports.getInitials = getInitials;
18
+ exports.formatBytes = formatBytes;
19
+ exports.randomString = randomString;
20
+ exports.pluralize = pluralize;
21
+ exports.formatNumber = formatNumber;
22
+ /**
23
+ * Truncate a string to a maximum length with ellipsis
24
+ */
25
+ function truncate(str, maxLength, suffix = '...') {
26
+ if (!str || str.length <= maxLength) {
27
+ return str;
28
+ }
29
+ return str.slice(0, maxLength - suffix.length) + suffix;
30
+ }
31
+ /**
32
+ * Capitalize the first letter of a string
33
+ */
34
+ function capitalize(str) {
35
+ if (!str)
36
+ return str;
37
+ return str.charAt(0).toUpperCase() + str.slice(1);
38
+ }
39
+ /**
40
+ * Convert a string to title case
41
+ */
42
+ function toTitleCase(str) {
43
+ if (!str)
44
+ return str;
45
+ return str
46
+ .toLowerCase()
47
+ .split(' ')
48
+ .map((word) => capitalize(word))
49
+ .join(' ');
50
+ }
51
+ /**
52
+ * Convert a string to kebab case
53
+ */
54
+ function toKebabCase(str) {
55
+ if (!str)
56
+ return str;
57
+ return str
58
+ .replace(/([a-z])([A-Z])/g, '$1-$2')
59
+ .replace(/[\s_]+/g, '-')
60
+ .toLowerCase();
61
+ }
62
+ /**
63
+ * Convert a string to camel case
64
+ */
65
+ function toCamelCase(str) {
66
+ if (!str)
67
+ return str;
68
+ return str
69
+ .replace(/[-_\s]+(.)?/g, (_, char) => (char ? char.toUpperCase() : ''))
70
+ .replace(/^./, (char) => char.toLowerCase());
71
+ }
72
+ /**
73
+ * Convert a string to snake case
74
+ */
75
+ function toSnakeCase(str) {
76
+ if (!str)
77
+ return str;
78
+ return str
79
+ .replace(/([a-z])([A-Z])/g, '$1_$2')
80
+ .replace(/[\s-]+/g, '_')
81
+ .toLowerCase();
82
+ }
83
+ /**
84
+ * Remove extra whitespace from a string
85
+ */
86
+ function normalizeWhitespace(str) {
87
+ if (!str)
88
+ return str;
89
+ return str.replace(/\s+/g, ' ').trim();
90
+ }
91
+ /**
92
+ * Check if a string is empty or only whitespace
93
+ */
94
+ function isBlank(str) {
95
+ return !str || str.trim().length === 0;
96
+ }
97
+ /**
98
+ * Check if a string is not empty and not only whitespace
99
+ */
100
+ function isNotBlank(str) {
101
+ return !isBlank(str);
102
+ }
103
+ /**
104
+ * Escape HTML special characters
105
+ */
106
+ function escapeHtml(str) {
107
+ if (!str)
108
+ return str;
109
+ const htmlEscapes = {
110
+ '&': '&amp;',
111
+ '<': '&lt;',
112
+ '>': '&gt;',
113
+ '"': '&quot;',
114
+ "'": '&#39;',
115
+ };
116
+ return str.replace(/[&<>"']/g, (char) => htmlEscapes[char]);
117
+ }
118
+ /**
119
+ * Remove HTML tags from a string
120
+ */
121
+ function stripHtml(str) {
122
+ if (!str)
123
+ return str;
124
+ return str.replace(/<[^>]*>/g, '');
125
+ }
126
+ /**
127
+ * Extract initials from a name
128
+ */
129
+ function getInitials(name, maxInitials = 2) {
130
+ if (!name)
131
+ return '';
132
+ const words = name.trim().split(/\s+/);
133
+ const initials = words
134
+ .slice(0, maxInitials)
135
+ .map((word) => word.charAt(0).toUpperCase())
136
+ .join('');
137
+ return initials;
138
+ }
139
+ /**
140
+ * Format bytes to human-readable size
141
+ */
142
+ function formatBytes(bytes, decimals = 2) {
143
+ if (bytes === 0)
144
+ return '0 Bytes';
145
+ const k = 1024;
146
+ const dm = decimals < 0 ? 0 : decimals;
147
+ const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB'];
148
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
149
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
150
+ }
151
+ /**
152
+ * Generate a random string
153
+ */
154
+ function randomString(length, charset = 'alphanumeric') {
155
+ let chars;
156
+ switch (charset) {
157
+ case 'alpha':
158
+ chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
159
+ break;
160
+ case 'numeric':
161
+ chars = '0123456789';
162
+ break;
163
+ case 'alphanumeric':
164
+ chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
165
+ break;
166
+ case 'hex':
167
+ chars = '0123456789abcdef';
168
+ break;
169
+ default:
170
+ chars = charset;
171
+ }
172
+ let result = '';
173
+ for (let i = 0; i < length; i++) {
174
+ result += chars.charAt(Math.floor(Math.random() * chars.length));
175
+ }
176
+ return result;
177
+ }
178
+ /**
179
+ * Pluralize a word based on count
180
+ */
181
+ function pluralize(count, singular, plural) {
182
+ if (count === 1) {
183
+ return singular;
184
+ }
185
+ return plural || `${singular}s`;
186
+ }
187
+ /**
188
+ * Format a number with commas as thousands separators
189
+ */
190
+ function formatNumber(num) {
191
+ return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
192
+ }
193
+ //# sourceMappingURL=string.js.map
@@ -0,0 +1,69 @@
1
+ /**
2
+ * String formatting and manipulation utilities
3
+ */
4
+ import { Optional } from '../../types/common';
5
+ /**
6
+ * Truncate a string to a maximum length with ellipsis
7
+ */
8
+ export declare function truncate(str: string, maxLength: number, suffix?: string): string;
9
+ /**
10
+ * Capitalize the first letter of a string
11
+ */
12
+ export declare function capitalize(str: string): string;
13
+ /**
14
+ * Convert a string to title case
15
+ */
16
+ export declare function toTitleCase(str: string): string;
17
+ /**
18
+ * Convert a string to kebab case
19
+ */
20
+ export declare function toKebabCase(str: string): string;
21
+ /**
22
+ * Convert a string to camel case
23
+ */
24
+ export declare function toCamelCase(str: string): string;
25
+ /**
26
+ * Convert a string to snake case
27
+ */
28
+ export declare function toSnakeCase(str: string): string;
29
+ /**
30
+ * Remove extra whitespace from a string
31
+ */
32
+ export declare function normalizeWhitespace(str: string): string;
33
+ /**
34
+ * Check if a string is empty or only whitespace
35
+ */
36
+ export declare function isBlank(str?: Optional<string>): boolean;
37
+ /**
38
+ * Check if a string is not empty and not only whitespace
39
+ */
40
+ export declare function isNotBlank(str?: Optional<string>): str is string;
41
+ /**
42
+ * Escape HTML special characters
43
+ */
44
+ export declare function escapeHtml(str: string): string;
45
+ /**
46
+ * Remove HTML tags from a string
47
+ */
48
+ export declare function stripHtml(str: string): string;
49
+ /**
50
+ * Extract initials from a name
51
+ */
52
+ export declare function getInitials(name: string, maxInitials?: number): string;
53
+ /**
54
+ * Format bytes to human-readable size
55
+ */
56
+ export declare function formatBytes(bytes: number, decimals?: number): string;
57
+ /**
58
+ * Generate a random string
59
+ */
60
+ export declare function randomString(length: number, charset?: string): string;
61
+ /**
62
+ * Pluralize a word based on count
63
+ */
64
+ export declare function pluralize(count: number, singular: string, plural?: Optional<string>): string;
65
+ /**
66
+ * Format a number with commas as thousands separators
67
+ */
68
+ export declare function formatNumber(num: number): string;
69
+ //# sourceMappingURL=string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../src/utils/formatting/string.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C;;GAEG;AACH,wBAAgB,QAAQ,CACtB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,MAAM,SAAQ,GACb,MAAM,CAKR;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG9C;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAO/C;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM/C;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAK/C;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM/C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,GAAG,IAAI,MAAM,CAEhE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAU9C;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG7C;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,SAAI,GAAG,MAAM,CAUjE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,SAAI,GAAG,MAAM,CAU/D;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,SAAiB,GAAG,MAAM,CA0B7E;AAED;;GAEG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,GACxB,MAAM,CAKR;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhD"}
@@ -0,0 +1,193 @@
1
+ "use strict";
2
+ /**
3
+ * String formatting and manipulation utilities
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.truncate = truncate;
7
+ exports.capitalize = capitalize;
8
+ exports.toTitleCase = toTitleCase;
9
+ exports.toKebabCase = toKebabCase;
10
+ exports.toCamelCase = toCamelCase;
11
+ exports.toSnakeCase = toSnakeCase;
12
+ exports.normalizeWhitespace = normalizeWhitespace;
13
+ exports.isBlank = isBlank;
14
+ exports.isNotBlank = isNotBlank;
15
+ exports.escapeHtml = escapeHtml;
16
+ exports.stripHtml = stripHtml;
17
+ exports.getInitials = getInitials;
18
+ exports.formatBytes = formatBytes;
19
+ exports.randomString = randomString;
20
+ exports.pluralize = pluralize;
21
+ exports.formatNumber = formatNumber;
22
+ /**
23
+ * Truncate a string to a maximum length with ellipsis
24
+ */
25
+ function truncate(str, maxLength, suffix = '...') {
26
+ if (!str || str.length <= maxLength) {
27
+ return str;
28
+ }
29
+ return str.slice(0, maxLength - suffix.length) + suffix;
30
+ }
31
+ /**
32
+ * Capitalize the first letter of a string
33
+ */
34
+ function capitalize(str) {
35
+ if (!str)
36
+ return str;
37
+ return str.charAt(0).toUpperCase() + str.slice(1);
38
+ }
39
+ /**
40
+ * Convert a string to title case
41
+ */
42
+ function toTitleCase(str) {
43
+ if (!str)
44
+ return str;
45
+ return str
46
+ .toLowerCase()
47
+ .split(' ')
48
+ .map((word) => capitalize(word))
49
+ .join(' ');
50
+ }
51
+ /**
52
+ * Convert a string to kebab case
53
+ */
54
+ function toKebabCase(str) {
55
+ if (!str)
56
+ return str;
57
+ return str
58
+ .replace(/([a-z])([A-Z])/g, '$1-$2')
59
+ .replace(/[\s_]+/g, '-')
60
+ .toLowerCase();
61
+ }
62
+ /**
63
+ * Convert a string to camel case
64
+ */
65
+ function toCamelCase(str) {
66
+ if (!str)
67
+ return str;
68
+ return str
69
+ .replace(/[-_\s]+(.)?/g, (_, char) => (char ? char.toUpperCase() : ''))
70
+ .replace(/^./, (char) => char.toLowerCase());
71
+ }
72
+ /**
73
+ * Convert a string to snake case
74
+ */
75
+ function toSnakeCase(str) {
76
+ if (!str)
77
+ return str;
78
+ return str
79
+ .replace(/([a-z])([A-Z])/g, '$1_$2')
80
+ .replace(/[\s-]+/g, '_')
81
+ .toLowerCase();
82
+ }
83
+ /**
84
+ * Remove extra whitespace from a string
85
+ */
86
+ function normalizeWhitespace(str) {
87
+ if (!str)
88
+ return str;
89
+ return str.replace(/\s+/g, ' ').trim();
90
+ }
91
+ /**
92
+ * Check if a string is empty or only whitespace
93
+ */
94
+ function isBlank(str) {
95
+ return !str || str.trim().length === 0;
96
+ }
97
+ /**
98
+ * Check if a string is not empty and not only whitespace
99
+ */
100
+ function isNotBlank(str) {
101
+ return !isBlank(str);
102
+ }
103
+ /**
104
+ * Escape HTML special characters
105
+ */
106
+ function escapeHtml(str) {
107
+ if (!str)
108
+ return str;
109
+ const htmlEscapes = {
110
+ '&': '&amp;',
111
+ '<': '&lt;',
112
+ '>': '&gt;',
113
+ '"': '&quot;',
114
+ "'": '&#39;',
115
+ };
116
+ return str.replace(/[&<>"']/g, (char) => htmlEscapes[char]);
117
+ }
118
+ /**
119
+ * Remove HTML tags from a string
120
+ */
121
+ function stripHtml(str) {
122
+ if (!str)
123
+ return str;
124
+ return str.replace(/<[^>]*>/g, '');
125
+ }
126
+ /**
127
+ * Extract initials from a name
128
+ */
129
+ function getInitials(name, maxInitials = 2) {
130
+ if (!name)
131
+ return '';
132
+ const words = name.trim().split(/\s+/);
133
+ const initials = words
134
+ .slice(0, maxInitials)
135
+ .map((word) => word.charAt(0).toUpperCase())
136
+ .join('');
137
+ return initials;
138
+ }
139
+ /**
140
+ * Format bytes to human-readable size
141
+ */
142
+ function formatBytes(bytes, decimals = 2) {
143
+ if (bytes === 0)
144
+ return '0 Bytes';
145
+ const k = 1024;
146
+ const dm = decimals < 0 ? 0 : decimals;
147
+ const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB'];
148
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
149
+ return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
150
+ }
151
+ /**
152
+ * Generate a random string
153
+ */
154
+ function randomString(length, charset = 'alphanumeric') {
155
+ let chars;
156
+ switch (charset) {
157
+ case 'alpha':
158
+ chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
159
+ break;
160
+ case 'numeric':
161
+ chars = '0123456789';
162
+ break;
163
+ case 'alphanumeric':
164
+ chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
165
+ break;
166
+ case 'hex':
167
+ chars = '0123456789abcdef';
168
+ break;
169
+ default:
170
+ chars = charset;
171
+ }
172
+ let result = '';
173
+ for (let i = 0; i < length; i++) {
174
+ result += chars.charAt(Math.floor(Math.random() * chars.length));
175
+ }
176
+ return result;
177
+ }
178
+ /**
179
+ * Pluralize a word based on count
180
+ */
181
+ function pluralize(count, singular, plural) {
182
+ if (count === 1) {
183
+ return singular;
184
+ }
185
+ return plural || `${singular}s`;
186
+ }
187
+ /**
188
+ * Format a number with commas as thousands separators
189
+ */
190
+ function formatNumber(num) {
191
+ return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
192
+ }
193
+ //# sourceMappingURL=string.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.js","sourceRoot":"","sources":["../../../src/utils/formatting/string.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAOH,4BASC;AAKD,gCAGC;AAKD,kCAOC;AAKD,kCAMC;AAKD,kCAKC;AAKD,kCAMC;AAKD,kDAGC;AAKD,0BAEC;AAKD,gCAEC;AAKD,gCAUC;AAKD,8BAGC;AAKD,kCAUC;AAKD,kCAUC;AAKD,oCA0BC;AAKD,8BASC;AAKD,oCAEC;AA/LD;;GAEG;AACH,SAAgB,QAAQ,CACtB,GAAW,EACX,SAAiB,EACjB,MAAM,GAAG,KAAK;IAEd,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,IAAI,SAAS,EAAE,CAAC;QACpC,OAAO,GAAG,CAAC;IACb,CAAC;IACD,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAC1D,CAAC;AAED;;GAEG;AACH,SAAgB,UAAU,CAAC,GAAW;IACpC,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAC;IACrB,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAC;IACrB,OAAO,GAAG;SACP,WAAW,EAAE;SACb,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAA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C,CAAC,CAAC;IACnE,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,SAAgB,SAAS,CACvB,KAAa,EACb,QAAgB,EAChB,MAAyB;IAEzB,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;QAChB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,OAAO,MAAM,IAAI,GAAG,QAAQ,GAAG,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,SAAgB,YAAY,CAAC,GAAW;IACtC,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /**
3
+ * Main utils export file
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ __exportStar(require("./validation"), exports);
21
+ __exportStar(require("./blockchain"), exports);
22
+ __exportStar(require("./auth"), exports);
23
+ __exportStar(require("./formatting"), exports);
24
+ __exportStar(require("./constants"), exports);
25
+ __exportStar(require("./logging"), exports);
26
+ __exportStar(require("./url"), exports);
27
+ __exportStar(require("./async-helpers"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Main utils export file
3
+ */
4
+ export * from './validation';
5
+ export * from './blockchain';
6
+ export * from './auth';
7
+ export * from './formatting';
8
+ export * from './constants';
9
+ export * from './logging';
10
+ export * from './url';
11
+ export * from './async-helpers';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /**
3
+ * Main utils export file
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ __exportStar(require("./validation"), exports);
21
+ __exportStar(require("./blockchain"), exports);
22
+ __exportStar(require("./auth"), exports);
23
+ __exportStar(require("./formatting"), exports);
24
+ __exportStar(require("./constants"), exports);
25
+ __exportStar(require("./logging"), exports);
26
+ __exportStar(require("./url"), exports);
27
+ __exportStar(require("./async-helpers"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,+CAA6B;AAC7B,yCAAuB;AACvB,+CAA6B;AAC7B,8CAA4B;AAC5B,4CAA0B;AAC1B,wCAAsB;AACtB,kDAAgC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * Logging utilities exports
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.storageLogger = exports.ensLogger = exports.contractLogger = exports.apiLogger = exports.authLogger = exports.logger = exports.LogLevel = void 0;
7
+ // Logging utilities
8
+ var logger_1 = require("./logger");
9
+ Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return logger_1.LogLevel; } });
10
+ Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return logger_1.logger; } });
11
+ Object.defineProperty(exports, "authLogger", { enumerable: true, get: function () { return logger_1.authLogger; } });
12
+ Object.defineProperty(exports, "apiLogger", { enumerable: true, get: function () { return logger_1.apiLogger; } });
13
+ Object.defineProperty(exports, "contractLogger", { enumerable: true, get: function () { return logger_1.contractLogger; } });
14
+ Object.defineProperty(exports, "ensLogger", { enumerable: true, get: function () { return logger_1.ensLogger; } });
15
+ Object.defineProperty(exports, "storageLogger", { enumerable: true, get: function () { return logger_1.storageLogger; } });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Logging utilities exports
3
+ */
4
+ export { LogLevel, type LogEntry, logger, authLogger, apiLogger, contractLogger, ensLogger, storageLogger, } from './logger';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/logging/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACL,QAAQ,EACR,KAAK,QAAQ,EACb,MAAM,EACN,UAAU,EACV,SAAS,EACT,cAAc,EACd,SAAS,EACT,aAAa,GACd,MAAM,UAAU,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * Logging utilities exports
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.storageLogger = exports.ensLogger = exports.contractLogger = exports.apiLogger = exports.authLogger = exports.logger = exports.LogLevel = void 0;
7
+ // Logging utilities
8
+ var logger_1 = require("./logger");
9
+ Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return logger_1.LogLevel; } });
10
+ Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return logger_1.logger; } });
11
+ Object.defineProperty(exports, "authLogger", { enumerable: true, get: function () { return logger_1.authLogger; } });
12
+ Object.defineProperty(exports, "apiLogger", { enumerable: true, get: function () { return logger_1.apiLogger; } });
13
+ Object.defineProperty(exports, "contractLogger", { enumerable: true, get: function () { return logger_1.contractLogger; } });
14
+ Object.defineProperty(exports, "ensLogger", { enumerable: true, get: function () { return logger_1.ensLogger; } });
15
+ Object.defineProperty(exports, "storageLogger", { enumerable: true, get: function () { return logger_1.storageLogger; } });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/logging/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oBAAoB;AACpB,mCASkB;AARhB,kGAAA,QAAQ,OAAA;AAER,gGAAA,MAAM,OAAA;AACN,oGAAA,UAAU,OAAA;AACV,mGAAA,SAAS,OAAA;AACT,wGAAA,cAAc,OAAA;AACd,mGAAA,SAAS,OAAA;AACT,uGAAA,aAAa,OAAA"}