@plyaz/config 1.5.5 → 1.6.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.
@@ -228,6 +228,84 @@ export declare const MATH_CONSTANTS: {
228
228
  */
229
229
  readonly VARIANCE_OFFSET: 2;
230
230
  };
231
+ /**
232
+ * Common numeric multipliers for calculations
233
+ */
234
+ export declare const MULTIPLIERS: {
235
+ /**
236
+ * One and a half times (1.5x)
237
+ */
238
+ readonly ONE_AND_HALF: 1.5;
239
+ /**
240
+ * Double (2x)
241
+ */
242
+ readonly DOUBLE: 2;
243
+ /**
244
+ * Triple (3x)
245
+ */
246
+ readonly TRIPLE: 3;
247
+ /**
248
+ * Quadruple (4x)
249
+ */
250
+ readonly QUADRUPLE: 4;
251
+ /**
252
+ * Quintuple (5x)
253
+ */
254
+ readonly QUINTUPLE: 5;
255
+ /**
256
+ * Ten times (10x)
257
+ */
258
+ readonly TEN: 10;
259
+ };
260
+ /**
261
+ * Common numeric constants for general use
262
+ */
263
+ export declare const NUMERIC_CONSTANTS: {
264
+ /**
265
+ * Milliseconds in one second
266
+ */
267
+ readonly MILLISECONDS_PER_SECOND: 1000;
268
+ /**
269
+ * Seconds in one minute
270
+ */
271
+ readonly SECONDS_PER_MINUTE: 60;
272
+ /**
273
+ * Minutes in one hour
274
+ */
275
+ readonly MINUTES_PER_HOUR: 60;
276
+ /**
277
+ * Hours in one day
278
+ */
279
+ readonly HOURS_PER_DAY: 24;
280
+ /**
281
+ * Negative one (-1)
282
+ */
283
+ readonly NEGATIVE_ONE: -1;
284
+ /**
285
+ * Zero (0)
286
+ */
287
+ readonly ZERO: 0;
288
+ /**
289
+ * One (1)
290
+ */
291
+ readonly ONE: 1;
292
+ /**
293
+ * Two (2)
294
+ */
295
+ readonly TWO: 2;
296
+ /**
297
+ * Three (3)
298
+ */
299
+ readonly THREE: 3;
300
+ /**
301
+ * Five (5)
302
+ */
303
+ readonly FIVE: 5;
304
+ /**
305
+ * Ten (10)
306
+ */
307
+ readonly TEN: 10;
308
+ };
231
309
  /**
232
310
  * Type for number system values
233
311
  */
@@ -236,3 +314,11 @@ export type NumberSystemBase = (typeof NUMBER_SYSTEM)[keyof typeof NUMBER_SYSTEM
236
314
  * Type for math constant values
237
315
  */
238
316
  export type MathConstant = (typeof MATH_CONSTANTS)[keyof typeof MATH_CONSTANTS];
317
+ /**
318
+ * Type for multiplier values
319
+ */
320
+ export type Multiplier = (typeof MULTIPLIERS)[keyof typeof MULTIPLIERS];
321
+ /**
322
+ * Type for numeric constant values
323
+ */
324
+ export type NumericConstant = (typeof NUMERIC_CONSTANTS)[keyof typeof NUMERIC_CONSTANTS];
@@ -1,3 +1,3 @@
1
1
  'use strict';// @plyaz package - Built with tsup
2
- var E={BINARY_BASE:2,OCTAL_BASE:8,DECIMAL_BASE:10,DUODECIMAL_BASE:12,HEX_BASE:16,BASE32:32,BASE36:36,BASE58:58,BASE62:62,BASE64:64,HEX_PAD_LENGTH:2,HEX_COLOR_LENGTH:6,HEX_COLOR_ALPHA_LENGTH:8,BITS_PER_BYTE:8,BITS_PER_NIBBLE:4,BYTES_PER_KB:1024,BYTES_PER_MB:1048576,BYTES_PER_GB:1073741824,CURRENCY_DECIMAL_PLACES:2,PERCENTAGE_DECIMAL_PLACES:2,COORDINATE_DECIMAL_PLACES:6,MAX_SAFE_INTEGER:9007199254740991,MIN_SAFE_INTEGER:-9007199254740991,MAX_INT32:2147483647,MIN_INT32:-2147483648,MAX_UINT16:65535,MAX_UINT8:255,DEGREES_FULL_CIRCLE:360,DEGREES_HALF_CIRCLE:180,DEGREES_RIGHT_ANGLE:90,DEGREES_PER_RADIAN:57.29577951308232,RADIANS_PER_DEGREE:.017453292519943295,PI:3.141592653589793,TWO_PI:6.283185307179586,HALF_PI:1.5707963267948966,E:2.718281828459045,GOLDEN_RATIO:1.618033988749895,SQRT2:1.4142135623730951,SQRT3:1.7320508075688772,LN2:.6931471805599453,LN10:2.302585092994046,LOG2E:1.4426950408889634,LOG10E:.4342944819032518},_={PERCENTAGE_MAX:100,HALF:.5,TENTH:.1,TWENTIETH:.05,PERCENT_95:.95,PERCENT_99:.99,QUADRATIC_THRESHOLD:1.5,EXPONENTIAL_THRESHOLD:3,VARIANCE_MULTIPLIER:4,VARIANCE_OFFSET:2};exports.MATH_CONSTANTS=_;exports.NUMBER_SYSTEM=E;//# sourceMappingURL=index.cjs.map
2
+ var E={BINARY_BASE:2,OCTAL_BASE:8,DECIMAL_BASE:10,DUODECIMAL_BASE:12,HEX_BASE:16,BASE32:32,BASE36:36,BASE58:58,BASE62:62,BASE64:64,HEX_PAD_LENGTH:2,HEX_COLOR_LENGTH:6,HEX_COLOR_ALPHA_LENGTH:8,BITS_PER_BYTE:8,BITS_PER_NIBBLE:4,BYTES_PER_KB:1024,BYTES_PER_MB:1048576,BYTES_PER_GB:1073741824,CURRENCY_DECIMAL_PLACES:2,PERCENTAGE_DECIMAL_PLACES:2,COORDINATE_DECIMAL_PLACES:6,MAX_SAFE_INTEGER:9007199254740991,MIN_SAFE_INTEGER:-9007199254740991,MAX_INT32:2147483647,MIN_INT32:-2147483648,MAX_UINT16:65535,MAX_UINT8:255,DEGREES_FULL_CIRCLE:360,DEGREES_HALF_CIRCLE:180,DEGREES_RIGHT_ANGLE:90,DEGREES_PER_RADIAN:57.29577951308232,RADIANS_PER_DEGREE:.017453292519943295,PI:3.141592653589793,TWO_PI:6.283185307179586,HALF_PI:1.5707963267948966,E:2.718281828459045,GOLDEN_RATIO:1.618033988749895,SQRT2:1.4142135623730951,SQRT3:1.7320508075688772,LN2:.6931471805599453,LN10:2.302585092994046,LOG2E:1.4426950408889634,LOG10E:.4342944819032518},_={PERCENTAGE_MAX:100,HALF:.5,TENTH:.1,TWENTIETH:.05,PERCENT_95:.95,PERCENT_99:.99,QUADRATIC_THRESHOLD:1.5,EXPONENTIAL_THRESHOLD:3,VARIANCE_MULTIPLIER:4,VARIANCE_OFFSET:2},T={ONE_AND_HALF:1.5,DOUBLE:2,TRIPLE:3,QUADRUPLE:4,QUINTUPLE:5,TEN:10},N={MILLISECONDS_PER_SECOND:1e3,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,NEGATIVE_ONE:-1,ZERO:0,ONE:1,TWO:2,THREE:3,FIVE:5,TEN:10};exports.MATH_CONSTANTS=_;exports.MULTIPLIERS=T;exports.NUMBER_SYSTEM=E;exports.NUMERIC_CONSTANTS=N;//# sourceMappingURL=index.cjs.map
3
3
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/math/constants.ts"],"names":["NUMBER_SYSTEM","MATH_CONSTANTS"],"mappings":";AAYO,IAAMA,CAAAA,CAAgB,CAK3B,WAAA,CAAa,CAAA,CAKb,UAAA,CAAY,EAKZ,YAAA,CAAc,EAAA,CAKd,eAAA,CAAiB,EAAA,CAKjB,QAAA,CAAU,EAAA,CAKV,OAAQ,EAAA,CAKR,MAAA,CAAQ,EAAA,CAKR,MAAA,CAAQ,EAAA,CAKR,MAAA,CAAQ,GAKR,MAAA,CAAQ,EAAA,CAMR,cAAA,CAAgB,CAAA,CAKhB,gBAAA,CAAkB,CAAA,CAKlB,uBAAwB,CAAA,CAKxB,aAAA,CAAe,CAAA,CAKf,eAAA,CAAiB,CAAA,CAKjB,YAAA,CAAc,KAKd,YAAA,CAAc,OAAA,CAKd,YAAA,CAAc,UAAA,CAMd,uBAAA,CAAyB,CAAA,CAKzB,0BAA2B,CAAA,CAK3B,yBAAA,CAA2B,CAAA,CAK3B,gBAAA,CAAkB,gBAAA,CAKlB,gBAAA,CAAkB,iBAAA,CAKlB,SAAA,CAAW,UAAA,CAKX,SAAA,CAAW,WAAA,CAKX,UAAA,CAAY,KAAA,CAKZ,SAAA,CAAW,IAMX,mBAAA,CAAqB,GAAA,CAKrB,mBAAA,CAAqB,GAAA,CAKrB,mBAAA,CAAqB,EAAA,CAKrB,mBAAoB,iBAAA,CAKpB,kBAAA,CAAoB,mBAAA,CAMpB,EAAA,CAAI,iBAAA,CAKJ,MAAA,CAAQ,kBAKR,OAAA,CAAS,kBAAA,CAKT,CAAA,CAAG,iBAAA,CAKH,YAAA,CAAc,iBAAA,CAKd,MAAO,kBAAA,CAKP,KAAA,CAAO,kBAAA,CAKP,GAAA,CAAK,iBAAA,CAKL,IAAA,CAAM,kBAKN,KAAA,CAAO,kBAAA,CAKP,MAAA,CAAQ,iBACV,CAAA,CAKaC,CAAAA,CAAiB,CAI5B,cAAA,CAAgB,GAAA,CAKhB,IAAA,CAAM,EAAA,CAKN,KAAA,CAAO,EAAA,CAKP,UAAW,GAAA,CAKX,UAAA,CAAY,GAAA,CAKZ,UAAA,CAAY,GAAA,CAKZ,mBAAA,CAAqB,GAAA,CAKrB,qBAAA,CAAuB,CAAA,CAKvB,mBAAA,CAAqB,CAAA,CAKrB,eAAA,CAAiB,CACnB","file":"index.cjs","sourcesContent":["/**\n * Mathematical Constants\n *\n * Common mathematical values, number system bases, and calculation constants\n * used throughout the application for various computations.\n *\n * @module math/constants\n */\n\n/**\n * Number system base constants\n */\nexport const NUMBER_SYSTEM = {\n // Number bases\n /**\n * Base 2 - Binary number system\n */\n BINARY_BASE: 2,\n\n /**\n * Base 8 - Octal number system\n */\n OCTAL_BASE: 8,\n\n /**\n * Base 10 - Decimal number system\n */\n DECIMAL_BASE: 10,\n\n /**\n * Base 12 - Duodecimal number system\n */\n DUODECIMAL_BASE: 12,\n\n /**\n * Base 16 - Hexadecimal number system\n */\n HEX_BASE: 16,\n\n /**\n * Base 32 - Base32 encoding\n */\n BASE32: 32,\n\n /**\n * Base 36 - Alphanumeric number system (0-9, a-z)\n */\n BASE36: 36,\n\n /**\n * Base 58 - Bitcoin base58 encoding (excludes similar looking characters)\n */\n BASE58: 58,\n\n /**\n * Base 62 - Alphanumeric with uppercase (0-9, a-z, A-Z)\n */\n BASE62: 62,\n\n /**\n * Base 64 - Base64 encoding\n */\n BASE64: 64,\n\n // Formatting and padding\n /**\n * Default padding length for hexadecimal values (e.g., \"0F\" instead of \"F\")\n */\n HEX_PAD_LENGTH: 2,\n\n /**\n * Padding length for RGB hex colors (6 characters)\n */\n HEX_COLOR_LENGTH: 6,\n\n /**\n * Padding length for RGBA hex colors with alpha (8 characters)\n */\n HEX_COLOR_ALPHA_LENGTH: 8,\n\n /**\n * Standard byte size in bits\n */\n BITS_PER_BYTE: 8,\n\n /**\n * Standard nibble size in bits (half byte)\n */\n BITS_PER_NIBBLE: 4,\n\n /**\n * Number of bytes in a kilobyte (binary)\n */\n BYTES_PER_KB: 1024,\n\n /**\n * Number of bytes in a megabyte (binary)\n */\n BYTES_PER_MB: 1048576,\n\n /**\n * Number of bytes in a gigabyte (binary)\n */\n BYTES_PER_GB: 1073741824,\n\n // Precision and rounding\n /**\n * Default decimal places for currency\n */\n CURRENCY_DECIMAL_PLACES: 2,\n\n /**\n * Default decimal places for percentages\n */\n PERCENTAGE_DECIMAL_PLACES: 2,\n\n /**\n * Default decimal places for coordinates\n */\n COORDINATE_DECIMAL_PLACES: 6,\n\n /**\n * Maximum safe integer in JavaScript\n */\n MAX_SAFE_INTEGER: 9007199254740991,\n\n /**\n * Minimum safe integer in JavaScript\n */\n MIN_SAFE_INTEGER: -9007199254740991,\n\n /**\n * Maximum 32-bit signed integer\n */\n MAX_INT32: 2147483647,\n\n /**\n * Minimum 32-bit signed integer\n */\n MIN_INT32: -2147483648,\n\n /**\n * Maximum 16-bit unsigned integer\n */\n MAX_UINT16: 65535,\n\n /**\n * Maximum 8-bit unsigned integer\n */\n MAX_UINT8: 255,\n\n // Common angles in degrees\n /**\n * Full circle in degrees\n */\n DEGREES_FULL_CIRCLE: 360,\n\n /**\n * Half circle in degrees\n */\n DEGREES_HALF_CIRCLE: 180,\n\n /**\n * Quarter circle in degrees (right angle)\n */\n DEGREES_RIGHT_ANGLE: 90,\n\n /**\n * Degrees in a radian\n */\n DEGREES_PER_RADIAN: 57.29577951308232,\n\n /**\n * Radians in a degree\n */\n RADIANS_PER_DEGREE: 0.017453292519943295,\n\n // Mathematical constants\n /**\n * Pi (π)\n */\n PI: 3.141592653589793,\n\n /**\n * Two times Pi (2π) - full circle in radians\n */\n TWO_PI: 6.283185307179586,\n\n /**\n * Half Pi (π/2) - quarter circle in radians\n */\n HALF_PI: 1.5707963267948966,\n\n /**\n * Euler's number (e)\n */\n E: 2.718281828459045,\n\n /**\n * Golden ratio (φ)\n */\n GOLDEN_RATIO: 1.618033988749895,\n\n /**\n * Square root of 2\n */\n SQRT2: 1.4142135623730951,\n\n /**\n * Square root of 3\n */\n SQRT3: 1.7320508075688772,\n\n /**\n * Natural logarithm of 2\n */\n LN2: 0.6931471805599453,\n\n /**\n * Natural logarithm of 10\n */\n LN10: 2.302585092994046,\n\n /**\n * Base 2 logarithm of E\n */\n LOG2E: 1.4426950408889634,\n\n /**\n * Base 10 logarithm of E\n */\n LOG10E: 0.4342944819032518,\n} as const;\n\n/**\n * Mathematical and percentage constants\n */\nexport const MATH_CONSTANTS = {\n /**\n * Maximum percentage value\n */\n PERCENTAGE_MAX: 100,\n\n /**\n * Half value (50%)\n */\n HALF: 0.5,\n\n /**\n * One tenth (10%)\n */\n TENTH: 0.1,\n\n /**\n * One twentieth (5%)\n */\n TWENTIETH: 0.05,\n\n /**\n * 95th percentile\n */\n PERCENT_95: 0.95,\n\n /**\n * 99th percentile\n */\n PERCENT_99: 0.99,\n\n /**\n * Threshold for quadratic algorithm detection\n */\n QUADRATIC_THRESHOLD: 1.5,\n\n /**\n * Threshold for exponential algorithm detection\n */\n EXPONENTIAL_THRESHOLD: 3,\n\n /**\n * Multiplier for variance calculations\n */\n VARIANCE_MULTIPLIER: 4,\n\n /**\n * Offset for variance calculations\n */\n VARIANCE_OFFSET: 2,\n} as const;\n\n/**\n * Type for number system values\n */\nexport type NumberSystemBase = (typeof NUMBER_SYSTEM)[keyof typeof NUMBER_SYSTEM];\n\n/**\n * Type for math constant values\n */\nexport type MathConstant = (typeof MATH_CONSTANTS)[keyof typeof MATH_C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AAA,CAAM,EAAA,CAKN,KAAA,CAAO,EAAA,CAKP,SAAA,CAAW,GAAA,CAKX,UAAA,CAAY,IAKZ,UAAA,CAAY,GAAA,CAKZ,mBAAA,CAAqB,GAAA,CAKrB,sBAAuB,CAAA,CAKvB,mBAAA,CAAqB,CAAA,CAKrB,eAAA,CAAiB,CACnB,CAAA,CAKaC,CAAAA,CAAc,CAIzB,YAAA,CAAc,GAAA,CAKd,MAAA,CAAQ,CAAA,CAKR,MAAA,CAAQ,EAKR,SAAA,CAAW,CAAA,CAKX,SAAA,CAAW,CAAA,CAKX,IAAK,EACP,CAAA,CAKaC,CAAAA,CAAoB,CAI/B,wBAAyB,GAAA,CAKzB,kBAAA,CAAoB,EAAA,CAKpB,gBAAA,CAAkB,GAKlB,aAAA,CAAe,EAAA,CAKf,YAAA,CAAc,EAAA,CAKd,KAAM,CAAA,CAKN,GAAA,CAAK,CAAA,CAKL,GAAA,CAAK,EAKL,KAAA,CAAO,CAAA,CAKP,IAAA,CAAM,CAAA,CAKN,IAAK,EACP","file":"index.cjs","sourcesContent":["/**\n * Mathematical Constants\n *\n * Common mathematical values, number system bases, and calculation constants\n * used throughout the application for various computations.\n *\n * @module math/constants\n */\n\n/**\n * Number system base constants\n */\nexport const NUMBER_SYSTEM = {\n // Number bases\n /**\n * Base 2 - Binary number system\n */\n BINARY_BASE: 2,\n\n /**\n * Base 8 - Octal number system\n */\n OCTAL_BASE: 8,\n\n /**\n * Base 10 - Decimal number system\n */\n DECIMAL_BASE: 10,\n\n /**\n * Base 12 - Duodecimal number system\n */\n DUODECIMAL_BASE: 12,\n\n /**\n * Base 16 - Hexadecimal number system\n */\n HEX_BASE: 16,\n\n /**\n * Base 32 - Base32 encoding\n */\n BASE32: 32,\n\n /**\n * Base 36 - Alphanumeric number system (0-9, a-z)\n */\n BASE36: 36,\n\n /**\n * Base 58 - Bitcoin base58 encoding (excludes similar looking characters)\n */\n BASE58: 58,\n\n /**\n * Base 62 - Alphanumeric with uppercase (0-9, a-z, A-Z)\n */\n BASE62: 62,\n\n /**\n * Base 64 - Base64 encoding\n */\n BASE64: 64,\n\n // Formatting and padding\n /**\n * Default padding length for hexadecimal values (e.g., \"0F\" instead of \"F\")\n */\n HEX_PAD_LENGTH: 2,\n\n /**\n * Padding length for RGB hex colors (6 characters)\n */\n HEX_COLOR_LENGTH: 6,\n\n /**\n * Padding length for RGBA hex colors with alpha (8 characters)\n */\n HEX_COLOR_ALPHA_LENGTH: 8,\n\n /**\n * Standard byte size in bits\n */\n BITS_PER_BYTE: 8,\n\n /**\n * Standard nibble size in bits (half byte)\n */\n BITS_PER_NIBBLE: 4,\n\n /**\n * Number of bytes in a kilobyte (binary)\n */\n BYTES_PER_KB: 1024,\n\n /**\n * Number of bytes in a megabyte (binary)\n */\n BYTES_PER_MB: 1048576,\n\n /**\n * Number of bytes in a gigabyte (binary)\n */\n BYTES_PER_GB: 1073741824,\n\n // Precision and rounding\n /**\n * Default decimal places for currency\n */\n CURRENCY_DECIMAL_PLACES: 2,\n\n /**\n * Default decimal places for percentages\n */\n PERCENTAGE_DECIMAL_PLACES: 2,\n\n /**\n * Default decimal places for coordinates\n */\n COORDINATE_DECIMAL_PLACES: 6,\n\n /**\n * Maximum safe integer in JavaScript\n */\n MAX_SAFE_INTEGER: 9007199254740991,\n\n /**\n * Minimum safe integer in JavaScript\n */\n MIN_SAFE_INTEGER: -9007199254740991,\n\n /**\n * Maximum 32-bit signed integer\n */\n MAX_INT32: 2147483647,\n\n /**\n * Minimum 32-bit signed integer\n */\n MIN_INT32: -2147483648,\n\n /**\n * Maximum 16-bit unsigned integer\n */\n MAX_UINT16: 65535,\n\n /**\n * Maximum 8-bit unsigned integer\n */\n MAX_UINT8: 255,\n\n // Common angles in degrees\n /**\n * Full circle in degrees\n */\n DEGREES_FULL_CIRCLE: 360,\n\n /**\n * Half circle in degrees\n */\n DEGREES_HALF_CIRCLE: 180,\n\n /**\n * Quarter circle in degrees (right angle)\n */\n DEGREES_RIGHT_ANGLE: 90,\n\n /**\n * Degrees in a radian\n */\n DEGREES_PER_RADIAN: 57.29577951308232,\n\n /**\n * Radians in a degree\n */\n RADIANS_PER_DEGREE: 0.017453292519943295,\n\n // Mathematical constants\n /**\n * Pi (π)\n */\n PI: 3.141592653589793,\n\n /**\n * Two times Pi (2π) - full circle in radians\n */\n TWO_PI: 6.283185307179586,\n\n /**\n * Half Pi (π/2) - quarter circle in radians\n */\n HALF_PI: 1.5707963267948966,\n\n /**\n * Euler's number (e)\n */\n E: 2.718281828459045,\n\n /**\n * Golden ratio (φ)\n */\n GOLDEN_RATIO: 1.618033988749895,\n\n /**\n * Square root of 2\n */\n SQRT2: 1.4142135623730951,\n\n /**\n * Square root of 3\n */\n SQRT3: 1.7320508075688772,\n\n /**\n * Natural logarithm of 2\n */\n LN2: 0.6931471805599453,\n\n /**\n * Natural logarithm of 10\n */\n LN10: 2.302585092994046,\n\n /**\n * Base 2 logarithm of E\n */\n LOG2E: 1.4426950408889634,\n\n /**\n * Base 10 logarithm of E\n */\n LOG10E: 0.4342944819032518,\n} as const;\n\n/**\n * Mathematical and percentage constants\n */\nexport const MATH_CONSTANTS = {\n /**\n * Maximum percentage value\n */\n PERCENTAGE_MAX: 100,\n\n /**\n * Half value (50%)\n */\n HALF: 0.5,\n\n /**\n * One tenth (10%)\n */\n TENTH: 0.1,\n\n /**\n * One twentieth (5%)\n */\n TWENTIETH: 0.05,\n\n /**\n * 95th percentile\n */\n PERCENT_95: 0.95,\n\n /**\n * 99th percentile\n */\n PERCENT_99: 0.99,\n\n /**\n * Threshold for quadratic algorithm detection\n */\n QUADRATIC_THRESHOLD: 1.5,\n\n /**\n * Threshold for exponential algorithm detection\n */\n EXPONENTIAL_THRESHOLD: 3,\n\n /**\n * Multiplier for variance calculations\n */\n VARIANCE_MULTIPLIER: 4,\n\n /**\n * Offset for variance calculations\n */\n VARIANCE_OFFSET: 2,\n} as const;\n\n/**\n * Common numeric multipliers for calculations\n */\nexport const MULTIPLIERS = {\n /**\n * One and a half times (1.5x)\n */\n ONE_AND_HALF: 1.5,\n\n /**\n * Double (2x)\n */\n DOUBLE: 2,\n\n /**\n * Triple (3x)\n */\n TRIPLE: 3,\n\n /**\n * Quadruple (4x)\n */\n QUADRUPLE: 4,\n\n /**\n * Quintuple (5x)\n */\n QUINTUPLE: 5,\n\n /**\n * Ten times (10x)\n */\n TEN: 10,\n} as const;\n\n/**\n * Common numeric constants for general use\n */\nexport const NUMERIC_CONSTANTS = {\n /**\n * Milliseconds in one second\n */\n MILLISECONDS_PER_SECOND: 1000,\n\n /**\n * Seconds in one minute\n */\n SECONDS_PER_MINUTE: 60,\n\n /**\n * Minutes in one hour\n */\n MINUTES_PER_HOUR: 60,\n\n /**\n * Hours in one day\n */\n HOURS_PER_DAY: 24,\n\n /**\n * Negative one (-1)\n */\n NEGATIVE_ONE: -1,\n\n /**\n * Zero (0)\n */\n ZERO: 0,\n\n /**\n * One (1)\n */\n ONE: 1,\n\n /**\n * Two (2)\n */\n TWO: 2,\n\n /**\n * Three (3)\n */\n THREE: 3,\n\n /**\n * Five (5)\n */\n FIVE: 5,\n\n /**\n * Ten (10)\n */\n TEN: 10,\n} as const;\n\n/**\n * Type for number system values\n */\nexport type NumberSystemBase = (typeof NUMBER_SYSTEM)[keyof typeof NUMBER_SYSTEM];\n\n/**\n * Type for math constant values\n */\nexport type MathConstant = (typeof MATH_CONSTANTS)[keyof typeof MATH_CONSTANTS];\n\n/**\n * Type for multiplier values\n */\nexport type Multiplier = (typeof MULTIPLIERS)[keyof typeof MULTIPLIERS];\n\n/**\n * Type for numeric constant values\n */\nexport type NumericConstant = (typeof NUMERIC_CONSTANTS)[keyof typeof NUMERIC_CONSTANTS];\n"]}
@@ -1,3 +1,3 @@
1
1
  // @plyaz package - Built with tsup
2
- var E={BINARY_BASE:2,OCTAL_BASE:8,DECIMAL_BASE:10,DUODECIMAL_BASE:12,HEX_BASE:16,BASE32:32,BASE36:36,BASE58:58,BASE62:62,BASE64:64,HEX_PAD_LENGTH:2,HEX_COLOR_LENGTH:6,HEX_COLOR_ALPHA_LENGTH:8,BITS_PER_BYTE:8,BITS_PER_NIBBLE:4,BYTES_PER_KB:1024,BYTES_PER_MB:1048576,BYTES_PER_GB:1073741824,CURRENCY_DECIMAL_PLACES:2,PERCENTAGE_DECIMAL_PLACES:2,COORDINATE_DECIMAL_PLACES:6,MAX_SAFE_INTEGER:9007199254740991,MIN_SAFE_INTEGER:-9007199254740991,MAX_INT32:2147483647,MIN_INT32:-2147483648,MAX_UINT16:65535,MAX_UINT8:255,DEGREES_FULL_CIRCLE:360,DEGREES_HALF_CIRCLE:180,DEGREES_RIGHT_ANGLE:90,DEGREES_PER_RADIAN:57.29577951308232,RADIANS_PER_DEGREE:.017453292519943295,PI:3.141592653589793,TWO_PI:6.283185307179586,HALF_PI:1.5707963267948966,E:2.718281828459045,GOLDEN_RATIO:1.618033988749895,SQRT2:1.4142135623730951,SQRT3:1.7320508075688772,LN2:.6931471805599453,LN10:2.302585092994046,LOG2E:1.4426950408889634,LOG10E:.4342944819032518},_={PERCENTAGE_MAX:100,HALF:.5,TENTH:.1,TWENTIETH:.05,PERCENT_95:.95,PERCENT_99:.99,QUADRATIC_THRESHOLD:1.5,EXPONENTIAL_THRESHOLD:3,VARIANCE_MULTIPLIER:4,VARIANCE_OFFSET:2};export{_ as MATH_CONSTANTS,E as NUMBER_SYSTEM};//# sourceMappingURL=index.mjs.map
2
+ var E={BINARY_BASE:2,OCTAL_BASE:8,DECIMAL_BASE:10,DUODECIMAL_BASE:12,HEX_BASE:16,BASE32:32,BASE36:36,BASE58:58,BASE62:62,BASE64:64,HEX_PAD_LENGTH:2,HEX_COLOR_LENGTH:6,HEX_COLOR_ALPHA_LENGTH:8,BITS_PER_BYTE:8,BITS_PER_NIBBLE:4,BYTES_PER_KB:1024,BYTES_PER_MB:1048576,BYTES_PER_GB:1073741824,CURRENCY_DECIMAL_PLACES:2,PERCENTAGE_DECIMAL_PLACES:2,COORDINATE_DECIMAL_PLACES:6,MAX_SAFE_INTEGER:9007199254740991,MIN_SAFE_INTEGER:-9007199254740991,MAX_INT32:2147483647,MIN_INT32:-2147483648,MAX_UINT16:65535,MAX_UINT8:255,DEGREES_FULL_CIRCLE:360,DEGREES_HALF_CIRCLE:180,DEGREES_RIGHT_ANGLE:90,DEGREES_PER_RADIAN:57.29577951308232,RADIANS_PER_DEGREE:.017453292519943295,PI:3.141592653589793,TWO_PI:6.283185307179586,HALF_PI:1.5707963267948966,E:2.718281828459045,GOLDEN_RATIO:1.618033988749895,SQRT2:1.4142135623730951,SQRT3:1.7320508075688772,LN2:.6931471805599453,LN10:2.302585092994046,LOG2E:1.4426950408889634,LOG10E:.4342944819032518},_={PERCENTAGE_MAX:100,HALF:.5,TENTH:.1,TWENTIETH:.05,PERCENT_95:.95,PERCENT_99:.99,QUADRATIC_THRESHOLD:1.5,EXPONENTIAL_THRESHOLD:3,VARIANCE_MULTIPLIER:4,VARIANCE_OFFSET:2},T={ONE_AND_HALF:1.5,DOUBLE:2,TRIPLE:3,QUADRUPLE:4,QUINTUPLE:5,TEN:10},N={MILLISECONDS_PER_SECOND:1e3,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,NEGATIVE_ONE:-1,ZERO:0,ONE:1,TWO:2,THREE:3,FIVE:5,TEN:10};export{_ as MATH_CONSTANTS,T as MULTIPLIERS,E as NUMBER_SYSTEM,N as NUMERIC_CONSTANTS};//# sourceMappingURL=index.mjs.map
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/math/constants.ts"],"names":["NUMBER_SYSTEM","MATH_CONSTANTS"],"mappings":";AAYO,IAAMA,CAAAA,CAAgB,CAK3B,WAAA,CAAa,CAAA,CAKb,UAAA,CAAY,EAKZ,YAAA,CAAc,EAAA,CAKd,eAAA,CAAiB,EAAA,CAKjB,QAAA,CAAU,EAAA,CAKV,OAAQ,EAAA,CAKR,MAAA,CAAQ,EAAA,CAK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used throughout the application for various computations.\n *\n * @module math/constants\n */\n\n/**\n * Number system base constants\n */\nexport const NUMBER_SYSTEM = {\n // Number bases\n /**\n * Base 2 - Binary number system\n */\n BINARY_BASE: 2,\n\n /**\n * Base 8 - Octal number system\n */\n OCTAL_BASE: 8,\n\n /**\n * Base 10 - Decimal number system\n */\n DECIMAL_BASE: 10,\n\n /**\n * Base 12 - Duodecimal number system\n */\n DUODECIMAL_BASE: 12,\n\n /**\n * Base 16 - Hexadecimal number system\n */\n HEX_BASE: 16,\n\n /**\n * Base 32 - Base32 encoding\n */\n BASE32: 32,\n\n /**\n * Base 36 - Alphanumeric number system (0-9, a-z)\n */\n BASE36: 36,\n\n /**\n * Base 58 - Bitcoin base58 encoding (excludes similar looking characters)\n */\n BASE58: 58,\n\n /**\n * Base 62 - Alphanumeric with uppercase (0-9, a-z, A-Z)\n */\n BASE62: 62,\n\n /**\n * Base 64 - Base64 encoding\n */\n BASE64: 64,\n\n // Formatting and padding\n /**\n * Default padding length for hexadecimal values (e.g., \"0F\" instead of \"F\")\n */\n HEX_PAD_LENGTH: 2,\n\n /**\n * Padding length for RGB hex colors (6 characters)\n */\n HEX_COLOR_LENGTH: 6,\n\n /**\n * Padding length for RGBA hex colors with alpha (8 characters)\n */\n HEX_COLOR_ALPHA_LENGTH: 8,\n\n /**\n * Standard byte size in bits\n */\n BITS_PER_BYTE: 8,\n\n /**\n * Standard nibble size in bits (half byte)\n */\n BITS_PER_NIBBLE: 4,\n\n /**\n * Number of bytes in a kilobyte (binary)\n */\n BYTES_PER_KB: 1024,\n\n /**\n * Number of bytes in a megabyte (binary)\n */\n BYTES_PER_MB: 1048576,\n\n /**\n * Number of bytes in a gigabyte (binary)\n */\n BYTES_PER_GB: 1073741824,\n\n // Precision and rounding\n /**\n * Default decimal places for currency\n */\n CURRENCY_DECIMAL_PLACES: 2,\n\n /**\n * Default decimal places for percentages\n */\n PERCENTAGE_DECIMAL_PLACES: 2,\n\n /**\n * Default decimal places for coordinates\n */\n COORDINATE_DECIMAL_PLACES: 6,\n\n /**\n * Maximum safe integer in JavaScript\n */\n MAX_SAFE_INTEGER: 9007199254740991,\n\n /**\n * Minimum safe integer in JavaScript\n */\n MIN_SAFE_INTEGER: -9007199254740991,\n\n /**\n * Maximum 32-bit signed integer\n */\n MAX_INT32: 2147483647,\n\n /**\n * Minimum 32-bit signed integer\n */\n MIN_INT32: -2147483648,\n\n /**\n * Maximum 16-bit unsigned integer\n */\n MAX_UINT16: 65535,\n\n /**\n * Maximum 8-bit unsigned integer\n */\n MAX_UINT8: 255,\n\n // Common angles in degrees\n /**\n * Full circle in degrees\n */\n DEGREES_FULL_CIRCLE: 360,\n\n /**\n * Half circle in degrees\n */\n DEGREES_HALF_CIRCLE: 180,\n\n /**\n * Quarter circle in degrees (right angle)\n */\n DEGREES_RIGHT_ANGLE: 90,\n\n /**\n * Degrees in a radian\n */\n DEGREES_PER_RADIAN: 57.29577951308232,\n\n /**\n * Radians in a degree\n */\n RADIANS_PER_DEGREE: 0.017453292519943295,\n\n // Mathematical constants\n /**\n * Pi (π)\n */\n PI: 3.141592653589793,\n\n /**\n * Two times Pi (2π) - full circle in radians\n */\n TWO_PI: 6.283185307179586,\n\n /**\n * Half Pi (π/2) - quarter circle in radians\n */\n HALF_PI: 1.5707963267948966,\n\n /**\n * Euler's number (e)\n */\n E: 2.718281828459045,\n\n /**\n * Golden ratio (φ)\n */\n GOLDEN_RATIO: 1.618033988749895,\n\n /**\n * Square root of 2\n */\n SQRT2: 1.4142135623730951,\n\n /**\n * Square root of 3\n */\n SQRT3: 1.7320508075688772,\n\n /**\n * Natural logarithm of 2\n */\n LN2: 0.6931471805599453,\n\n /**\n * Natural logarithm of 10\n */\n LN10: 2.302585092994046,\n\n /**\n * Base 2 logarithm of E\n */\n LOG2E: 1.4426950408889634,\n\n /**\n * Base 10 logarithm of E\n */\n LOG10E: 0.4342944819032518,\n} as const;\n\n/**\n * Mathematical and percentage constants\n */\nexport const MATH_CONSTANTS = {\n /**\n * Maximum percentage value\n */\n PERCENTAGE_MAX: 100,\n\n /**\n * Half value (50%)\n */\n HALF: 0.5,\n\n /**\n * One tenth (10%)\n */\n TENTH: 0.1,\n\n /**\n * One twentieth (5%)\n */\n TWENTIETH: 0.05,\n\n /**\n * 95th percentile\n */\n PERCENT_95: 0.95,\n\n /**\n * 99th percentile\n */\n PERCENT_99: 0.99,\n\n /**\n * Threshold for quadratic algorithm detection\n */\n QUADRATIC_THRESHOLD: 1.5,\n\n /**\n * Threshold for exponential algorithm detection\n */\n EXPONENTIAL_THRESHOLD: 3,\n\n /**\n * Multiplier for variance calculations\n */\n VARIANCE_MULTIPLIER: 4,\n\n /**\n * Offset for variance calculations\n */\n VARIANCE_OFFSET: 2,\n} as const;\n\n/**\n * Type for number system values\n */\nexport type NumberSystemBase = (typeof NUMBER_SYSTEM)[keyof typeof NUMBER_SYSTEM];\n\n/**\n * Type for math constant values\n */\nexport type MathConstant = (typeof MATH_CONSTANTS)[keyof typeof MATH_CONSTANTS];\n"]}
1
+ {"version":3,"sources":["../../src/math/constants.ts"],"names":["NUMBER_SYSTEM","MATH_CONSTANTS","MULTIPLIERS","NUMERIC_CONSTANTS"],"mappings":";AAYO,IAAMA,CAAAA,CAAgB,CAK3B,WAAA,CAAa,CAAA,CAKb,WAAY,CAAA,CAKZ,YAAA,CAAc,EAAA,CAKd,eAAA,CAAiB,GAKjB,QAAA,CAAU,EAAA,CAKV,MAAA,CAAQ,EAAA,CAKR,OAAQ,EAAA,CAKR,MAAA,CAAQ,EAAA,CAKR,MAAA,CAAQ,EAAA,CAKR,MAAA,CAAQ,EAAA,CAMR,cAAA,CAAgB,EAKhB,gBAAA,CAAkB,CAAA,CAKlB,sBAAA,CAAwB,CAAA,CAKxB,cAAe,CAAA,CAKf,eAAA,CAAiB,CAAA,CAKjB,YAAA,CAAc,KAKd,YAAA,CAAc,OAAA,CAKd,YAAA,CAAc,UAAA,CAMd,uBAAA,CAAyB,CAAA,CAKzB,yBAAA,CAA2B,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AAM,CAAA,CAKN,IAAK,EACP","file":"index.mjs","sourcesContent":["/**\n * Mathematical Constants\n *\n * Common mathematical values, number system bases, and calculation constants\n * used throughout the application for various computations.\n *\n * @module math/constants\n */\n\n/**\n * Number system base constants\n */\nexport const NUMBER_SYSTEM = {\n // Number bases\n /**\n * Base 2 - Binary number system\n */\n BINARY_BASE: 2,\n\n /**\n * Base 8 - Octal number system\n */\n OCTAL_BASE: 8,\n\n /**\n * Base 10 - Decimal number system\n */\n DECIMAL_BASE: 10,\n\n /**\n * Base 12 - Duodecimal number system\n */\n DUODECIMAL_BASE: 12,\n\n /**\n * Base 16 - Hexadecimal number system\n */\n HEX_BASE: 16,\n\n /**\n * Base 32 - Base32 encoding\n */\n BASE32: 32,\n\n /**\n * Base 36 - Alphanumeric number system (0-9, a-z)\n */\n BASE36: 36,\n\n /**\n * Base 58 - Bitcoin base58 encoding (excludes similar looking characters)\n */\n BASE58: 58,\n\n /**\n * Base 62 - Alphanumeric with uppercase (0-9, a-z, A-Z)\n */\n BASE62: 62,\n\n /**\n * Base 64 - Base64 encoding\n */\n BASE64: 64,\n\n // Formatting and padding\n /**\n * Default padding length for hexadecimal values (e.g., \"0F\" instead of \"F\")\n */\n HEX_PAD_LENGTH: 2,\n\n /**\n * Padding length for RGB hex colors (6 characters)\n */\n HEX_COLOR_LENGTH: 6,\n\n /**\n * Padding length for RGBA hex colors with alpha (8 characters)\n */\n HEX_COLOR_ALPHA_LENGTH: 8,\n\n /**\n * Standard byte size in bits\n */\n BITS_PER_BYTE: 8,\n\n /**\n * Standard nibble size in bits (half byte)\n */\n BITS_PER_NIBBLE: 4,\n\n /**\n * Number of bytes in a kilobyte (binary)\n */\n BYTES_PER_KB: 1024,\n\n /**\n * Number of bytes in a megabyte (binary)\n */\n BYTES_PER_MB: 1048576,\n\n /**\n * Number of bytes in a gigabyte (binary)\n */\n BYTES_PER_GB: 1073741824,\n\n // Precision and rounding\n /**\n * Default decimal places for currency\n */\n CURRENCY_DECIMAL_PLACES: 2,\n\n /**\n * Default decimal places for percentages\n */\n PERCENTAGE_DECIMAL_PLACES: 2,\n\n /**\n * Default decimal places for coordinates\n */\n COORDINATE_DECIMAL_PLACES: 6,\n\n /**\n * Maximum safe integer in JavaScript\n */\n MAX_SAFE_INTEGER: 9007199254740991,\n\n /**\n * Minimum safe integer in JavaScript\n */\n MIN_SAFE_INTEGER: -9007199254740991,\n\n /**\n * Maximum 32-bit signed integer\n */\n MAX_INT32: 2147483647,\n\n /**\n * Minimum 32-bit signed integer\n */\n MIN_INT32: -2147483648,\n\n /**\n * Maximum 16-bit unsigned integer\n */\n MAX_UINT16: 65535,\n\n /**\n * Maximum 8-bit unsigned integer\n */\n MAX_UINT8: 255,\n\n // Common angles in degrees\n /**\n * Full circle in degrees\n */\n DEGREES_FULL_CIRCLE: 360,\n\n /**\n * Half circle in degrees\n */\n DEGREES_HALF_CIRCLE: 180,\n\n /**\n * Quarter circle in degrees (right angle)\n */\n DEGREES_RIGHT_ANGLE: 90,\n\n /**\n * Degrees in a radian\n */\n DEGREES_PER_RADIAN: 57.29577951308232,\n\n /**\n * Radians in a degree\n */\n RADIANS_PER_DEGREE: 0.017453292519943295,\n\n // Mathematical constants\n /**\n * Pi (π)\n */\n PI: 3.141592653589793,\n\n /**\n * Two times Pi (2π) - full circle in radians\n */\n TWO_PI: 6.283185307179586,\n\n /**\n * Half Pi (π/2) - quarter circle in radians\n */\n HALF_PI: 1.5707963267948966,\n\n /**\n * Euler's number (e)\n */\n E: 2.718281828459045,\n\n /**\n * Golden ratio (φ)\n */\n GOLDEN_RATIO: 1.618033988749895,\n\n /**\n * Square root of 2\n */\n SQRT2: 1.4142135623730951,\n\n /**\n * Square root of 3\n */\n SQRT3: 1.7320508075688772,\n\n /**\n * Natural logarithm of 2\n */\n LN2: 0.6931471805599453,\n\n /**\n * Natural logarithm of 10\n */\n LN10: 2.302585092994046,\n\n /**\n * Base 2 logarithm of E\n */\n LOG2E: 1.4426950408889634,\n\n /**\n * Base 10 logarithm of E\n */\n LOG10E: 0.4342944819032518,\n} as const;\n\n/**\n * Mathematical and percentage constants\n */\nexport const MATH_CONSTANTS = {\n /**\n * Maximum percentage value\n */\n PERCENTAGE_MAX: 100,\n\n /**\n * Half value (50%)\n */\n HALF: 0.5,\n\n /**\n * One tenth (10%)\n */\n TENTH: 0.1,\n\n /**\n * One twentieth (5%)\n */\n TWENTIETH: 0.05,\n\n /**\n * 95th percentile\n */\n PERCENT_95: 0.95,\n\n /**\n * 99th percentile\n */\n PERCENT_99: 0.99,\n\n /**\n * Threshold for quadratic algorithm detection\n */\n QUADRATIC_THRESHOLD: 1.5,\n\n /**\n * Threshold for exponential algorithm detection\n */\n EXPONENTIAL_THRESHOLD: 3,\n\n /**\n * Multiplier for variance calculations\n */\n VARIANCE_MULTIPLIER: 4,\n\n /**\n * Offset for variance calculations\n */\n VARIANCE_OFFSET: 2,\n} as const;\n\n/**\n * Common numeric multipliers for calculations\n */\nexport const MULTIPLIERS = {\n /**\n * One and a half times (1.5x)\n */\n ONE_AND_HALF: 1.5,\n\n /**\n * Double (2x)\n */\n DOUBLE: 2,\n\n /**\n * Triple (3x)\n */\n TRIPLE: 3,\n\n /**\n * Quadruple (4x)\n */\n QUADRUPLE: 4,\n\n /**\n * Quintuple (5x)\n */\n QUINTUPLE: 5,\n\n /**\n * Ten times (10x)\n */\n TEN: 10,\n} as const;\n\n/**\n * Common numeric constants for general use\n */\nexport const NUMERIC_CONSTANTS = {\n /**\n * Milliseconds in one second\n */\n MILLISECONDS_PER_SECOND: 1000,\n\n /**\n * Seconds in one minute\n */\n SECONDS_PER_MINUTE: 60,\n\n /**\n * Minutes in one hour\n */\n MINUTES_PER_HOUR: 60,\n\n /**\n * Hours in one day\n */\n HOURS_PER_DAY: 24,\n\n /**\n * Negative one (-1)\n */\n NEGATIVE_ONE: -1,\n\n /**\n * Zero (0)\n */\n ZERO: 0,\n\n /**\n * One (1)\n */\n ONE: 1,\n\n /**\n * Two (2)\n */\n TWO: 2,\n\n /**\n * Three (3)\n */\n THREE: 3,\n\n /**\n * Five (5)\n */\n FIVE: 5,\n\n /**\n * Ten (10)\n */\n TEN: 10,\n} as const;\n\n/**\n * Type for number system values\n */\nexport type NumberSystemBase = (typeof NUMBER_SYSTEM)[keyof typeof NUMBER_SYSTEM];\n\n/**\n * Type for math constant values\n */\nexport type MathConstant = (typeof MATH_CONSTANTS)[keyof typeof MATH_CONSTANTS];\n\n/**\n * Type for multiplier values\n */\nexport type Multiplier = (typeof MULTIPLIERS)[keyof typeof MULTIPLIERS];\n\n/**\n * Type for numeric constant values\n */\nexport type NumericConstant = (typeof NUMERIC_CONSTANTS)[keyof typeof NUMERIC_CONSTANTS];\n"]}
@@ -31,7 +31,303 @@ export declare const NETWORK_CONSTANTS: {
31
31
  */
32
32
  readonly DEFAULT_PROCESS_ID_MAX: 10000;
33
33
  };
34
+ /**
35
+ * Round-trip time (RTT) thresholds in milliseconds
36
+ * Used to classify network latency quality
37
+ */
38
+ export declare const RTT_THRESHOLDS: {
39
+ /**
40
+ * Excellent network latency - under 50ms
41
+ */
42
+ readonly EXCELLENT: 50;
43
+ /**
44
+ * Good network latency - under 150ms
45
+ */
46
+ readonly GOOD: 150;
47
+ /**
48
+ * Fair network latency - under 400ms
49
+ */
50
+ readonly FAIR: 400;
51
+ };
52
+ /**
53
+ * Network speed thresholds in Mbps
54
+ * Used to classify connection speed quality
55
+ */
56
+ export declare const SPEED_THRESHOLDS: {
57
+ /**
58
+ * Excellent connection speed - 10+ Mbps
59
+ */
60
+ readonly EXCELLENT: 10;
61
+ /**
62
+ * Good connection speed - 2+ Mbps
63
+ */
64
+ readonly GOOD: 2;
65
+ /**
66
+ * Fair connection speed - 0.5+ Mbps
67
+ */
68
+ readonly FAIR: 0.5;
69
+ };
70
+ /**
71
+ * Network quality scores (0-100 scale)
72
+ * Used to quantify overall network performance
73
+ */
74
+ export declare const NETWORK_SCORES: {
75
+ /**
76
+ * Excellent network quality score
77
+ */
78
+ readonly EXCELLENT: 100;
79
+ /**
80
+ * Good network quality score
81
+ */
82
+ readonly GOOD: 75;
83
+ /**
84
+ * Fair network quality score
85
+ */
86
+ readonly FAIR: 50;
87
+ /**
88
+ * Poor network quality score
89
+ */
90
+ readonly POOR: 25;
91
+ /**
92
+ * Offline - no network connection
93
+ */
94
+ readonly OFFLINE: 0;
95
+ };
96
+ /**
97
+ * Network timeout constants in milliseconds
98
+ * Used for request timeout configuration based on network quality
99
+ */
100
+ export declare const NETWORK_TIMEOUTS: {
101
+ /**
102
+ * Fast network timeout - 15 seconds
103
+ */
104
+ readonly FAST: 15000;
105
+ /**
106
+ * Medium network timeout - 30 seconds
107
+ */
108
+ readonly MEDIUM: 30000;
109
+ /**
110
+ * Slow network timeout - 60 seconds
111
+ */
112
+ readonly SLOW: 60000;
113
+ /**
114
+ * Very slow network timeout - 90 seconds
115
+ */
116
+ readonly VERY_SLOW: 90000;
117
+ /**
118
+ * Offline timeout - 5 seconds (fail fast)
119
+ */
120
+ readonly OFFLINE: 5000;
121
+ };
122
+ /**
123
+ * Cache TTL (Time-To-Live) constants in seconds
124
+ * Used for cache expiration strategies
125
+ */
126
+ export declare const CACHE_TTL: {
127
+ /**
128
+ * Short cache TTL - 5 minutes
129
+ */
130
+ readonly SHORT: 300;
131
+ /**
132
+ * Medium cache TTL - 10 minutes
133
+ */
134
+ readonly MEDIUM: 600;
135
+ /**
136
+ * Long cache TTL - 30 minutes
137
+ */
138
+ readonly LONG: 1800;
139
+ };
140
+ /**
141
+ * Cache stale time constants in seconds
142
+ * Used to determine when cached data is considered stale
143
+ */
144
+ export declare const CACHE_STALE: {
145
+ /**
146
+ * Short stale time - 1 minute
147
+ */
148
+ readonly SHORT: 60;
149
+ /**
150
+ * Medium stale time - 5 minutes
151
+ */
152
+ readonly MEDIUM: 300;
153
+ /**
154
+ * Long stale time - 15 minutes
155
+ */
156
+ readonly LONG: 900;
157
+ };
158
+ /**
159
+ * Request deduplication time constants in milliseconds
160
+ * Used to prevent duplicate requests within time windows
161
+ */
162
+ export declare const DEDUPE_TIME: {
163
+ /**
164
+ * Aggressive deduplication - 1 second
165
+ */
166
+ readonly AGGRESSIVE: 1000;
167
+ /**
168
+ * Balanced deduplication - 2 seconds
169
+ */
170
+ readonly BALANCED: 2000;
171
+ /**
172
+ * Conservative deduplication - 5 seconds
173
+ */
174
+ readonly CONSERVATIVE: 5000;
175
+ };
176
+ /**
177
+ * Retry attempt constants
178
+ * Number of retry attempts for failed requests
179
+ */
180
+ export declare const RETRY_ATTEMPTS: {
181
+ /**
182
+ * Few retry attempts - 2
183
+ */
184
+ readonly FEW: 2;
185
+ /**
186
+ * Standard retry attempts - 3
187
+ */
188
+ readonly STANDARD: 3;
189
+ /**
190
+ * Many retry attempts - 5
191
+ */
192
+ readonly MANY: 5;
193
+ };
194
+ /**
195
+ * Retry delay constants in milliseconds
196
+ * Initial delays between retry attempts
197
+ */
198
+ export declare const RETRY_DELAYS: {
199
+ /**
200
+ * Short retry delay - 1 second
201
+ */
202
+ readonly SHORT: 1000;
203
+ /**
204
+ * Long retry delay - 2 seconds
205
+ */
206
+ readonly LONG: 2000;
207
+ /**
208
+ * Maximum retry delay - 30 seconds
209
+ */
210
+ readonly MAX: 30000;
211
+ };
212
+ /**
213
+ * Retry backoff multiplier constants
214
+ * Exponential backoff multipliers for retry delays
215
+ */
216
+ export declare const RETRY_BACKOFF: {
217
+ /**
218
+ * Small backoff multiplier - 1.5x
219
+ */
220
+ readonly SMALL: 1.5;
221
+ /**
222
+ * Medium backoff multiplier - 2x
223
+ */
224
+ readonly MEDIUM: 2;
225
+ /**
226
+ * Large backoff multiplier - 2.5x
227
+ */
228
+ readonly LARGE: 2.5;
229
+ };
230
+ /**
231
+ * Batch size constants
232
+ * Number of items to process in a single batch
233
+ */
234
+ export declare const BATCH_SIZES: {
235
+ /**
236
+ * Huge batch size - 50 items
237
+ */
238
+ readonly HUGE: 50;
239
+ /**
240
+ * Large batch size - 25 items
241
+ */
242
+ readonly LARGE: 25;
243
+ /**
244
+ * Medium batch size - 10 items
245
+ */
246
+ readonly MEDIUM: 10;
247
+ /**
248
+ * Small batch size - 5 items
249
+ */
250
+ readonly SMALL: 5;
251
+ /**
252
+ * No batching - 0 items
253
+ */
254
+ readonly NONE: 0;
255
+ };
256
+ /**
257
+ * Page size constants
258
+ * Number of items per page for pagination
259
+ */
260
+ export declare const PAGE_SIZES: {
261
+ /**
262
+ * Huge page size - 100 items
263
+ */
264
+ readonly HUGE: 100;
265
+ /**
266
+ * Large page size - 50 items
267
+ */
268
+ readonly LARGE: 50;
269
+ /**
270
+ * Medium page size - 25 items
271
+ */
272
+ readonly MEDIUM: 25;
273
+ /**
274
+ * Small page size - 10 items
275
+ */
276
+ readonly SMALL: 10;
277
+ /**
278
+ * No pagination - 0 items
279
+ */
280
+ readonly NONE: 0;
281
+ };
34
282
  /**
35
283
  * Type for network constant values
36
284
  */
37
285
  export type NetworkConstant = (typeof NETWORK_CONSTANTS)[keyof typeof NETWORK_CONSTANTS];
286
+ /**
287
+ * Type for RTT threshold values
288
+ */
289
+ export type RTTThreshold = (typeof RTT_THRESHOLDS)[keyof typeof RTT_THRESHOLDS];
290
+ /**
291
+ * Type for speed threshold values
292
+ */
293
+ export type SpeedThreshold = (typeof SPEED_THRESHOLDS)[keyof typeof SPEED_THRESHOLDS];
294
+ /**
295
+ * Type for network score values
296
+ */
297
+ export type NetworkScore = (typeof NETWORK_SCORES)[keyof typeof NETWORK_SCORES];
298
+ /**
299
+ * Type for network timeout values
300
+ */
301
+ export type NetworkTimeout = (typeof NETWORK_TIMEOUTS)[keyof typeof NETWORK_TIMEOUTS];
302
+ /**
303
+ * Type for cache TTL values
304
+ */
305
+ export type CacheTTL = (typeof CACHE_TTL)[keyof typeof CACHE_TTL];
306
+ /**
307
+ * Type for cache stale values
308
+ */
309
+ export type CacheStale = (typeof CACHE_STALE)[keyof typeof CACHE_STALE];
310
+ /**
311
+ * Type for dedupe time values
312
+ */
313
+ export type DedupeTime = (typeof DEDUPE_TIME)[keyof typeof DEDUPE_TIME];
314
+ /**
315
+ * Type for retry attempt values
316
+ */
317
+ export type RetryAttempt = (typeof RETRY_ATTEMPTS)[keyof typeof RETRY_ATTEMPTS];
318
+ /**
319
+ * Type for retry delay values
320
+ */
321
+ export type RetryDelay = (typeof RETRY_DELAYS)[keyof typeof RETRY_DELAYS];
322
+ /**
323
+ * Type for retry backoff values
324
+ */
325
+ export type RetryBackoff = (typeof RETRY_BACKOFF)[keyof typeof RETRY_BACKOFF];
326
+ /**
327
+ * Type for batch size values
328
+ */
329
+ export type BatchSize = (typeof BATCH_SIZES)[keyof typeof BATCH_SIZES];
330
+ /**
331
+ * Type for page size values
332
+ */
333
+ export type PageSize = (typeof PAGE_SIZES)[keyof typeof PAGE_SIZES];
@@ -1,3 +1,3 @@
1
1
  'use strict';// @plyaz package - Built with tsup
2
- var T={IPV4_OCTET_MIN:1,IPV4_OCTET_MAX:255,IPV4_OCTET_COUNT:4,RANDOM_BYTE_MAX:256,DEFAULT_PROCESS_ID_MAX:1e4};exports.NETWORK_CONSTANTS=T;//# sourceMappingURL=index.cjs.map
2
+ var t={IPV4_OCTET_MIN:1,IPV4_OCTET_MAX:255,IPV4_OCTET_COUNT:4,RANDOM_BYTE_MAX:256,DEFAULT_PROCESS_ID_MAX:1e4},E={EXCELLENT:50,GOOD:150,FAIR:400},e={EXCELLENT:10,GOOD:2,FAIR:.5},o={EXCELLENT:100,GOOD:75,FAIR:50,POOR:25,OFFLINE:0},T={FAST:15e3,MEDIUM:3e4,SLOW:6e4,VERY_SLOW:9e4,OFFLINE:5e3},S={SHORT:300,MEDIUM:600,LONG:1800},p={SHORT:60,MEDIUM:300,LONG:900},R={AGGRESSIVE:1e3,BALANCED:2e3,CONSERVATIVE:5e3},y={FEW:2,STANDARD:3,MANY:5},O={SHORT:1e3,LONG:2e3,MAX:3e4},A={SMALL:1.5,MEDIUM:2,LARGE:2.5},_={HUGE:50,LARGE:25,MEDIUM:10,SMALL:5,NONE:0},f={HUGE:100,LARGE:50,MEDIUM:25,SMALL:10,NONE:0};exports.BATCH_SIZES=_;exports.CACHE_STALE=p;exports.CACHE_TTL=S;exports.DEDUPE_TIME=R;exports.NETWORK_CONSTANTS=t;exports.NETWORK_SCORES=o;exports.NETWORK_TIMEOUTS=T;exports.PAGE_SIZES=f;exports.RETRY_ATTEMPTS=y;exports.RETRY_BACKOFF=A;exports.RETRY_DELAYS=O;exports.RTT_THRESHOLDS=E;exports.SPEED_THRESHOLDS=e;//# sourceMappingURL=index.cjs.map
3
3
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/network/constants.ts"],"names":["NETWORK_CONSTANTS"],"mappings":";AAYO,IAAMA,CAAAA,CAAoB,CAI/B,cAAA,CAAgB,CAAA,CAKhB,cAAA,CAAgB,GAAA,CAKhB,gBAAA,CAAkB,CAAA,CAKlB,eAAA,CAAiB,GAAA,CAKjB,sBAAA,CAAwB,GAC1B","file":"index.cjs","sourcesContent":["/**\n * Network-related Constants\n *\n * Constants for network operations including IP addresses,\n * byte ranges, and process identifiers.\n *\n * @module network/constants\n */\n\n/**\n * Network and connection constants\n */\nexport const NETWORK_CONSTANTS = {\n /**\n * Minimum value for an IPv4 octet (excluding 0 for first octet)\n */\n IPV4_OCTET_MIN: 1,\n\n /**\n * Maximum value for an IPv4 octet\n */\n IPV4_OCTET_MAX: 255,\n\n /**\n * Number of octets in an IPv4 address\n */\n IPV4_OCTET_COUNT: 4,\n\n /**\n * Maximum value for a random byte (256 exclusive)\n */\n RANDOM_BYTE_MAX: 256,\n\n /**\n * Default maximum process ID for testing\n */\n DEFAULT_PROCESS_ID_MAX: 10000,\n} as const;\n\n/**\n * Type for network constant values\n */\nexport type NetworkConstant = (typeof NETWORK_CONSTANTS)[keyof typeof NETWORK_CONSTANTS];\n"]}
1
+ {"version":3,"sources":["../../src/network/constants.ts"],"names":["NETWORK_CONSTANTS","RTT_THRESHOLDS","SPEED_THRESHOLDS","NETWORK_SCORES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CAAM,GAAA,CAKN,IAAK,GACP,CAAA,CAMaC,CAAAA,CAAgB,CAI3B,KAAA,CAAO,GAAA,CAKP,MAAA,CAAQ,CAAA,CAKR,KAAA,CAAO,GACT,CAAA,CAMaC,CAAAA,CAAc,CAIzB,IAAA,CAAM,EAAA,CAKN,KAAA,CAAO,GAKP,MAAA,CAAQ,EAAA,CAKR,KAAA,CAAO,CAAA,CAKP,IAAA,CAAM,CACR,CAAA,CAMaC,CAAAA,CAAa,CAIxB,IAAA,CAAM,GAAA,CAKN,KAAA,CAAO,EAAA,CAKP,MAAA,CAAQ,EAAA,CAKR,KAAA,CAAO,EAAA,CAKP,KAAM,CACR","file":"index.cjs","sourcesContent":["/**\n * Network-related Constants\n *\n * Constants for network operations including IP addresses,\n * byte ranges, and process identifiers.\n *\n * @module network/constants\n */\n\n/**\n * Network and connection constants\n */\nexport const NETWORK_CONSTANTS = {\n /**\n * Minimum value for an IPv4 octet (excluding 0 for first octet)\n */\n IPV4_OCTET_MIN: 1,\n\n /**\n * Maximum value for an IPv4 octet\n */\n IPV4_OCTET_MAX: 255,\n\n /**\n * Number of octets in an IPv4 address\n */\n IPV4_OCTET_COUNT: 4,\n\n /**\n * Maximum value for a random byte (256 exclusive)\n */\n RANDOM_BYTE_MAX: 256,\n\n /**\n * Default maximum process ID for testing\n */\n DEFAULT_PROCESS_ID_MAX: 10000,\n} as const;\n\n/**\n * Round-trip time (RTT) thresholds in milliseconds\n * Used to classify network latency quality\n */\nexport const RTT_THRESHOLDS = {\n /**\n * Excellent network latency - under 50ms\n */\n EXCELLENT: 50,\n\n /**\n * Good network latency - under 150ms\n */\n GOOD: 150,\n\n /**\n * Fair network latency - under 400ms\n */\n FAIR: 400,\n} as const;\n\n/**\n * Network speed thresholds in Mbps\n * Used to classify connection speed quality\n */\nexport const SPEED_THRESHOLDS = {\n /**\n * Excellent connection speed - 10+ Mbps\n */\n EXCELLENT: 10,\n\n /**\n * Good connection speed - 2+ Mbps\n */\n GOOD: 2,\n\n /**\n * Fair connection speed - 0.5+ Mbps\n */\n FAIR: 0.5,\n} as const;\n\n/**\n * Network quality scores (0-100 scale)\n * Used to quantify overall network performance\n */\nexport const NETWORK_SCORES = {\n /**\n * Excellent network quality score\n */\n EXCELLENT: 100,\n\n /**\n * Good network quality score\n */\n GOOD: 75,\n\n /**\n * Fair network quality score\n */\n FAIR: 50,\n\n /**\n * Poor network quality score\n */\n POOR: 25,\n\n /**\n * Offline - no network connection\n */\n OFFLINE: 0,\n} as const;\n\n/**\n * Network timeout constants in milliseconds\n * Used for request timeout configuration based on network quality\n */\nexport const NETWORK_TIMEOUTS = {\n /**\n * Fast network timeout - 15 seconds\n */\n FAST: 15000,\n\n /**\n * Medium network timeout - 30 seconds\n */\n MEDIUM: 30000,\n\n /**\n * Slow network timeout - 60 seconds\n */\n SLOW: 60000,\n\n /**\n * Very slow network timeout - 90 seconds\n */\n VERY_SLOW: 90000,\n\n /**\n * Offline timeout - 5 seconds (fail fast)\n */\n OFFLINE: 5000,\n} as const;\n\n/**\n * Cache TTL (Time-To-Live) constants in seconds\n * Used for cache expiration strategies\n */\nexport const CACHE_TTL = {\n /**\n * Short cache TTL - 5 minutes\n */\n SHORT: 300,\n\n /**\n * Medium cache TTL - 10 minutes\n */\n MEDIUM: 600,\n\n /**\n * Long cache TTL - 30 minutes\n */\n LONG: 1800,\n} as const;\n\n/**\n * Cache stale time constants in seconds\n * Used to determine when cached data is considered stale\n */\nexport const CACHE_STALE = {\n /**\n * Short stale time - 1 minute\n */\n SHORT: 60,\n\n /**\n * Medium stale time - 5 minutes\n */\n MEDIUM: 300,\n\n /**\n * Long stale time - 15 minutes\n */\n LONG: 900,\n} as const;\n\n/**\n * Request deduplication time constants in milliseconds\n * Used to prevent duplicate requests within time windows\n */\nexport const DEDUPE_TIME = {\n /**\n * Aggressive deduplication - 1 second\n */\n AGGRESSIVE: 1000,\n\n /**\n * Balanced deduplication - 2 seconds\n */\n BALANCED: 2000,\n\n /**\n * Conservative deduplication - 5 seconds\n */\n CONSERVATIVE: 5000,\n} as const;\n\n/**\n * Retry attempt constants\n * Number of retry attempts for failed requests\n */\nexport const RETRY_ATTEMPTS = {\n /**\n * Few retry attempts - 2\n */\n FEW: 2,\n\n /**\n * Standard retry attempts - 3\n */\n STANDARD: 3,\n\n /**\n * Many retry attempts - 5\n */\n MANY: 5,\n} as const;\n\n/**\n * Retry delay constants in milliseconds\n * Initial delays between retry attempts\n */\nexport const RETRY_DELAYS = {\n /**\n * Short retry delay - 1 second\n */\n SHORT: 1000,\n\n /**\n * Long retry delay - 2 seconds\n */\n LONG: 2000,\n\n /**\n * Maximum retry delay - 30 seconds\n */\n MAX: 30000,\n} as const;\n\n/**\n * Retry backoff multiplier constants\n * Exponential backoff multipliers for retry delays\n */\nexport const RETRY_BACKOFF = {\n /**\n * Small backoff multiplier - 1.5x\n */\n SMALL: 1.5,\n\n /**\n * Medium backoff multiplier - 2x\n */\n MEDIUM: 2,\n\n /**\n * Large backoff multiplier - 2.5x\n */\n LARGE: 2.5,\n} as const;\n\n/**\n * Batch size constants\n * Number of items to process in a single batch\n */\nexport const BATCH_SIZES = {\n /**\n * Huge batch size - 50 items\n */\n HUGE: 50,\n\n /**\n * Large batch size - 25 items\n */\n LARGE: 25,\n\n /**\n * Medium batch size - 10 items\n */\n MEDIUM: 10,\n\n /**\n * Small batch size - 5 items\n */\n SMALL: 5,\n\n /**\n * No batching - 0 items\n */\n NONE: 0,\n} as const;\n\n/**\n * Page size constants\n * Number of items per page for pagination\n */\nexport const PAGE_SIZES = {\n /**\n * Huge page size - 100 items\n */\n HUGE: 100,\n\n /**\n * Large page size - 50 items\n */\n LARGE: 50,\n\n /**\n * Medium page size - 25 items\n */\n MEDIUM: 25,\n\n /**\n * Small page size - 10 items\n */\n SMALL: 10,\n\n /**\n * No pagination - 0 items\n */\n NONE: 0,\n} as const;\n\n/**\n * Type for network constant values\n */\nexport type NetworkConstant = (typeof NETWORK_CONSTANTS)[keyof typeof NETWORK_CONSTANTS];\n\n/**\n * Type for RTT threshold values\n */\nexport type RTTThreshold = (typeof RTT_THRESHOLDS)[keyof typeof RTT_THRESHOLDS];\n\n/**\n * Type for speed threshold values\n */\nexport type SpeedThreshold = (typeof SPEED_THRESHOLDS)[keyof typeof SPEED_THRESHOLDS];\n\n/**\n * Type for network score values\n */\nexport type NetworkScore = (typeof NETWORK_SCORES)[keyof typeof NETWORK_SCORES];\n\n/**\n * Type for network timeout values\n */\nexport type NetworkTimeout = (typeof NETWORK_TIMEOUTS)[keyof typeof NETWORK_TIMEOUTS];\n\n/**\n * Type for cache TTL values\n */\nexport type CacheTTL = (typeof CACHE_TTL)[keyof typeof CACHE_TTL];\n\n/**\n * Type for cache stale values\n */\nexport type CacheStale = (typeof CACHE_STALE)[keyof typeof CACHE_STALE];\n\n/**\n * Type for dedupe time values\n */\nexport type DedupeTime = (typeof DEDUPE_TIME)[keyof typeof DEDUPE_TIME];\n\n/**\n * Type for retry attempt values\n */\nexport type RetryAttempt = (typeof RETRY_ATTEMPTS)[keyof typeof RETRY_ATTEMPTS];\n\n/**\n * Type for retry delay values\n */\nexport type RetryDelay = (typeof RETRY_DELAYS)[keyof typeof RETRY_DELAYS];\n\n/**\n * Type for retry backoff values\n */\nexport type RetryBackoff = (typeof RETRY_BACKOFF)[keyof typeof RETRY_BACKOFF];\n\n/**\n * Type for batch size values\n */\nexport type BatchSize = (typeof BATCH_SIZES)[keyof typeof BATCH_SIZES];\n\n/**\n * Type for page size values\n */\nexport type PageSize = (typeof PAGE_SIZES)[keyof typeof PAGE_SIZES];\n"]}
@@ -1,3 +1,3 @@
1
1
  // @plyaz package - Built with tsup
2
- var T={IPV4_OCTET_MIN:1,IPV4_OCTET_MAX:255,IPV4_OCTET_COUNT:4,RANDOM_BYTE_MAX:256,DEFAULT_PROCESS_ID_MAX:1e4};export{T as NETWORK_CONSTANTS};//# sourceMappingURL=index.mjs.map
2
+ var t={IPV4_OCTET_MIN:1,IPV4_OCTET_MAX:255,IPV4_OCTET_COUNT:4,RANDOM_BYTE_MAX:256,DEFAULT_PROCESS_ID_MAX:1e4},E={EXCELLENT:50,GOOD:150,FAIR:400},e={EXCELLENT:10,GOOD:2,FAIR:.5},o={EXCELLENT:100,GOOD:75,FAIR:50,POOR:25,OFFLINE:0},T={FAST:15e3,MEDIUM:3e4,SLOW:6e4,VERY_SLOW:9e4,OFFLINE:5e3},S={SHORT:300,MEDIUM:600,LONG:1800},p={SHORT:60,MEDIUM:300,LONG:900},R={AGGRESSIVE:1e3,BALANCED:2e3,CONSERVATIVE:5e3},y={FEW:2,STANDARD:3,MANY:5},O={SHORT:1e3,LONG:2e3,MAX:3e4},A={SMALL:1.5,MEDIUM:2,LARGE:2.5},_={HUGE:50,LARGE:25,MEDIUM:10,SMALL:5,NONE:0},f={HUGE:100,LARGE:50,MEDIUM:25,SMALL:10,NONE:0};export{_ as BATCH_SIZES,p as CACHE_STALE,S as CACHE_TTL,R as DEDUPE_TIME,t as NETWORK_CONSTANTS,o as NETWORK_SCORES,T as NETWORK_TIMEOUTS,f as PAGE_SIZES,y as RETRY_ATTEMPTS,A as RETRY_BACKOFF,O as RETRY_DELAYS,E as RTT_THRESHOLDS,e as SPEED_THRESHOLDS};//# sourceMappingURL=index.mjs.map
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/network/constants.ts"],"names":["NETWORK_CONSTANTS"],"mappings":";AAYO,IAAMA,CAAAA,CAAoB,CAI/B,cAAA,CAAgB,CAAA,CAKhB,cAAA,CAAgB,GAAA,CAKhB,gBAAA,CAAkB,CAAA,CAKlB,eAAA,CAAiB,GAAA,CAKjB,sBAAA,CAAwB,GAC1B","file":"index.mjs","sourcesContent":["/**\n * Network-related Constants\n *\n * Constants for network operations including IP addresses,\n * byte ranges, and process identifiers.\n *\n * @module network/constants\n */\n\n/**\n * Network and connection constants\n */\nexport const NETWORK_CONSTANTS = {\n /**\n * Minimum value for an IPv4 octet (excluding 0 for first octet)\n */\n IPV4_OCTET_MIN: 1,\n\n /**\n * Maximum value for an IPv4 octet\n */\n IPV4_OCTET_MAX: 255,\n\n /**\n * Number of octets in an IPv4 address\n */\n IPV4_OCTET_COUNT: 4,\n\n /**\n * Maximum value for a random byte (256 exclusive)\n */\n RANDOM_BYTE_MAX: 256,\n\n /**\n * Default maximum process ID for testing\n */\n DEFAULT_PROCESS_ID_MAX: 10000,\n} as const;\n\n/**\n * Type for network constant values\n */\nexport type NetworkConstant = (typeof NETWORK_CONSTANTS)[keyof typeof NETWORK_CONSTANTS];\n"]}
1
+ {"version":3,"sources":["../../src/network/constants.ts"],"names":["NETWORK_CONSTANTS","RTT_THRESHOLDS","SPEED_THRESHOLDS","NETWORK_SCORES","NETWORK_TIMEOUTS","CACHE_TTL","CACHE_STALE","DEDUPE_TIME","RETRY_ATTEMPTS","RETRY_DELAYS","RETRY_BACKOFF","BATCH_SIZES","PAGE_SIZES"],"mappings":";AAYO,IAAMA,CAAAA,CAAoB,CAI/B,cAAA,CAAgB,CAAA,CAKhB,cAAA,CAAgB,GAAA,CAKhB,gBAAA,CAAkB,CAAA,CAKlB,eAAA,CAAiB,GAAA,CAKjB,sBAAA,CAAwB,GAC1B,EAMaC,CAAAA,CAAiB,CAI5B,SAAA,CAAW,EAAA,CAKX,IAAA,CAAM,GAAA,CAKN,IAAA,CAAM,GACR,CAAA,CAMaC,CAAAA,CAAmB,CAI9B,SAAA,CAAW,EAAA,CAKX,IAAA,CAAM,CAAA,CAKN,IAAA,CAAM,EACR,CAAA,CAMaC,CAAAA,CAAiB,CAI5B,SAAA,CAAW,GAAA,CAKX,IAAA,CAAM,EAAA,CAKN,IAAA,CAAM,EAAA,CAKN,IAAA,CAAM,EAAA,CAKN,OAAA,CAAS,CACX,CAAA,CAMaC,CAAAA,CAAmB,CAI9B,KAAM,IAAA,CAKN,MAAA,CAAQ,GAAA,CAKR,IAAA,CAAM,GAAA,CAKN,SAAA,CAAW,GAAA,CAKX,OAAA,CAAS,GACX,CAAA,CAMaC,CAAAA,CAAY,CAIvB,KAAA,CAAO,GAAA,CAKP,MAAA,CAAQ,GAAA,CAKR,IAAA,CAAM,IACR,CAAA,CAMaC,CAAAA,CAAc,CAIzB,KAAA,CAAO,EAAA,CAKP,MAAA,CAAQ,GAAA,CAKR,IAAA,CAAM,GACR,CAAA,CAMaC,CAAAA,CAAc,CAIzB,UAAA,CAAY,GAAA,CAKZ,QAAA,CAAU,GAAA,CAKV,aAAc,GAChB,CAAA,CAMaC,CAAAA,CAAiB,CAI5B,GAAA,CAAK,CAAA,CAKL,QAAA,CAAU,CAAA,CAKV,KAAM,CACR,CAAA,CAMaC,CAAAA,CAAe,CAI1B,KAAA,CAAO,GAAA,CAKP,IAAA,CAAM,GAAA,CAKN,IAAK,GACP,CAAA,CAMaC,CAAAA,CAAgB,CAI3B,KAAA,CAAO,GAAA,CAKP,MAAA,CAAQ,CAAA,CAKR,KAAA,CAAO,GACT,CAAA,CAMaC,CAAAA,CAAc,CAIzB,IAAA,CAAM,EAAA,CAKN,KAAA,CAAO,GAKP,MAAA,CAAQ,EAAA,CAKR,KAAA,CAAO,CAAA,CAKP,IAAA,CAAM,CACR,CAAA,CAMaC,CAAAA,CAAa,CAIxB,IAAA,CAAM,GAAA,CAKN,KAAA,CAAO,EAAA,CAKP,MAAA,CAAQ,EAAA,CAKR,KAAA,CAAO,EAAA,CAKP,KAAM,CACR","file":"index.mjs","sourcesContent":["/**\n * Network-related Constants\n *\n * Constants for network operations including IP addresses,\n * byte ranges, and process identifiers.\n *\n * @module network/constants\n */\n\n/**\n * Network and connection constants\n */\nexport const NETWORK_CONSTANTS = {\n /**\n * Minimum value for an IPv4 octet (excluding 0 for first octet)\n */\n IPV4_OCTET_MIN: 1,\n\n /**\n * Maximum value for an IPv4 octet\n */\n IPV4_OCTET_MAX: 255,\n\n /**\n * Number of octets in an IPv4 address\n */\n IPV4_OCTET_COUNT: 4,\n\n /**\n * Maximum value for a random byte (256 exclusive)\n */\n RANDOM_BYTE_MAX: 256,\n\n /**\n * Default maximum process ID for testing\n */\n DEFAULT_PROCESS_ID_MAX: 10000,\n} as const;\n\n/**\n * Round-trip time (RTT) thresholds in milliseconds\n * Used to classify network latency quality\n */\nexport const RTT_THRESHOLDS = {\n /**\n * Excellent network latency - under 50ms\n */\n EXCELLENT: 50,\n\n /**\n * Good network latency - under 150ms\n */\n GOOD: 150,\n\n /**\n * Fair network latency - under 400ms\n */\n FAIR: 400,\n} as const;\n\n/**\n * Network speed thresholds in Mbps\n * Used to classify connection speed quality\n */\nexport const SPEED_THRESHOLDS = {\n /**\n * Excellent connection speed - 10+ Mbps\n */\n EXCELLENT: 10,\n\n /**\n * Good connection speed - 2+ Mbps\n */\n GOOD: 2,\n\n /**\n * Fair connection speed - 0.5+ Mbps\n */\n FAIR: 0.5,\n} as const;\n\n/**\n * Network quality scores (0-100 scale)\n * Used to quantify overall network performance\n */\nexport const NETWORK_SCORES = {\n /**\n * Excellent network quality score\n */\n EXCELLENT: 100,\n\n /**\n * Good network quality score\n */\n GOOD: 75,\n\n /**\n * Fair network quality score\n */\n FAIR: 50,\n\n /**\n * Poor network quality score\n */\n POOR: 25,\n\n /**\n * Offline - no network connection\n */\n OFFLINE: 0,\n} as const;\n\n/**\n * Network timeout constants in milliseconds\n * Used for request timeout configuration based on network quality\n */\nexport const NETWORK_TIMEOUTS = {\n /**\n * Fast network timeout - 15 seconds\n */\n FAST: 15000,\n\n /**\n * Medium network timeout - 30 seconds\n */\n MEDIUM: 30000,\n\n /**\n * Slow network timeout - 60 seconds\n */\n SLOW: 60000,\n\n /**\n * Very slow network timeout - 90 seconds\n */\n VERY_SLOW: 90000,\n\n /**\n * Offline timeout - 5 seconds (fail fast)\n */\n OFFLINE: 5000,\n} as const;\n\n/**\n * Cache TTL (Time-To-Live) constants in seconds\n * Used for cache expiration strategies\n */\nexport const CACHE_TTL = {\n /**\n * Short cache TTL - 5 minutes\n */\n SHORT: 300,\n\n /**\n * Medium cache TTL - 10 minutes\n */\n MEDIUM: 600,\n\n /**\n * Long cache TTL - 30 minutes\n */\n LONG: 1800,\n} as const;\n\n/**\n * Cache stale time constants in seconds\n * Used to determine when cached data is considered stale\n */\nexport const CACHE_STALE = {\n /**\n * Short stale time - 1 minute\n */\n SHORT: 60,\n\n /**\n * Medium stale time - 5 minutes\n */\n MEDIUM: 300,\n\n /**\n * Long stale time - 15 minutes\n */\n LONG: 900,\n} as const;\n\n/**\n * Request deduplication time constants in milliseconds\n * Used to prevent duplicate requests within time windows\n */\nexport const DEDUPE_TIME = {\n /**\n * Aggressive deduplication - 1 second\n */\n AGGRESSIVE: 1000,\n\n /**\n * Balanced deduplication - 2 seconds\n */\n BALANCED: 2000,\n\n /**\n * Conservative deduplication - 5 seconds\n */\n CONSERVATIVE: 5000,\n} as const;\n\n/**\n * Retry attempt constants\n * Number of retry attempts for failed requests\n */\nexport const RETRY_ATTEMPTS = {\n /**\n * Few retry attempts - 2\n */\n FEW: 2,\n\n /**\n * Standard retry attempts - 3\n */\n STANDARD: 3,\n\n /**\n * Many retry attempts - 5\n */\n MANY: 5,\n} as const;\n\n/**\n * Retry delay constants in milliseconds\n * Initial delays between retry attempts\n */\nexport const RETRY_DELAYS = {\n /**\n * Short retry delay - 1 second\n */\n SHORT: 1000,\n\n /**\n * Long retry delay - 2 seconds\n */\n LONG: 2000,\n\n /**\n * Maximum retry delay - 30 seconds\n */\n MAX: 30000,\n} as const;\n\n/**\n * Retry backoff multiplier constants\n * Exponential backoff multipliers for retry delays\n */\nexport const RETRY_BACKOFF = {\n /**\n * Small backoff multiplier - 1.5x\n */\n SMALL: 1.5,\n\n /**\n * Medium backoff multiplier - 2x\n */\n MEDIUM: 2,\n\n /**\n * Large backoff multiplier - 2.5x\n */\n LARGE: 2.5,\n} as const;\n\n/**\n * Batch size constants\n * Number of items to process in a single batch\n */\nexport const BATCH_SIZES = {\n /**\n * Huge batch size - 50 items\n */\n HUGE: 50,\n\n /**\n * Large batch size - 25 items\n */\n LARGE: 25,\n\n /**\n * Medium batch size - 10 items\n */\n MEDIUM: 10,\n\n /**\n * Small batch size - 5 items\n */\n SMALL: 5,\n\n /**\n * No batching - 0 items\n */\n NONE: 0,\n} as const;\n\n/**\n * Page size constants\n * Number of items per page for pagination\n */\nexport const PAGE_SIZES = {\n /**\n * Huge page size - 100 items\n */\n HUGE: 100,\n\n /**\n * Large page size - 50 items\n */\n LARGE: 50,\n\n /**\n * Medium page size - 25 items\n */\n MEDIUM: 25,\n\n /**\n * Small page size - 10 items\n */\n SMALL: 10,\n\n /**\n * No pagination - 0 items\n */\n NONE: 0,\n} as const;\n\n/**\n * Type for network constant values\n */\nexport type NetworkConstant = (typeof NETWORK_CONSTANTS)[keyof typeof NETWORK_CONSTANTS];\n\n/**\n * Type for RTT threshold values\n */\nexport type RTTThreshold = (typeof RTT_THRESHOLDS)[keyof typeof RTT_THRESHOLDS];\n\n/**\n * Type for speed threshold values\n */\nexport type SpeedThreshold = (typeof SPEED_THRESHOLDS)[keyof typeof SPEED_THRESHOLDS];\n\n/**\n * Type for network score values\n */\nexport type NetworkScore = (typeof NETWORK_SCORES)[keyof typeof NETWORK_SCORES];\n\n/**\n * Type for network timeout values\n */\nexport type NetworkTimeout = (typeof NETWORK_TIMEOUTS)[keyof typeof NETWORK_TIMEOUTS];\n\n/**\n * Type for cache TTL values\n */\nexport type CacheTTL = (typeof CACHE_TTL)[keyof typeof CACHE_TTL];\n\n/**\n * Type for cache stale values\n */\nexport type CacheStale = (typeof CACHE_STALE)[keyof typeof CACHE_STALE];\n\n/**\n * Type for dedupe time values\n */\nexport type DedupeTime = (typeof DEDUPE_TIME)[keyof typeof DEDUPE_TIME];\n\n/**\n * Type for retry attempt values\n */\nexport type RetryAttempt = (typeof RETRY_ATTEMPTS)[keyof typeof RETRY_ATTEMPTS];\n\n/**\n * Type for retry delay values\n */\nexport type RetryDelay = (typeof RETRY_DELAYS)[keyof typeof RETRY_DELAYS];\n\n/**\n * Type for retry backoff values\n */\nexport type RetryBackoff = (typeof RETRY_BACKOFF)[keyof typeof RETRY_BACKOFF];\n\n/**\n * Type for batch size values\n */\nexport type BatchSize = (typeof BATCH_SIZES)[keyof typeof BATCH_SIZES];\n\n/**\n * Type for page size values\n */\nexport type PageSize = (typeof PAGE_SIZES)[keyof typeof PAGE_SIZES];\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/config",
3
- "version": "1.5.5",
3
+ "version": "1.6.1",
4
4
  "author": "Redeemer Pace",
5
5
  "license": "ISC",
6
6
  "description": "Provides shared configs and constants for @playz ecosystem.",