umt 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/module/Advance/rangeAdvance.d.ts +10 -6
- package/module/Advance/rangeAdvance.js +10 -6
- package/module/Advance/rangeAdvance.js.map +1 -1
- package/module/Array/arraysJoin.d.ts +4 -4
- package/module/Array/arraysJoin.js +4 -4
- package/module/Array/binarySearch.d.ts +4 -3
- package/module/Array/binarySearch.js +4 -3
- package/module/Array/binarySearch.js.map +1 -1
- package/module/Array/checkFlagAlignment.d.ts +3 -3
- package/module/Array/checkFlagAlignment.js +7 -7
- package/module/Array/checkFlagAlignment.js.map +1 -1
- package/module/Array/chunk.d.ts +4 -4
- package/module/Array/compact.d.ts +8 -0
- package/module/Array/compact.js +8 -0
- package/module/Array/compact.js.map +1 -1
- package/module/Array/compareFunctionDefault.d.ts +13 -0
- package/module/Array/compareFunctionDefault.js +13 -0
- package/module/Array/compareFunctionDefault.js.map +1 -1
- package/module/Array/drop.d.ts +5 -5
- package/module/Array/drop.js +5 -5
- package/module/Array/dualPivotQuickSort.d.ts +16 -0
- package/module/Array/dualPivotQuickSort.js +152 -0
- package/module/Array/dualPivotQuickSort.js.map +1 -0
- package/module/Array/first.d.ts +3 -3
- package/module/Array/first.js +3 -3
- package/module/Array/generateNumberArray.d.ts +6 -6
- package/module/Array/generateNumberArray.js +6 -6
- package/module/Array/getArraysCommon.d.ts +4 -4
- package/module/Array/getArraysCommon.js +4 -4
- package/module/Array/getArraysDiff.d.ts +4 -4
- package/module/Array/getArraysDiff.js +4 -4
- package/module/Array/groupBy.d.ts +8 -4
- package/module/Array/groupBy.js +8 -4
- package/module/Array/groupBy.js.map +1 -1
- package/module/Array/index.d.ts +1 -0
- package/module/Array/index.js +1 -0
- package/module/Array/index.js.map +1 -1
- package/module/Array/insertionSort.d.ts +8 -7
- package/module/Array/insertionSort.js +6 -6
- package/module/Array/insertionSort.js.map +1 -1
- package/module/Array/mergeSort.d.ts +6 -5
- package/module/Array/mergeSort.js +9 -9
- package/module/Array/mergeSort.js.map +1 -1
- package/module/Array/quickSort.d.ts +12 -11
- package/module/Array/quickSort.js +44 -10
- package/module/Array/quickSort.js.map +1 -1
- package/module/Array/randomSelect.d.ts +5 -5
- package/module/Array/randomSelect.js +5 -5
- package/module/Array/range.d.ts +5 -5
- package/module/Array/range.js +26 -10
- package/module/Array/range.js.map +1 -1
- package/module/Array/shuffle.d.ts +3 -3
- package/module/Array/shuffle.js +3 -3
- package/module/Array/shuffle2DArray.d.ts +4 -4
- package/module/Array/shuffle2DArray.js +6 -6
- package/module/Array/shuffle2DArray.js.map +1 -1
- package/module/Array/sum.d.ts +3 -3
- package/module/Array/sum.js +4 -4
- package/module/Array/sum.js.map +1 -1
- package/module/Array/timSort.d.ts +13 -11
- package/module/Array/timSort.js +33 -9
- package/module/Array/timSort.js.map +1 -1
- package/module/Array/zip.d.ts +6 -3
- package/module/Array/zip.js +6 -3
- package/module/Array/zip.js.map +1 -1
- package/module/Array/zipLongest.d.ts +8 -5
- package/module/Array/zipLongest.js +8 -5
- package/module/Array/zipLongest.js.map +1 -1
- package/module/Color/cmykToRgba.d.ts +7 -7
- package/module/Color/cmykToRgba.js +12 -12
- package/module/Color/cmykToRgba.js.map +1 -1
- package/module/Color/hexaToRgba.d.ts +4 -3
- package/module/Color/hexaToRgba.js +18 -7
- package/module/Color/hexaToRgba.js.map +1 -1
- package/module/Color/hslaToRgba.d.ts +7 -6
- package/module/Color/hslaToRgba.js +19 -15
- package/module/Color/hslaToRgba.js.map +1 -1
- package/module/Color/rgbaToCmyk.d.ts +3 -3
- package/module/Color/rgbaToCmyk.js +14 -3
- package/module/Color/rgbaToCmyk.js.map +1 -1
- package/module/Color/rgbaToHexA.d.ts +4 -4
- package/module/Color/rgbaToHexA.js +5 -5
- package/module/Color/rgbaToHexA.js.map +1 -1
- package/module/Color/rgbaToHsla.d.ts +4 -3
- package/module/Color/rgbaToHsla.js +15 -3
- package/module/Color/rgbaToHsla.js.map +1 -1
- package/module/Consts/clock.d.ts +11 -11
- package/module/Consts/clock.js +11 -11
- package/module/Consts/httpStatus/httpClientErrorStatus.d.ts +28 -0
- package/module/Consts/httpStatus/httpClientErrorStatus.js +28 -0
- package/module/Consts/httpStatus/httpClientErrorStatus.js.map +1 -1
- package/module/Consts/httpStatus/httpInformationalStatus.d.ts +9 -0
- package/module/Consts/httpStatus/httpInformationalStatus.js +9 -0
- package/module/Consts/httpStatus/httpInformationalStatus.js.map +1 -1
- package/module/Consts/httpStatus/httpRedirectionStatus.d.ts +11 -0
- package/module/Consts/httpStatus/httpRedirectionStatus.js +11 -0
- package/module/Consts/httpStatus/httpRedirectionStatus.js.map +1 -1
- package/module/Consts/httpStatus/httpServerErrorStatus.d.ts +10 -0
- package/module/Consts/httpStatus/httpServerErrorStatus.js +10 -0
- package/module/Consts/httpStatus/httpServerErrorStatus.js.map +1 -1
- package/module/Consts/httpStatus/httpSuccessStatus.d.ts +11 -0
- package/module/Consts/httpStatus/httpSuccessStatus.js +11 -0
- package/module/Consts/httpStatus/httpSuccessStatus.js.map +1 -1
- package/module/Date/birthday.d.ts +7 -6
- package/module/Date/birthday.js +7 -6
- package/module/Date/birthday.js.map +1 -1
- package/module/Date/dateRange.d.ts +7 -4
- package/module/Date/dateRange.js +7 -4
- package/module/Date/dateRange.js.map +1 -1
- package/module/Date/dayOfWeek.d.ts +4 -4
- package/module/Date/dayOfWeek.js +4 -4
- package/module/Date/format.d.ts +30 -4
- package/module/Date/format.js +30 -4
- package/module/Date/format.js.map +1 -1
- package/module/Date/getDay.d.ts +8 -5
- package/module/Date/getDay.js +8 -5
- package/module/Date/getDay.js.map +1 -1
- package/module/Date/getTimezoneOffsetString.d.ts +3 -3
- package/module/Date/getTimezoneOffsetString.js +3 -3
- package/module/Date/isLeapYear.d.ts +8 -3
- package/module/Date/isLeapYear.js +8 -3
- package/module/Date/isLeapYear.js.map +1 -1
- package/module/Date/new.d.ts +20 -20
- package/module/Date/new.js +21 -21
- package/module/Date/new.js.map +1 -1
- package/module/Date/now.d.ts +7 -4
- package/module/Date/now.js +7 -4
- package/module/Date/now.js.map +1 -1
- package/module/Error/safeExecute.d.ts +21 -0
- package/module/Error/safeExecute.js +20 -0
- package/module/Error/safeExecute.js.map +1 -1
- package/module/IP/cidrToLong.d.ts +4 -3
- package/module/IP/cidrToLong.js +10 -4
- package/module/IP/cidrToLong.js.map +1 -1
- package/module/IP/cidrToSubnetMask.d.ts +4 -3
- package/module/IP/cidrToSubnetMask.js +4 -3
- package/module/IP/cidrToSubnetMask.js.map +1 -1
- package/module/IP/getIpClass.d.ts +3 -3
- package/module/IP/getIpClass.js +30 -18
- package/module/IP/getIpClass.js.map +1 -1
- package/module/IP/getNetworkAddress.d.ts +5 -4
- package/module/IP/getNetworkAddress.js +36 -6
- package/module/IP/getNetworkAddress.js.map +1 -1
- package/module/IP/ipToBinaryString.d.ts +4 -3
- package/module/IP/ipToBinaryString.js +32 -7
- package/module/IP/ipToBinaryString.js.map +1 -1
- package/module/IP/ipToLong.d.ts +4 -3
- package/module/IP/ipToLong.js +4 -3
- package/module/IP/ipToLong.js.map +1 -1
- package/module/IP/isInRange.d.ts +6 -5
- package/module/IP/isInRange.js +33 -7
- package/module/IP/isInRange.js.map +1 -1
- package/module/IP/isPrivateIp.d.ts +4 -3
- package/module/IP/isPrivateIp.js +17 -9
- package/module/IP/isPrivateIp.js.map +1 -1
- package/module/IP/longToIp.d.ts +4 -3
- package/module/IP/longToIp.js +16 -4
- package/module/IP/longToIp.js.map +1 -1
- package/module/IP/subnetMaskToCidr.d.ts +4 -3
- package/module/IP/subnetMaskToCidr.js +28 -12
- package/module/IP/subnetMaskToCidr.js.map +1 -1
- package/module/Math/addition.d.ts +3 -3
- package/module/Math/addition.js +3 -3
- package/module/Math/average.d.ts +7 -4
- package/module/Math/average.js +7 -4
- package/module/Math/average.js.map +1 -1
- package/module/Math/bitwise.d.ts +5 -5
- package/module/Math/bitwise.js +5 -5
- package/module/Math/calculator/calculator.d.ts +9 -7
- package/module/Math/calculator/calculator.js +9 -7
- package/module/Math/calculator/calculator.js.map +1 -1
- package/module/Math/calculator/calculatorInitialization.d.ts +4 -3
- package/module/Math/calculator/calculatorInitialization.js +6 -5
- package/module/Math/calculator/calculatorInitialization.js.map +1 -1
- package/module/Math/calculator/convertCurrency.d.ts +6 -4
- package/module/Math/calculator/convertCurrency.js +6 -4
- package/module/Math/calculator/convertCurrency.js.map +1 -1
- package/module/Math/calculator/core.js +13 -13
- package/module/Math/calculator/core.js.map +1 -1
- package/module/Math/calculator/literalExpression.d.ts +5 -3
- package/module/Math/calculator/literalExpression.js +12 -10
- package/module/Math/calculator/literalExpression.js.map +1 -1
- package/module/Math/degToRad.d.ts +3 -3
- package/module/Math/degToRad.js +3 -3
- package/module/Math/deviationValue.d.ts +5 -5
- package/module/Math/deviationValue.js +5 -5
- package/module/Math/division.d.ts +5 -5
- package/module/Math/division.js +31 -21
- package/module/Math/division.js.map +1 -1
- package/module/Math/factorial.d.ts +3 -3
- package/module/Math/factorial.js +3 -3
- package/module/Math/factorize.d.ts +3 -3
- package/module/Math/factorize.js +3 -3
- package/module/Math/flexibleNumberConversion.d.ts +11 -11
- package/module/Math/flexibleNumberConversion.js +19 -19
- package/module/Math/flexibleNumberConversion.js.map +1 -1
- package/module/Math/gcd.d.ts +5 -5
- package/module/Math/gcd.js +6 -6
- package/module/Math/gcd.js.map +1 -1
- package/module/Math/getDecimalLength.d.ts +7 -4
- package/module/Math/getDecimalLength.js +9 -5
- package/module/Math/getDecimalLength.js.map +1 -1
- package/module/Math/lcm.d.ts +4 -4
- package/module/Math/lcm.js +5 -5
- package/module/Math/lcm.js.map +1 -1
- package/module/Math/linearCongruentialGenerator.d.ts +6 -6
- package/module/Math/linearCongruentialGenerator.js +6 -6
- package/module/Math/mathConverter.d.ts +7 -3
- package/module/Math/mathConverter.js +7 -3
- package/module/Math/mathConverter.js.map +1 -1
- package/module/Math/mathSeparator.d.ts +8 -3
- package/module/Math/mathSeparator.js +8 -3
- package/module/Math/mathSeparator.js.map +1 -1
- package/module/Math/max.d.ts +4 -3
- package/module/Math/max.js +4 -3
- package/module/Math/max.js.map +1 -1
- package/module/Math/median.d.ts +3 -3
- package/module/Math/median.js +3 -3
- package/module/Math/min.d.ts +4 -3
- package/module/Math/min.js +4 -3
- package/module/Math/min.js.map +1 -1
- package/module/Math/multiples.d.ts +4 -4
- package/module/Math/multiples.js +4 -4
- package/module/Math/multiplication.d.ts +3 -3
- package/module/Math/multiplication.js +3 -3
- package/module/Math/nCr.d.ts +7 -4
- package/module/Math/nCr.js +7 -4
- package/module/Math/nCr.js.map +1 -1
- package/module/Math/nHr.d.ts +7 -4
- package/module/Math/nHr.js +7 -4
- package/module/Math/nHr.js.map +1 -1
- package/module/Math/nPr.d.ts +7 -4
- package/module/Math/nPr.js +7 -4
- package/module/Math/nPr.js.map +1 -1
- package/module/Math/primeFactorization.d.ts +6 -3
- package/module/Math/primeFactorization.js +11 -8
- package/module/Math/primeFactorization.js.map +1 -1
- package/module/Math/quotient.d.ts +7 -4
- package/module/Math/quotient.js +7 -4
- package/module/Math/quotient.js.map +1 -1
- package/module/Math/radToDeg.d.ts +5 -3
- package/module/Math/radToDeg.js +5 -3
- package/module/Math/radToDeg.js.map +1 -1
- package/module/Math/random.d.ts +6 -5
- package/module/Math/random.js +6 -5
- package/module/Math/random.js.map +1 -1
- package/module/Math/reduce.d.ts +9 -4
- package/module/Math/reduce.js +16 -6
- package/module/Math/reduce.js.map +1 -1
- package/module/Math/repeatedTrial.d.ts +5 -5
- package/module/Math/repeatedTrial.js +5 -5
- package/module/Math/roundOf.d.ts +7 -5
- package/module/Math/roundOf.js +8 -6
- package/module/Math/roundOf.js.map +1 -1
- package/module/Math/solveEquation.d.ts +12 -13
- package/module/Math/solveEquation.js +32 -37
- package/module/Math/solveEquation.js.map +1 -1
- package/module/Math/standardDeviation.d.ts +8 -3
- package/module/Math/standardDeviation.js +13 -7
- package/module/Math/standardDeviation.js.map +1 -1
- package/module/Math/subtract.d.ts +10 -4
- package/module/Math/subtract.js +12 -6
- package/module/Math/subtract.js.map +1 -1
- package/module/Math/toBaseN.d.ts +8 -6
- package/module/Math/toBaseN.js +9 -7
- package/module/Math/toBaseN.js.map +1 -1
- package/module/Math/toCelsius.d.ts +5 -3
- package/module/Math/toCelsius.js +5 -3
- package/module/Math/toCelsius.js.map +1 -1
- package/module/Math/toKelvin.d.ts +5 -3
- package/module/Math/toKelvin.js +5 -3
- package/module/Math/toKelvin.js.map +1 -1
- package/module/Math/uuidv7.d.ts +10 -2
- package/module/Math/uuidv7.js +10 -2
- package/module/Math/uuidv7.js.map +1 -1
- package/module/Math/valueSwap.d.ts +5 -4
- package/module/Math/valueSwap.js +5 -4
- package/module/Math/valueSwap.js.map +1 -1
- package/module/Math/xoshiro256.d.ts +8 -3
- package/module/Math/xoshiro256.js +8 -3
- package/module/Math/xoshiro256.js.map +1 -1
- package/module/Object/has.d.ts +4 -4
- package/module/Object/has.js +4 -4
- package/module/Object/keyBy.d.ts +3 -3
- package/module/Object/keyBy.js +4 -4
- package/module/Object/pick.d.ts +6 -6
- package/module/Object/pick.js +6 -6
- package/module/Object/pickDeep.d.ts +7 -7
- package/module/Object/pickDeep.js +7 -7
- package/module/Simple/Array/quickSortSimple.d.ts +9 -7
- package/module/Simple/Array/quickSortSimple.js +7 -6
- package/module/Simple/Array/quickSortSimple.js.map +1 -1
- package/module/Simple/Date/birthdaySimple.d.ts +4 -4
- package/module/Simple/Date/birthdaySimple.js +4 -4
- package/module/Simple/Date/dayOfWeekSimple.d.ts +4 -4
- package/module/Simple/Date/nowSimple.d.ts +3 -3
- package/module/Simple/Date/nowSimple.js +3 -3
- package/module/Simple/Math/deviationValueSimple.d.ts +10 -11
- package/module/Simple/Math/deviationValueSimple.js +14 -13
- package/module/Simple/Math/deviationValueSimple.js.map +1 -1
- package/module/String/deleteSpaces.d.ts +8 -4
- package/module/String/deleteSpaces.js +8 -4
- package/module/String/deleteSpaces.js.map +1 -1
- package/module/String/formatString.d.ts +8 -8
- package/module/String/formatString.js +7 -7
- package/module/String/formatString.js.map +1 -1
- package/module/String/fromBase64.d.ts +4 -3
- package/module/String/fromBase64.js +15 -9
- package/module/String/fromBase64.js.map +1 -1
- package/module/String/hasNoLetters.d.ts +9 -3
- package/module/String/hasNoLetters.js +12 -6
- package/module/String/hasNoLetters.js.map +1 -1
- package/module/String/padEnd.d.ts +5 -5
- package/module/String/padEnd.js +5 -5
- package/module/String/padStart.d.ts +11 -5
- package/module/String/padStart.js +17 -5
- package/module/String/padStart.js.map +1 -1
- package/module/String/randomString.d.ts +4 -4
- package/module/String/randomString.js +4 -4
- package/module/String/randomStringInitialization.d.ts +3 -3
- package/module/String/randomStringInitialization.js +3 -3
- package/module/String/reverseString.d.ts +3 -3
- package/module/String/reverseString.js +3 -3
- package/module/String/toBase64.d.ts +3 -3
- package/module/String/toBase64.js +3 -3
- package/module/String/toHalfWidth.d.ts +3 -3
- package/module/String/toHalfWidth.js +3 -3
- package/module/String/trimCharacters.d.ts +4 -4
- package/module/String/trimCharacters.js +4 -4
- package/module/String/trimEndCharacters.d.ts +10 -4
- package/module/String/trimEndCharacters.js +10 -4
- package/module/String/trimEndCharacters.js.map +1 -1
- package/module/String/trimStartCharacters.d.ts +10 -4
- package/module/String/trimStartCharacters.js +10 -4
- package/module/String/trimStartCharacters.js.map +1 -1
- package/module/Time/convertTime.d.ts +6 -6
- package/module/Time/convertTime.js +12 -11
- package/module/Time/convertTime.js.map +1 -1
- package/module/Tool/createPipeline.d.ts +8 -6
- package/module/Tool/createPipeline.js +6 -5
- package/module/Tool/createPipeline.js.map +1 -1
- package/module/Tool/parseJson.d.ts +7 -0
- package/module/Tool/parseJson.js +7 -0
- package/module/Tool/parseJson.js.map +1 -1
- package/module/UA/extractBrowserFromUserAgent.d.ts +12 -0
- package/module/UA/extractBrowserFromUserAgent.js +22 -5
- package/module/UA/extractBrowserFromUserAgent.js.map +1 -1
- package/module/UA/extractDeviceFromUserAgent.d.ts +12 -0
- package/module/UA/extractDeviceFromUserAgent.js +12 -0
- package/module/UA/extractDeviceFromUserAgent.js.map +1 -1
- package/module/UA/extractOsFromUserAgent.d.ts +12 -0
- package/module/UA/extractOsFromUserAgent.js +12 -0
- package/module/UA/extractOsFromUserAgent.js.map +1 -1
- package/module/UA/parseUserAgent.d.ts +16 -0
- package/module/UA/parseUserAgent.js +16 -0
- package/module/UA/parseUserAgent.js.map +1 -1
- package/module/Unit/index.d.ts +1 -0
- package/module/Unit/index.js +2 -0
- package/module/Unit/index.js.map +1 -0
- package/module/Unit/unitConverterInitialization.d.ts +16 -0
- package/module/Unit/unitConverterInitialization.js +19 -0
- package/module/Unit/unitConverterInitialization.js.map +1 -0
- package/module/Validate/array/core.d.ts +12 -0
- package/module/Validate/array/core.js +15 -3
- package/module/Validate/array/core.js.map +1 -1
- package/module/Validate/boolean/core.d.ts +9 -0
- package/module/Validate/boolean/core.js +9 -0
- package/module/Validate/boolean/core.js.map +1 -1
- package/module/Validate/core/index.d.ts +10 -0
- package/module/Validate/core/index.js +11 -1
- package/module/Validate/core/index.js.map +1 -1
- package/module/Validate/isArray.d.ts +3 -3
- package/module/Validate/isArray.js +3 -3
- package/module/Validate/isBrowser.d.ts +1 -1
- package/module/Validate/isBrowser.js +1 -1
- package/module/Validate/isBun.d.ts +1 -1
- package/module/Validate/isBun.js +1 -1
- package/module/Validate/isDictionaryObject.d.ts +3 -3
- package/module/Validate/isDictionaryObject.js +3 -3
- package/module/Validate/isDouble.d.ts +4 -4
- package/module/Validate/isDouble.js +4 -4
- package/module/Validate/isNode.d.ts +1 -1
- package/module/Validate/isNode.js +1 -1
- package/module/Validate/isNodeWebkit.d.ts +1 -1
- package/module/Validate/isNodeWebkit.js +1 -1
- package/module/Validate/isNotEmpty.d.ts +3 -3
- package/module/Validate/isNotEmpty.js +4 -4
- package/module/Validate/isNotEmpty.js.map +1 -1
- package/module/Validate/isNumber.d.ts +4 -4
- package/module/Validate/isNumber.js +10 -4
- package/module/Validate/isNumber.js.map +1 -1
- package/module/Validate/isPerfectSquare.d.ts +8 -3
- package/module/Validate/isPerfectSquare.js +8 -3
- package/module/Validate/isPerfectSquare.js.map +1 -1
- package/module/Validate/isPrimeNumber.d.ts +7 -3
- package/module/Validate/isPrimeNumber.js +8 -4
- package/module/Validate/isPrimeNumber.js.map +1 -1
- package/module/Validate/isValueNaN.d.ts +7 -5
- package/module/Validate/isValueNaN.js +7 -5
- package/module/Validate/isValueNaN.js.map +1 -1
- package/module/Validate/number/core.d.ts +11 -0
- package/module/Validate/number/core.js +11 -0
- package/module/Validate/number/core.js.map +1 -1
- package/module/Validate/number/double.d.ts +9 -0
- package/module/Validate/number/double.js +9 -0
- package/module/Validate/number/double.js.map +1 -1
- package/module/Validate/number/even.d.ts +9 -0
- package/module/Validate/number/even.js +9 -0
- package/module/Validate/number/even.js.map +1 -1
- package/module/Validate/number/maxValue.d.ts +10 -0
- package/module/Validate/number/maxValue.js +10 -0
- package/module/Validate/number/maxValue.js.map +1 -1
- package/module/Validate/number/minValue.d.ts +10 -0
- package/module/Validate/number/minValue.js +10 -0
- package/module/Validate/number/minValue.js.map +1 -1
- package/module/Validate/number/prime.d.ts +9 -0
- package/module/Validate/number/prime.js +9 -0
- package/module/Validate/number/prime.js.map +1 -1
- package/module/Validate/object/core.d.ts +11 -0
- package/module/Validate/object/core.js +11 -0
- package/module/Validate/object/core.js.map +1 -1
- package/module/Validate/string/core.d.ts +11 -0
- package/module/Validate/string/core.js +11 -0
- package/module/Validate/string/core.js.map +1 -1
- package/module/Validate/string/email.d.ts +9 -0
- package/module/Validate/string/email.js +10 -1
- package/module/Validate/string/email.js.map +1 -1
- package/module/Validate/string/length.d.ts +11 -0
- package/module/Validate/string/length.js +11 -0
- package/module/Validate/string/length.js.map +1 -1
- package/module/Validate/string/maxLength.d.ts +10 -0
- package/module/Validate/string/maxLength.js +10 -0
- package/module/Validate/string/maxLength.js.map +1 -1
- package/module/Validate/string/minLength.d.ts +10 -0
- package/module/Validate/string/minLength.js +10 -0
- package/module/Validate/string/minLength.js.map +1 -1
- package/module/Validate/string/numberString.d.ts +9 -0
- package/module/Validate/string/numberString.js +9 -0
- package/module/Validate/string/numberString.js.map +1 -1
- package/module/Validate/string/regexMatch.d.ts +10 -0
- package/module/Validate/string/regexMatch.js +10 -0
- package/module/Validate/string/regexMatch.js.map +1 -1
- package/module/Validate/string/uuid.d.ts +8 -3
- package/module/Validate/string/uuid.js +9 -4
- package/module/Validate/string/uuid.js.map +1 -1
- package/module/Validate/type.d.ts +22 -0
- package/module/es5/Advance/rangeAdvance.d.ts +10 -6
- package/module/es5/Advance/rangeAdvance.js +10 -6
- package/module/es5/Array/arraysJoin.d.ts +4 -4
- package/module/es5/Array/arraysJoin.js +4 -4
- package/module/es5/Array/binarySearch.d.ts +4 -3
- package/module/es5/Array/binarySearch.js +4 -3
- package/module/es5/Array/checkFlagAlignment.d.ts +3 -3
- package/module/es5/Array/checkFlagAlignment.js +7 -7
- package/module/es5/Array/chunk.d.ts +4 -4
- package/module/es5/Array/chunk.js +4 -4
- package/module/es5/Array/compact.d.ts +8 -0
- package/module/es5/Array/compact.js +8 -0
- package/module/es5/Array/compareFunctionDefault.d.ts +13 -0
- package/module/es5/Array/compareFunctionDefault.js +13 -0
- package/module/es5/Array/drop.d.ts +5 -5
- package/module/es5/Array/drop.js +5 -5
- package/module/es5/Array/dualPivotQuickSort.d.ts +16 -0
- package/module/es5/Array/dualPivotQuickSort.js +201 -0
- package/module/es5/Array/first.d.ts +3 -3
- package/module/es5/Array/first.js +3 -3
- package/module/es5/Array/generateNumberArray.d.ts +6 -6
- package/module/es5/Array/generateNumberArray.js +6 -6
- package/module/es5/Array/getArraysCommon.d.ts +4 -4
- package/module/es5/Array/getArraysCommon.js +4 -4
- package/module/es5/Array/getArraysDiff.d.ts +4 -4
- package/module/es5/Array/getArraysDiff.js +4 -4
- package/module/es5/Array/groupBy.d.ts +8 -4
- package/module/es5/Array/groupBy.js +8 -4
- package/module/es5/Array/index.d.ts +1 -0
- package/module/es5/Array/index.js +11 -0
- package/module/es5/Array/insertionSort.d.ts +8 -7
- package/module/es5/Array/insertionSort.js +6 -6
- package/module/es5/Array/mergeSort.d.ts +6 -5
- package/module/es5/Array/mergeSort.js +9 -9
- package/module/es5/Array/quickSort.d.ts +12 -11
- package/module/es5/Array/quickSort.js +47 -10
- package/module/es5/Array/randomSelect.d.ts +5 -5
- package/module/es5/Array/randomSelect.js +5 -5
- package/module/es5/Array/range.d.ts +5 -5
- package/module/es5/Array/range.js +28 -10
- package/module/es5/Array/shuffle.d.ts +3 -3
- package/module/es5/Array/shuffle.js +3 -3
- package/module/es5/Array/shuffle2DArray.d.ts +4 -4
- package/module/es5/Array/shuffle2DArray.js +6 -6
- package/module/es5/Array/sum.d.ts +3 -3
- package/module/es5/Array/sum.js +4 -4
- package/module/es5/Array/timSort.d.ts +13 -11
- package/module/es5/Array/timSort.js +36 -9
- package/module/es5/Array/zip.d.ts +6 -3
- package/module/es5/Array/zip.js +6 -3
- package/module/es5/Array/zipLongest.d.ts +8 -5
- package/module/es5/Array/zipLongest.js +8 -5
- package/module/es5/Color/cmykToRgba.d.ts +7 -7
- package/module/es5/Color/cmykToRgba.js +12 -12
- package/module/es5/Color/hexaToRgba.d.ts +4 -3
- package/module/es5/Color/hexaToRgba.js +18 -6
- package/module/es5/Color/hslaToRgba.d.ts +7 -6
- package/module/es5/Color/hslaToRgba.js +19 -13
- package/module/es5/Color/rgbaToCmyk.d.ts +3 -3
- package/module/es5/Color/rgbaToCmyk.js +7 -3
- package/module/es5/Color/rgbaToHexA.d.ts +4 -4
- package/module/es5/Color/rgbaToHexA.js +5 -5
- package/module/es5/Color/rgbaToHsla.d.ts +4 -3
- package/module/es5/Color/rgbaToHsla.js +8 -3
- package/module/es5/Consts/clock.d.ts +11 -11
- package/module/es5/Consts/clock.js +11 -11
- package/module/es5/Consts/httpStatus/httpClientErrorStatus.d.ts +28 -0
- package/module/es5/Consts/httpStatus/httpClientErrorStatus.js +28 -0
- package/module/es5/Consts/httpStatus/httpInformationalStatus.d.ts +9 -0
- package/module/es5/Consts/httpStatus/httpInformationalStatus.js +9 -0
- package/module/es5/Consts/httpStatus/httpRedirectionStatus.d.ts +11 -0
- package/module/es5/Consts/httpStatus/httpRedirectionStatus.js +11 -0
- package/module/es5/Consts/httpStatus/httpServerErrorStatus.d.ts +10 -0
- package/module/es5/Consts/httpStatus/httpServerErrorStatus.js +10 -0
- package/module/es5/Consts/httpStatus/httpSuccessStatus.d.ts +11 -0
- package/module/es5/Consts/httpStatus/httpSuccessStatus.js +11 -0
- package/module/es5/Date/birthday.d.ts +7 -6
- package/module/es5/Date/birthday.js +7 -6
- package/module/es5/Date/dateRange.d.ts +7 -4
- package/module/es5/Date/dateRange.js +7 -4
- package/module/es5/Date/dayOfWeek.d.ts +4 -4
- package/module/es5/Date/dayOfWeek.js +4 -4
- package/module/es5/Date/format.d.ts +30 -4
- package/module/es5/Date/format.js +30 -4
- package/module/es5/Date/getDay.d.ts +8 -5
- package/module/es5/Date/getDay.js +8 -5
- package/module/es5/Date/getTimezoneOffsetString.d.ts +3 -3
- package/module/es5/Date/getTimezoneOffsetString.js +3 -3
- package/module/es5/Date/isLeapYear.d.ts +8 -3
- package/module/es5/Date/isLeapYear.js +8 -3
- package/module/es5/Date/new.d.ts +20 -20
- package/module/es5/Date/new.js +21 -21
- package/module/es5/Date/now.d.ts +7 -4
- package/module/es5/Date/now.js +7 -4
- package/module/es5/Error/safeExecute.d.ts +21 -0
- package/module/es5/Error/safeExecute.js +36 -0
- package/module/es5/IP/cidrToLong.d.ts +4 -3
- package/module/es5/IP/cidrToLong.js +7 -3
- package/module/es5/IP/cidrToSubnetMask.d.ts +4 -3
- package/module/es5/IP/cidrToSubnetMask.js +4 -3
- package/module/es5/IP/getIpClass.d.ts +3 -3
- package/module/es5/IP/getIpClass.js +44 -18
- package/module/es5/IP/getNetworkAddress.d.ts +5 -4
- package/module/es5/IP/getNetworkAddress.js +35 -6
- package/module/es5/IP/ipToBinaryString.d.ts +4 -3
- package/module/es5/IP/ipToBinaryString.js +44 -5
- package/module/es5/IP/ipToLong.d.ts +4 -3
- package/module/es5/IP/ipToLong.js +4 -3
- package/module/es5/IP/isInRange.d.ts +6 -5
- package/module/es5/IP/isInRange.js +34 -7
- package/module/es5/IP/isPrivateIp.d.ts +4 -3
- package/module/es5/IP/isPrivateIp.js +30 -17
- package/module/es5/IP/longToIp.d.ts +4 -3
- package/module/es5/IP/longToIp.js +17 -5
- package/module/es5/IP/subnetMaskToCidr.d.ts +4 -3
- package/module/es5/IP/subnetMaskToCidr.js +33 -12
- package/module/es5/Math/addition.d.ts +3 -3
- package/module/es5/Math/addition.js +3 -3
- package/module/es5/Math/average.d.ts +7 -4
- package/module/es5/Math/average.js +7 -4
- package/module/es5/Math/bitwise.d.ts +5 -5
- package/module/es5/Math/bitwise.js +5 -5
- package/module/es5/Math/calculator/calculator.d.ts +9 -7
- package/module/es5/Math/calculator/calculator.js +9 -7
- package/module/es5/Math/calculator/calculatorInitialization.d.ts +4 -3
- package/module/es5/Math/calculator/calculatorInitialization.js +6 -5
- package/module/es5/Math/calculator/convertCurrency.d.ts +6 -4
- package/module/es5/Math/calculator/convertCurrency.js +6 -4
- package/module/es5/Math/calculator/core.js +13 -13
- package/module/es5/Math/calculator/literalExpression.d.ts +5 -3
- package/module/es5/Math/calculator/literalExpression.js +12 -10
- package/module/es5/Math/degToRad.d.ts +3 -3
- package/module/es5/Math/degToRad.js +3 -3
- package/module/es5/Math/deviationValue.d.ts +5 -5
- package/module/es5/Math/deviationValue.js +5 -5
- package/module/es5/Math/division.d.ts +5 -5
- package/module/es5/Math/division.js +35 -21
- package/module/es5/Math/factorial.d.ts +3 -3
- package/module/es5/Math/factorial.js +3 -3
- package/module/es5/Math/factorize.d.ts +3 -3
- package/module/es5/Math/factorize.js +3 -3
- package/module/es5/Math/flexibleNumberConversion.d.ts +11 -11
- package/module/es5/Math/flexibleNumberConversion.js +19 -19
- package/module/es5/Math/gcd.d.ts +5 -5
- package/module/es5/Math/gcd.js +6 -6
- package/module/es5/Math/getDecimalLength.d.ts +7 -4
- package/module/es5/Math/getDecimalLength.js +9 -5
- package/module/es5/Math/lcm.d.ts +4 -4
- package/module/es5/Math/lcm.js +5 -5
- package/module/es5/Math/linearCongruentialGenerator.d.ts +6 -6
- package/module/es5/Math/linearCongruentialGenerator.js +6 -6
- package/module/es5/Math/mathConverter.d.ts +7 -3
- package/module/es5/Math/mathConverter.js +7 -3
- package/module/es5/Math/mathSeparator.d.ts +8 -3
- package/module/es5/Math/mathSeparator.js +8 -3
- package/module/es5/Math/max.d.ts +4 -3
- package/module/es5/Math/max.js +4 -3
- package/module/es5/Math/median.d.ts +3 -3
- package/module/es5/Math/median.js +3 -3
- package/module/es5/Math/min.d.ts +4 -3
- package/module/es5/Math/min.js +4 -3
- package/module/es5/Math/multiples.d.ts +4 -4
- package/module/es5/Math/multiples.js +4 -4
- package/module/es5/Math/multiplication.d.ts +3 -3
- package/module/es5/Math/multiplication.js +3 -3
- package/module/es5/Math/nCr.d.ts +7 -4
- package/module/es5/Math/nCr.js +7 -4
- package/module/es5/Math/nHr.d.ts +7 -4
- package/module/es5/Math/nHr.js +7 -4
- package/module/es5/Math/nPr.d.ts +7 -4
- package/module/es5/Math/nPr.js +7 -4
- package/module/es5/Math/primeFactorization.d.ts +6 -3
- package/module/es5/Math/primeFactorization.js +11 -8
- package/module/es5/Math/quotient.d.ts +7 -4
- package/module/es5/Math/quotient.js +7 -4
- package/module/es5/Math/radToDeg.d.ts +5 -3
- package/module/es5/Math/radToDeg.js +5 -3
- package/module/es5/Math/random.d.ts +6 -5
- package/module/es5/Math/random.js +6 -5
- package/module/es5/Math/reduce.d.ts +9 -4
- package/module/es5/Math/reduce.js +14 -8
- package/module/es5/Math/repeatedTrial.d.ts +5 -5
- package/module/es5/Math/repeatedTrial.js +5 -5
- package/module/es5/Math/roundOf.d.ts +7 -5
- package/module/es5/Math/roundOf.js +8 -6
- package/module/es5/Math/solveEquation.d.ts +12 -13
- package/module/es5/Math/solveEquation.js +34 -38
- package/module/es5/Math/standardDeviation.d.ts +8 -3
- package/module/es5/Math/standardDeviation.js +16 -7
- package/module/es5/Math/subtract.d.ts +10 -4
- package/module/es5/Math/subtract.js +12 -6
- package/module/es5/Math/toBaseN.d.ts +8 -6
- package/module/es5/Math/toBaseN.js +9 -7
- package/module/es5/Math/toCelsius.d.ts +5 -3
- package/module/es5/Math/toCelsius.js +5 -3
- package/module/es5/Math/toKelvin.d.ts +5 -3
- package/module/es5/Math/toKelvin.js +5 -3
- package/module/es5/Math/uuidv7.d.ts +10 -2
- package/module/es5/Math/uuidv7.js +10 -2
- package/module/es5/Math/valueSwap.d.ts +5 -4
- package/module/es5/Math/valueSwap.js +5 -4
- package/module/es5/Math/xoshiro256.d.ts +8 -3
- package/module/es5/Math/xoshiro256.js +8 -3
- package/module/es5/Object/has.d.ts +4 -4
- package/module/es5/Object/has.js +4 -4
- package/module/es5/Object/keyBy.d.ts +3 -3
- package/module/es5/Object/keyBy.js +4 -4
- package/module/es5/Object/pick.d.ts +6 -6
- package/module/es5/Object/pick.js +6 -6
- package/module/es5/Object/pickDeep.d.ts +7 -7
- package/module/es5/Object/pickDeep.js +7 -7
- package/module/es5/Simple/Array/quickSortSimple.d.ts +9 -7
- package/module/es5/Simple/Array/quickSortSimple.js +7 -6
- package/module/es5/Simple/Date/birthdaySimple.d.ts +4 -4
- package/module/es5/Simple/Date/birthdaySimple.js +4 -4
- package/module/es5/Simple/Date/dayOfWeekSimple.d.ts +4 -4
- package/module/es5/Simple/Date/dayOfWeekSimple.js +4 -4
- package/module/es5/Simple/Date/nowSimple.d.ts +3 -3
- package/module/es5/Simple/Date/nowSimple.js +3 -3
- package/module/es5/Simple/Math/deviationValueSimple.d.ts +10 -11
- package/module/es5/Simple/Math/deviationValueSimple.js +23 -12
- package/module/es5/String/deleteSpaces.d.ts +8 -4
- package/module/es5/String/deleteSpaces.js +8 -4
- package/module/es5/String/formatString.d.ts +8 -8
- package/module/es5/String/formatString.js +7 -7
- package/module/es5/String/fromBase64.d.ts +4 -3
- package/module/es5/String/fromBase64.js +14 -9
- package/module/es5/String/hasNoLetters.d.ts +9 -3
- package/module/es5/String/hasNoLetters.js +12 -6
- package/module/es5/String/padEnd.d.ts +5 -5
- package/module/es5/String/padEnd.js +5 -5
- package/module/es5/String/padStart.d.ts +11 -5
- package/module/es5/String/padStart.js +20 -5
- package/module/es5/String/randomString.d.ts +4 -4
- package/module/es5/String/randomString.js +4 -4
- package/module/es5/String/randomStringInitialization.d.ts +3 -3
- package/module/es5/String/randomStringInitialization.js +3 -3
- package/module/es5/String/reverseString.d.ts +3 -3
- package/module/es5/String/reverseString.js +3 -3
- package/module/es5/String/toBase64.d.ts +3 -3
- package/module/es5/String/toBase64.js +3 -3
- package/module/es5/String/toHalfWidth.d.ts +3 -3
- package/module/es5/String/toHalfWidth.js +3 -3
- package/module/es5/String/trimCharacters.d.ts +4 -4
- package/module/es5/String/trimCharacters.js +4 -4
- package/module/es5/String/trimEndCharacters.d.ts +10 -4
- package/module/es5/String/trimEndCharacters.js +10 -4
- package/module/es5/String/trimStartCharacters.d.ts +10 -4
- package/module/es5/String/trimStartCharacters.js +10 -4
- package/module/es5/Time/convertTime.d.ts +6 -6
- package/module/es5/Time/convertTime.js +12 -11
- package/module/es5/Tool/createPipeline.d.ts +8 -6
- package/module/es5/Tool/createPipeline.js +10 -8
- package/module/es5/Tool/parseJson.d.ts +7 -0
- package/module/es5/Tool/parseJson.js +7 -0
- package/module/es5/UA/extractBrowserFromUserAgent.d.ts +12 -0
- package/module/es5/UA/extractBrowserFromUserAgent.js +22 -5
- package/module/es5/UA/extractDeviceFromUserAgent.d.ts +12 -0
- package/module/es5/UA/extractDeviceFromUserAgent.js +12 -0
- package/module/es5/UA/extractOsFromUserAgent.d.ts +12 -0
- package/module/es5/UA/extractOsFromUserAgent.js +12 -0
- package/module/es5/UA/parseUserAgent.d.ts +16 -0
- package/module/es5/UA/parseUserAgent.js +16 -0
- package/module/es5/Unit/index.d.ts +1 -0
- package/module/es5/Unit/index.js +16 -0
- package/module/es5/Unit/unitConverterInitialization.d.ts +16 -0
- package/module/es5/Unit/unitConverterInitialization.js +28 -0
- package/module/es5/Validate/array/core.d.ts +12 -0
- package/module/es5/Validate/array/core.js +15 -4
- package/module/es5/Validate/boolean/core.d.ts +9 -0
- package/module/es5/Validate/boolean/core.js +10 -0
- package/module/es5/Validate/core/index.d.ts +10 -0
- package/module/es5/Validate/core/index.js +13 -1
- package/module/es5/Validate/isArray.d.ts +3 -3
- package/module/es5/Validate/isArray.js +3 -3
- package/module/es5/Validate/isBrowser.d.ts +1 -1
- package/module/es5/Validate/isBrowser.js +1 -1
- package/module/es5/Validate/isBun.d.ts +1 -1
- package/module/es5/Validate/isBun.js +1 -1
- package/module/es5/Validate/isDictionaryObject.d.ts +3 -3
- package/module/es5/Validate/isDictionaryObject.js +3 -3
- package/module/es5/Validate/isDouble.d.ts +4 -4
- package/module/es5/Validate/isDouble.js +4 -4
- package/module/es5/Validate/isNode.d.ts +1 -1
- package/module/es5/Validate/isNode.js +1 -1
- package/module/es5/Validate/isNodeWebkit.d.ts +1 -1
- package/module/es5/Validate/isNodeWebkit.js +1 -1
- package/module/es5/Validate/isNotEmpty.d.ts +3 -3
- package/module/es5/Validate/isNotEmpty.js +4 -4
- package/module/es5/Validate/isNumber.d.ts +4 -4
- package/module/es5/Validate/isNumber.js +11 -4
- package/module/es5/Validate/isPerfectSquare.d.ts +8 -3
- package/module/es5/Validate/isPerfectSquare.js +8 -3
- package/module/es5/Validate/isPrimeNumber.d.ts +7 -3
- package/module/es5/Validate/isPrimeNumber.js +8 -4
- package/module/es5/Validate/isValueNaN.d.ts +7 -5
- package/module/es5/Validate/isValueNaN.js +7 -5
- package/module/es5/Validate/number/core.d.ts +11 -0
- package/module/es5/Validate/number/core.js +12 -0
- package/module/es5/Validate/number/double.d.ts +9 -0
- package/module/es5/Validate/number/double.js +10 -0
- package/module/es5/Validate/number/even.d.ts +9 -0
- package/module/es5/Validate/number/even.js +10 -0
- package/module/es5/Validate/number/maxValue.d.ts +10 -0
- package/module/es5/Validate/number/maxValue.js +11 -0
- package/module/es5/Validate/number/minValue.d.ts +10 -0
- package/module/es5/Validate/number/minValue.js +11 -0
- package/module/es5/Validate/number/prime.d.ts +9 -0
- package/module/es5/Validate/number/prime.js +10 -0
- package/module/es5/Validate/object/core.d.ts +11 -0
- package/module/es5/Validate/object/core.js +12 -0
- package/module/es5/Validate/string/core.d.ts +11 -0
- package/module/es5/Validate/string/core.js +12 -0
- package/module/es5/Validate/string/email.d.ts +9 -0
- package/module/es5/Validate/string/email.js +11 -1
- package/module/es5/Validate/string/length.d.ts +11 -0
- package/module/es5/Validate/string/length.js +12 -0
- package/module/es5/Validate/string/maxLength.d.ts +10 -0
- package/module/es5/Validate/string/maxLength.js +11 -0
- package/module/es5/Validate/string/minLength.d.ts +10 -0
- package/module/es5/Validate/string/minLength.js +11 -0
- package/module/es5/Validate/string/numberString.d.ts +9 -0
- package/module/es5/Validate/string/numberString.js +10 -0
- package/module/es5/Validate/string/regexMatch.d.ts +10 -0
- package/module/es5/Validate/string/regexMatch.js +11 -0
- package/module/es5/Validate/string/uuid.d.ts +8 -3
- package/module/es5/Validate/string/uuid.js +10 -4
- package/module/es5/Validate/type.d.ts +22 -0
- package/module/es5/index.d.ts +1 -0
- package/module/es5/index.js +11 -0
- package/module/es5/tests/integration/Array/drop-and-first.test.js +20 -0
- package/module/es5/tests/integration/Tool/parseJson-and-Validate.test.js +68 -14
- package/module/es5/tests/unit/Array/arraysJoin.test.js +15 -3
- package/module/es5/tests/unit/Array/checkFlagAlignment.test.js +10 -10
- package/module/es5/tests/unit/Array/compact.test.js +17 -17
- package/module/es5/tests/unit/Array/compareFunctionDefault.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/compareFunctionDefault.test.js +29 -0
- package/module/es5/tests/unit/Array/drop.test.js +10 -10
- package/module/es5/tests/unit/Array/dualPivotQuickSort.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/dualPivotQuickSort.test.js +87 -0
- package/module/es5/tests/unit/Array/generateNumberArray.test.js +6 -6
- package/module/es5/tests/unit/Array/getArraysCommon.test.js +36 -4
- package/module/es5/tests/unit/Array/getArraysDiff.test.js +14 -14
- package/module/es5/tests/unit/Array/groupBy.test.js +6 -6
- package/module/es5/tests/unit/Array/insertionSort.test.js +8 -8
- package/module/es5/tests/unit/Array/mergeSort.test.js +34 -5
- package/module/es5/tests/unit/Array/quickSort.test.js +76 -11
- package/module/es5/tests/unit/Array/randomSelect.test.js +11 -6
- package/module/es5/tests/unit/Array/range.test.js +25 -4
- package/module/es5/tests/unit/Array/shuffle.test.js +53 -6
- package/module/es5/tests/unit/Array/shuffle2DArray.test.js +51 -8
- package/module/es5/tests/unit/Array/sum.test.js +40 -2
- package/module/es5/tests/unit/Array/timSort.test.js +89 -9
- package/module/es5/tests/unit/Array/zip.test.js +48 -9
- package/module/es5/tests/unit/Array/zipLongest.test.js +52 -9
- package/module/es5/tests/unit/Color/cmykToRgba.test.js +3 -3
- package/module/es5/tests/unit/Color/hexaToRgba.test.js +53 -1
- package/module/es5/tests/unit/Color/hslaToRgba.test.js +35 -53
- package/module/es5/tests/unit/Color/rgbaToCmyk.test.js +67 -1
- package/module/es5/tests/unit/Color/rgbaToHsla.test.js +91 -1
- package/module/es5/tests/unit/Consts/clock.test.js +51 -18
- package/module/es5/tests/unit/Consts/httpStatus.test.js +9 -0
- package/module/es5/tests/unit/Date/birthday.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/birthday.test.js +31 -0
- package/module/es5/tests/unit/Date/dateRange.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/dateRange.test.js +40 -0
- package/module/es5/tests/unit/Date/dayOfWeek.test.js +5 -5
- package/module/es5/tests/unit/Date/format.test.js +22 -0
- package/module/es5/tests/unit/Date/getDay.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/getDay.test.js +40 -0
- package/module/es5/tests/unit/Date/getTimezoneOffsetString.test.js +3 -3
- package/module/es5/tests/unit/Date/isLeapYear.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/isLeapYear.test.js +30 -0
- package/module/es5/tests/unit/Date/new.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/new.test.js +39 -0
- package/module/es5/tests/unit/Date/now.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/now.test.js +42 -0
- package/module/es5/tests/unit/Error/safeExecute.test.js +69 -15
- package/module/es5/tests/unit/IP/cidrToLong.test.js +27 -5
- package/module/es5/tests/unit/IP/cidrToSubnetMask.test.js +29 -10
- package/module/es5/tests/unit/IP/getIpClass.test.js +29 -18
- package/module/es5/tests/unit/IP/getNetworkAddress.test.js +35 -14
- package/module/es5/tests/unit/IP/ipToBinaryString.test.js +38 -9
- package/module/es5/tests/unit/IP/ipToLong.test.js +27 -13
- package/module/es5/tests/unit/IP/isInRange.test.js +75 -4
- package/module/es5/tests/unit/IP/isPrivateIp.test.js +18 -12
- package/module/es5/tests/unit/IP/longToIp.test.d.ts +1 -0
- package/module/es5/tests/unit/IP/longToIp.test.js +39 -0
- package/module/es5/tests/unit/IP/subnetMaskToCidr.test.js +34 -20
- package/module/es5/tests/unit/Math/average.test.js +40 -18
- package/module/es5/tests/unit/Math/bitwise.test.js +14 -14
- package/module/es5/tests/unit/Math/calculator/calculator.test.js +9 -9
- package/module/es5/tests/unit/Math/calculator/calculatorInitialization.test.js +16 -5
- package/module/es5/tests/unit/Math/calculator/convertCurrency.test.js +12 -12
- package/module/es5/tests/unit/Math/calculator/literalExpression.test.js +8 -8
- package/module/es5/tests/unit/Math/degToRad.test.js +10 -10
- package/module/es5/tests/unit/Math/deviationValue.test.js +12 -12
- package/module/es5/tests/unit/Math/division.test.js +72 -25
- package/module/es5/tests/unit/Math/factorial.test.js +4 -4
- package/module/es5/tests/unit/Math/factorize.test.js +34 -9
- package/module/es5/tests/unit/Math/flexibleNumberConversion.test.js +75 -75
- package/module/es5/tests/unit/Math/gcd.test.js +5 -5
- package/module/es5/tests/unit/Math/getDecimalLength.test.js +40 -4
- package/module/es5/tests/unit/Math/lcm.test.js +16 -9
- package/module/es5/tests/unit/Math/linearCongruentialGenerator.test.js +4 -4
- package/module/es5/tests/unit/Math/mathConverter.test.js +13 -13
- package/module/es5/tests/unit/Math/mathSeparator.test.js +23 -5
- package/module/es5/tests/unit/Math/max.test.js +18 -3
- package/module/es5/tests/unit/Math/median.test.js +4 -4
- package/module/es5/tests/unit/Math/min.test.js +18 -3
- package/module/es5/tests/unit/Math/multiples.test.js +26 -10
- package/module/es5/tests/unit/Math/multiplication.test.js +43 -9
- package/module/es5/tests/unit/Math/nCr.test.js +27 -14
- package/module/es5/tests/unit/Math/nHr.test.js +28 -15
- package/module/es5/tests/unit/Math/nPr.test.js +31 -14
- package/module/es5/tests/unit/Math/primeFactorization.test.js +79 -8
- package/module/es5/tests/unit/Math/quotient.test.js +32 -10
- package/module/es5/tests/unit/Math/radToDeg.test.js +39 -38
- package/module/es5/tests/unit/Math/random.test.js +55 -17
- package/module/es5/tests/unit/Math/reduce.test.js +87 -8
- package/module/es5/tests/unit/Math/repeatedTrial.test.js +35 -5
- package/module/es5/tests/unit/Math/roundOf.test.js +36 -11
- package/module/es5/tests/unit/Math/solveEquation.test.js +20 -20
- package/module/es5/tests/unit/Math/standardDeviation.test.js +19 -2
- package/module/es5/tests/unit/Math/subtract.test.js +14 -2
- package/module/es5/tests/unit/Math/toBaseN.test.js +36 -19
- package/module/es5/tests/unit/Math/toCelsius.test.js +14 -2
- package/module/es5/tests/unit/Math/toKelvin.test.js +14 -2
- package/module/es5/tests/unit/Math/uuidv7.test.js +6 -6
- package/module/es5/tests/unit/Math/valueSwap.test.js +24 -6
- package/module/es5/tests/unit/Math/xoshiro256.test.js +22 -11
- package/module/es5/tests/unit/Object/keyBy.test.js +6 -6
- package/module/es5/tests/unit/Object/pick.test.js +11 -11
- package/module/es5/tests/unit/Object/pickDeep.test.js +15 -15
- package/module/es5/tests/unit/Simple/Array/quickSortSimple.test.js +4 -4
- package/module/es5/tests/unit/Simple/Math/deviationValueSimple.test.js +39 -3
- package/module/es5/tests/unit/String/deleteSpaces.test.d.ts +1 -0
- package/module/es5/tests/unit/String/deleteSpaces.test.js +22 -0
- package/module/es5/tests/unit/String/formatString.test.js +41 -14
- package/module/es5/tests/unit/String/fromBase64.test.js +19 -8
- package/module/es5/tests/unit/String/hasNoLetters.test.js +20 -24
- package/module/es5/tests/unit/String/padEnd.test.js +5 -5
- package/module/es5/tests/unit/String/padStart.test.js +32 -19
- package/module/es5/tests/unit/String/randomString.test.js +3 -3
- package/module/es5/tests/unit/String/randomStringInitialization.test.js +2 -2
- package/module/es5/tests/unit/String/reverseString.test.js +10 -12
- package/module/es5/tests/unit/String/toBase64.test.js +5 -5
- package/module/es5/tests/unit/String/toHalfWidth.test.js +3 -3
- package/module/es5/tests/unit/String/trimCharacters.test.js +4 -4
- package/module/es5/tests/unit/String/trimEndCharacters.test.js +17 -7
- package/module/es5/tests/unit/String/trimStartCharacters.test.js +23 -10
- package/module/es5/tests/unit/Time/convertTime.test.js +40 -46
- package/module/es5/tests/unit/Tool/createPipeline.test.js +15 -15
- package/module/es5/tests/unit/UA/extractBrowserFromUserAgent.test.d.ts +1 -0
- package/module/es5/tests/unit/UA/extractBrowserFromUserAgent.test.js +47 -0
- package/module/es5/tests/unit/UA/extractDeviceFromUserAgent.test.d.ts +1 -0
- package/module/es5/tests/unit/UA/extractDeviceFromUserAgent.test.js +55 -0
- package/module/es5/tests/unit/UA/extractOsFromUserAgent.test.d.ts +1 -0
- package/module/es5/tests/unit/UA/extractOsFromUserAgent.test.js +57 -0
- package/module/es5/tests/unit/Unit/unitConverterInitialization.test.d.ts +1 -0
- package/module/es5/tests/unit/Unit/unitConverterInitialization.test.js +40 -0
- package/module/es5/tests/unit/Validate/array/core.test.js +39 -10
- package/module/es5/tests/unit/Validate/core/core.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/core/core.test.js +87 -0
- package/module/es5/tests/unit/Validate/isArray.test.js +11 -0
- package/module/es5/tests/unit/Validate/isDictionaryObject.test.js +15 -1
- package/module/es5/tests/unit/Validate/isDouble.test.js +21 -4
- package/module/es5/tests/unit/Validate/isNotEmpty.test.js +3 -3
- package/module/es5/tests/unit/Validate/isNumber.test.js +67 -29
- package/module/es5/tests/unit/Validate/isPerfectSquare.test.js +5 -0
- package/module/es5/tests/unit/Validate/isPrimeNumber.test.js +14 -4
- package/module/es5/tests/unit/Validate/isValueNaN.test.js +50 -11
- package/module/es5/tests/unit/Validate/string/uuid.test.js +13 -13
- package/module/es5/tsconfig.tsbuildinfo +1 -1
- package/module/es5/types/array/compareFunction.d.ts +2 -0
- package/module/es5/types/array/compareFunction.js +5 -0
- package/module/es5/types/time/timeUnit.d.ts +1 -1
- package/module/index.d.ts +1 -0
- package/module/index.js +1 -0
- package/module/index.js.map +1 -1
- package/module/types/array/compareFunction.d.ts +2 -0
- package/module/types/array/compareFunction.js +2 -0
- package/module/types/array/compareFunction.js.map +1 -0
- package/module/types/time/timeUnit.d.ts +1 -1
- package/package.json +14 -14
|
@@ -12,23 +12,29 @@ var _multiplication = require("@/Math/multiplication");
|
|
|
12
12
|
var _roundOf = require("@/Math/roundOf");
|
|
13
13
|
var _subtract = require("@/Math/subtract");
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @param h
|
|
17
|
-
* @param s
|
|
18
|
-
* @param l
|
|
19
|
-
* @param a
|
|
20
|
-
* @returns { r
|
|
15
|
+
* Convert HSLA color values to RGBA color space
|
|
16
|
+
* @param h Hue angle in degrees (0-360)
|
|
17
|
+
* @param s Saturation percentage (0-100)
|
|
18
|
+
* @param l Lightness percentage (0-100)
|
|
19
|
+
* @param a Alpha value (0-1)
|
|
20
|
+
* @returns {Object} RGBA values (r, g, b as 0-255, a as 0-1)
|
|
21
21
|
* @example hslaToRgba(120, 50, 50, 1) // { r: 64, g: 191, b: 64, a: 1 }
|
|
22
|
+
* @throws {Error} If any input values are out of their valid ranges
|
|
22
23
|
*/
|
|
23
24
|
var hslaToRgba = exports.hslaToRgba = function hslaToRgba(h, s, l) {
|
|
24
25
|
var a = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
// Validate input ranges
|
|
27
|
+
if (h < 0 || h > 360) {
|
|
28
|
+
throw new Error("Hue must be between 0 and 360 degrees");
|
|
29
|
+
}
|
|
30
|
+
if (s < 0 || s > 100) {
|
|
31
|
+
throw new Error("Saturation must be between 0 and 100 percent");
|
|
32
|
+
}
|
|
33
|
+
if (l < 0 || l > 100) {
|
|
34
|
+
throw new Error("Lightness must be between 0 and 100 percent");
|
|
35
|
+
}
|
|
36
|
+
if (a < 0 || a > 1) {
|
|
37
|
+
throw new Error("Alpha must be between 0 and 1");
|
|
32
38
|
}
|
|
33
39
|
var hue = (0, _division.division)((0, _division.division)(h, 360, false)[1], 360);
|
|
34
40
|
var saturation = (0, _division.division)((0, _max.max)(0, (0, _min.min)(s, 100)), 100);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param rgba
|
|
4
|
-
* @returns { c
|
|
2
|
+
* Convert RGBA color to CMYK color model
|
|
3
|
+
* @param rgba Object containing r, g, b values (0-255) and optional a (0-1)
|
|
4
|
+
* @returns {Object} CMYK values (c, m, y, k as percentages 0-100) and alpha channel
|
|
5
5
|
* @example rgbaToCmyk({ r: 0, g: 0, b: 0, a: 1 }); // { c: 0, m: 0, y: 0, k: 100, a: 1 }
|
|
6
6
|
*/
|
|
7
7
|
export declare const rgbaToCmyk: ({ r, g, b, a, }: {
|
|
@@ -8,9 +8,9 @@ var _division = require("@/Math/division");
|
|
|
8
8
|
var _roundOf = require("@/Math/roundOf");
|
|
9
9
|
var _subtract = require("@/Math/subtract");
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @param rgba
|
|
13
|
-
* @returns { c
|
|
11
|
+
* Convert RGBA color to CMYK color model
|
|
12
|
+
* @param rgba Object containing r, g, b values (0-255) and optional a (0-1)
|
|
13
|
+
* @returns {Object} CMYK values (c, m, y, k as percentages 0-100) and alpha channel
|
|
14
14
|
* @example rgbaToCmyk({ r: 0, g: 0, b: 0, a: 1 }); // { c: 0, m: 0, y: 0, k: 100, a: 1 }
|
|
15
15
|
*/
|
|
16
16
|
var rgbaToCmyk = exports.rgbaToCmyk = function rgbaToCmyk(_ref) {
|
|
@@ -19,6 +19,10 @@ var rgbaToCmyk = exports.rgbaToCmyk = function rgbaToCmyk(_ref) {
|
|
|
19
19
|
b = _ref.b,
|
|
20
20
|
_ref$a = _ref.a,
|
|
21
21
|
a = _ref$a === void 0 ? 1 : _ref$a;
|
|
22
|
+
// Validate RGBA values
|
|
23
|
+
if (r < 0 || r > 255 || g < 0 || g > 255 || b < 0 || b > 255 || a < 0 || a > 1) {
|
|
24
|
+
throw new Error("Invalid rgba value");
|
|
25
|
+
}
|
|
22
26
|
var rPrime = (0, _division.division)(r, 255);
|
|
23
27
|
var gPrime = (0, _division.division)(g, 255);
|
|
24
28
|
var bPrime = (0, _division.division)(b, 255);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param rgba
|
|
4
|
-
* @returns {string}
|
|
5
|
-
* @example rgbaToHexA({ r: 0, g: 0, b: 0, a: 1 }); // "#
|
|
2
|
+
* Convert RGBA color to hexadecimal color code
|
|
3
|
+
* @param rgba Object containing r, g, b values (0-255) and optional a (0-1)
|
|
4
|
+
* @returns {string} Hexadecimal color code including alpha channel
|
|
5
|
+
* @example rgbaToHexA({ r: 0, g: 0, b: 0, a: 1 }); // "#000000ff"
|
|
6
6
|
*/
|
|
7
7
|
export declare const rgbaToHexA: ({ r, g, b, a, }: {
|
|
8
8
|
r: number;
|
|
@@ -9,10 +9,10 @@ var hex = function hex(x) {
|
|
|
9
9
|
return hexCode.length === 1 ? "0".concat(hexCode) : hexCode;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @param rgba
|
|
14
|
-
* @returns {string}
|
|
15
|
-
* @example rgbaToHexA({ r: 0, g: 0, b: 0, a: 1 }); // "#
|
|
12
|
+
* Convert RGBA color to hexadecimal color code
|
|
13
|
+
* @param rgba Object containing r, g, b values (0-255) and optional a (0-1)
|
|
14
|
+
* @returns {string} Hexadecimal color code including alpha channel
|
|
15
|
+
* @example rgbaToHexA({ r: 0, g: 0, b: 0, a: 1 }); // "#000000ff"
|
|
16
16
|
*/
|
|
17
17
|
var rgbaToHexA = exports.rgbaToHexA = function rgbaToHexA(_ref) {
|
|
18
18
|
var r = _ref.r,
|
|
@@ -20,7 +20,7 @@ var rgbaToHexA = exports.rgbaToHexA = function rgbaToHexA(_ref) {
|
|
|
20
20
|
b = _ref.b,
|
|
21
21
|
_ref$a = _ref.a,
|
|
22
22
|
a = _ref$a === void 0 ? 1 : _ref$a;
|
|
23
|
-
//
|
|
23
|
+
// Validate RGBA values
|
|
24
24
|
if (r < 0 || r > 255 || g < 0 || g > 255 || b < 0 || b > 255 || a < 0 || a > 1) {
|
|
25
25
|
throw new Error("Invalid rgba value");
|
|
26
26
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param rgba
|
|
4
|
-
* @returns { h
|
|
2
|
+
* Convert RGBA color values to HSLA color space
|
|
3
|
+
* @param rgba Object containing r, g, b values (0-255) and optional a (0-1)
|
|
4
|
+
* @returns {Object} HSLA values (h as 0-360, s and l as 0-100, a as 0-1)
|
|
5
5
|
* @example rgbaToHsla({ r: 100, g: 100, b: 100, a: 1 }); // { h: 0, s: 0, l: 39.22, a: 1 }
|
|
6
|
+
* @throws {Error} If any input values are out of their valid ranges
|
|
6
7
|
*/
|
|
7
8
|
export declare const rgbaToHsla: ({ r, g, b, a, }: {
|
|
8
9
|
r: number;
|
|
@@ -10,10 +10,11 @@ var _multiplication = require("@/Math/multiplication");
|
|
|
10
10
|
var _roundOf = require("@/Math/roundOf");
|
|
11
11
|
var _subtract = require("@/Math/subtract");
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* @param rgba
|
|
15
|
-
* @returns { h
|
|
13
|
+
* Convert RGBA color values to HSLA color space
|
|
14
|
+
* @param rgba Object containing r, g, b values (0-255) and optional a (0-1)
|
|
15
|
+
* @returns {Object} HSLA values (h as 0-360, s and l as 0-100, a as 0-1)
|
|
16
16
|
* @example rgbaToHsla({ r: 100, g: 100, b: 100, a: 1 }); // { h: 0, s: 0, l: 39.22, a: 1 }
|
|
17
|
+
* @throws {Error} If any input values are out of their valid ranges
|
|
17
18
|
*/
|
|
18
19
|
var rgbaToHsla = exports.rgbaToHsla = function rgbaToHsla(_ref) {
|
|
19
20
|
var r = _ref.r,
|
|
@@ -21,6 +22,10 @@ var rgbaToHsla = exports.rgbaToHsla = function rgbaToHsla(_ref) {
|
|
|
21
22
|
b = _ref.b,
|
|
22
23
|
_ref$a = _ref.a,
|
|
23
24
|
a = _ref$a === void 0 ? 1 : _ref$a;
|
|
25
|
+
// Validate RGBA values
|
|
26
|
+
if (r < 0 || r > 255 || g < 0 || g > 255 || b < 0 || b > 255 || a < 0 || a > 1) {
|
|
27
|
+
throw new Error("Invalid rgba value");
|
|
28
|
+
}
|
|
24
29
|
var rPrime = (0, _division.division)(r, 255);
|
|
25
30
|
var gPrime = (0, _division.division)(g, 255);
|
|
26
31
|
var bPrime = (0, _division.division)(b, 255);
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Number of milliseconds in one second
|
|
3
3
|
*/
|
|
4
4
|
export declare const OneSecondMs: 1000;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Number of milliseconds in one minute
|
|
7
7
|
*/
|
|
8
8
|
export declare const OneMinuteMs: 60000;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Number of milliseconds in one hour
|
|
11
11
|
*/
|
|
12
12
|
export declare const OneHourMs: 3600000;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Number of milliseconds in one day
|
|
15
15
|
*/
|
|
16
16
|
export declare const OneDayMs: 86400000;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Number of milliseconds in one week
|
|
19
19
|
*/
|
|
20
20
|
export declare const OneWeekMs: 604800000;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Number of milliseconds in one month (28 days)
|
|
23
23
|
*/
|
|
24
24
|
export declare const OneMonthMs28: 2419200000;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Number of milliseconds in one month (29 days)
|
|
27
27
|
*/
|
|
28
28
|
export declare const OneMonthMs29: 2505600000;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Number of milliseconds in one month (30 days)
|
|
31
31
|
*/
|
|
32
32
|
export declare const OneMonthMs: 2592000000;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Number of milliseconds in one month (31 days)
|
|
35
35
|
*/
|
|
36
36
|
export declare const OneMonthMs31: 2678400000;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Number of milliseconds in one year (365 days)
|
|
39
39
|
*/
|
|
40
40
|
export declare const OneYearMs: 31536000000;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Number of milliseconds in one year (366 days)
|
|
43
43
|
*/
|
|
44
44
|
export declare const OneYearMs366: 31622400000;
|
|
@@ -5,56 +5,56 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.OneYearMs366 = exports.OneYearMs = exports.OneWeekMs = exports.OneSecondMs = exports.OneMonthMs31 = exports.OneMonthMs29 = exports.OneMonthMs28 = exports.OneMonthMs = exports.OneMinuteMs = exports.OneHourMs = exports.OneDayMs = void 0;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Number of milliseconds in one second
|
|
9
9
|
*/
|
|
10
10
|
var OneSecondMs = exports.OneSecondMs = 1000;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Number of milliseconds in one minute
|
|
14
14
|
*/
|
|
15
15
|
var OneMinuteMs = exports.OneMinuteMs = OneSecondMs * 60;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Number of milliseconds in one hour
|
|
19
19
|
*/
|
|
20
20
|
var OneHourMs = exports.OneHourMs = OneMinuteMs * 60;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Number of milliseconds in one day
|
|
24
24
|
*/
|
|
25
25
|
var OneDayMs = exports.OneDayMs = OneHourMs * 24;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Number of milliseconds in one week
|
|
29
29
|
*/
|
|
30
30
|
var OneWeekMs = exports.OneWeekMs = OneDayMs * 7;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Number of milliseconds in one month (28 days)
|
|
34
34
|
*/
|
|
35
35
|
var OneMonthMs28 = exports.OneMonthMs28 = OneDayMs * 28;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Number of milliseconds in one month (29 days)
|
|
39
39
|
*/
|
|
40
40
|
var OneMonthMs29 = exports.OneMonthMs29 = OneDayMs * 29;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Number of milliseconds in one month (30 days)
|
|
44
44
|
*/
|
|
45
45
|
var OneMonthMs = exports.OneMonthMs = OneDayMs * 30;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Number of milliseconds in one month (31 days)
|
|
49
49
|
*/
|
|
50
50
|
var OneMonthMs31 = exports.OneMonthMs31 = OneDayMs * 31;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Number of milliseconds in one year (365 days)
|
|
54
54
|
*/
|
|
55
55
|
var OneYearMs = exports.OneYearMs = OneDayMs * 365;
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Number of milliseconds in one year (366 days)
|
|
59
59
|
*/
|
|
60
60
|
var OneYearMs366 = exports.OneYearMs366 = OneDayMs * 366;
|
|
@@ -1,28 +1,56 @@
|
|
|
1
1
|
import type { GetEnumValues } from "$/enum/getEnumValues";
|
|
2
|
+
/**
|
|
3
|
+
* HTTP 4xx Client Error Status Codes
|
|
4
|
+
* Indicates that the client seems to have made an error in the request
|
|
5
|
+
*/
|
|
2
6
|
export declare const HttpClientErrorStatus: {
|
|
7
|
+
/** Server cannot or will not process the request due to a client error */
|
|
3
8
|
readonly BAD_REQUEST: 400;
|
|
9
|
+
/** Request requires user authentication */
|
|
4
10
|
readonly UNAUTHORIZED: 401;
|
|
11
|
+
/** Payment is required for access to the resource */
|
|
5
12
|
readonly PAYMENT_REQUIRED: 402;
|
|
13
|
+
/** Server understood the request but refuses to authorize it */
|
|
6
14
|
readonly FORBIDDEN: 403;
|
|
15
|
+
/** Server cannot find the requested resource */
|
|
7
16
|
readonly NOT_FOUND: 404;
|
|
17
|
+
/** Method specified in the request is not allowed for the resource */
|
|
8
18
|
readonly METHOD_NOT_ALLOWED: 405;
|
|
19
|
+
/** Resource cannot generate content according to the Accept headers */
|
|
9
20
|
readonly NOT_ACCEPTABLE: 406;
|
|
21
|
+
/** Client must first authenticate itself with the proxy */
|
|
10
22
|
readonly PROXY_AUTHENTICATION_REQUIRED: 407;
|
|
23
|
+
/** Server timed out waiting for the request */
|
|
11
24
|
readonly REQUEST_TIMEOUT: 408;
|
|
25
|
+
/** Request conflicts with the current state of the server */
|
|
12
26
|
readonly CONFLICT: 409;
|
|
27
|
+
/** Resource requested is no longer available and will not be available again */
|
|
13
28
|
readonly GONE: 410;
|
|
29
|
+
/** Server requires request to have Content-Length header */
|
|
14
30
|
readonly LENGTH_REQUIRED: 411;
|
|
31
|
+
/** Server does not meet one of the preconditions specified in request headers */
|
|
15
32
|
readonly PRECONDITION_FAILED: 412;
|
|
33
|
+
/** Request entity is larger than limits defined by server */
|
|
16
34
|
readonly PAYLOAD_TOO_LARGE: 413;
|
|
35
|
+
/** URI requested by the client is longer than the server is willing to interpret */
|
|
17
36
|
readonly URI_TOO_LONG: 414;
|
|
37
|
+
/** Media format of the requested data is not supported by the server */
|
|
18
38
|
readonly UNSUPPORTED_MEDIA_TYPE: 415;
|
|
39
|
+
/** Range specified by the Range header field cannot be fulfilled */
|
|
19
40
|
readonly REQUESTED_RANGE_NOT_SATISFIABLE: 416;
|
|
41
|
+
/** Expectation indicated by the Expect request header field cannot be met */
|
|
20
42
|
readonly EXPECTATION_FAILED: 417;
|
|
43
|
+
/** Server refuses to brew coffee because it is a teapot (April Fools' joke) */
|
|
21
44
|
readonly I_AM_A_TEAPOT: 418;
|
|
45
|
+
/** Request was directed at a server that is not able to produce a response */
|
|
22
46
|
readonly MISDIRECTED: 421;
|
|
47
|
+
/** Request was well-formed but unable to be followed due to semantic errors */
|
|
23
48
|
readonly UNPROCESSABLE_ENTITY: 422;
|
|
49
|
+
/** Request failed due to failure of a previous request */
|
|
24
50
|
readonly FAILED_DEPENDENCY: 424;
|
|
51
|
+
/** Origin server requires the request to be conditional */
|
|
25
52
|
readonly PRECONDITION_REQUIRED: 428;
|
|
53
|
+
/** User has sent too many requests in a given amount of time */
|
|
26
54
|
readonly TOO_MANY_REQUESTS: 429;
|
|
27
55
|
};
|
|
28
56
|
export type HttpClientErrorStatus = GetEnumValues<typeof HttpClientErrorStatus>;
|
|
@@ -4,29 +4,57 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HttpClientErrorStatus = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* HTTP 4xx Client Error Status Codes
|
|
9
|
+
* Indicates that the client seems to have made an error in the request
|
|
10
|
+
*/
|
|
7
11
|
var HttpClientErrorStatus = exports.HttpClientErrorStatus = {
|
|
12
|
+
/** Server cannot or will not process the request due to a client error */
|
|
8
13
|
BAD_REQUEST: 400,
|
|
14
|
+
/** Request requires user authentication */
|
|
9
15
|
UNAUTHORIZED: 401,
|
|
16
|
+
/** Payment is required for access to the resource */
|
|
10
17
|
PAYMENT_REQUIRED: 402,
|
|
18
|
+
/** Server understood the request but refuses to authorize it */
|
|
11
19
|
FORBIDDEN: 403,
|
|
20
|
+
/** Server cannot find the requested resource */
|
|
12
21
|
NOT_FOUND: 404,
|
|
22
|
+
/** Method specified in the request is not allowed for the resource */
|
|
13
23
|
METHOD_NOT_ALLOWED: 405,
|
|
24
|
+
/** Resource cannot generate content according to the Accept headers */
|
|
14
25
|
NOT_ACCEPTABLE: 406,
|
|
26
|
+
/** Client must first authenticate itself with the proxy */
|
|
15
27
|
PROXY_AUTHENTICATION_REQUIRED: 407,
|
|
28
|
+
/** Server timed out waiting for the request */
|
|
16
29
|
REQUEST_TIMEOUT: 408,
|
|
30
|
+
/** Request conflicts with the current state of the server */
|
|
17
31
|
CONFLICT: 409,
|
|
32
|
+
/** Resource requested is no longer available and will not be available again */
|
|
18
33
|
GONE: 410,
|
|
34
|
+
/** Server requires request to have Content-Length header */
|
|
19
35
|
LENGTH_REQUIRED: 411,
|
|
36
|
+
/** Server does not meet one of the preconditions specified in request headers */
|
|
20
37
|
PRECONDITION_FAILED: 412,
|
|
38
|
+
/** Request entity is larger than limits defined by server */
|
|
21
39
|
PAYLOAD_TOO_LARGE: 413,
|
|
40
|
+
/** URI requested by the client is longer than the server is willing to interpret */
|
|
22
41
|
URI_TOO_LONG: 414,
|
|
42
|
+
/** Media format of the requested data is not supported by the server */
|
|
23
43
|
UNSUPPORTED_MEDIA_TYPE: 415,
|
|
44
|
+
/** Range specified by the Range header field cannot be fulfilled */
|
|
24
45
|
REQUESTED_RANGE_NOT_SATISFIABLE: 416,
|
|
46
|
+
/** Expectation indicated by the Expect request header field cannot be met */
|
|
25
47
|
EXPECTATION_FAILED: 417,
|
|
48
|
+
/** Server refuses to brew coffee because it is a teapot (April Fools' joke) */
|
|
26
49
|
I_AM_A_TEAPOT: 418,
|
|
50
|
+
/** Request was directed at a server that is not able to produce a response */
|
|
27
51
|
MISDIRECTED: 421,
|
|
52
|
+
/** Request was well-formed but unable to be followed due to semantic errors */
|
|
28
53
|
UNPROCESSABLE_ENTITY: 422,
|
|
54
|
+
/** Request failed due to failure of a previous request */
|
|
29
55
|
FAILED_DEPENDENCY: 424,
|
|
56
|
+
/** Origin server requires the request to be conditional */
|
|
30
57
|
PRECONDITION_REQUIRED: 428,
|
|
58
|
+
/** User has sent too many requests in a given amount of time */
|
|
31
59
|
TOO_MANY_REQUESTS: 429
|
|
32
60
|
};
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import type { GetEnumValues } from "$/enum/getEnumValues";
|
|
2
|
+
/**
|
|
3
|
+
* HTTP 1xx Informational Status Codes
|
|
4
|
+
* Indicates a provisional response, consisting only of the Status-Line and optional headers,
|
|
5
|
+
* and is terminated by an empty line
|
|
6
|
+
*/
|
|
2
7
|
export declare const HttpInformationalStatus: {
|
|
8
|
+
/** Server has received request headers and client should proceed with request */
|
|
3
9
|
readonly CONTINUE: 100;
|
|
10
|
+
/** Server is switching protocols according to Upgrade header */
|
|
4
11
|
readonly SWITCHING_PROTOCOLS: 101;
|
|
12
|
+
/** Server has received and is processing the request, but no response is available yet */
|
|
5
13
|
readonly PROCESSING: 102;
|
|
14
|
+
/** Server is likely to send a final response with the header fields included in the informational response */
|
|
6
15
|
readonly EARLYHINTS: 103;
|
|
7
16
|
};
|
|
8
17
|
export type HttpInformationalStatus = GetEnumValues<typeof HttpInformationalStatus>;
|
|
@@ -4,9 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HttpInformationalStatus = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* HTTP 1xx Informational Status Codes
|
|
9
|
+
* Indicates a provisional response, consisting only of the Status-Line and optional headers,
|
|
10
|
+
* and is terminated by an empty line
|
|
11
|
+
*/
|
|
7
12
|
var HttpInformationalStatus = exports.HttpInformationalStatus = {
|
|
13
|
+
/** Server has received request headers and client should proceed with request */
|
|
8
14
|
CONTINUE: 100,
|
|
15
|
+
/** Server is switching protocols according to Upgrade header */
|
|
9
16
|
SWITCHING_PROTOCOLS: 101,
|
|
17
|
+
/** Server has received and is processing the request, but no response is available yet */
|
|
10
18
|
PROCESSING: 102,
|
|
19
|
+
/** Server is likely to send a final response with the header fields included in the informational response */
|
|
11
20
|
EARLYHINTS: 103
|
|
12
21
|
};
|
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
import type { GetEnumValues } from "$/enum/getEnumValues";
|
|
2
|
+
/**
|
|
3
|
+
* HTTP 3xx Redirection Status Codes
|
|
4
|
+
* Indicates that further action needs to be taken by the user agent in order to fulfill the request
|
|
5
|
+
*/
|
|
2
6
|
export declare const HttpRedirectionStatus: {
|
|
7
|
+
/** Multiple options for the resource from which the client may choose */
|
|
3
8
|
readonly AMBIGUOUS: 300;
|
|
9
|
+
/** Resource has been permanently moved to another URI */
|
|
4
10
|
readonly MOVED_PERMANENTLY: 301;
|
|
11
|
+
/** Resource temporarily resides under a different URI */
|
|
5
12
|
readonly FOUND: 302;
|
|
13
|
+
/** Response to the request can be found under another URI using GET */
|
|
6
14
|
readonly SEE_OTHER: 303;
|
|
15
|
+
/** Resource has not been modified since last requested */
|
|
7
16
|
readonly NOT_MODIFIED: 304;
|
|
17
|
+
/** Resource temporarily moved to another URI, using same HTTP method */
|
|
8
18
|
readonly TEMPORARY_REDIRECT: 307;
|
|
19
|
+
/** Resource has been permanently moved to another URI, using same HTTP method */
|
|
9
20
|
readonly PERMANENT_REDIRECT: 308;
|
|
10
21
|
};
|
|
11
22
|
export type HttpRedirectionStatus = GetEnumValues<typeof HttpRedirectionStatus>;
|
|
@@ -4,12 +4,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HttpRedirectionStatus = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* HTTP 3xx Redirection Status Codes
|
|
9
|
+
* Indicates that further action needs to be taken by the user agent in order to fulfill the request
|
|
10
|
+
*/
|
|
7
11
|
var HttpRedirectionStatus = exports.HttpRedirectionStatus = {
|
|
12
|
+
/** Multiple options for the resource from which the client may choose */
|
|
8
13
|
AMBIGUOUS: 300,
|
|
14
|
+
/** Resource has been permanently moved to another URI */
|
|
9
15
|
MOVED_PERMANENTLY: 301,
|
|
16
|
+
/** Resource temporarily resides under a different URI */
|
|
10
17
|
FOUND: 302,
|
|
18
|
+
/** Response to the request can be found under another URI using GET */
|
|
11
19
|
SEE_OTHER: 303,
|
|
20
|
+
/** Resource has not been modified since last requested */
|
|
12
21
|
NOT_MODIFIED: 304,
|
|
22
|
+
/** Resource temporarily moved to another URI, using same HTTP method */
|
|
13
23
|
TEMPORARY_REDIRECT: 307,
|
|
24
|
+
/** Resource has been permanently moved to another URI, using same HTTP method */
|
|
14
25
|
PERMANENT_REDIRECT: 308
|
|
15
26
|
};
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import type { GetEnumValues } from "$/enum/getEnumValues";
|
|
2
|
+
/**
|
|
3
|
+
* HTTP 5xx Server Error Status Codes
|
|
4
|
+
* Indicates that the server failed to fulfill a valid request
|
|
5
|
+
*/
|
|
2
6
|
export declare const HttpServerErrorStatus: {
|
|
7
|
+
/** Server encountered an unexpected condition that prevented it from fulfilling the request */
|
|
3
8
|
readonly INTERNAL_SERVER_ERROR: 500;
|
|
9
|
+
/** Server does not support the functionality required to fulfill the request */
|
|
4
10
|
readonly NOT_IMPLEMENTED: 501;
|
|
11
|
+
/** Server received an invalid response from the upstream server */
|
|
5
12
|
readonly BAD_GATEWAY: 502;
|
|
13
|
+
/** Server is temporarily unable to handle the request due to being overloaded or down for maintenance */
|
|
6
14
|
readonly SERVICE_UNAVAILABLE: 503;
|
|
15
|
+
/** Server did not receive a timely response from the upstream server */
|
|
7
16
|
readonly GATEWAY_TIMEOUT: 504;
|
|
17
|
+
/** Server does not support the HTTP protocol version used in the request */
|
|
8
18
|
readonly HTTP_VERSION_NOT_SUPPORTED: 505;
|
|
9
19
|
};
|
|
10
20
|
export type HttpServerErrorStatus = GetEnumValues<typeof HttpServerErrorStatus>;
|
|
@@ -4,11 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HttpServerErrorStatus = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* HTTP 5xx Server Error Status Codes
|
|
9
|
+
* Indicates that the server failed to fulfill a valid request
|
|
10
|
+
*/
|
|
7
11
|
var HttpServerErrorStatus = exports.HttpServerErrorStatus = {
|
|
12
|
+
/** Server encountered an unexpected condition that prevented it from fulfilling the request */
|
|
8
13
|
INTERNAL_SERVER_ERROR: 500,
|
|
14
|
+
/** Server does not support the functionality required to fulfill the request */
|
|
9
15
|
NOT_IMPLEMENTED: 501,
|
|
16
|
+
/** Server received an invalid response from the upstream server */
|
|
10
17
|
BAD_GATEWAY: 502,
|
|
18
|
+
/** Server is temporarily unable to handle the request due to being overloaded or down for maintenance */
|
|
11
19
|
SERVICE_UNAVAILABLE: 503,
|
|
20
|
+
/** Server did not receive a timely response from the upstream server */
|
|
12
21
|
GATEWAY_TIMEOUT: 504,
|
|
22
|
+
/** Server does not support the HTTP protocol version used in the request */
|
|
13
23
|
HTTP_VERSION_NOT_SUPPORTED: 505
|
|
14
24
|
};
|
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
import type { GetEnumValues } from "$/enum/getEnumValues";
|
|
2
|
+
/**
|
|
3
|
+
* HTTP 2xx Success Status Codes
|
|
4
|
+
* Indicates that the client's request was successfully received, understood, and accepted
|
|
5
|
+
*/
|
|
2
6
|
export declare const HttpSuccessStatus: {
|
|
7
|
+
/** Request has succeeded */
|
|
3
8
|
readonly OK: 200;
|
|
9
|
+
/** Request has succeeded and a new resource has been created */
|
|
4
10
|
readonly CREATED: 201;
|
|
11
|
+
/** Request has been accepted for processing, but the processing has not been completed */
|
|
5
12
|
readonly ACCEPTED: 202;
|
|
13
|
+
/** Server returned transformed information from origin server */
|
|
6
14
|
readonly NON_AUTHORITATIVE_INFORMATION: 203;
|
|
15
|
+
/** Server has fulfilled the request but does not need to return any content */
|
|
7
16
|
readonly NO_CONTENT: 204;
|
|
17
|
+
/** Server has fulfilled the request and the client should reset the document view */
|
|
8
18
|
readonly RESET_CONTENT: 205;
|
|
19
|
+
/** Server has fulfilled the partial GET request for the resource */
|
|
9
20
|
readonly PARTIAL_CONTENT: 206;
|
|
10
21
|
};
|
|
11
22
|
export type HttpSuccessStatus = GetEnumValues<typeof HttpSuccessStatus>;
|
|
@@ -4,12 +4,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HttpSuccessStatus = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* HTTP 2xx Success Status Codes
|
|
9
|
+
* Indicates that the client's request was successfully received, understood, and accepted
|
|
10
|
+
*/
|
|
7
11
|
var HttpSuccessStatus = exports.HttpSuccessStatus = {
|
|
12
|
+
/** Request has succeeded */
|
|
8
13
|
OK: 200,
|
|
14
|
+
/** Request has succeeded and a new resource has been created */
|
|
9
15
|
CREATED: 201,
|
|
16
|
+
/** Request has been accepted for processing, but the processing has not been completed */
|
|
10
17
|
ACCEPTED: 202,
|
|
18
|
+
/** Server returned transformed information from origin server */
|
|
11
19
|
NON_AUTHORITATIVE_INFORMATION: 203,
|
|
20
|
+
/** Server has fulfilled the request but does not need to return any content */
|
|
12
21
|
NO_CONTENT: 204,
|
|
22
|
+
/** Server has fulfilled the request and the client should reset the document view */
|
|
13
23
|
RESET_CONTENT: 205,
|
|
24
|
+
/** Server has fulfilled the partial GET request for the resource */
|
|
14
25
|
PARTIAL_CONTENT: 206
|
|
15
26
|
};
|
|
@@ -2,11 +2,12 @@ import type { HoursTypeInt } from "$/clock/hoursTypeInt";
|
|
|
2
2
|
import type { DayTypeInt } from "$/date/dayTypeInt";
|
|
3
3
|
import type { MonTypeInt } from "$/date/monTypeInt";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* @param {number}
|
|
7
|
-
* @param {number}
|
|
8
|
-
* @param {number}
|
|
9
|
-
* @
|
|
10
|
-
* @
|
|
5
|
+
* Calculate age based on birthdate
|
|
6
|
+
* @param {number} year - Birth year
|
|
7
|
+
* @param {number} mon - Birth month (1-12)
|
|
8
|
+
* @param {number} day - Birth day
|
|
9
|
+
* @param {number} [timeDifference=9] - Time difference from UTC in hours
|
|
10
|
+
* @returns {number} Age in years
|
|
11
|
+
* @example birthday(2000, 1, 1); // Returns age of someone born on Jan 1, 2000
|
|
11
12
|
*/
|
|
12
13
|
export declare const birthday: <T extends MonTypeInt>(year: number, mon: T, day: DayTypeInt<T>, timeDifference?: HoursTypeInt) => number;
|
|
@@ -7,12 +7,13 @@ exports.birthday = void 0;
|
|
|
7
7
|
var _new = require("@/Date/new");
|
|
8
8
|
var _now = require("@/Date/now");
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* @param {number}
|
|
12
|
-
* @param {number}
|
|
13
|
-
* @param {number}
|
|
14
|
-
* @
|
|
15
|
-
* @
|
|
10
|
+
* Calculate age based on birthdate
|
|
11
|
+
* @param {number} year - Birth year
|
|
12
|
+
* @param {number} mon - Birth month (1-12)
|
|
13
|
+
* @param {number} day - Birth day
|
|
14
|
+
* @param {number} [timeDifference=9] - Time difference from UTC in hours
|
|
15
|
+
* @returns {number} Age in years
|
|
16
|
+
* @example birthday(2000, 1, 1); // Returns age of someone born on Jan 1, 2000
|
|
16
17
|
*/
|
|
17
18
|
var birthday = exports.birthday = function birthday(year, mon, day) {
|
|
18
19
|
var timeDifference = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 9;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Generate an array containing all dates between the specified start and end dates.
|
|
3
3
|
*
|
|
4
|
-
* @param {Date} startDate -
|
|
5
|
-
* @param {Date} endDate -
|
|
6
|
-
* @returns {Date[]} startDate
|
|
4
|
+
* @param {Date} startDate - The start date of the range
|
|
5
|
+
* @param {Date} endDate - The end date of the range
|
|
6
|
+
* @returns {Date[]} An array of Date objects from startDate to endDate (inclusive)
|
|
7
|
+
* @example
|
|
8
|
+
* dateRange(new Date('2025-01-01'), new Date('2025-01-03'))
|
|
9
|
+
* // Returns array of dates: [2025-01-01, 2025-01-02, 2025-01-03]
|
|
7
10
|
*/
|
|
8
11
|
export declare const dateRange: (startDate: Date, endDate: Date) => Date[];
|