dce-commonkit 4.4.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/.eslintrc.js +93 -0
- package/LICENSE +21 -0
- package/README.md +2 -0
- package/lib/constants/DAY_IN_MS.d.ts +6 -0
- package/lib/constants/DAY_IN_MS.js +9 -0
- package/lib/constants/DAY_IN_MS.js.map +1 -0
- package/lib/constants/HOUR_IN_MS.d.ts +6 -0
- package/lib/constants/HOUR_IN_MS.js +9 -0
- package/lib/constants/HOUR_IN_MS.js.map +1 -0
- package/lib/constants/LOG_REVIEW_GET_LOGS_ROUTE.d.ts +6 -0
- package/lib/constants/LOG_REVIEW_GET_LOGS_ROUTE.js +13 -0
- package/lib/constants/LOG_REVIEW_GET_LOGS_ROUTE.js.map +1 -0
- package/lib/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.d.ts +6 -0
- package/lib/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.js +13 -0
- package/lib/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.js.map +1 -0
- package/lib/constants/LOG_REVIEW_STATUS_ROUTE.d.ts +7 -0
- package/lib/constants/LOG_REVIEW_STATUS_ROUTE.js +14 -0
- package/lib/constants/LOG_REVIEW_STATUS_ROUTE.js.map +1 -0
- package/lib/constants/LOG_ROUTE_PATH.d.ts +6 -0
- package/lib/constants/LOG_ROUTE_PATH.js +13 -0
- package/lib/constants/LOG_ROUTE_PATH.js.map +1 -0
- package/lib/constants/MINUTE_IN_MS.d.ts +6 -0
- package/lib/constants/MINUTE_IN_MS.js +9 -0
- package/lib/constants/MINUTE_IN_MS.js.map +1 -0
- package/lib/constants/ROUTE_PATH_PREFIX.d.ts +6 -0
- package/lib/constants/ROUTE_PATH_PREFIX.js +9 -0
- package/lib/constants/ROUTE_PATH_PREFIX.js.map +1 -0
- package/lib/constants/SELECT_ADMIN_CHECK_ROUTE.d.ts +6 -0
- package/lib/constants/SELECT_ADMIN_CHECK_ROUTE.js +9 -0
- package/lib/constants/SELECT_ADMIN_CHECK_ROUTE.js.map +1 -0
- package/lib/errors/ErrorWithCode.d.ts +9 -0
- package/lib/errors/ErrorWithCode.js +33 -0
- package/lib/errors/ErrorWithCode.js.map +1 -0
- package/lib/helpers/abbreviate.d.ts +10 -0
- package/lib/helpers/abbreviate.js +24 -0
- package/lib/helpers/abbreviate.js.map +1 -0
- package/lib/helpers/abbreviate.test.d.ts +5 -0
- package/lib/helpers/abbreviate.test.js +28 -0
- package/lib/helpers/abbreviate.test.js.map +1 -0
- package/lib/helpers/asyncArrayFunctions/everyAsync.d.ts +13 -0
- package/lib/helpers/asyncArrayFunctions/everyAsync.js +81 -0
- package/lib/helpers/asyncArrayFunctions/everyAsync.js.map +1 -0
- package/lib/helpers/asyncArrayFunctions/everyAsync.test.d.ts +1 -0
- package/lib/helpers/asyncArrayFunctions/everyAsync.test.js +219 -0
- package/lib/helpers/asyncArrayFunctions/everyAsync.test.js.map +1 -0
- package/lib/helpers/asyncArrayFunctions/filterAsync.d.ts +13 -0
- package/lib/helpers/asyncArrayFunctions/filterAsync.js +81 -0
- package/lib/helpers/asyncArrayFunctions/filterAsync.js.map +1 -0
- package/lib/helpers/asyncArrayFunctions/filterAsync.test.d.ts +1 -0
- package/lib/helpers/asyncArrayFunctions/filterAsync.test.js +244 -0
- package/lib/helpers/asyncArrayFunctions/filterAsync.test.js.map +1 -0
- package/lib/helpers/asyncArrayFunctions/forEachAsync.d.ts +10 -0
- package/lib/helpers/asyncArrayFunctions/forEachAsync.js +72 -0
- package/lib/helpers/asyncArrayFunctions/forEachAsync.js.map +1 -0
- package/lib/helpers/asyncArrayFunctions/forEachAsync.test.d.ts +1 -0
- package/lib/helpers/asyncArrayFunctions/forEachAsync.test.js +223 -0
- package/lib/helpers/asyncArrayFunctions/forEachAsync.test.js.map +1 -0
- package/lib/helpers/asyncArrayFunctions/mapAsync.d.ts +11 -0
- package/lib/helpers/asyncArrayFunctions/mapAsync.js +77 -0
- package/lib/helpers/asyncArrayFunctions/mapAsync.js.map +1 -0
- package/lib/helpers/asyncArrayFunctions/mapAsync.test.d.ts +1 -0
- package/lib/helpers/asyncArrayFunctions/mapAsync.test.js +219 -0
- package/lib/helpers/asyncArrayFunctions/mapAsync.test.js.map +1 -0
- package/lib/helpers/asyncArrayFunctions/someAsync.d.ts +13 -0
- package/lib/helpers/asyncArrayFunctions/someAsync.js +80 -0
- package/lib/helpers/asyncArrayFunctions/someAsync.js.map +1 -0
- package/lib/helpers/asyncArrayFunctions/someAsync.test.d.ts +1 -0
- package/lib/helpers/asyncArrayFunctions/someAsync.test.js +227 -0
- package/lib/helpers/asyncArrayFunctions/someAsync.test.js.map +1 -0
- package/lib/helpers/avg.d.ts +8 -0
- package/lib/helpers/avg.js +24 -0
- package/lib/helpers/avg.js.map +1 -0
- package/lib/helpers/avg.test.d.ts +5 -0
- package/lib/helpers/avg.test.js +25 -0
- package/lib/helpers/avg.test.js.map +1 -0
- package/lib/helpers/capitalize.d.ts +7 -0
- package/lib/helpers/capitalize.js +20 -0
- package/lib/helpers/capitalize.js.map +1 -0
- package/lib/helpers/ceilToNumDecimals.d.ts +9 -0
- package/lib/helpers/ceilToNumDecimals.js +15 -0
- package/lib/helpers/ceilToNumDecimals.js.map +1 -0
- package/lib/helpers/ceilToNumDecimals.test.d.ts +5 -0
- package/lib/helpers/ceilToNumDecimals.test.js +38 -0
- package/lib/helpers/ceilToNumDecimals.test.js.map +1 -0
- package/lib/helpers/cloneDeep.d.ts +8 -0
- package/lib/helpers/cloneDeep.js +15 -0
- package/lib/helpers/cloneDeep.js.map +1 -0
- package/lib/helpers/compareArraysByProp.d.ts +13 -0
- package/lib/helpers/compareArraysByProp.js +62 -0
- package/lib/helpers/compareArraysByProp.js.map +1 -0
- package/lib/helpers/compareArraysByProp.test.d.ts +5 -0
- package/lib/helpers/compareArraysByProp.test.js +140 -0
- package/lib/helpers/compareArraysByProp.test.js.map +1 -0
- package/lib/helpers/extractProp.d.ts +12 -0
- package/lib/helpers/extractProp.js +19 -0
- package/lib/helpers/extractProp.js.map +1 -0
- package/lib/helpers/extractProp.test.d.ts +5 -0
- package/lib/helpers/extractProp.test.js +36 -0
- package/lib/helpers/extractProp.test.js.map +1 -0
- package/lib/helpers/floorToNumDecimals.d.ts +9 -0
- package/lib/helpers/floorToNumDecimals.js +15 -0
- package/lib/helpers/floorToNumDecimals.js.map +1 -0
- package/lib/helpers/floorToNumDecimals.test.d.ts +5 -0
- package/lib/helpers/floorToNumDecimals.test.js +38 -0
- package/lib/helpers/floorToNumDecimals.test.js.map +1 -0
- package/lib/helpers/forceNumIntoBounds.d.ts +10 -0
- package/lib/helpers/forceNumIntoBounds.js +15 -0
- package/lib/helpers/forceNumIntoBounds.js.map +1 -0
- package/lib/helpers/forceNumIntoBounds.test.d.ts +5 -0
- package/lib/helpers/forceNumIntoBounds.test.js +34 -0
- package/lib/helpers/forceNumIntoBounds.test.js.map +1 -0
- package/lib/helpers/genCSV.d.ts +18 -0
- package/lib/helpers/genCSV.js +69 -0
- package/lib/helpers/genCSV.js.map +1 -0
- package/lib/helpers/genCSV.test.d.ts +5 -0
- package/lib/helpers/genCSV.test.js +75 -0
- package/lib/helpers/genCSV.test.js.map +1 -0
- package/lib/helpers/genCommaList.d.ts +12 -0
- package/lib/helpers/genCommaList.js +20 -0
- package/lib/helpers/genCommaList.js.map +1 -0
- package/lib/helpers/genCommaList.test.d.ts +1 -0
- package/lib/helpers/genCommaList.test.js +94 -0
- package/lib/helpers/genCommaList.test.js.map +1 -0
- package/lib/helpers/getHumanReadableDate.d.ts +8 -0
- package/lib/helpers/getHumanReadableDate.js +32 -0
- package/lib/helpers/getHumanReadableDate.js.map +1 -0
- package/lib/helpers/getHumanReadableDate.test.d.ts +5 -0
- package/lib/helpers/getHumanReadableDate.test.js +31 -0
- package/lib/helpers/getHumanReadableDate.test.js.map +1 -0
- package/lib/helpers/getLocalTimeInfo.d.ts +19 -0
- package/lib/helpers/getLocalTimeInfo.js +51 -0
- package/lib/helpers/getLocalTimeInfo.js.map +1 -0
- package/lib/helpers/getLocalTimeInfo.test.d.ts +6 -0
- package/lib/helpers/getLocalTimeInfo.test.js +50 -0
- package/lib/helpers/getLocalTimeInfo.test.js.map +1 -0
- package/lib/helpers/getMonthName.d.ts +14 -0
- package/lib/helpers/getMonthName.js +31 -0
- package/lib/helpers/getMonthName.js.map +1 -0
- package/lib/helpers/getMonthName.test.d.ts +5 -0
- package/lib/helpers/getMonthName.test.js +70 -0
- package/lib/helpers/getMonthName.test.js.map +1 -0
- package/lib/helpers/getOrdinal.d.ts +8 -0
- package/lib/helpers/getOrdinal.js +16 -0
- package/lib/helpers/getOrdinal.js.map +1 -0
- package/lib/helpers/getOrdinal.test.d.ts +5 -0
- package/lib/helpers/getOrdinal.test.js +74 -0
- package/lib/helpers/getOrdinal.test.js.map +1 -0
- package/lib/helpers/getPartOfDay.d.ts +7 -0
- package/lib/helpers/getPartOfDay.js +24 -0
- package/lib/helpers/getPartOfDay.js.map +1 -0
- package/lib/helpers/getPartOfDay.test.d.ts +5 -0
- package/lib/helpers/getPartOfDay.test.js +49 -0
- package/lib/helpers/getPartOfDay.test.js.map +1 -0
- package/lib/helpers/getTimeInfoInET.d.ts +21 -0
- package/lib/helpers/getTimeInfoInET.js +67 -0
- package/lib/helpers/getTimeInfoInET.js.map +1 -0
- package/lib/helpers/getTimeInfoInET.test.d.ts +5 -0
- package/lib/helpers/getTimeInfoInET.test.js +74 -0
- package/lib/helpers/getTimeInfoInET.test.js.map +1 -0
- package/lib/helpers/getTimestampFromTimeInfoInET.d.ts +20 -0
- package/lib/helpers/getTimestampFromTimeInfoInET.js +136 -0
- package/lib/helpers/getTimestampFromTimeInfoInET.js.map +1 -0
- package/lib/helpers/getWordCount.d.ts +10 -0
- package/lib/helpers/getWordCount.js +24 -0
- package/lib/helpers/getWordCount.js.map +1 -0
- package/lib/helpers/idify.d.ts +9 -0
- package/lib/helpers/idify.js +24 -0
- package/lib/helpers/idify.js.map +1 -0
- package/lib/helpers/onlyKeepLetters.d.ts +8 -0
- package/lib/helpers/onlyKeepLetters.js +13 -0
- package/lib/helpers/onlyKeepLetters.js.map +1 -0
- package/lib/helpers/padDecimalZeros.d.ts +10 -0
- package/lib/helpers/padDecimalZeros.js +30 -0
- package/lib/helpers/padDecimalZeros.js.map +1 -0
- package/lib/helpers/padZerosLeft.d.ts +9 -0
- package/lib/helpers/padZerosLeft.js +21 -0
- package/lib/helpers/padZerosLeft.js.map +1 -0
- package/lib/helpers/parallelLimit.d.ts +12 -0
- package/lib/helpers/parallelLimit.js +104 -0
- package/lib/helpers/parallelLimit.js.map +1 -0
- package/lib/helpers/prefixWithAOrAn.d.ts +10 -0
- package/lib/helpers/prefixWithAOrAn.js +28 -0
- package/lib/helpers/prefixWithAOrAn.js.map +1 -0
- package/lib/helpers/roundToNumDecimals.d.ts +9 -0
- package/lib/helpers/roundToNumDecimals.js +15 -0
- package/lib/helpers/roundToNumDecimals.js.map +1 -0
- package/lib/helpers/shuffleArray.d.ts +8 -0
- package/lib/helpers/shuffleArray.js +29 -0
- package/lib/helpers/shuffleArray.js.map +1 -0
- package/lib/helpers/startMinWait.d.ts +9 -0
- package/lib/helpers/startMinWait.js +79 -0
- package/lib/helpers/startMinWait.js.map +1 -0
- package/lib/helpers/stringsToHumanReadableList.d.ts +10 -0
- package/lib/helpers/stringsToHumanReadableList.js +37 -0
- package/lib/helpers/stringsToHumanReadableList.js.map +1 -0
- package/lib/helpers/sum.d.ts +8 -0
- package/lib/helpers/sum.js +15 -0
- package/lib/helpers/sum.js.map +1 -0
- package/lib/helpers/validators/ChicagoTitleCase.d.ts +9 -0
- package/lib/helpers/validators/ChicagoTitleCase.js +31 -0
- package/lib/helpers/validators/ChicagoTitleCase.js.map +1 -0
- package/lib/helpers/validators/ChicagoTitleCase.test.d.ts +0 -0
- package/lib/helpers/validators/ChicagoTitleCase.test.js +79 -0
- package/lib/helpers/validators/ChicagoTitleCase.test.js.map +1 -0
- package/lib/helpers/validators/findURL.d.ts +0 -0
- package/lib/helpers/validators/findURL.js +39 -0
- package/lib/helpers/validators/findURL.js.map +1 -0
- package/lib/helpers/validators/findURL.test.d.ts +0 -0
- package/lib/helpers/validators/findURL.test.js +77 -0
- package/lib/helpers/validators/findURL.test.js.map +1 -0
- package/lib/helpers/validators/shared/constants/ERROR_MESSAGES.d.ts +10 -0
- package/lib/helpers/validators/shared/constants/ERROR_MESSAGES.js +21 -0
- package/lib/helpers/validators/shared/constants/ERROR_MESSAGES.js.map +1 -0
- package/lib/helpers/validators/shared/helpers/validateRegex.d.ts +19 -0
- package/lib/helpers/validators/shared/helpers/validateRegex.js +34 -0
- package/lib/helpers/validators/shared/helpers/validateRegex.js.map +1 -0
- package/lib/helpers/validators/shared/types/ValidationResult.d.ts +12 -0
- package/lib/helpers/validators/shared/types/ValidationResult.js +3 -0
- package/lib/helpers/validators/shared/types/ValidationResult.js.map +1 -0
- package/lib/helpers/validators/validURL.d.ts +8 -0
- package/lib/helpers/validators/validURL.js +20 -0
- package/lib/helpers/validators/validURL.js.map +1 -0
- package/lib/helpers/validators/validURL.test.d.ts +0 -0
- package/lib/helpers/validators/validURL.test.js +83 -0
- package/lib/helpers/validators/validURL.test.js.map +1 -0
- package/lib/helpers/validators/validateEmail.d.ts +11 -0
- package/lib/helpers/validators/validateEmail.js +39 -0
- package/lib/helpers/validators/validateEmail.js.map +1 -0
- package/lib/helpers/validators/validateEmail.test.d.ts +1 -0
- package/lib/helpers/validators/validateEmail.test.js +140 -0
- package/lib/helpers/validators/validateEmail.test.js.map +1 -0
- package/lib/helpers/validators/validatePhoneNumber.d.ts +11 -0
- package/lib/helpers/validators/validatePhoneNumber.js +40 -0
- package/lib/helpers/validators/validatePhoneNumber.js.map +1 -0
- package/lib/helpers/validators/validatePhoneNumber.test.d.ts +1 -0
- package/lib/helpers/validators/validatePhoneNumber.test.js +123 -0
- package/lib/helpers/validators/validatePhoneNumber.test.js.map +1 -0
- package/lib/helpers/validators/validateString.d.ts +22 -0
- package/lib/helpers/validators/validateString.js +124 -0
- package/lib/helpers/validators/validateString.js.map +1 -0
- package/lib/helpers/validators/validateString.test.d.ts +1 -0
- package/lib/helpers/validators/validateString.test.js +163 -0
- package/lib/helpers/validators/validateString.test.js.map +1 -0
- package/lib/helpers/waitMs.d.ts +7 -0
- package/lib/helpers/waitMs.js +68 -0
- package/lib/helpers/waitMs.js.map +1 -0
- package/lib/index.d.ts +63 -0
- package/lib/index.js +124 -0
- package/lib/index.js.map +1 -0
- package/lib/types/CommonKitErrorCode.d.ts +10 -0
- package/lib/types/CommonKitErrorCode.js +15 -0
- package/lib/types/CommonKitErrorCode.js.map +1 -0
- package/lib/types/DayOfWeek.d.ts +14 -0
- package/lib/types/DayOfWeek.js +18 -0
- package/lib/types/DayOfWeek.js.map +1 -0
- package/lib/types/Log/LogMainInfo.d.ts +39 -0
- package/lib/types/Log/LogMainInfo.js +3 -0
- package/lib/types/Log/LogMainInfo.js.map +1 -0
- package/lib/types/Log/LogSourceSpecificInfo.d.ts +13 -0
- package/lib/types/Log/LogSourceSpecificInfo.js +3 -0
- package/lib/types/Log/LogSourceSpecificInfo.js.map +1 -0
- package/lib/types/Log/LogTypeSpecificInfo.d.ts +17 -0
- package/lib/types/Log/LogTypeSpecificInfo.js +3 -0
- package/lib/types/Log/LogTypeSpecificInfo.js.map +1 -0
- package/lib/types/Log/index.d.ts +10 -0
- package/lib/types/Log/index.js +3 -0
- package/lib/types/Log/index.js.map +1 -0
- package/lib/types/LogAction.d.ts +29 -0
- package/lib/types/LogAction.js +55 -0
- package/lib/types/LogAction.js.map +1 -0
- package/lib/types/LogBuiltInMetadata.d.ts +16 -0
- package/lib/types/LogBuiltInMetadata.js +21 -0
- package/lib/types/LogBuiltInMetadata.js.map +1 -0
- package/lib/types/LogFunction.d.ts +24 -0
- package/lib/types/LogFunction.js +3 -0
- package/lib/types/LogFunction.js.map +1 -0
- package/lib/types/LogLevel.d.ts +10 -0
- package/lib/types/LogLevel.js +14 -0
- package/lib/types/LogLevel.js.map +1 -0
- package/lib/types/LogMetadataContextMap.d.ts +11 -0
- package/lib/types/LogMetadataContextMap.js +3 -0
- package/lib/types/LogMetadataContextMap.js.map +1 -0
- package/lib/types/LogMetadataTagMap.d.ts +8 -0
- package/lib/types/LogMetadataTagMap.js +3 -0
- package/lib/types/LogMetadataTagMap.js.map +1 -0
- package/lib/types/LogMetadataTargetMap.d.ts +8 -0
- package/lib/types/LogMetadataTargetMap.js +3 -0
- package/lib/types/LogMetadataTargetMap.js.map +1 -0
- package/lib/types/LogMetadataType.d.ts +13 -0
- package/lib/types/LogMetadataType.js +3 -0
- package/lib/types/LogMetadataType.js.map +1 -0
- package/lib/types/LogSource.d.ts +9 -0
- package/lib/types/LogSource.js +15 -0
- package/lib/types/LogSource.js.map +1 -0
- package/lib/types/LogType.d.ts +9 -0
- package/lib/types/LogType.js +15 -0
- package/lib/types/LogType.js.map +1 -0
- package/lib/types/ParamType.d.ts +17 -0
- package/lib/types/ParamType.js +21 -0
- package/lib/types/ParamType.js.map +1 -0
- package/package.json +47 -0
- package/src/constants/DAY_IN_MS.ts +7 -0
- package/src/constants/HOUR_IN_MS.ts +7 -0
- package/src/constants/LOG_REVIEW_GET_LOGS_ROUTE.ts +9 -0
- package/src/constants/LOG_REVIEW_ROUTE_PATH_PREFIX.ts +9 -0
- package/src/constants/LOG_REVIEW_STATUS_ROUTE.ts +10 -0
- package/src/constants/LOG_ROUTE_PATH.ts +9 -0
- package/src/constants/MINUTE_IN_MS.ts +7 -0
- package/src/constants/ROUTE_PATH_PREFIX.ts +7 -0
- package/src/constants/SELECT_ADMIN_CHECK_ROUTE.ts +7 -0
- package/src/errors/ErrorWithCode.ts +15 -0
- package/src/helpers/abbreviate.test.ts +26 -0
- package/src/helpers/abbreviate.ts +25 -0
- package/src/helpers/asyncArrayFunctions/everyAsync.test.ts +114 -0
- package/src/helpers/asyncArrayFunctions/everyAsync.ts +51 -0
- package/src/helpers/asyncArrayFunctions/filterAsync.test.ts +126 -0
- package/src/helpers/asyncArrayFunctions/filterAsync.ts +50 -0
- package/src/helpers/asyncArrayFunctions/forEachAsync.test.ts +136 -0
- package/src/helpers/asyncArrayFunctions/forEachAsync.ts +40 -0
- package/src/helpers/asyncArrayFunctions/mapAsync.test.ts +125 -0
- package/src/helpers/asyncArrayFunctions/mapAsync.ts +46 -0
- package/src/helpers/asyncArrayFunctions/someAsync.test.ts +92 -0
- package/src/helpers/asyncArrayFunctions/someAsync.ts +49 -0
- package/src/helpers/avg.test.ts +24 -0
- package/src/helpers/avg.ts +22 -0
- package/src/helpers/capitalize.ts +20 -0
- package/src/helpers/ceilToNumDecimals.test.ts +39 -0
- package/src/helpers/ceilToNumDecimals.ts +13 -0
- package/src/helpers/cloneDeep.ts +11 -0
- package/src/helpers/compareArraysByProp.test.ts +147 -0
- package/src/helpers/compareArraysByProp.ts +56 -0
- package/src/helpers/extractProp.test.ts +34 -0
- package/src/helpers/extractProp.ts +17 -0
- package/src/helpers/floorToNumDecimals.test.ts +39 -0
- package/src/helpers/floorToNumDecimals.ts +13 -0
- package/src/helpers/forceNumIntoBounds.test.ts +34 -0
- package/src/helpers/forceNumIntoBounds.ts +19 -0
- package/src/helpers/genCSV.test.ts +77 -0
- package/src/helpers/genCSV.ts +87 -0
- package/src/helpers/genCommaList.test.ts +57 -0
- package/src/helpers/genCommaList.ts +21 -0
- package/src/helpers/getHumanReadableDate.test.ts +29 -0
- package/src/helpers/getHumanReadableDate.ts +36 -0
- package/src/helpers/getLocalTimeInfo.test.ts +48 -0
- package/src/helpers/getLocalTimeInfo.ts +58 -0
- package/src/helpers/getMonthName.test.ts +79 -0
- package/src/helpers/getMonthName.ts +29 -0
- package/src/helpers/getOrdinal.test.ts +84 -0
- package/src/helpers/getOrdinal.ts +14 -0
- package/src/helpers/getPartOfDay.test.ts +56 -0
- package/src/helpers/getPartOfDay.ts +20 -0
- package/src/helpers/getTimeInfoInET.test.ts +72 -0
- package/src/helpers/getTimeInfoInET.ts +79 -0
- package/src/helpers/getTimestampFromTimeInfoInET.ts +179 -0
- package/src/helpers/getWordCount.ts +26 -0
- package/src/helpers/idify.ts +24 -0
- package/src/helpers/onlyKeepLetters.ts +11 -0
- package/src/helpers/padDecimalZeros.ts +32 -0
- package/src/helpers/padZerosLeft.ts +21 -0
- package/src/helpers/parallelLimit.ts +63 -0
- package/src/helpers/prefixWithAOrAn.ts +29 -0
- package/src/helpers/roundToNumDecimals.ts +13 -0
- package/src/helpers/shuffleArray.ts +19 -0
- package/src/helpers/startMinWait.ts +33 -0
- package/src/helpers/stringsToHumanReadableList.ts +39 -0
- package/src/helpers/sum.ts +16 -0
- package/src/helpers/validators/ChicagoTitleCase.test.ts +85 -0
- package/src/helpers/validators/ChicagoTitleCase.ts +32 -0
- package/src/helpers/validators/findURL.test.ts +83 -0
- package/src/helpers/validators/findURL.ts +43 -0
- package/src/helpers/validators/shared/constants/ERROR_MESSAGES.ts +18 -0
- package/src/helpers/validators/shared/helpers/validateRegex.ts +47 -0
- package/src/helpers/validators/shared/types/ValidationResult.ts +20 -0
- package/src/helpers/validators/validURL.test.ts +90 -0
- package/src/helpers/validators/validURL.ts +18 -0
- package/src/helpers/validators/validateEmail.test.ts +110 -0
- package/src/helpers/validators/validateEmail.ts +47 -0
- package/src/helpers/validators/validatePhoneNumber.test.ts +94 -0
- package/src/helpers/validators/validatePhoneNumber.ts +49 -0
- package/src/helpers/validators/validateString.test.ts +173 -0
- package/src/helpers/validators/validateString.ts +171 -0
- package/src/helpers/waitMs.ts +12 -0
- package/src/index.ts +139 -0
- package/src/types/CommonKitErrorCode.ts +13 -0
- package/src/types/DayOfWeek.ts +15 -0
- package/src/types/Log/LogMainInfo.ts +69 -0
- package/src/types/Log/LogSourceSpecificInfo.ts +25 -0
- package/src/types/Log/LogTypeSpecificInfo.ts +33 -0
- package/src/types/Log/index.ts +17 -0
- package/src/types/LogAction.ts +52 -0
- package/src/types/LogBuiltInMetadata.ts +19 -0
- package/src/types/LogFunction.ts +46 -0
- package/src/types/LogLevel.ts +11 -0
- package/src/types/LogMetadataContextMap.ts +15 -0
- package/src/types/LogMetadataTagMap.ts +9 -0
- package/src/types/LogMetadataTargetMap.ts +9 -0
- package/src/types/LogMetadataType.ts +16 -0
- package/src/types/LogSource.ts +12 -0
- package/src/types/LogType.ts +12 -0
- package/src/types/ParamType.ts +18 -0
- package/tsconfig.json +19 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Import the function to be tested
|
|
2
|
+
// import findURLs from './findURL';
|
|
3
|
+
// // Import constants
|
|
4
|
+
// import { INVALID_STRING_ERRORS, INVALID_REGEX_ERROR } from './shared/constants/ERROR_MESSAGES';
|
|
5
|
+
// /*------------------------------------------------------------------------*/
|
|
6
|
+
// /* ---------------------------- Valid Tests --------------------------- */
|
|
7
|
+
// /*------------------------------------------------------------------------*/
|
|
8
|
+
// const validTests: { block: string, expected: { start: number, end: number }[] }[] = [
|
|
9
|
+
// {
|
|
10
|
+
// block: 'Visit http://example.com for more information.',
|
|
11
|
+
// expected: [{ start: 6, end: 23 }],
|
|
12
|
+
// },
|
|
13
|
+
// {
|
|
14
|
+
// block: 'Multiple URLs: http://one.com and http://two.com.',
|
|
15
|
+
// expected: [
|
|
16
|
+
// { start: 15, end: 29 },
|
|
17
|
+
// { start: 34, end: 48 },
|
|
18
|
+
// ],
|
|
19
|
+
// },
|
|
20
|
+
// {
|
|
21
|
+
// block: 'Localhost URLs: http://localhost and http://127.0.0.1.',
|
|
22
|
+
// expected: [
|
|
23
|
+
// { start: 16, end: 31 },
|
|
24
|
+
// { start: 36, end: 52 },
|
|
25
|
+
// ],
|
|
26
|
+
// },
|
|
27
|
+
// {
|
|
28
|
+
// block: 'Embedded URL: text https://embedded-url.com?query=1&value=2.',
|
|
29
|
+
// expected: [{ start: 13, end: 51 }],
|
|
30
|
+
// },
|
|
31
|
+
// {
|
|
32
|
+
// block: 'Secure site: https://secure-site.com/path?query=string#fragment',
|
|
33
|
+
// expected: [{ start: 13, end: 58 }],
|
|
34
|
+
// },
|
|
35
|
+
// ];
|
|
36
|
+
// test(
|
|
37
|
+
// 'Returns correct start and end indices for valid URLs within a string.',
|
|
38
|
+
// async () => {
|
|
39
|
+
// validTests.forEach(({ block, expected }) => {
|
|
40
|
+
// expect(findURLs(block)).toStrictEqual(expected);
|
|
41
|
+
// });
|
|
42
|
+
// },
|
|
43
|
+
// );
|
|
44
|
+
// /*------------------------------------------------------------------------*/
|
|
45
|
+
// /* ---------------------------- Invalid Tests --------------------------- */
|
|
46
|
+
// /*------------------------------------------------------------------------*/
|
|
47
|
+
// const invalidTests: { block: string, expected: { start: number, end: number }[] }[] = [
|
|
48
|
+
// {
|
|
49
|
+
// block: 'No URL.',
|
|
50
|
+
// expected: [],
|
|
51
|
+
// },
|
|
52
|
+
// {
|
|
53
|
+
// block: 'URL format is wrong: http:/example.com and htt://example.com.',
|
|
54
|
+
// expected: [],
|
|
55
|
+
// },
|
|
56
|
+
// {
|
|
57
|
+
// block: 'Any punctuation after the URL http://example.com, should not count.',
|
|
58
|
+
// expected: [{ start: 20, end: 37 }],
|
|
59
|
+
// },
|
|
60
|
+
// {
|
|
61
|
+
// block: 'Starting punctuation ,http://example.com should not count.',
|
|
62
|
+
// expected: [{ start: 22, end: 39 }],
|
|
63
|
+
// },
|
|
64
|
+
// {
|
|
65
|
+
// block: 'Spaces in the middle http://exa mple.com is invalid.',
|
|
66
|
+
// expected: [],
|
|
67
|
+
// },
|
|
68
|
+
// ];
|
|
69
|
+
// test(
|
|
70
|
+
// 'Returns empty array for strings without valid URLs.',
|
|
71
|
+
// async () => {
|
|
72
|
+
// invalidTests.forEach(({ block, expected }) => {
|
|
73
|
+
// expect(findURLs(block)).toStrictEqual(expected);
|
|
74
|
+
// });
|
|
75
|
+
// },
|
|
76
|
+
// );
|
|
77
|
+
//# sourceMappingURL=findURL.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findURL.test.js","sourceRoot":"","sources":["../../../src/helpers/validators/findURL.test.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,oCAAoC;AAEpC,sBAAsB;AACtB,kGAAkG;AAElG,+EAA+E;AAC/E,6EAA6E;AAC7E,+EAA+E;AAE/E,wFAAwF;AACxF,MAAM;AACN,+DAA+D;AAC/D,yCAAyC;AACzC,OAAO;AACP,MAAM;AACN,kEAAkE;AAClE,kBAAkB;AAClB,gCAAgC;AAChC,gCAAgC;AAChC,SAAS;AACT,OAAO;AACP,MAAM;AACN,uEAAuE;AACvE,kBAAkB;AAClB,gCAAgC;AAChC,gCAAgC;AAChC,SAAS;AACT,OAAO;AACP,MAAM;AACN,6EAA6E;AAC7E,0CAA0C;AAC1C,OAAO;AACP,MAAM;AACN,gFAAgF;AAChF,0CAA0C;AAC1C,OAAO;AACP,KAAK;AAEL,QAAQ;AACR,6EAA6E;AAC7E,kBAAkB;AAClB,oDAAoD;AACpD,yDAAyD;AACzD,UAAU;AACV,OAAO;AACP,KAAK;AAEL,+EAA+E;AAC/E,+EAA+E;AAC/E,+EAA+E;AAE/E,0FAA0F;AAC1F,MAAM;AACN,wBAAwB;AACxB,oBAAoB;AACpB,OAAO;AACP,MAAM;AACN,8EAA8E;AAC9E,oBAAoB;AACpB,OAAO;AACP,MAAM;AACN,oFAAoF;AACpF,0CAA0C;AAC1C,OAAO;AACP,MAAM;AACN,2EAA2E;AAC3E,0CAA0C;AAC1C,OAAO;AACP,MAAM;AACN,qEAAqE;AACrE,oBAAoB;AACpB,OAAO;AACP,KAAK;AAEL,QAAQ;AACR,2DAA2D;AAC3D,kBAAkB;AAClB,sDAAsD;AACtD,yDAAyD;AACzD,UAAU;AACV,OAAO;AACP,KAAK"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const INVALID_REGEX_ERROR = "input does not follow the requested format";
|
|
2
|
+
export declare const INVALID_EMAIL_ERROR = "Please provide a valid email address.";
|
|
3
|
+
export declare const INVALID_PHONE_ERROR = "Please provide a valid phone number.";
|
|
4
|
+
export declare const INVALID_STRING_ERRORS: {
|
|
5
|
+
MIN_LEN: (minLen: number) => string;
|
|
6
|
+
MAX_LEN: (maxLen: number) => string;
|
|
7
|
+
LETTERS_ONLY: string;
|
|
8
|
+
NUMBERS_ONLY: string;
|
|
9
|
+
MESSAGE_INTRO: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*------------------------------------------------------------------------*/
|
|
3
|
+
/* ------------------------------ Constants ----------------------------- */
|
|
4
|
+
/*------------------------------------------------------------------------*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.INVALID_STRING_ERRORS = exports.INVALID_PHONE_ERROR = exports.INVALID_EMAIL_ERROR = exports.INVALID_REGEX_ERROR = void 0;
|
|
7
|
+
exports.INVALID_REGEX_ERROR = 'input does not follow the requested format';
|
|
8
|
+
exports.INVALID_EMAIL_ERROR = 'Please provide a valid email address.';
|
|
9
|
+
exports.INVALID_PHONE_ERROR = 'Please provide a valid phone number.';
|
|
10
|
+
exports.INVALID_STRING_ERRORS = {
|
|
11
|
+
MIN_LEN: function (minLen) {
|
|
12
|
+
return "input must not be under ".concat(minLen, " character(s)");
|
|
13
|
+
},
|
|
14
|
+
MAX_LEN: function (maxLen) {
|
|
15
|
+
return "input must not be over ".concat(maxLen, " character(s)");
|
|
16
|
+
},
|
|
17
|
+
LETTERS_ONLY: 'input must only contain letters',
|
|
18
|
+
NUMBERS_ONLY: 'input must only contain numbers',
|
|
19
|
+
MESSAGE_INTRO: 'The following error(s) occurred: ',
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=ERROR_MESSAGES.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ERROR_MESSAGES.js","sourceRoot":"","sources":["../../../../../src/helpers/validators/shared/constants/ERROR_MESSAGES.ts"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;;;AAE/D,QAAA,mBAAmB,GAAG,4CAA4C,CAAC;AACnE,QAAA,mBAAmB,GAAG,uCAAuC,CAAC;AAC9D,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAC7D,QAAA,qBAAqB,GAAG;IACnC,OAAO,EAAE,UAAC,MAAc;QACtB,OAAO,kCAA2B,MAAM,kBAAe,CAAC;IAC1D,CAAC;IACD,OAAO,EAAE,UAAC,MAAc;QACtB,OAAO,iCAA0B,MAAM,kBAAe,CAAC;IACzD,CAAC;IACD,YAAY,EAAE,iCAAiC;IAC/C,YAAY,EAAE,iCAAiC;IAC/C,aAAa,EAAE,mCAAmC;CACnD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import ValidationResult from '../types/ValidationResult';
|
|
2
|
+
/**
|
|
3
|
+
* Determines whether a given input string is considered valid based on
|
|
4
|
+
* the provided regex.
|
|
5
|
+
* @author Austen Money
|
|
6
|
+
* @param opts object containing all args
|
|
7
|
+
* @param opts.input user-provided input to validate
|
|
8
|
+
* @param opts.regex regular expression to check against input
|
|
9
|
+
* @param [opts.regexDescription] description of what regexString is checking
|
|
10
|
+
* for, used to customize error message
|
|
11
|
+
* @returns the unchanged input if valid, or a customized error message if
|
|
12
|
+
* invalid
|
|
13
|
+
*/
|
|
14
|
+
declare const validateRegex: (opts: {
|
|
15
|
+
input: string;
|
|
16
|
+
regex: RegExp;
|
|
17
|
+
regexDescription?: string;
|
|
18
|
+
}) => ValidationResult<string>;
|
|
19
|
+
export default validateRegex;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// Import constants
|
|
4
|
+
var ERROR_MESSAGES_1 = require("../constants/ERROR_MESSAGES");
|
|
5
|
+
/**
|
|
6
|
+
* Determines whether a given input string is considered valid based on
|
|
7
|
+
* the provided regex.
|
|
8
|
+
* @author Austen Money
|
|
9
|
+
* @param opts object containing all args
|
|
10
|
+
* @param opts.input user-provided input to validate
|
|
11
|
+
* @param opts.regex regular expression to check against input
|
|
12
|
+
* @param [opts.regexDescription] description of what regexString is checking
|
|
13
|
+
* for, used to customize error message
|
|
14
|
+
* @returns the unchanged input if valid, or a customized error message if
|
|
15
|
+
* invalid
|
|
16
|
+
*/
|
|
17
|
+
var validateRegex = function (opts) {
|
|
18
|
+
// customize error message in case of invalid input
|
|
19
|
+
var errorMessage = "".concat(ERROR_MESSAGES_1.INVALID_REGEX_ERROR).concat(opts.regexDescription
|
|
20
|
+
? ': '
|
|
21
|
+
: '').concat(opts.regexDescription);
|
|
22
|
+
// return error message if test is invalid, or input string if valid
|
|
23
|
+
return (opts.regex.test(opts.input)
|
|
24
|
+
? {
|
|
25
|
+
isValid: true,
|
|
26
|
+
cleanedValue: opts.input,
|
|
27
|
+
}
|
|
28
|
+
: {
|
|
29
|
+
isValid: false,
|
|
30
|
+
errorMessage: errorMessage,
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
exports.default = validateRegex;
|
|
34
|
+
//# sourceMappingURL=validateRegex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateRegex.js","sourceRoot":"","sources":["../../../../../src/helpers/validators/shared/helpers/validateRegex.ts"],"names":[],"mappings":";;AAGA,mBAAmB;AACnB,8DAAkE;AAElE;;;;;;;;;;;GAWG;AACH,IAAM,aAAa,GAAG,UACpB,IAIC;IAED,mDAAmD;IACnD,IAAM,YAAY,GAAG,UAAG,oCAAmB,SACzC,IAAI,CAAC,gBAAgB;QACnB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,EAAE,SACL,IAAI,CAAC,gBAAgB,CAAE,CAAC;IAE3B,oEAAoE;IACpE,OAAO,CACL,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;QACzB,CAAC,CAAC;YACA,OAAO,EAAE,IAAI;YACb,YAAY,EAAE,IAAI,CAAC,KAAK;SACzB;QACD,CAAC,CAAC;YACA,OAAO,EAAE,KAAK;YACd,YAAY,cAAA;SACb,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Result of a validation function.
|
|
3
|
+
* @author Austen Money
|
|
4
|
+
*/
|
|
5
|
+
type ValidationResult<CleanedValueType> = ({
|
|
6
|
+
isValid: true;
|
|
7
|
+
cleanedValue: CleanedValueType;
|
|
8
|
+
} | {
|
|
9
|
+
isValid: false;
|
|
10
|
+
errorMessage: string;
|
|
11
|
+
});
|
|
12
|
+
export default ValidationResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValidationResult.js","sourceRoot":"","sources":["../../../../../src/helpers/validators/shared/types/ValidationResult.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This function checks if a given input string is a valid URL.
|
|
3
|
+
* @author Leisha Bhandari
|
|
4
|
+
* @param URL: The input string that needs checked as a URL or not.
|
|
5
|
+
* @returns A true boolean value if the input string is a valid URL, and a false
|
|
6
|
+
* boolean value if the input string is a invalid URL
|
|
7
|
+
*/
|
|
8
|
+
declare function isValid(url: string): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This function checks if a given input string is a valid URL.
|
|
3
|
+
* @author Leisha Bhandari
|
|
4
|
+
* @param URL: The input string that needs checked as a URL or not.
|
|
5
|
+
* @returns A true boolean value if the input string is a valid URL, and a false
|
|
6
|
+
* boolean value if the input string is a invalid URL
|
|
7
|
+
*/
|
|
8
|
+
function isValid(url) {
|
|
9
|
+
// Uses the input URL to create a URL object
|
|
10
|
+
try {
|
|
11
|
+
new URL(url);
|
|
12
|
+
// URL constructor does not throw an error, so input URL is valid
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
catch (err) {
|
|
16
|
+
// URL constructor throws an error, so input URL is invalid
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=validURL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validURL.js","sourceRoot":"","sources":["../../../src/helpers/validators/validURL.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,SAAS,OAAO,CAAC,GAAW;IAC1B,4CAA4C;IAC5C,IAAI,CAAC;QACH,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QACb,iEAAiE;QACjE,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,2DAA2D;QAC3D,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// Import the function to be tested
|
|
2
|
+
// import isValid from './validURL';
|
|
3
|
+
// // Import constants
|
|
4
|
+
// import { INVALID_STRING_ERRORS, INVALID_REGEX_ERROR } from './shared/constants/ERROR_MESSAGES';
|
|
5
|
+
// /*------------------------------------------------------------------------*/
|
|
6
|
+
// /* ---------------------------- Valid Tests --------------------------- */
|
|
7
|
+
// /*------------------------------------------------------------------------*/
|
|
8
|
+
// const validUrls: string[] = [
|
|
9
|
+
// 'http://example.com',
|
|
10
|
+
// 'https://example.com',
|
|
11
|
+
// 'http://www.example.com',
|
|
12
|
+
// 'https://www.example.com',
|
|
13
|
+
// 'https://example.com/path',
|
|
14
|
+
// 'http://example.com/path',
|
|
15
|
+
// 'https://example.com?query=string',
|
|
16
|
+
// 'http://example.com?query=string',
|
|
17
|
+
// 'https://example.com#fragment',
|
|
18
|
+
// 'http://example.com#fragment',
|
|
19
|
+
// 'http://localhost',
|
|
20
|
+
// 'https://localhost:3000',
|
|
21
|
+
// 'http://localhost:3000',
|
|
22
|
+
// 'http://127.0.0.1',
|
|
23
|
+
// 'http://127.0.0.1:3000',
|
|
24
|
+
// 'ftp://example.com/path',
|
|
25
|
+
// 'ftp://example.com',
|
|
26
|
+
// 'https://127.0.0.1:3000',
|
|
27
|
+
// 'file:///C:/path/to/file'
|
|
28
|
+
// ];
|
|
29
|
+
// test(
|
|
30
|
+
// 'Returns true for a given valid URL.',
|
|
31
|
+
// async () => {
|
|
32
|
+
// validUrls.forEach((url) => {
|
|
33
|
+
// expect(isValid(url)).toBe(true);
|
|
34
|
+
// });
|
|
35
|
+
// },
|
|
36
|
+
// );
|
|
37
|
+
// /*------------------------------------------------------------------------*/
|
|
38
|
+
// /* ---------------------------- Invalid Tests --------------------------- */
|
|
39
|
+
// /*------------------------------------------------------------------------*/
|
|
40
|
+
// const invalidUrls: string[] = [
|
|
41
|
+
// '',
|
|
42
|
+
// ' ',
|
|
43
|
+
// 'example',
|
|
44
|
+
// 'http://',
|
|
45
|
+
// 'http://.',
|
|
46
|
+
// 'http://..',
|
|
47
|
+
// 'http://##/',
|
|
48
|
+
// 'http://../',
|
|
49
|
+
// 'http://??/',
|
|
50
|
+
// 'http://#',
|
|
51
|
+
// 'http://##',
|
|
52
|
+
// '//',
|
|
53
|
+
// '//a',
|
|
54
|
+
// '///a',
|
|
55
|
+
// '///',
|
|
56
|
+
// 'http:///a',
|
|
57
|
+
// 'http://www.foo.bar./',
|
|
58
|
+
// 'http://foo.bar/foo(bar)baz quux',
|
|
59
|
+
// 'http://3628126748',
|
|
60
|
+
// 'http://.www.foo.bar/',
|
|
61
|
+
// 'http://.www.foo.bar./',
|
|
62
|
+
// 'http://123.123.123',
|
|
63
|
+
// 'http://1.1.1.1.1',
|
|
64
|
+
// 'http://example.com:99999',
|
|
65
|
+
// 'http://example.com:80:80',
|
|
66
|
+
// 'http://example.com::80',
|
|
67
|
+
// 'http://example.com:-80',
|
|
68
|
+
// 'http://-example.com',
|
|
69
|
+
// 'http://example.com-',
|
|
70
|
+
// 'http://example.com_',
|
|
71
|
+
// 'http://example..com',
|
|
72
|
+
// 'http://example.com.',
|
|
73
|
+
// 'http://.example.com'
|
|
74
|
+
// ];
|
|
75
|
+
// test(
|
|
76
|
+
// 'Returns false for a given invalid URL.',
|
|
77
|
+
// async () => {
|
|
78
|
+
// invalidUrls.forEach((url) => {
|
|
79
|
+
// expect(isValid(url)).toBe(false);
|
|
80
|
+
// });
|
|
81
|
+
// },
|
|
82
|
+
// );
|
|
83
|
+
//# sourceMappingURL=validURL.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validURL.test.js","sourceRoot":"","sources":["../../../src/helpers/validators/validURL.test.ts"],"names":[],"mappings":"AACA,mCAAmC;AACnC,oCAAoC;AAEpC,sBAAsB;AACtB,kGAAkG;AAElG,+EAA+E;AAC/E,6EAA6E;AAC7E,+EAA+E;AAE/E,gCAAgC;AAChC,0BAA0B;AAC1B,2BAA2B;AAC3B,8BAA8B;AAC9B,+BAA+B;AAC/B,gCAAgC;AAChC,+BAA+B;AAC/B,wCAAwC;AACxC,uCAAuC;AACvC,oCAAoC;AACpC,mCAAmC;AACnC,wBAAwB;AACxB,8BAA8B;AAC9B,6BAA6B;AAC7B,wBAAwB;AACxB,6BAA6B;AAC7B,8BAA8B;AAC9B,yBAAyB;AACzB,8BAA8B;AAC9B,8BAA8B;AAC9B,KAAK;AAEL,QAAQ;AACR,2CAA2C;AAC3C,kBAAkB;AAClB,mCAAmC;AACnC,yCAAyC;AACzC,UAAU;AACV,OAAO;AACP,KAAK;AAEL,+EAA+E;AAC/E,+EAA+E;AAC/E,+EAA+E;AAE/E,kCAAkC;AAClC,QAAQ;AACR,SAAS;AACT,eAAe;AACf,eAAe;AACf,gBAAgB;AAChB,iBAAiB;AACjB,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB;AAClB,gBAAgB;AAChB,iBAAiB;AACjB,UAAU;AACV,WAAW;AACX,YAAY;AACZ,WAAW;AACX,iBAAiB;AACjB,4BAA4B;AAC5B,uCAAuC;AACvC,yBAAyB;AACzB,4BAA4B;AAC5B,6BAA6B;AAC7B,0BAA0B;AAC1B,wBAAwB;AACxB,gCAAgC;AAChC,gCAAgC;AAChC,8BAA8B;AAC9B,8BAA8B;AAC9B,2BAA2B;AAC3B,2BAA2B;AAC3B,2BAA2B;AAC3B,2BAA2B;AAC3B,2BAA2B;AAC3B,0BAA0B;AAC1B,KAAK;AAEL,QAAQ;AACR,8CAA8C;AAC9C,kBAAkB;AAClB,qCAAqC;AACrC,0CAA0C;AAC1C,UAAU;AACV,OAAO;AACP,KAAK"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import ValidationResult from './shared/types/ValidationResult';
|
|
2
|
+
/**
|
|
3
|
+
* Determines whether a given email address is valid.
|
|
4
|
+
* @author Austen Money
|
|
5
|
+
* @param email email address to validate
|
|
6
|
+
* @returns whether email fulfills proper formatting requirements, includes a
|
|
7
|
+
* cleaned version of the address without leading or trailing
|
|
8
|
+
* whitespace if valid or an error message if invalid.
|
|
9
|
+
*/
|
|
10
|
+
declare const validateEmail: (email: string) => ValidationResult<string>;
|
|
11
|
+
export default validateEmail;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
// Import helpers
|
|
7
|
+
var validateRegex_1 = __importDefault(require("./shared/helpers/validateRegex"));
|
|
8
|
+
// Import constants
|
|
9
|
+
var ERROR_MESSAGES_1 = require("./shared/constants/ERROR_MESSAGES");
|
|
10
|
+
/**
|
|
11
|
+
* Determines whether a given email address is valid.
|
|
12
|
+
* @author Austen Money
|
|
13
|
+
* @param email email address to validate
|
|
14
|
+
* @returns whether email fulfills proper formatting requirements, includes a
|
|
15
|
+
* cleaned version of the address without leading or trailing
|
|
16
|
+
* whitespace if valid or an error message if invalid.
|
|
17
|
+
*/
|
|
18
|
+
var validateEmail = function (email) {
|
|
19
|
+
// validation regex, sourced from HTML living standard: http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#e-mail-state-(type=email)
|
|
20
|
+
// eslint-disable-next-line max-len
|
|
21
|
+
var emailRegex = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
|
|
22
|
+
// remove leading and trailing whitespace
|
|
23
|
+
var cleanedValue = email.replace(/^\s+|\s+$/g, '');
|
|
24
|
+
// validate email with regex, and return error if not valid
|
|
25
|
+
return ((0, validateRegex_1.default)({
|
|
26
|
+
input: cleanedValue,
|
|
27
|
+
regex: emailRegex,
|
|
28
|
+
}).isValid
|
|
29
|
+
? {
|
|
30
|
+
isValid: true,
|
|
31
|
+
cleanedValue: cleanedValue,
|
|
32
|
+
}
|
|
33
|
+
: {
|
|
34
|
+
isValid: false,
|
|
35
|
+
errorMessage: ERROR_MESSAGES_1.INVALID_EMAIL_ERROR,
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
exports.default = validateEmail;
|
|
39
|
+
//# sourceMappingURL=validateEmail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateEmail.js","sourceRoot":"","sources":["../../../src/helpers/validators/validateEmail.ts"],"names":[],"mappings":";;;;;AAAA,iBAAiB;AACjB,iFAA2D;AAE3D,mBAAmB;AACnB,oEAAwE;AAKxE;;;;;;;GAOG;AACH,IAAM,aAAa,GAAG,UACpB,KAAa;IAEb,wJAAwJ;IACxJ,mCAAmC;IACnC,IAAM,UAAU,GAAG,uIAAuI,CAAC;IAE3J,yCAAyC;IACzC,IAAM,YAAY,GAAW,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAE7D,2DAA2D;IAC3D,OAAO,CACL,IAAA,uBAAa,EACX;QACE,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,UAAU;KAClB,CACF,CAAC,OAAO;QACP,CAAC,CAAC;YACA,OAAO,EAAE,IAAI;YACb,YAAY,cAAA;SACb;QACD,CAAC,CAAC;YACA,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,oCAAmB;SAClC,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
// Import constants
|
|
43
|
+
var ERROR_MESSAGES_1 = require("./shared/constants/ERROR_MESSAGES");
|
|
44
|
+
// Import function
|
|
45
|
+
var validateEmail_1 = __importDefault(require("./validateEmail"));
|
|
46
|
+
/*------------------------------------------------------------------------*/
|
|
47
|
+
/* ---------------------------- Valid Tests --------------------------- */
|
|
48
|
+
/*------------------------------------------------------------------------*/
|
|
49
|
+
var validEmailPairs = [
|
|
50
|
+
{
|
|
51
|
+
input: 'username@gmail.com',
|
|
52
|
+
cleaned: 'username@gmail.com',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
input: 'u@hotmail.org',
|
|
56
|
+
cleaned: 'u@hotmail.org',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
input: ' username@gmail.com',
|
|
60
|
+
cleaned: 'username@gmail.com',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
input: 'username@gmail.com ',
|
|
64
|
+
cleaned: 'username@gmail.com',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
input: ' username@gmail.com ',
|
|
68
|
+
cleaned: 'username@gmail.com',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
input: 'username@harvard.edu',
|
|
72
|
+
cleaned: 'username@harvard.edu',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
input: 'username@harvard.subdomain.edu',
|
|
76
|
+
cleaned: 'username@harvard.subdomain.edu',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
input: '\nusername@harvard.subdomain.edu',
|
|
80
|
+
cleaned: 'username@harvard.subdomain.edu',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
input: '\n\tusername@harvard.subdomain.edu',
|
|
84
|
+
cleaned: 'username@harvard.subdomain.edu',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
input: 'username@harvard.subdomain.edu\n',
|
|
88
|
+
cleaned: 'username@harvard.subdomain.edu',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
input: 'username@harvard.subdomain.edu\n\t',
|
|
92
|
+
cleaned: 'username@harvard.subdomain.edu',
|
|
93
|
+
},
|
|
94
|
+
];
|
|
95
|
+
test('Returns true for a given valid email and removes any leading or trailing whitespace.', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
validEmailPairs.forEach(function (pair) {
|
|
98
|
+
var validResponse = {
|
|
99
|
+
isValid: true,
|
|
100
|
+
cleanedValue: pair.cleaned,
|
|
101
|
+
};
|
|
102
|
+
expect((0, validateEmail_1.default)(pair.input)).toStrictEqual(validResponse);
|
|
103
|
+
});
|
|
104
|
+
return [2 /*return*/];
|
|
105
|
+
});
|
|
106
|
+
}); });
|
|
107
|
+
/*------------------------------------------------------------------------*/
|
|
108
|
+
/* ---------------------------- Invalid Tests --------------------------- */
|
|
109
|
+
/*------------------------------------------------------------------------*/
|
|
110
|
+
var invalidEmails = [
|
|
111
|
+
'',
|
|
112
|
+
' ',
|
|
113
|
+
'gmail.com',
|
|
114
|
+
'@gmail.com ',
|
|
115
|
+
'username',
|
|
116
|
+
'username@.com',
|
|
117
|
+
'user name@gmail.com',
|
|
118
|
+
'username @gmail.com',
|
|
119
|
+
'username@ gmail.com',
|
|
120
|
+
'username@gmail .com',
|
|
121
|
+
'username\t@gmail.com',
|
|
122
|
+
'username\n@gmail.com',
|
|
123
|
+
'username@gmail\n.com',
|
|
124
|
+
'username@gmail.\tcom',
|
|
125
|
+
'user\nname@gmail.com',
|
|
126
|
+
'user\tname@gmail.com',
|
|
127
|
+
];
|
|
128
|
+
var invalidResponse = {
|
|
129
|
+
isValid: false,
|
|
130
|
+
errorMessage: ERROR_MESSAGES_1.INVALID_EMAIL_ERROR,
|
|
131
|
+
};
|
|
132
|
+
test('Returns false for a given invalid email.', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
133
|
+
return __generator(this, function (_a) {
|
|
134
|
+
invalidEmails.forEach(function (email) {
|
|
135
|
+
expect((0, validateEmail_1.default)(email)).toStrictEqual(invalidResponse);
|
|
136
|
+
});
|
|
137
|
+
return [2 /*return*/];
|
|
138
|
+
});
|
|
139
|
+
}); });
|
|
140
|
+
//# sourceMappingURL=validateEmail.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateEmail.test.js","sourceRoot":"","sources":["../../../src/helpers/validators/validateEmail.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,mBAAmB;AACnB,oEAAwE;AAExE,kBAAkB;AAClB,kEAA4C;AAE5C,4EAA4E;AAC5E,0EAA0E;AAC1E,4EAA4E;AAE5E,IAAM,eAAe,GAAyC;IAC5D;QACE,KAAK,EAAE,oBAAoB;QAC3B,OAAO,EAAE,oBAAoB;KAC9B;IACD;QACE,KAAK,EAAE,eAAe;QACtB,OAAO,EAAE,eAAe;KACzB;IACD;QACE,KAAK,EAAE,uBAAuB;QAC9B,OAAO,EAAE,oBAAoB;KAC9B;IACD;QACE,KAAK,EAAE,4BAA4B;QACnC,OAAO,EAAE,oBAAoB;KAC9B;IACD;QACE,KAAK,EAAE,sBAAsB;QAC7B,OAAO,EAAE,oBAAoB;KAC9B;IACD;QACE,KAAK,EAAE,sBAAsB;QAC7B,OAAO,EAAE,sBAAsB;KAChC;IACD;QACE,KAAK,EAAE,gCAAgC;QACvC,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,KAAK,EAAE,kCAAkC;QACzC,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,KAAK,EAAE,oCAAoC;QAC3C,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,KAAK,EAAE,kCAAkC;QACzC,OAAO,EAAE,gCAAgC;KAC1C;IACD;QACE,KAAK,EAAE,oCAAoC;QAC3C,OAAO,EAAE,gCAAgC;KAC1C;CACF,CAAC;AAEF,IAAI,CACF,sFAAsF,EACtF;;QACE,eAAe,CAAC,OAAO,CAAC,UAAC,IAAI;YAC3B,IAAM,aAAa,GAA6B;gBAC9C,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,IAAI,CAAC,OAAO;aAC3B,CAAC;YAEF,MAAM,CAAC,IAAA,uBAAa,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;;;KACJ,CACF,CAAC;AAEF,4EAA4E;AAC5E,4EAA4E;AAC5E,4EAA4E;AAE5E,IAAM,aAAa,GAAa;IAC9B,EAAE;IACF,GAAG;IACH,WAAW;IACX,aAAa;IACb,UAAU;IACV,eAAe;IACf,qBAAqB;IACrB,qBAAqB;IACrB,qBAAqB;IACrB,qBAAqB;IACrB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;IACtB,sBAAsB;CACvB,CAAC;AAEF,IAAM,eAAe,GAA6B;IAChD,OAAO,EAAE,KAAK;IACd,YAAY,EAAE,oCAAmB;CAClC,CAAC;AAEF,IAAI,CACF,0CAA0C,EAC1C;;QACE,aAAa,CAAC,OAAO,CAAC,UAAC,KAAK;YAC1B,MAAM,CAAC,IAAA,uBAAa,EAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;;;KACJ,CACF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import ValidationResult from './shared/types/ValidationResult';
|
|
2
|
+
/**
|
|
3
|
+
* Determines whether a given phone number is valid.
|
|
4
|
+
* @author Austen Money
|
|
5
|
+
* @param phoneNumber phone number to validate
|
|
6
|
+
* @returns whether phone number is considered valid - if valid, also returns
|
|
7
|
+
* a cleaned version of the number without any formatting. If invalid,
|
|
8
|
+
* returns an error message.
|
|
9
|
+
*/
|
|
10
|
+
declare const validatePhoneNumber: (phoneNumber: string) => ValidationResult<string>;
|
|
11
|
+
export default validatePhoneNumber;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
// Import helpers
|
|
7
|
+
var validateRegex_1 = __importDefault(require("./shared/helpers/validateRegex"));
|
|
8
|
+
// Import constants
|
|
9
|
+
var ERROR_MESSAGES_1 = require("./shared/constants/ERROR_MESSAGES");
|
|
10
|
+
/**
|
|
11
|
+
* Determines whether a given phone number is valid.
|
|
12
|
+
* @author Austen Money
|
|
13
|
+
* @param phoneNumber phone number to validate
|
|
14
|
+
* @returns whether phone number is considered valid - if valid, also returns
|
|
15
|
+
* a cleaned version of the number without any formatting. If invalid,
|
|
16
|
+
* returns an error message.
|
|
17
|
+
*/
|
|
18
|
+
var validatePhoneNumber = function (phoneNumber) {
|
|
19
|
+
// regex to validate phone number
|
|
20
|
+
var validationRegex = /^\s*(?:\+?(\d{1,3}))?[-. (]*(\d{3})[-. )]*(\d{3})[-. ]*(\d{4})(?: *x(\d+))?\s*$/;
|
|
21
|
+
// validate phone number with regex
|
|
22
|
+
var validationResponse = (0, validateRegex_1.default)({
|
|
23
|
+
input: phoneNumber,
|
|
24
|
+
regex: validationRegex,
|
|
25
|
+
});
|
|
26
|
+
// remove all non-digits from number
|
|
27
|
+
var cleanedValue = phoneNumber.replace(/\D/g, '');
|
|
28
|
+
// return cleaned value if valid, or error message if invalid
|
|
29
|
+
return (validationResponse.isValid
|
|
30
|
+
? {
|
|
31
|
+
isValid: true,
|
|
32
|
+
cleanedValue: cleanedValue,
|
|
33
|
+
}
|
|
34
|
+
: {
|
|
35
|
+
isValid: false,
|
|
36
|
+
errorMessage: ERROR_MESSAGES_1.INVALID_PHONE_ERROR,
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
exports.default = validatePhoneNumber;
|
|
40
|
+
//# sourceMappingURL=validatePhoneNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validatePhoneNumber.js","sourceRoot":"","sources":["../../../src/helpers/validators/validatePhoneNumber.ts"],"names":[],"mappings":";;;;;AAAA,iBAAiB;AACjB,iFAA2D;AAE3D,mBAAmB;AACnB,oEAAwE;AAKxE;;;;;;;GAOG;AACH,IAAM,mBAAmB,GAAG,UAC1B,WAAmB;IAEnB,iCAAiC;IACjC,IAAM,eAAe,GAAG,iFAAiF,CAAC;IAE1G,mCAAmC;IACnC,IAAM,kBAAkB,GAAG,IAAA,uBAAa,EACtC;QACE,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,eAAe;KACvB,CACF,CAAC;IAEF,oCAAoC;IACpC,IAAM,YAAY,GAAW,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAE5D,6DAA6D;IAC7D,OAAO,CACL,kBAAkB,CAAC,OAAO;QACxB,CAAC,CAAC;YACA,OAAO,EAAE,IAAI;YACb,YAAY,cAAA;SACb;QACD,CAAC,CAAC;YACA,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,oCAAmB;SAClC,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|