@plyaz/config 1.3.0 → 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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/social.ts"],"names":["SOCIAL_LINKS","PRODUCT_LINKS","BLOG"],"mappings":";AAGO,IAAMA,CAAAA,CAAe,CAI1B,CAAA,CAAG,sBAAA,CAKH,SAAA,CAAW,+BAKX,QAAA,CAAU,oCACZ,CAAA,CAKaC,CAAAA,CAAgB,CAI3B,IAAA,CAAM,iCAKN,SAAA,CAAW,+BAAA,CAKX,OAAA,CAAS,yBACX,CAAA,CAKaC,CAAAA,CAAO,CAIlB,qBAAA,CAAuB,CAAA,CAKvB,eAAA,CAAiB,CAAA,CAKjB,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"]}
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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/social.ts"],"names":["SOCIAL_LINKS","PRODUCT_LINKS","BLOG"],"mappings":";AAGO,IAAMA,CAAAA,CAAe,CAI1B,CAAA,CAAG,sBAAA,CAKH,SAAA,CAAW,+BAKX,QAAA,CAAU,oCACZ,CAAA,CAKaC,CAAAA,CAAgB,CAI3B,IAAA,CAAM,iCAKN,SAAA,CAAW,+BAAA,CAKX,OAAA,CAAS,yBACX,CAAA,CAKaC,CAAAA,CAAO,CAIlB,qBAAA,CAAuB,CAAA,CAKvB,eAAA,CAAiB,CAAA,CAKjB,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"]}
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];
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Hash Utilities Module
3
+ *
4
+ * Central export point for all hash-related constants and utilities.
5
+ *
6
+ * @module utils/hash
7
+ */
8
+ export * from './constants';
@@ -9,3 +9,4 @@
9
9
  */
10
10
  export * from './string';
11
11
  export * from './collection';
12
+ export * from './hash';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/config",
3
- "version": "1.3.0",
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",