@plyaz/config 1.2.2 → 1.3.1
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/api.d.ts +54 -0
- package/dist/app.d.ts +30 -0
- package/dist/chains/contracts.d.ts +33 -0
- package/dist/chains/supportedChains.d.ts +21 -4
- package/dist/domains.d.ts +9 -0
- package/dist/features.d.ts +15 -0
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/locale/address.d.ts +154 -0
- package/dist/locale/countries.d.ts +753 -0
- package/dist/locale/currencies.d.ts +135 -0
- package/dist/locale/formats.d.ts +156 -0
- package/dist/locale/index.d.ts +14 -0
- package/dist/locale/iso.d.ts +73 -0
- package/dist/locale/languages.d.ts +20 -0
- package/dist/locale/phone.d.ts +130 -0
- package/dist/locales.d.ts +32 -0
- package/dist/math/constants.d.ts +4 -0
- package/dist/providers/alchemy.d.ts +27 -0
- package/dist/providers/oauth.d.ts +48 -0
- package/dist/security.d.ts +8 -0
- package/dist/social.cjs.map +1 -1
- package/dist/social.d.ts +36 -0
- package/dist/social.mjs.map +1 -1
- package/dist/utils/hash/constants.d.ts +282 -0
- package/dist/utils/hash/index.d.ts +8 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/string/constants.d.ts +90 -0
- package/package.json +3 -2
- package/dist/constants.d.ts +0 -3
package/dist/social.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/social.ts"],"names":["SOCIAL_LINKS","PRODUCT_LINKS","BLOG"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../src/social.ts"],"names":["SOCIAL_LINKS","PRODUCT_LINKS","BLOG"],"mappings":";AAGaA,IAAAA,CAAAA,CAAe,CAI1B,CAAA,CAAG,sBAKH,CAAA,SAAA,CAAW,+BAKX,QAAU,CAAA,oCACZ,CAKaC,CAAAA,CAAAA,CAAgB,CAI3B,IAAA,CAAM,iCAKN,SAAW,CAAA,+BAAA,CAKX,OAAS,CAAA,yBACX,CAKaC,CAAAA,CAAAA,CAAO,CAIlB,qBAAA,CAAuB,CAKvB,CAAA,eAAA,CAAiB,CAKjB,CAAA,eAAA,CAAiB,GACnB","file":"social.cjs","sourcesContent":["/**\n * Social media platform URLs\n */\nexport const SOCIAL_LINKS = {\n /**\n * X (formerly Twitter) profile URL\n */\n x: 'https://x.com/Plyaz_',\n\n /**\n * Instagram profile URL\n */\n instagram: 'https://instagram.com/plyaz_',\n\n /**\n * LinkedIn company page URL\n */\n linkedin: 'https://linkedin.com/company/plyaz',\n} as const;\n\n/**\n * Product-related external links\n */\nexport const PRODUCT_LINKS = {\n /**\n * Documentation site URL\n */\n docs: 'https://plyaz.gitbook.io/plyaz',\n\n /**\n * Community platform URL\n */\n community: 'https://community.plyaz.co.uk',\n\n /**\n * Support email address\n */\n support: 'mailto:help@plyaz.co.uk',\n} as const;\n\n/**\n * Blog configuration constants\n */\nexport const BLOG = {\n /**\n * Number of posts to display initially\n */\n INITIAL_POSTS_TO_SHOW: 3,\n\n /**\n * Number of posts to load when \"Load More\" is clicked\n */\n POSTS_INCREMENT: 3,\n\n /**\n * Animation delay in milliseconds between post appearances\n */\n ANIMATION_DELAY: 100,\n} as const;\n"]}
|
package/dist/social.d.ts
CHANGED
|
@@ -1,15 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Social media platform URLs
|
|
3
|
+
*/
|
|
1
4
|
export declare const SOCIAL_LINKS: {
|
|
5
|
+
/**
|
|
6
|
+
* X (formerly Twitter) profile URL
|
|
7
|
+
*/
|
|
2
8
|
readonly x: "https://x.com/Plyaz_";
|
|
9
|
+
/**
|
|
10
|
+
* Instagram profile URL
|
|
11
|
+
*/
|
|
3
12
|
readonly instagram: "https://instagram.com/plyaz_";
|
|
13
|
+
/**
|
|
14
|
+
* LinkedIn company page URL
|
|
15
|
+
*/
|
|
4
16
|
readonly linkedin: "https://linkedin.com/company/plyaz";
|
|
5
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Product-related external links
|
|
20
|
+
*/
|
|
6
21
|
export declare const PRODUCT_LINKS: {
|
|
22
|
+
/**
|
|
23
|
+
* Documentation site URL
|
|
24
|
+
*/
|
|
7
25
|
readonly docs: "https://plyaz.gitbook.io/plyaz";
|
|
26
|
+
/**
|
|
27
|
+
* Community platform URL
|
|
28
|
+
*/
|
|
8
29
|
readonly community: "https://community.plyaz.co.uk";
|
|
30
|
+
/**
|
|
31
|
+
* Support email address
|
|
32
|
+
*/
|
|
9
33
|
readonly support: "mailto:help@plyaz.co.uk";
|
|
10
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Blog configuration constants
|
|
37
|
+
*/
|
|
11
38
|
export declare const BLOG: {
|
|
39
|
+
/**
|
|
40
|
+
* Number of posts to display initially
|
|
41
|
+
*/
|
|
12
42
|
readonly INITIAL_POSTS_TO_SHOW: 3;
|
|
43
|
+
/**
|
|
44
|
+
* Number of posts to load when "Load More" is clicked
|
|
45
|
+
*/
|
|
13
46
|
readonly POSTS_INCREMENT: 3;
|
|
47
|
+
/**
|
|
48
|
+
* Animation delay in milliseconds between post appearances
|
|
49
|
+
*/
|
|
14
50
|
readonly ANIMATION_DELAY: 100;
|
|
15
51
|
};
|
package/dist/social.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/social.ts"],"names":["SOCIAL_LINKS","PRODUCT_LINKS","BLOG"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../src/social.ts"],"names":["SOCIAL_LINKS","PRODUCT_LINKS","BLOG"],"mappings":";AAGaA,IAAAA,CAAAA,CAAe,CAI1B,CAAA,CAAG,sBAKH,CAAA,SAAA,CAAW,+BAKX,QAAU,CAAA,oCACZ,CAKaC,CAAAA,CAAAA,CAAgB,CAI3B,IAAA,CAAM,iCAKN,SAAW,CAAA,+BAAA,CAKX,OAAS,CAAA,yBACX,CAKaC,CAAAA,CAAAA,CAAO,CAIlB,qBAAA,CAAuB,CAKvB,CAAA,eAAA,CAAiB,CAKjB,CAAA,eAAA,CAAiB,GACnB","file":"social.mjs","sourcesContent":["/**\n * Social media platform URLs\n */\nexport const SOCIAL_LINKS = {\n /**\n * X (formerly Twitter) profile URL\n */\n x: 'https://x.com/Plyaz_',\n\n /**\n * Instagram profile URL\n */\n instagram: 'https://instagram.com/plyaz_',\n\n /**\n * LinkedIn company page URL\n */\n linkedin: 'https://linkedin.com/company/plyaz',\n} as const;\n\n/**\n * Product-related external links\n */\nexport const PRODUCT_LINKS = {\n /**\n * Documentation site URL\n */\n docs: 'https://plyaz.gitbook.io/plyaz',\n\n /**\n * Community platform URL\n */\n community: 'https://community.plyaz.co.uk',\n\n /**\n * Support email address\n */\n support: 'mailto:help@plyaz.co.uk',\n} as const;\n\n/**\n * Blog configuration constants\n */\nexport const BLOG = {\n /**\n * Number of posts to display initially\n */\n INITIAL_POSTS_TO_SHOW: 3,\n\n /**\n * Number of posts to load when \"Load More\" is clicked\n */\n POSTS_INCREMENT: 3,\n\n /**\n * Animation delay in milliseconds between post appearances\n */\n ANIMATION_DELAY: 100,\n} as const;\n"]}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hash Algorithm Constants
|
|
3
|
+
*
|
|
4
|
+
* Constants used for various hash algorithms including FNV-1a,
|
|
5
|
+
* SHA, and other cryptographic operations.
|
|
6
|
+
*
|
|
7
|
+
* @module utils/hash/constants
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* FNV (Fowler-Noll-Vo) Hash Algorithm Constants
|
|
11
|
+
*
|
|
12
|
+
* FNV-1a is a non-cryptographic hash function created by Glenn Fowler,
|
|
13
|
+
* Landon Curt Noll, and Kiem-Phong Vo. It's designed to be fast while
|
|
14
|
+
* maintaining a low collision rate.
|
|
15
|
+
*/
|
|
16
|
+
export declare const FNV_CONSTANTS: {
|
|
17
|
+
/**
|
|
18
|
+
* FNV-1a 32-bit prime number
|
|
19
|
+
* Used as the multiplication factor in the hash algorithm
|
|
20
|
+
* Decimal: 16777619
|
|
21
|
+
*/
|
|
22
|
+
readonly FNV_32_PRIME: 16777619;
|
|
23
|
+
/**
|
|
24
|
+
* FNV-1a 32-bit offset basis
|
|
25
|
+
* Initial hash value for FNV-1a 32-bit
|
|
26
|
+
* Decimal: 2166136261
|
|
27
|
+
*/
|
|
28
|
+
readonly FNV_32_OFFSET: 2166136261;
|
|
29
|
+
/**
|
|
30
|
+
* FNV-1a 64-bit prime number (as BigInt)
|
|
31
|
+
* Used for 64-bit hash calculations
|
|
32
|
+
* Decimal: 1099511628211
|
|
33
|
+
*/
|
|
34
|
+
readonly FNV_64_PRIME: bigint;
|
|
35
|
+
/**
|
|
36
|
+
* FNV-1a 64-bit offset basis (as BigInt)
|
|
37
|
+
* Initial hash value for FNV-1a 64-bit
|
|
38
|
+
* Decimal: 14695981039346656037
|
|
39
|
+
*/
|
|
40
|
+
readonly FNV_64_OFFSET: bigint;
|
|
41
|
+
/**
|
|
42
|
+
* Mask for 32-bit operations
|
|
43
|
+
*/
|
|
44
|
+
readonly MASK_32: 4294967295;
|
|
45
|
+
/**
|
|
46
|
+
* Number of bits for 32-bit hash
|
|
47
|
+
*/
|
|
48
|
+
readonly BITS_32: 32;
|
|
49
|
+
/**
|
|
50
|
+
* Number of bits for 64-bit hash
|
|
51
|
+
*/
|
|
52
|
+
readonly BITS_64: 64;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Hash Seed Constants
|
|
56
|
+
*
|
|
57
|
+
* Constants for deterministic random seed generation
|
|
58
|
+
*/
|
|
59
|
+
export declare const HASH_SEED_CONSTANTS: {
|
|
60
|
+
/**
|
|
61
|
+
* Maximum safe seed value for 31-bit positive integer
|
|
62
|
+
* Used for compatibility with libraries expecting positive signed 32-bit integers
|
|
63
|
+
* Value: 2^31 - 1 = 2147483647
|
|
64
|
+
*/
|
|
65
|
+
readonly MAX_SAFE_SEED: 2147483647;
|
|
66
|
+
/**
|
|
67
|
+
* Maximum 32-bit unsigned integer
|
|
68
|
+
* Value: 2^32 - 1 = 4294967295
|
|
69
|
+
*/
|
|
70
|
+
readonly MAX_UINT32: 4294967295;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Hash Distribution Constants
|
|
74
|
+
*
|
|
75
|
+
* Constants for hash distribution and bucketing
|
|
76
|
+
*/
|
|
77
|
+
export declare const HASH_DISTRIBUTION_CONSTANTS: {
|
|
78
|
+
/**
|
|
79
|
+
* Default number of buckets for hash distribution
|
|
80
|
+
*/
|
|
81
|
+
readonly DEFAULT_BUCKET_COUNT: 10;
|
|
82
|
+
/**
|
|
83
|
+
* Default total buckets for percentage-based distribution
|
|
84
|
+
* Same as MATH_CONSTANTS.PERCENTAGE_MAX for consistency
|
|
85
|
+
*/
|
|
86
|
+
readonly DEFAULT_PERCENTAGE_BUCKETS: 100;
|
|
87
|
+
/**
|
|
88
|
+
* Bit shift amount for simple hash algorithms
|
|
89
|
+
* Used in polynomial rolling hash
|
|
90
|
+
*/
|
|
91
|
+
readonly HASH_SHIFT: 5;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* SHA (Secure Hash Algorithm) constants
|
|
95
|
+
*/
|
|
96
|
+
export declare const SHA_CONSTANTS: {
|
|
97
|
+
/**
|
|
98
|
+
* SHA-1 output length in bytes
|
|
99
|
+
*/
|
|
100
|
+
readonly SHA1_LENGTH: 20;
|
|
101
|
+
/**
|
|
102
|
+
* SHA-256 output length in bytes
|
|
103
|
+
*/
|
|
104
|
+
readonly SHA256_LENGTH: 32;
|
|
105
|
+
/**
|
|
106
|
+
* SHA-384 output length in bytes
|
|
107
|
+
*/
|
|
108
|
+
readonly SHA384_LENGTH: 48;
|
|
109
|
+
/**
|
|
110
|
+
* SHA-512 output length in bytes
|
|
111
|
+
*/
|
|
112
|
+
readonly SHA512_LENGTH: 64;
|
|
113
|
+
/**
|
|
114
|
+
* SHA block size in bytes
|
|
115
|
+
*/
|
|
116
|
+
readonly SHA_BLOCK_SIZE: 64;
|
|
117
|
+
/**
|
|
118
|
+
* SHA-512 block size in bytes
|
|
119
|
+
*/
|
|
120
|
+
readonly SHA512_BLOCK_SIZE: 128;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* MD5 hash algorithm constants
|
|
124
|
+
*/
|
|
125
|
+
export declare const MD5_CONSTANTS: {
|
|
126
|
+
/**
|
|
127
|
+
* MD5 output length in bytes
|
|
128
|
+
*/
|
|
129
|
+
readonly MD5_LENGTH: 16;
|
|
130
|
+
/**
|
|
131
|
+
* MD5 block size in bytes
|
|
132
|
+
*/
|
|
133
|
+
readonly MD5_BLOCK_SIZE: 64;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Hash encoding formats
|
|
137
|
+
*/
|
|
138
|
+
export declare const HASH_ENCODING: {
|
|
139
|
+
/**
|
|
140
|
+
* Hexadecimal encoding
|
|
141
|
+
*/
|
|
142
|
+
readonly HEX: "hex";
|
|
143
|
+
/**
|
|
144
|
+
* Base64 encoding
|
|
145
|
+
*/
|
|
146
|
+
readonly BASE64: "base64";
|
|
147
|
+
/**
|
|
148
|
+
* Base64 URL-safe encoding
|
|
149
|
+
*/
|
|
150
|
+
readonly BASE64URL: "base64url";
|
|
151
|
+
/**
|
|
152
|
+
* Binary encoding
|
|
153
|
+
*/
|
|
154
|
+
readonly BINARY: "binary";
|
|
155
|
+
/**
|
|
156
|
+
* UTF-8 encoding
|
|
157
|
+
*/
|
|
158
|
+
readonly UTF8: "utf8";
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Hash algorithm names
|
|
162
|
+
*/
|
|
163
|
+
export declare const HASH_ALGORITHMS: {
|
|
164
|
+
/**
|
|
165
|
+
* MD5 algorithm (deprecated for security, use only for checksums)
|
|
166
|
+
*/
|
|
167
|
+
readonly MD5: "md5";
|
|
168
|
+
/**
|
|
169
|
+
* SHA-1 algorithm (deprecated for security)
|
|
170
|
+
*/
|
|
171
|
+
readonly SHA1: "sha1";
|
|
172
|
+
/**
|
|
173
|
+
* SHA-256 algorithm
|
|
174
|
+
*/
|
|
175
|
+
readonly SHA256: "sha256";
|
|
176
|
+
/**
|
|
177
|
+
* SHA-384 algorithm
|
|
178
|
+
*/
|
|
179
|
+
readonly SHA384: "sha384";
|
|
180
|
+
/**
|
|
181
|
+
* SHA-512 algorithm
|
|
182
|
+
*/
|
|
183
|
+
readonly SHA512: "sha512";
|
|
184
|
+
/**
|
|
185
|
+
* SHA3-256 algorithm
|
|
186
|
+
*/
|
|
187
|
+
readonly SHA3_256: "sha3-256";
|
|
188
|
+
/**
|
|
189
|
+
* SHA3-384 algorithm
|
|
190
|
+
*/
|
|
191
|
+
readonly SHA3_384: "sha3-384";
|
|
192
|
+
/**
|
|
193
|
+
* SHA3-512 algorithm
|
|
194
|
+
*/
|
|
195
|
+
readonly SHA3_512: "sha3-512";
|
|
196
|
+
/**
|
|
197
|
+
* BLAKE2b algorithm
|
|
198
|
+
*/
|
|
199
|
+
readonly BLAKE2B: "blake2b";
|
|
200
|
+
/**
|
|
201
|
+
* BLAKE2s algorithm
|
|
202
|
+
*/
|
|
203
|
+
readonly BLAKE2S: "blake2s";
|
|
204
|
+
/**
|
|
205
|
+
* FNV-1a 32-bit algorithm
|
|
206
|
+
*/
|
|
207
|
+
readonly FNV1A_32: "fnv1a-32";
|
|
208
|
+
/**
|
|
209
|
+
* FNV-1a 64-bit algorithm
|
|
210
|
+
*/
|
|
211
|
+
readonly FNV1A_64: "fnv1a-64";
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Murmur hash constants
|
|
215
|
+
*/
|
|
216
|
+
export declare const MURMUR_CONSTANTS: {
|
|
217
|
+
/**
|
|
218
|
+
* MurmurHash3 32-bit seed
|
|
219
|
+
*/
|
|
220
|
+
readonly MURMUR3_32_SEED: 0;
|
|
221
|
+
/**
|
|
222
|
+
* MurmurHash3 32-bit c1 constant
|
|
223
|
+
*/
|
|
224
|
+
readonly MURMUR3_32_C1: 3432918353;
|
|
225
|
+
/**
|
|
226
|
+
* MurmurHash3 32-bit c2 constant
|
|
227
|
+
*/
|
|
228
|
+
readonly MURMUR3_32_C2: 461845907;
|
|
229
|
+
/**
|
|
230
|
+
* MurmurHash3 32-bit r1 rotation
|
|
231
|
+
*/
|
|
232
|
+
readonly MURMUR3_32_R1: 15;
|
|
233
|
+
/**
|
|
234
|
+
* MurmurHash3 32-bit r2 rotation
|
|
235
|
+
*/
|
|
236
|
+
readonly MURMUR3_32_R2: 13;
|
|
237
|
+
/**
|
|
238
|
+
* MurmurHash3 32-bit m constant
|
|
239
|
+
*/
|
|
240
|
+
readonly MURMUR3_32_M: 5;
|
|
241
|
+
/**
|
|
242
|
+
* MurmurHash3 32-bit n constant
|
|
243
|
+
*/
|
|
244
|
+
readonly MURMUR3_32_N: 3864292196;
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* CRC (Cyclic Redundancy Check) constants
|
|
248
|
+
*/
|
|
249
|
+
export declare const CRC_CONSTANTS: {
|
|
250
|
+
/**
|
|
251
|
+
* CRC-32 polynomial
|
|
252
|
+
*/
|
|
253
|
+
readonly CRC32_POLYNOMIAL: 3988292384;
|
|
254
|
+
/**
|
|
255
|
+
* CRC-32 initial value
|
|
256
|
+
*/
|
|
257
|
+
readonly CRC32_INITIAL: 4294967295;
|
|
258
|
+
/**
|
|
259
|
+
* CRC-32 XOR output
|
|
260
|
+
*/
|
|
261
|
+
readonly CRC32_XOR_OUTPUT: 4294967295;
|
|
262
|
+
/**
|
|
263
|
+
* CRC-16 polynomial
|
|
264
|
+
*/
|
|
265
|
+
readonly CRC16_POLYNOMIAL: 40961;
|
|
266
|
+
/**
|
|
267
|
+
* CRC-16 initial value
|
|
268
|
+
*/
|
|
269
|
+
readonly CRC16_INITIAL: 0;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Type exports
|
|
273
|
+
*/
|
|
274
|
+
export type FnvConstant = (typeof FNV_CONSTANTS)[keyof typeof FNV_CONSTANTS];
|
|
275
|
+
export type HashSeedConstant = (typeof HASH_SEED_CONSTANTS)[keyof typeof HASH_SEED_CONSTANTS];
|
|
276
|
+
export type HashDistributionConstant = (typeof HASH_DISTRIBUTION_CONSTANTS)[keyof typeof HASH_DISTRIBUTION_CONSTANTS];
|
|
277
|
+
export type SHAConstant = (typeof SHA_CONSTANTS)[keyof typeof SHA_CONSTANTS];
|
|
278
|
+
export type MD5Constant = (typeof MD5_CONSTANTS)[keyof typeof MD5_CONSTANTS];
|
|
279
|
+
export type HashEncoding = (typeof HASH_ENCODING)[keyof typeof HASH_ENCODING];
|
|
280
|
+
export type HashAlgorithm = (typeof HASH_ALGORITHMS)[keyof typeof HASH_ALGORITHMS];
|
|
281
|
+
export type MurmurConstant = (typeof MURMUR_CONSTANTS)[keyof typeof MURMUR_CONSTANTS];
|
|
282
|
+
export type CRCConstant = (typeof CRC_CONSTANTS)[keyof typeof CRC_CONSTANTS];
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -31,7 +31,97 @@ export declare const STRING_CONSTANTS: {
|
|
|
31
31
|
*/
|
|
32
32
|
readonly UUID_HEX_OR_VALUE: 8;
|
|
33
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Formatting and serialization constants
|
|
36
|
+
*/
|
|
37
|
+
export declare const FORMAT_CONSTANTS: {
|
|
38
|
+
/**
|
|
39
|
+
* Default indentation for JSON stringification (spaces)
|
|
40
|
+
*/
|
|
41
|
+
readonly JSON_INDENT_SPACES: 2;
|
|
42
|
+
/**
|
|
43
|
+
* Default indentation for code formatting (spaces)
|
|
44
|
+
*/
|
|
45
|
+
readonly CODE_INDENT_SPACES: 2;
|
|
46
|
+
/**
|
|
47
|
+
* Tab size in spaces
|
|
48
|
+
*/
|
|
49
|
+
readonly TAB_SIZE: 4;
|
|
50
|
+
/**
|
|
51
|
+
* Maximum line length for code formatting
|
|
52
|
+
*/
|
|
53
|
+
readonly MAX_LINE_LENGTH: 80;
|
|
54
|
+
/**
|
|
55
|
+
* Maximum line length for prettier
|
|
56
|
+
*/
|
|
57
|
+
readonly PRETTIER_LINE_WIDTH: 100;
|
|
58
|
+
/**
|
|
59
|
+
* Default encoding for text files
|
|
60
|
+
*/
|
|
61
|
+
readonly DEFAULT_ENCODING: "utf-8";
|
|
62
|
+
/**
|
|
63
|
+
* Line endings
|
|
64
|
+
*/
|
|
65
|
+
readonly LINE_ENDING_LF: "\n";
|
|
66
|
+
readonly LINE_ENDING_CRLF: "\r\n";
|
|
67
|
+
/**
|
|
68
|
+
* Common file extensions
|
|
69
|
+
*/
|
|
70
|
+
readonly EXTENSION_JSON: ".json";
|
|
71
|
+
readonly EXTENSION_JS: ".js";
|
|
72
|
+
readonly EXTENSION_TS: ".ts";
|
|
73
|
+
readonly EXTENSION_TSX: ".tsx";
|
|
74
|
+
readonly EXTENSION_JSX: ".jsx";
|
|
75
|
+
readonly EXTENSION_CSS: ".css";
|
|
76
|
+
readonly EXTENSION_SCSS: ".scss";
|
|
77
|
+
readonly EXTENSION_MD: ".md";
|
|
78
|
+
readonly EXTENSION_YML: ".yml";
|
|
79
|
+
readonly EXTENSION_YAML: ".yaml";
|
|
80
|
+
/**
|
|
81
|
+
* Quote styles
|
|
82
|
+
*/
|
|
83
|
+
readonly SINGLE_QUOTE: "'";
|
|
84
|
+
readonly DOUBLE_QUOTE: "\"";
|
|
85
|
+
readonly BACKTICK: "`";
|
|
86
|
+
/**
|
|
87
|
+
* Common separators
|
|
88
|
+
*/
|
|
89
|
+
readonly COMMA: ",";
|
|
90
|
+
readonly SEMICOLON: ";";
|
|
91
|
+
readonly COLON: ":";
|
|
92
|
+
readonly DOT: ".";
|
|
93
|
+
readonly SLASH: "/";
|
|
94
|
+
readonly BACKSLASH: "\\";
|
|
95
|
+
readonly UNDERSCORE: "_";
|
|
96
|
+
readonly HYPHEN: "-";
|
|
97
|
+
readonly PIPE: "|";
|
|
98
|
+
readonly SPACE: " ";
|
|
99
|
+
readonly EMPTY_STRING: "";
|
|
100
|
+
/**
|
|
101
|
+
* Whitespace characters
|
|
102
|
+
*/
|
|
103
|
+
readonly TAB: "\t";
|
|
104
|
+
readonly NEWLINE: "\n";
|
|
105
|
+
readonly CARRIAGE_RETURN: "\r";
|
|
106
|
+
readonly FORM_FEED: "\f";
|
|
107
|
+
readonly VERTICAL_TAB: "\v";
|
|
108
|
+
/**
|
|
109
|
+
* Common brackets
|
|
110
|
+
*/
|
|
111
|
+
readonly OPEN_PAREN: "(";
|
|
112
|
+
readonly CLOSE_PAREN: ")";
|
|
113
|
+
readonly OPEN_BRACKET: "[";
|
|
114
|
+
readonly CLOSE_BRACKET: "]";
|
|
115
|
+
readonly OPEN_BRACE: "{";
|
|
116
|
+
readonly CLOSE_BRACE: "}";
|
|
117
|
+
readonly OPEN_ANGLE: "<";
|
|
118
|
+
readonly CLOSE_ANGLE: ">";
|
|
119
|
+
};
|
|
34
120
|
/**
|
|
35
121
|
* Type for string constant values
|
|
36
122
|
*/
|
|
37
123
|
export type StringConstant = (typeof STRING_CONSTANTS)[keyof typeof STRING_CONSTANTS];
|
|
124
|
+
/**
|
|
125
|
+
* Type for format constant values
|
|
126
|
+
*/
|
|
127
|
+
export type FormatConstant = (typeof FORMAT_CONSTANTS)[keyof typeof FORMAT_CONSTANTS];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plyaz/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"author": "Redeemer Pace",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"description": "Provides shared configs and constants for @playz ecosystem.",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"pnpm": ">=8.0.0"
|
|
35
35
|
},
|
|
36
36
|
"keywords": [],
|
|
37
|
-
"packageManager": "pnpm@10.11.0",
|
|
38
37
|
"dependencies": {
|
|
39
38
|
"viem": "^2.31.7"
|
|
40
39
|
},
|
|
@@ -131,6 +130,8 @@
|
|
|
131
130
|
"audit:fix": "pnpm audit --fix",
|
|
132
131
|
"audit:enhanced": "npx audit-ci --moderate",
|
|
133
132
|
"security:check": "pnpm audit:moderate && npx audit-ci --moderate",
|
|
133
|
+
"deploy:local": "bash ../deploy-local.sh",
|
|
134
|
+
"publish:local": "bash ../publish-local.sh",
|
|
134
135
|
"remove:unused": "pnpm remove:unused:fnc && pnpm remove:unused:interfaces",
|
|
135
136
|
"remove:unused:interfaces": "npx tsx check_types.ts --remove --report=./internal-reports/unused-types-report.md",
|
|
136
137
|
"remove:unused:fnc": "npx tsx check_fnc.ts --report=./internal-reports/unused-declarations.md",
|
package/dist/constants.d.ts
DELETED