@yamato-daiwa/es-extensions 0.6.2 → 0.9.0-alpha.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/Distributable/cjs/AJAX/AJAX_Service.js +209 -0
- package/Distributable/cjs/AJAX/FetchAPI_Service.js +211 -0
- package/Distributable/cjs/AJAX/URI_QueryParametersSerializer.js +2 -0
- package/Distributable/cjs/AJAX/serializeURI_QueryParameters.js +17 -0
- package/Distributable/cjs/Arrays/00-Creating/createArrayOfNaturalNumbers.js +49 -0
- package/Distributable/cjs/Arrays/01-RetrievingOfElements/getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne.js +33 -0
- package/Distributable/cjs/Arrays/01-RetrievingOfElements/getLastElementOfArray.js +23 -0
- package/Distributable/cjs/Arrays/02-RetrievingOfIndexes/getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne.js +40 -0
- package/Distributable/cjs/Arrays/02-RetrievingOfIndexes/getIndexesOfSatisfiesThePredicateArrayElements.js +6 -0
- package/Distributable/cjs/Arrays/03-RetrievingOfSubarrays/cropArray.js +208 -0
- package/Distributable/cjs/Arrays/04-AddingOfElements/addElementsToArray.js +47 -0
- package/Distributable/cjs/Arrays/05-ReplacingOfElements/replaceArrayElementsByIndexesImmutably.js +41 -0
- package/Distributable/cjs/Arrays/05-ReplacingOfElements/replaceArrayElementsByPredicates.js +40 -0
- package/Distributable/cjs/Arrays/06-PermutationsOfElements/moveArrayElementToOnePosition.js +85 -0
- package/Distributable/cjs/Arrays/06-PermutationsOfElements/swapArrayElements.js +147 -0
- package/Distributable/cjs/Arrays/07-RemovingOfElements/removeArrayElementsByIndexes.js +59 -0
- package/Distributable/cjs/Arrays/07-RemovingOfElements/removeArrayElementsByPredicates.js +29 -0
- package/Distributable/cjs/Arrays/08-Restructuring/twoDimensionalizeArray.js +21 -0
- package/Distributable/cjs/Arrays/09-Other/addElementsToArrayIfTheyAreNotPresentOtherwiseRemove.js +62 -0
- package/Distributable/cjs/Arrays/09-Other/readonlyArrayToMutableOne.js +6 -0
- package/Distributable/cjs/ConstantsAndEnumerations/YDEE_BUG_REPORTING_PAGE_URI.js +4 -0
- package/Distributable/cjs/DataMocking/DataMocking.js +27 -0
- package/Distributable/cjs/DataMocking/MockGatewayHelpler/MockGatewayHelper.js +75 -0
- package/Distributable/cjs/DataMocking/MockGatewayHelpler/MockGatewayHelperLocalization.english.js +25 -0
- package/Distributable/cjs/DateTime/CalendarBuilder.js +246 -0
- package/Distributable/cjs/DateTime/DateWithoutTime.js +235 -0
- package/Distributable/cjs/DateTime/TimePoint.js +550 -0
- package/Distributable/cjs/DateTime/Timer.js +24 -0
- package/Distributable/cjs/DateTime/convert24_HoursFormatTo12_HoursFormat.js +42 -0
- package/Distributable/cjs/DateTime/getDaysCountInSpecificMonth.js +8 -0
- package/Distributable/cjs/DateTime/getISO8601_StringWithoutTimePart.js +70 -0
- package/Distributable/cjs/DateTime/getMonthNameByNumber.js +76 -0
- package/Distributable/cjs/DateTime/getMonthNumberByName.js +38 -0
- package/Distributable/cjs/DateTime/getNextMonthNumber.js +26 -0
- package/Distributable/cjs/DateTime/getPreviousMonthNumber.js +26 -0
- package/Distributable/cjs/DateTime/getYearOfNextMonth.js +10 -0
- package/Distributable/cjs/DateTime/getYearOfPreviousMonth.js +8 -0
- package/Distributable/cjs/DateTime/hasTimeCome.js +6 -0
- package/Distributable/cjs/DateTime/isValidNativeDate.js +6 -0
- package/Distributable/cjs/DateTime/millisecondsToSeconds.js +6 -0
- package/Distributable/cjs/DateTime/secondsToMilliseconds.js +6 -0
- package/Distributable/cjs/DefaultValueSubstituters/substituteWhenNull.js +6 -0
- package/Distributable/cjs/DefaultValueSubstituters/substituteWhenUndefined.js +6 -0
- package/Distributable/cjs/Errors/AlgorithmMismatch/AlgorithmMismatchError.js +16 -0
- package/Distributable/cjs/Errors/AlgorithmMismatch/AlgorithmMismatchErrorLocalization.english.js +6 -0
- package/Distributable/cjs/Errors/ClassRedundantSubsequentInitialization/ClassRedundantSubsequentInitializationError.js +18 -0
- package/Distributable/cjs/Errors/ClassRedundantSubsequentInitialization/ClassRedundantSubsequentInitializationErrorLocalization.english.js +7 -0
- package/Distributable/cjs/Errors/ClassRequiredInitializationHasNotBeenExecuted/ClassRequiredInitializationHasNotBeenExecutedError.js +18 -0
- package/Distributable/cjs/Errors/ClassRequiredInitializationHasNotBeenExecuted/ClassRequiredInitializationHasNotBeenExecutedErrorLocalization.english.js +8 -0
- package/Distributable/cjs/Errors/ConfigFileNotFound/ConfigFileNotFoundError.js +18 -0
- package/Distributable/cjs/Errors/ConfigFileNotFound/ConfigFileNotFoundErrorLocalization.english.js +18 -0
- package/Distributable/cjs/Errors/CrossBrowserIssue/CrossBrowserIssueError.js +16 -0
- package/Distributable/cjs/Errors/CrossBrowserIssue/CrossBrowserIssueErrorLocalization.english.js +6 -0
- package/Distributable/cjs/Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError.js +18 -0
- package/Distributable/cjs/Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedErrorLocalization.english.js +7 -0
- package/Distributable/cjs/Errors/DataRetrievingFailed/DataRetrievingFailedError.js +28 -0
- package/Distributable/cjs/Errors/DataRetrievingFailed/DataRetrievingFailedErrorLocalization.english.js +10 -0
- package/Distributable/cjs/Errors/DataSubmittingFailed/DataSubmittingFailedError.js +28 -0
- package/Distributable/cjs/Errors/DataSubmittingFailed/DataSubmittingFailedErrorLocalization.english.js +10 -0
- package/Distributable/cjs/Errors/FileReadingFailed/FileReadingFailedError.js +18 -0
- package/Distributable/cjs/Errors/FileReadingFailed/FileReadingFailedErrorLocalization.english.js +7 -0
- package/Distributable/cjs/Errors/FileWritingFailed/FileWritingFailedError.js +18 -0
- package/Distributable/cjs/Errors/FileWritingFailed/FileWritingFailedErrorLocalization.english.js +7 -0
- package/Distributable/cjs/Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureError.js +16 -0
- package/Distributable/cjs/Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureErrorLocalization.english.js +6 -0
- package/Distributable/cjs/Errors/ImproperUsage/ImproperUsageError.js +16 -0
- package/Distributable/cjs/Errors/ImproperUsage/ImproperUsageErrorLocalization.english.js +4 -0
- package/Distributable/cjs/Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterError.js +21 -0
- package/Distributable/cjs/Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterErrorLocalization.english.js +8 -0
- package/Distributable/cjs/Errors/InterProcessInteractionFailed/InterProcessInteractionFailedError.js +16 -0
- package/Distributable/cjs/Errors/InterProcessInteractionFailed/InterProcessInteractionFailedErrorLocalization.english.js +6 -0
- package/Distributable/cjs/Errors/InvalidConfig/InvalidConfigError.js +18 -0
- package/Distributable/cjs/Errors/InvalidConfig/InvalidConfigErrorLocalization.english.js +12 -0
- package/Distributable/cjs/Errors/InvalidExternalData/InvalidExternalDataError.js +18 -0
- package/Distributable/cjs/Errors/InvalidExternalData/InvalidExternalDataErrorLocalization.english.js +13 -0
- package/Distributable/cjs/Errors/InvalidParameterValue/InvalidParameterValueError.js +18 -0
- package/Distributable/cjs/Errors/InvalidParameterValue/InvalidParameterValueErrorLocalization.english.js +12 -0
- package/Distributable/cjs/Errors/ModuleDynamicLoadingFailed/ModuleDynamicLoadingFailedError.js +18 -0
- package/Distributable/cjs/Errors/ModuleDynamicLoadingFailed/ModuleDynamicLoadingFailedErrorLocalization.english.js +7 -0
- package/Distributable/cjs/Errors/UnexpectedEvent/UnexpectedEventError.js +16 -0
- package/Distributable/cjs/Errors/UnexpectedEvent/UnexpectedEventErrorLocalization.english.js +6 -0
- package/Distributable/cjs/Errors/UnsupportedScenario/UnsupportedScenarioError.js +16 -0
- package/Distributable/cjs/Errors/UnsupportedScenario/UnsupportedScenarioErrorLocalization.english.js +6 -0
- package/Distributable/cjs/Files/encodeFileToBase64.js +54 -0
- package/Distributable/cjs/IDsGenerators/StringTypeID_Generator.js +73 -0
- package/Distributable/cjs/Logging/ILogger.js +2 -0
- package/Distributable/cjs/Logging/Logger.js +238 -0
- package/Distributable/cjs/Logging/LoggerLocalization.english.js +18 -0
- package/Distributable/cjs/Logging/Logs.js +2 -0
- package/Distributable/cjs/Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilder.js +61 -0
- package/Distributable/cjs/Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilderLocalization.english.js +18 -0
- package/Distributable/cjs/Maps/addEntriesToMap.js +23 -0
- package/Distributable/cjs/Maps/createMapBasedOnOtherMap.js +10 -0
- package/Distributable/cjs/Maps/filterMap.js +12 -0
- package/Distributable/cjs/Maps/getExpectedToBeNonUndefinedMapValue.js +20 -0
- package/Distributable/cjs/Maps/invertMapImmutably.js +6 -0
- package/Distributable/cjs/Maps/mergeMaps.js +12 -0
- package/Distributable/cjs/Maps/removeEntriesFromMap.js +21 -0
- package/Distributable/cjs/Maps/replaceValuesInMap.js +29 -0
- package/Distributable/cjs/Numbers/formatNumberWith4_KetaKanji.js +36 -0
- package/Distributable/cjs/Numbers/getArithmeticMean.js +8 -0
- package/Distributable/cjs/Numbers/isStringifiedNonNegativeIntegerOfRegularNotation.js +6 -0
- package/Distributable/cjs/Numbers/limitMaximalValue.js +6 -0
- package/Distributable/cjs/Numbers/limitMinimalAndMaximalValues.js +9 -0
- package/Distributable/cjs/Numbers/limitMinimalValue.js +6 -0
- package/Distributable/cjs/Numbers/roundDownToSpecificIntegerPlaceValue.js +10 -0
- package/Distributable/cjs/Numbers/roundToSpecificNearestIntegerPlaceValue.js +10 -0
- package/Distributable/cjs/Numbers/roundToSpecifiedNearestDecimalPlaceValue.js +7 -0
- package/Distributable/cjs/Numbers/roundUpToSpecificIntegerPlaceValue.js +10 -0
- package/Distributable/cjs/Numbers/separateEach3_DigitsGroupWithComma.js +6 -0
- package/Distributable/cjs/Numbers/separateEach4_DigitsGroupWithComma.js +6 -0
- package/Distributable/cjs/Objects/getObjectPropertySafely.js +56 -0
- package/Distributable/cjs/Pagination/PaginationCollection.js +48 -0
- package/Distributable/cjs/Pagination/computeFirstItemNumberForSpecificPaginationPage.js +6 -0
- package/Distributable/cjs/Pagination/computeLastItemNumberForSpecificPaginationPage.js +7 -0
- package/Distributable/cjs/Pagination/getItemsOfPaginationPage.js +40 -0
- package/Distributable/cjs/Promises/PromisesQueue.js +81 -0
- package/Distributable/cjs/RandomValuesGenerators/getRandomArrayElement.js +13 -0
- package/Distributable/cjs/RandomValuesGenerators/getRandomBoolean.js +6 -0
- package/Distributable/cjs/RandomValuesGenerators/getRandomInteger.js +16 -0
- package/Distributable/cjs/RandomValuesGenerators/getRandomLatinCharacter.js +19 -0
- package/Distributable/cjs/RandomValuesGenerators/getRandomObjectPropertyValue.js +10 -0
- package/Distributable/cjs/RandomValuesGenerators/getRandomString/getRandomString.js +195 -0
- package/Distributable/cjs/RandomValuesGenerators/getRandomString/gettingOfRandomStringLocalization__english.js +27 -0
- package/Distributable/cjs/RandomValuesGenerators/getRandomSubarray.js +127 -0
- package/Distributable/cjs/RandomValuesGenerators/getSpecificBooleanValueWithProbability.js +6 -0
- package/Distributable/cjs/RandomValuesGenerators/removeRandomArrayElement.js +14 -0
- package/Distributable/cjs/RawObjectDataProcessor/Helpers/convertPotentialStringToFloatIfPossible.js +15 -0
- package/Distributable/cjs/RawObjectDataProcessor/Helpers/convertPotentialStringToIntegerIfPossible.js +14 -0
- package/Distributable/cjs/RawObjectDataProcessor/Helpers/convertPotentialStringToNumberIfPossible.js +15 -0
- package/Distributable/cjs/RawObjectDataProcessor/Helpers/destringifyBooleanValueIfPossible.js +12 -0
- package/Distributable/cjs/RawObjectDataProcessor/RawObjectDataProcessor.js +2455 -0
- package/Distributable/cjs/RawObjectDataProcessor/RawObjectDataProcessorLocalization.english.js +373 -0
- package/Distributable/cjs/Sets/addElementsToSet.js +10 -0
- package/Distributable/cjs/Sets/createSetBasedOnAnyArrayLikeCollection.js +6 -0
- package/Distributable/cjs/Sets/createSetBasedOnOtherSet.js +6 -0
- package/Distributable/cjs/Sets/getOneElementOfSet.js +22 -0
- package/Distributable/cjs/Sets/mergeSets.js +12 -0
- package/Distributable/cjs/Sets/removeOneElementOfSet.js +35 -0
- package/Distributable/cjs/Sets/removeSetElementsByPredicates.js +21 -0
- package/Distributable/cjs/Strings/ArbitraryValueFormatter.js +118 -0
- package/Distributable/cjs/Strings/CharactersAssets/EscapeCharacters.js +12 -0
- package/Distributable/cjs/Strings/CharactersAssets/SpaceCharacters.js +21 -0
- package/Distributable/cjs/Strings/CharactersAssets/SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag.js +21 -0
- package/Distributable/cjs/Strings/CharactersAssets/lowercaseLatinCharacters.js +31 -0
- package/Distributable/cjs/Strings/CharactersAssets/stringifiedDigits.js +4 -0
- package/Distributable/cjs/Strings/CharactersAssets/uppercaseLatinCharacters.js +31 -0
- package/Distributable/cjs/Strings/EmailAddress.js +9 -0
- package/Distributable/cjs/Strings/IndentationCoordinator.js +39 -0
- package/Distributable/cjs/Strings/LineSeparators/LineSeparators.js +9 -0
- package/Distributable/cjs/Strings/LineSeparators/getLineSeparatorType.js +19 -0
- package/Distributable/cjs/Strings/RegularExpressions/extractMatchingsWithRegularExpression.js +60 -0
- package/Distributable/cjs/Strings/RegularExpressions/getMatchingWithFirstRegularExpressionCapturingGroup.js +49 -0
- package/Distributable/cjs/Strings/RegularExpressions/replaceMatchesWithRegularExpressionToDynamicValue.js +36 -0
- package/Distributable/cjs/Strings/URI/FilesAndDirectories/FileNameExtensions/appendLastFileNameExtension.js +21 -0
- package/Distributable/cjs/Strings/URI/FilesAndDirectories/FileNameExtensions/extractAllFileNameExtensions.js +20 -0
- package/Distributable/cjs/Strings/URI/FilesAndDirectories/FileNameExtensions/extractLastExtensionOfFileName.js +26 -0
- package/Distributable/cjs/Strings/URI/FilesAndDirectories/FileNameExtensions/removeAllFileNameExtensions.js +23 -0
- package/Distributable/cjs/Strings/URI/FilesAndDirectories/FileNameExtensions/removeSpecifiedFileNameExtensionsFromPath.js +42 -0
- package/Distributable/cjs/Strings/URI/FilesAndDirectories/Stem/extractFileNameWithoutAnyExtensions.js +28 -0
- package/Distributable/cjs/Strings/URI/FilesAndDirectories/extractFileNameWithAllExtensionsFromPath.js +27 -0
- package/Distributable/cjs/Strings/URI/FilesAndDirectories/extractFileNameWithoutLastExtension.js +21 -0
- package/Distributable/cjs/Strings/URI/Fragment/appendFragmentToURI.js +32 -0
- package/Distributable/cjs/Strings/URI/Fragment/getURI_Fragment.js +25 -0
- package/Distributable/cjs/Strings/URI/PathSegments/explodeURI_PathToSegments.js +11 -0
- package/Distributable/cjs/Strings/URI/PathSegments/replaceLastURI_PathSegment.js +19 -0
- package/Distributable/cjs/Strings/URI/generateMailtoURI_Scheme.js +37 -0
- package/Distributable/cjs/Strings/URI/getURI_PartWithoutFragment.js +6 -0
- package/Distributable/cjs/Strings/URI/removeSpecificSegmentsFromURI_Path.js +19 -0
- package/Distributable/cjs/Strings/adjustCharactersCount.js +117 -0
- package/Distributable/cjs/Strings/appendCharacterIfItDoesNotPresentInLastPosition.js +7 -0
- package/Distributable/cjs/Strings/capitalizeFirstCharacter.js +6 -0
- package/Distributable/cjs/Strings/cropString.js +85 -0
- package/Distributable/cjs/Strings/explodeCasedPhraseToWords.js +59 -0
- package/Distributable/cjs/Strings/explodeStringToLines.js +12 -0
- package/Distributable/cjs/Strings/getEnglishAbbreviatedOrdinalNumber.js +11 -0
- package/Distributable/cjs/Strings/getLastCharacter.js +6 -0
- package/Distributable/cjs/Strings/getPositionsOfAllSubstringOccurrences.js +15 -0
- package/Distributable/cjs/Strings/hasStringOnlySpecificCharacters.js +53 -0
- package/Distributable/cjs/Strings/insertSubstring.js +12 -0
- package/Distributable/cjs/Strings/insertSubstringIf.js +6 -0
- package/Distributable/cjs/Strings/isIPv4_AddressLiesInRange.js +105 -0
- package/Distributable/cjs/Strings/isStringIncludingAtLeastOneOfSubstrings.js +11 -0
- package/Distributable/cjs/Strings/removeAllSpecifiedCharacters.js +13 -0
- package/Distributable/cjs/Strings/removeLastCharacter.js +8 -0
- package/Distributable/cjs/Strings/removeNonDigitsCharacters.js +9 -0
- package/Distributable/cjs/Strings/removeNthCharacter.js +13 -0
- package/Distributable/cjs/Strings/removeSpecificCharacterFromCertainPosition.js +31 -0
- package/Distributable/cjs/Strings/replace2_OrMoreSpacesTo1.js +6 -0
- package/Distributable/cjs/Strings/replaceBrHTML_TagToNewLineEscapeSequence.js +6 -0
- package/Distributable/cjs/Strings/replaceDoubleBackslashesWithForwardSlashes.js +6 -0
- package/Distributable/cjs/Strings/reverseString.js +8 -0
- package/Distributable/cjs/Strings/splitString.js +9 -0
- package/Distributable/cjs/Strings/surroundLabelByOrnament.js +19 -0
- package/Distributable/cjs/Strings/toLowerCamelCase.js +35 -0
- package/Distributable/cjs/Strings/toScreamingSnakeCase.js +26 -0
- package/Distributable/cjs/Strings/toUpperCamelCase.js +25 -0
- package/Distributable/cjs/Strings/trimSpaces.js +34 -0
- package/Distributable/cjs/TypeGuards/Arrays/isArrayOfCertainTypeElements.js +14 -0
- package/Distributable/cjs/TypeGuards/Arrays/isArrayOfLength.js +30 -0
- package/Distributable/cjs/TypeGuards/Arrays/isEmptyArray.js +6 -0
- package/Distributable/cjs/TypeGuards/Arrays/isNonEmptyArray.js +9 -0
- package/Distributable/cjs/TypeGuards/EmptyTypes/isEitherUndefinedOrNull.js +6 -0
- package/Distributable/cjs/TypeGuards/EmptyTypes/isNeitherUndefinedNorNull.js +6 -0
- package/Distributable/cjs/TypeGuards/EmptyTypes/isNotNull.js +6 -0
- package/Distributable/cjs/TypeGuards/EmptyTypes/isNotUndefined.js +6 -0
- package/Distributable/cjs/TypeGuards/EmptyTypes/isNull.js +6 -0
- package/Distributable/cjs/TypeGuards/EmptyTypes/isUndefined.js +6 -0
- package/Distributable/cjs/TypeGuards/Numbers/isBigInt.js +6 -0
- package/Distributable/cjs/TypeGuards/Numbers/isDecimalFractionOfAnySign.js +9 -0
- package/Distributable/cjs/TypeGuards/Numbers/isIntegerOfAnySign.js +6 -0
- package/Distributable/cjs/TypeGuards/Numbers/isNaturalNumber.js +9 -0
- package/Distributable/cjs/TypeGuards/Numbers/isNaturalNumberOrZero.js +9 -0
- package/Distributable/cjs/TypeGuards/Numbers/isNegativeDecimalFraction.js +8 -0
- package/Distributable/cjs/TypeGuards/Numbers/isNegativeInteger.js +9 -0
- package/Distributable/cjs/TypeGuards/Numbers/isNegativeIntegerOrZero.js +9 -0
- package/Distributable/cjs/TypeGuards/Numbers/isNumber.js +9 -0
- package/Distributable/cjs/TypeGuards/Numbers/isPositiveDecimalFraction.js +8 -0
- package/Distributable/cjs/TypeGuards/Numbers/isPositiveIntegerOrZero.js +9 -0
- package/Distributable/cjs/TypeGuards/Objects/isArbitraryObject.js +6 -0
- package/Distributable/cjs/TypeGuards/Objects/isEmptyObject.js +9 -0
- package/Distributable/cjs/TypeGuards/Objects/isNonEmptyArbitraryObject.js +6 -0
- package/Distributable/cjs/TypeGuards/Objects/isNonEmptyObject.js +9 -0
- package/Distributable/cjs/TypeGuards/Objects/isNonNullObject.js +6 -0
- package/Distributable/cjs/TypeGuards/ParsedJSON/isPossiblyReadonlyParsedJSON.js +6 -0
- package/Distributable/cjs/TypeGuards/ParsedJSON/isPossiblyReadonlyParsedJSON_Object.js +6 -0
- package/Distributable/cjs/TypeGuards/Strings/areStringifiedDigitsOnly.js +6 -0
- package/Distributable/cjs/TypeGuards/Strings/isEmptyString.js +6 -0
- package/Distributable/cjs/TypeGuards/Strings/isNonEmptyString.js +6 -0
- package/Distributable/cjs/TypeGuards/Strings/isString.js +6 -0
- package/Distributable/cjs/TypeGuards/Strings/isStringOfLength.js +30 -0
- package/Distributable/cjs/TypeGuards/isBoolean.js +6 -0
- package/Distributable/cjs/TypeGuards/isElementOfEnumeration.js +11 -0
- package/Distributable/cjs/TypeGuards/isFunctionLike.js +6 -0
- package/Distributable/cjs/Types/ArbitraryObject.js +2 -0
- package/Distributable/cjs/Types/ElementOfPseudoEnumeration.js +2 -0
- package/Distributable/cjs/Types/InheritEnumerationKeys.js +2 -0
- package/Distributable/cjs/Types/ParsedJSON.js +2 -0
- package/Distributable/cjs/Types/PartialBy.js +2 -0
- package/Distributable/cjs/ValueTransformers/emptyStringToNull.js +6 -0
- package/Distributable/cjs/ValueTransformers/emptyStringToTrue.js +6 -0
- package/Distributable/cjs/ValueTransformers/emptyStringToUndefined.js +6 -0
- package/Distributable/cjs/ValueTransformers/nullToEmptyString.js +6 -0
- package/Distributable/cjs/ValueTransformers/nullToUndefined.js +6 -0
- package/Distributable/cjs/ValueTransformers/nullToZero.js +6 -0
- package/Distributable/cjs/ValueTransformers/undefinedToEmptyArray.js +6 -0
- package/Distributable/cjs/ValueTransformers/undefinedToEmptyString.js +6 -0
- package/Distributable/cjs/ValueTransformers/undefinedToFalse.js +6 -0
- package/Distributable/cjs/ValueTransformers/undefinedToNull.js +6 -0
- package/Distributable/cjs/ValuesDeepCopier.js +52 -0
- package/Distributable/cjs/index.js +532 -0
- package/Distributable/esm/AJAX/AJAX_Service.d.ts +146 -0
- package/Distributable/esm/AJAX/AJAX_Service.js +204 -0
- package/Distributable/esm/AJAX/FetchAPI_Service.d.ts +13 -0
- package/Distributable/esm/AJAX/FetchAPI_Service.js +205 -0
- package/Distributable/esm/AJAX/URI_QueryParametersSerializer.d.ts +3 -0
- package/Distributable/esm/AJAX/URI_QueryParametersSerializer.js +1 -0
- package/Distributable/esm/AJAX/serializeURI_QueryParameters.d.ts +3 -0
- package/Distributable/esm/AJAX/serializeURI_QueryParameters.js +12 -0
- package/Distributable/esm/Arrays/00-Creating/createArrayOfNaturalNumbers.d.ts +5 -0
- package/Distributable/esm/Arrays/00-Creating/createArrayOfNaturalNumbers.js +43 -0
- package/Distributable/esm/Arrays/01-RetrievingOfElements/getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne.d.ts +4 -0
- package/Distributable/esm/Arrays/01-RetrievingOfElements/getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne.js +27 -0
- package/Distributable/esm/Arrays/01-RetrievingOfElements/getLastElementOfArray.d.ts +4 -0
- package/Distributable/esm/Arrays/01-RetrievingOfElements/getLastElementOfArray.js +17 -0
- package/Distributable/esm/Arrays/02-RetrievingOfIndexes/getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne.d.ts +4 -0
- package/Distributable/esm/Arrays/02-RetrievingOfIndexes/getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne.js +34 -0
- package/Distributable/esm/Arrays/02-RetrievingOfIndexes/getIndexesOfSatisfiesThePredicateArrayElements.d.ts +1 -0
- package/Distributable/esm/Arrays/02-RetrievingOfIndexes/getIndexesOfSatisfiesThePredicateArrayElements.js +3 -0
- package/Distributable/esm/Arrays/03-RetrievingOfSubarrays/cropArray.d.ts +123 -0
- package/Distributable/esm/Arrays/03-RetrievingOfSubarrays/cropArray.js +202 -0
- package/Distributable/esm/Arrays/04-AddingOfElements/addElementsToArray.d.ts +29 -0
- package/Distributable/esm/Arrays/04-AddingOfElements/addElementsToArray.js +41 -0
- package/Distributable/esm/Arrays/05-ReplacingOfElements/replaceArrayElementsByIndexesImmutably.d.ts +14 -0
- package/Distributable/esm/Arrays/05-ReplacingOfElements/replaceArrayElementsByIndexesImmutably.js +35 -0
- package/Distributable/esm/Arrays/05-ReplacingOfElements/replaceArrayElementsByPredicates.d.ts +23 -0
- package/Distributable/esm/Arrays/05-ReplacingOfElements/replaceArrayElementsByPredicates.js +34 -0
- package/Distributable/esm/Arrays/06-PermutationsOfElements/moveArrayElementToOnePosition.d.ts +19 -0
- package/Distributable/esm/Arrays/06-PermutationsOfElements/moveArrayElementToOnePosition.js +79 -0
- package/Distributable/esm/Arrays/06-PermutationsOfElements/swapArrayElements.d.ts +61 -0
- package/Distributable/esm/Arrays/06-PermutationsOfElements/swapArrayElements.js +141 -0
- package/Distributable/esm/Arrays/07-RemovingOfElements/removeArrayElementsByIndexes.d.ts +15 -0
- package/Distributable/esm/Arrays/07-RemovingOfElements/removeArrayElementsByIndexes.js +53 -0
- package/Distributable/esm/Arrays/07-RemovingOfElements/removeArrayElementsByPredicates.d.ts +18 -0
- package/Distributable/esm/Arrays/07-RemovingOfElements/removeArrayElementsByPredicates.js +23 -0
- package/Distributable/esm/Arrays/08-Restructuring/twoDimensionalizeArray.d.ts +4 -0
- package/Distributable/esm/Arrays/08-Restructuring/twoDimensionalizeArray.js +18 -0
- package/Distributable/esm/Arrays/09-Other/addElementsToArrayIfTheyAreNotPresentOtherwiseRemove.d.ts +64 -0
- package/Distributable/esm/Arrays/09-Other/addElementsToArrayIfTheyAreNotPresentOtherwiseRemove.js +56 -0
- package/Distributable/esm/Arrays/09-Other/readonlyArrayToMutableOne.d.ts +1 -0
- package/Distributable/esm/Arrays/09-Other/readonlyArrayToMutableOne.js +3 -0
- package/Distributable/esm/ConstantsAndEnumerations/YDEE_BUG_REPORTING_PAGE_URI.d.ts +2 -0
- package/Distributable/esm/ConstantsAndEnumerations/YDEE_BUG_REPORTING_PAGE_URI.js +2 -0
- package/Distributable/esm/DataMocking/DataMocking.d.ts +15 -0
- package/Distributable/esm/DataMocking/DataMocking.js +22 -0
- package/Distributable/esm/DataMocking/MockGatewayHelpler/MockGatewayHelper.d.ts +58 -0
- package/Distributable/esm/DataMocking/MockGatewayHelpler/MockGatewayHelper.js +70 -0
- package/Distributable/esm/DataMocking/MockGatewayHelpler/MockGatewayHelperLocalization.english.d.ts +3 -0
- package/Distributable/esm/DataMocking/MockGatewayHelpler/MockGatewayHelperLocalization.english.js +20 -0
- package/Distributable/esm/DateTime/CalendarBuilder.d.ts +45 -0
- package/Distributable/esm/DateTime/CalendarBuilder.js +241 -0
- package/Distributable/esm/DateTime/DateWithoutTime.d.ts +71 -0
- package/Distributable/esm/DateTime/DateWithoutTime.js +230 -0
- package/Distributable/esm/DateTime/TimePoint.d.ts +149 -0
- package/Distributable/esm/DateTime/TimePoint.js +545 -0
- package/Distributable/esm/DateTime/Timer.d.ts +33 -0
- package/Distributable/esm/DateTime/Timer.js +22 -0
- package/Distributable/esm/DateTime/convert24_HoursFormatTo12_HoursFormat.d.ts +8 -0
- package/Distributable/esm/DateTime/convert24_HoursFormatTo12_HoursFormat.js +36 -0
- package/Distributable/esm/DateTime/getDaysCountInSpecificMonth.d.ts +7 -0
- package/Distributable/esm/DateTime/getDaysCountInSpecificMonth.js +5 -0
- package/Distributable/esm/DateTime/getISO8601_StringWithoutTimePart.d.ts +19 -0
- package/Distributable/esm/DateTime/getISO8601_StringWithoutTimePart.js +64 -0
- package/Distributable/esm/DateTime/getMonthNameByNumber.d.ts +5 -0
- package/Distributable/esm/DateTime/getMonthNameByNumber.js +70 -0
- package/Distributable/esm/DateTime/getMonthNumberByName.d.ts +5 -0
- package/Distributable/esm/DateTime/getMonthNumberByName.js +32 -0
- package/Distributable/esm/DateTime/getNextMonthNumber.d.ts +10 -0
- package/Distributable/esm/DateTime/getNextMonthNumber.js +20 -0
- package/Distributable/esm/DateTime/getPreviousMonthNumber.d.ts +10 -0
- package/Distributable/esm/DateTime/getPreviousMonthNumber.js +20 -0
- package/Distributable/esm/DateTime/getYearOfNextMonth.d.ts +7 -0
- package/Distributable/esm/DateTime/getYearOfNextMonth.js +7 -0
- package/Distributable/esm/DateTime/getYearOfPreviousMonth.d.ts +7 -0
- package/Distributable/esm/DateTime/getYearOfPreviousMonth.js +5 -0
- package/Distributable/esm/DateTime/hasTimeCome.d.ts +1 -0
- package/Distributable/esm/DateTime/hasTimeCome.js +3 -0
- package/Distributable/esm/DateTime/isValidNativeDate.d.ts +1 -0
- package/Distributable/esm/DateTime/isValidNativeDate.js +3 -0
- package/Distributable/esm/DateTime/millisecondsToSeconds.d.ts +1 -0
- package/Distributable/esm/DateTime/millisecondsToSeconds.js +3 -0
- package/Distributable/esm/DateTime/secondsToMilliseconds.d.ts +1 -0
- package/Distributable/esm/DateTime/secondsToMilliseconds.js +3 -0
- package/Distributable/esm/DefaultValueSubstituters/substituteWhenNull.d.ts +1 -0
- package/Distributable/esm/DefaultValueSubstituters/substituteWhenNull.js +3 -0
- package/Distributable/esm/DefaultValueSubstituters/substituteWhenUndefined.d.ts +1 -0
- package/Distributable/esm/DefaultValueSubstituters/substituteWhenUndefined.js +3 -0
- package/Distributable/esm/Errors/AlgorithmMismatch/AlgorithmMismatchError.d.ts +11 -0
- package/Distributable/esm/Errors/AlgorithmMismatch/AlgorithmMismatchError.js +11 -0
- package/Distributable/esm/Errors/AlgorithmMismatch/AlgorithmMismatchErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/AlgorithmMismatch/AlgorithmMismatchErrorLocalization.english.js +4 -0
- package/Distributable/esm/Errors/ClassRedundantSubsequentInitialization/ClassRedundantSubsequentInitializationError.d.ts +22 -0
- package/Distributable/esm/Errors/ClassRedundantSubsequentInitialization/ClassRedundantSubsequentInitializationError.js +13 -0
- package/Distributable/esm/Errors/ClassRedundantSubsequentInitialization/ClassRedundantSubsequentInitializationErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/ClassRedundantSubsequentInitialization/ClassRedundantSubsequentInitializationErrorLocalization.english.js +5 -0
- package/Distributable/esm/Errors/ClassRequiredInitializationHasNotBeenExecuted/ClassRequiredInitializationHasNotBeenExecutedError.d.ts +21 -0
- package/Distributable/esm/Errors/ClassRequiredInitializationHasNotBeenExecuted/ClassRequiredInitializationHasNotBeenExecutedError.js +13 -0
- package/Distributable/esm/Errors/ClassRequiredInitializationHasNotBeenExecuted/ClassRequiredInitializationHasNotBeenExecutedErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/ClassRequiredInitializationHasNotBeenExecuted/ClassRequiredInitializationHasNotBeenExecutedErrorLocalization.english.js +6 -0
- package/Distributable/esm/Errors/ConfigFileNotFound/ConfigFileNotFoundError.d.ts +22 -0
- package/Distributable/esm/Errors/ConfigFileNotFound/ConfigFileNotFoundError.js +13 -0
- package/Distributable/esm/Errors/ConfigFileNotFound/ConfigFileNotFoundErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/ConfigFileNotFound/ConfigFileNotFoundErrorLocalization.english.js +13 -0
- package/Distributable/esm/Errors/CrossBrowserIssue/CrossBrowserIssueError.d.ts +11 -0
- package/Distributable/esm/Errors/CrossBrowserIssue/CrossBrowserIssueError.js +11 -0
- package/Distributable/esm/Errors/CrossBrowserIssue/CrossBrowserIssueErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/CrossBrowserIssue/CrossBrowserIssueErrorLocalization.english.js +4 -0
- package/Distributable/esm/Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError.d.ts +20 -0
- package/Distributable/esm/Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError.js +13 -0
- package/Distributable/esm/Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedErrorLocalization.english.js +5 -0
- package/Distributable/esm/Errors/DataRetrievingFailed/DataRetrievingFailedError.d.ts +25 -0
- package/Distributable/esm/Errors/DataRetrievingFailed/DataRetrievingFailedError.js +23 -0
- package/Distributable/esm/Errors/DataRetrievingFailed/DataRetrievingFailedErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/DataRetrievingFailed/DataRetrievingFailedErrorLocalization.english.js +8 -0
- package/Distributable/esm/Errors/DataSubmittingFailed/DataSubmittingFailedError.d.ts +25 -0
- package/Distributable/esm/Errors/DataSubmittingFailed/DataSubmittingFailedError.js +23 -0
- package/Distributable/esm/Errors/DataSubmittingFailed/DataSubmittingFailedErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/DataSubmittingFailed/DataSubmittingFailedErrorLocalization.english.js +8 -0
- package/Distributable/esm/Errors/FileReadingFailed/FileReadingFailedError.d.ts +20 -0
- package/Distributable/esm/Errors/FileReadingFailed/FileReadingFailedError.js +13 -0
- package/Distributable/esm/Errors/FileReadingFailed/FileReadingFailedErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/FileReadingFailed/FileReadingFailedErrorLocalization.english.js +5 -0
- package/Distributable/esm/Errors/FileWritingFailed/FileWritingFailedError.d.ts +20 -0
- package/Distributable/esm/Errors/FileWritingFailed/FileWritingFailedError.js +13 -0
- package/Distributable/esm/Errors/FileWritingFailed/FileWritingFailedErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/FileWritingFailed/FileWritingFailedErrorLocalization.english.js +5 -0
- package/Distributable/esm/Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureError.d.ts +11 -0
- package/Distributable/esm/Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureError.js +11 -0
- package/Distributable/esm/Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureErrorLocalization.english.js +4 -0
- package/Distributable/esm/Errors/ImproperUsage/ImproperUsageError.d.ts +11 -0
- package/Distributable/esm/Errors/ImproperUsage/ImproperUsageError.js +11 -0
- package/Distributable/esm/Errors/ImproperUsage/ImproperUsageErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/ImproperUsage/ImproperUsageErrorLocalization.english.js +2 -0
- package/Distributable/esm/Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterError.d.ts +22 -0
- package/Distributable/esm/Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterError.js +16 -0
- package/Distributable/esm/Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterErrorLocalization.english.js +6 -0
- package/Distributable/esm/Errors/InterProcessInteractionFailed/InterProcessInteractionFailedError.d.ts +11 -0
- package/Distributable/esm/Errors/InterProcessInteractionFailed/InterProcessInteractionFailedError.js +11 -0
- package/Distributable/esm/Errors/InterProcessInteractionFailed/InterProcessInteractionFailedErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/InterProcessInteractionFailed/InterProcessInteractionFailedErrorLocalization.english.js +4 -0
- package/Distributable/esm/Errors/InvalidConfig/InvalidConfigError.d.ts +21 -0
- package/Distributable/esm/Errors/InvalidConfig/InvalidConfigError.js +13 -0
- package/Distributable/esm/Errors/InvalidConfig/InvalidConfigErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/InvalidConfig/InvalidConfigErrorLocalization.english.js +7 -0
- package/Distributable/esm/Errors/InvalidExternalData/InvalidExternalDataError.d.ts +21 -0
- package/Distributable/esm/Errors/InvalidExternalData/InvalidExternalDataError.js +13 -0
- package/Distributable/esm/Errors/InvalidExternalData/InvalidExternalDataErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/InvalidExternalData/InvalidExternalDataErrorLocalization.english.js +7 -0
- package/Distributable/esm/Errors/InvalidParameterValue/InvalidParameterValueError.d.ts +22 -0
- package/Distributable/esm/Errors/InvalidParameterValue/InvalidParameterValueError.js +13 -0
- package/Distributable/esm/Errors/InvalidParameterValue/InvalidParameterValueErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/InvalidParameterValue/InvalidParameterValueErrorLocalization.english.js +7 -0
- package/Distributable/esm/Errors/ModuleDynamicLoadingFailed/ModuleDynamicLoadingFailedError.d.ts +20 -0
- package/Distributable/esm/Errors/ModuleDynamicLoadingFailed/ModuleDynamicLoadingFailedError.js +13 -0
- package/Distributable/esm/Errors/ModuleDynamicLoadingFailed/ModuleDynamicLoadingFailedErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/ModuleDynamicLoadingFailed/ModuleDynamicLoadingFailedErrorLocalization.english.js +5 -0
- package/Distributable/esm/Errors/UnexpectedEvent/UnexpectedEventError.d.ts +11 -0
- package/Distributable/esm/Errors/UnexpectedEvent/UnexpectedEventError.js +11 -0
- package/Distributable/esm/Errors/UnexpectedEvent/UnexpectedEventErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/UnexpectedEvent/UnexpectedEventErrorLocalization.english.js +4 -0
- package/Distributable/esm/Errors/UnsupportedScenario/UnsupportedScenarioError.d.ts +11 -0
- package/Distributable/esm/Errors/UnsupportedScenario/UnsupportedScenarioError.js +11 -0
- package/Distributable/esm/Errors/UnsupportedScenario/UnsupportedScenarioErrorLocalization.english.d.ts +3 -0
- package/Distributable/esm/Errors/UnsupportedScenario/UnsupportedScenarioErrorLocalization.english.js +4 -0
- package/Distributable/esm/Files/encodeFileToBase64.d.ts +1 -0
- package/Distributable/esm/Files/encodeFileToBase64.js +48 -0
- package/Distributable/esm/IDsGenerators/StringTypeID_Generator.d.ts +38 -0
- package/Distributable/esm/IDsGenerators/StringTypeID_Generator.js +68 -0
- package/Distributable/esm/Logging/ILogger.d.ts +21 -0
- package/Distributable/esm/Logging/ILogger.js +1 -0
- package/Distributable/esm/Logging/Logger.d.ts +42 -0
- package/Distributable/esm/Logging/Logger.js +233 -0
- package/Distributable/esm/Logging/LoggerLocalization.english.d.ts +3 -0
- package/Distributable/esm/Logging/LoggerLocalization.english.js +16 -0
- package/Distributable/esm/Logging/Logs.d.ts +29 -0
- package/Distributable/esm/Logging/Logs.js +1 -0
- package/Distributable/esm/Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilder.d.ts +34 -0
- package/Distributable/esm/Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilder.js +56 -0
- package/Distributable/esm/Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilderLocalization.english.d.ts +3 -0
- package/Distributable/esm/Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilderLocalization.english.js +16 -0
- package/Distributable/esm/Maps/addEntriesToMap.d.ts +12 -0
- package/Distributable/esm/Maps/addEntriesToMap.js +20 -0
- package/Distributable/esm/Maps/createMapBasedOnOtherMap.d.ts +1 -0
- package/Distributable/esm/Maps/createMapBasedOnOtherMap.js +7 -0
- package/Distributable/esm/Maps/filterMap.d.ts +1 -0
- package/Distributable/esm/Maps/filterMap.js +9 -0
- package/Distributable/esm/Maps/getExpectedToBeNonUndefinedMapValue.d.ts +1 -0
- package/Distributable/esm/Maps/getExpectedToBeNonUndefinedMapValue.js +14 -0
- package/Distributable/esm/Maps/invertMapImmutably.d.ts +1 -0
- package/Distributable/esm/Maps/invertMapImmutably.js +3 -0
- package/Distributable/esm/Maps/mergeMaps.d.ts +1 -0
- package/Distributable/esm/Maps/mergeMaps.js +9 -0
- package/Distributable/esm/Maps/removeEntriesFromMap.d.ts +17 -0
- package/Distributable/esm/Maps/removeEntriesFromMap.js +18 -0
- package/Distributable/esm/Maps/replaceValuesInMap.d.ts +18 -0
- package/Distributable/esm/Maps/replaceValuesInMap.js +26 -0
- package/Distributable/esm/Numbers/formatNumberWith4_KetaKanji.d.ts +1 -0
- package/Distributable/esm/Numbers/formatNumberWith4_KetaKanji.js +30 -0
- package/Distributable/esm/Numbers/getArithmeticMean.d.ts +1 -0
- package/Distributable/esm/Numbers/getArithmeticMean.js +5 -0
- package/Distributable/esm/Numbers/isStringifiedNonNegativeIntegerOfRegularNotation.d.ts +1 -0
- package/Distributable/esm/Numbers/isStringifiedNonNegativeIntegerOfRegularNotation.js +3 -0
- package/Distributable/esm/Numbers/limitMaximalValue.d.ts +4 -0
- package/Distributable/esm/Numbers/limitMaximalValue.js +3 -0
- package/Distributable/esm/Numbers/limitMinimalAndMaximalValues.d.ts +5 -0
- package/Distributable/esm/Numbers/limitMinimalAndMaximalValues.js +6 -0
- package/Distributable/esm/Numbers/limitMinimalValue.d.ts +4 -0
- package/Distributable/esm/Numbers/limitMinimalValue.js +3 -0
- package/Distributable/esm/Numbers/roundDownToSpecificIntegerPlaceValue.d.ts +4 -0
- package/Distributable/esm/Numbers/roundDownToSpecificIntegerPlaceValue.js +7 -0
- package/Distributable/esm/Numbers/roundToSpecificNearestIntegerPlaceValue.d.ts +4 -0
- package/Distributable/esm/Numbers/roundToSpecificNearestIntegerPlaceValue.js +7 -0
- package/Distributable/esm/Numbers/roundToSpecifiedNearestDecimalPlaceValue.d.ts +4 -0
- package/Distributable/esm/Numbers/roundToSpecifiedNearestDecimalPlaceValue.js +4 -0
- package/Distributable/esm/Numbers/roundUpToSpecificIntegerPlaceValue.d.ts +4 -0
- package/Distributable/esm/Numbers/roundUpToSpecificIntegerPlaceValue.js +7 -0
- package/Distributable/esm/Numbers/separateEach3_DigitsGroupWithComma.d.ts +1 -0
- package/Distributable/esm/Numbers/separateEach3_DigitsGroupWithComma.js +3 -0
- package/Distributable/esm/Numbers/separateEach4_DigitsGroupWithComma.d.ts +1 -0
- package/Distributable/esm/Numbers/separateEach4_DigitsGroupWithComma.js +3 -0
- package/Distributable/esm/Objects/getObjectPropertySafely.d.ts +1 -0
- package/Distributable/esm/Objects/getObjectPropertySafely.js +50 -0
- package/Distributable/esm/Pagination/PaginationCollection.d.ts +16 -0
- package/Distributable/esm/Pagination/PaginationCollection.js +43 -0
- package/Distributable/esm/Pagination/computeFirstItemNumberForSpecificPaginationPage.d.ts +4 -0
- package/Distributable/esm/Pagination/computeFirstItemNumberForSpecificPaginationPage.js +3 -0
- package/Distributable/esm/Pagination/computeLastItemNumberForSpecificPaginationPage.d.ts +5 -0
- package/Distributable/esm/Pagination/computeLastItemNumberForSpecificPaginationPage.js +4 -0
- package/Distributable/esm/Pagination/getItemsOfPaginationPage.d.ts +10 -0
- package/Distributable/esm/Pagination/getItemsOfPaginationPage.js +34 -0
- package/Distributable/esm/Promises/PromisesQueue.d.ts +23 -0
- package/Distributable/esm/Promises/PromisesQueue.js +76 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomArrayElement.d.ts +1 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomArrayElement.js +7 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomBoolean.d.ts +1 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomBoolean.js +3 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomInteger.d.ts +4 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomInteger.js +13 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomLatinCharacter.d.ts +4 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomLatinCharacter.js +13 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomObjectPropertyValue.d.ts +3 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomObjectPropertyValue.js +4 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomString/getRandomString.d.ts +59 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomString/getRandomString.js +188 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomString/gettingOfRandomStringLocalization__english.d.ts +3 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomString/gettingOfRandomStringLocalization__english.js +25 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomSubarray.d.ts +21 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomSubarray.js +120 -0
- package/Distributable/esm/RandomValuesGenerators/getSpecificBooleanValueWithProbability.d.ts +4 -0
- package/Distributable/esm/RandomValuesGenerators/getSpecificBooleanValueWithProbability.js +3 -0
- package/Distributable/esm/RandomValuesGenerators/removeRandomArrayElement.d.ts +1 -0
- package/Distributable/esm/RandomValuesGenerators/removeRandomArrayElement.js +8 -0
- package/Distributable/esm/RawObjectDataProcessor/Helpers/convertPotentialStringToFloatIfPossible.d.ts +1 -0
- package/Distributable/esm/RawObjectDataProcessor/Helpers/convertPotentialStringToFloatIfPossible.js +9 -0
- package/Distributable/esm/RawObjectDataProcessor/Helpers/convertPotentialStringToIntegerIfPossible.d.ts +1 -0
- package/Distributable/esm/RawObjectDataProcessor/Helpers/convertPotentialStringToIntegerIfPossible.js +8 -0
- package/Distributable/esm/RawObjectDataProcessor/Helpers/convertPotentialStringToNumberIfPossible.d.ts +1 -0
- package/Distributable/esm/RawObjectDataProcessor/Helpers/convertPotentialStringToNumberIfPossible.js +9 -0
- package/Distributable/esm/RawObjectDataProcessor/Helpers/destringifyBooleanValueIfPossible.d.ts +1 -0
- package/Distributable/esm/RawObjectDataProcessor/Helpers/destringifyBooleanValueIfPossible.js +9 -0
- package/Distributable/esm/RawObjectDataProcessor/RawObjectDataProcessor.d.ts +899 -0
- package/Distributable/esm/RawObjectDataProcessor/RawObjectDataProcessor.js +2450 -0
- package/Distributable/esm/RawObjectDataProcessor/RawObjectDataProcessorLocalization.english.d.ts +4 -0
- package/Distributable/esm/RawObjectDataProcessor/RawObjectDataProcessorLocalization.english.js +368 -0
- package/Distributable/esm/Sets/addElementsToSet.d.ts +9 -0
- package/Distributable/esm/Sets/addElementsToSet.js +7 -0
- package/Distributable/esm/Sets/createSetBasedOnAnyArrayLikeCollection.d.ts +1 -0
- package/Distributable/esm/Sets/createSetBasedOnAnyArrayLikeCollection.js +3 -0
- package/Distributable/esm/Sets/createSetBasedOnOtherSet.d.ts +1 -0
- package/Distributable/esm/Sets/createSetBasedOnOtherSet.js +3 -0
- package/Distributable/esm/Sets/getOneElementOfSet.d.ts +4 -0
- package/Distributable/esm/Sets/getOneElementOfSet.js +16 -0
- package/Distributable/esm/Sets/mergeSets.d.ts +1 -0
- package/Distributable/esm/Sets/mergeSets.js +9 -0
- package/Distributable/esm/Sets/removeOneElementOfSet.d.ts +44 -0
- package/Distributable/esm/Sets/removeOneElementOfSet.js +29 -0
- package/Distributable/esm/Sets/removeSetElementsByPredicates.d.ts +17 -0
- package/Distributable/esm/Sets/removeSetElementsByPredicates.js +18 -0
- package/Distributable/esm/Strings/ArbitraryValueFormatter.d.ts +9 -0
- package/Distributable/esm/Strings/ArbitraryValueFormatter.js +111 -0
- package/Distributable/esm/Strings/CharactersAssets/EscapeCharacters.d.ts +9 -0
- package/Distributable/esm/Strings/CharactersAssets/EscapeCharacters.js +10 -0
- package/Distributable/esm/Strings/CharactersAssets/SpaceCharacters.d.ts +18 -0
- package/Distributable/esm/Strings/CharactersAssets/SpaceCharacters.js +19 -0
- package/Distributable/esm/Strings/CharactersAssets/SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag.d.ts +18 -0
- package/Distributable/esm/Strings/CharactersAssets/SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag.js +19 -0
- package/Distributable/esm/Strings/CharactersAssets/lowercaseLatinCharacters.d.ts +2 -0
- package/Distributable/esm/Strings/CharactersAssets/lowercaseLatinCharacters.js +29 -0
- package/Distributable/esm/Strings/CharactersAssets/stringifiedDigits.d.ts +2 -0
- package/Distributable/esm/Strings/CharactersAssets/stringifiedDigits.js +2 -0
- package/Distributable/esm/Strings/CharactersAssets/uppercaseLatinCharacters.d.ts +2 -0
- package/Distributable/esm/Strings/CharactersAssets/uppercaseLatinCharacters.js +29 -0
- package/Distributable/esm/Strings/EmailAddress.d.ts +4 -0
- package/Distributable/esm/Strings/EmailAddress.js +6 -0
- package/Distributable/esm/Strings/IndentationCoordinator.d.ts +12 -0
- package/Distributable/esm/Strings/IndentationCoordinator.js +33 -0
- package/Distributable/esm/Strings/LineSeparators/LineSeparators.d.ts +6 -0
- package/Distributable/esm/Strings/LineSeparators/LineSeparators.js +7 -0
- package/Distributable/esm/Strings/LineSeparators/getLineSeparatorType.d.ts +2 -0
- package/Distributable/esm/Strings/LineSeparators/getLineSeparatorType.js +13 -0
- package/Distributable/esm/Strings/RegularExpressions/extractMatchingsWithRegularExpression.d.ts +22 -0
- package/Distributable/esm/Strings/RegularExpressions/extractMatchingsWithRegularExpression.js +54 -0
- package/Distributable/esm/Strings/RegularExpressions/getMatchingWithFirstRegularExpressionCapturingGroup.d.ts +5 -0
- package/Distributable/esm/Strings/RegularExpressions/getMatchingWithFirstRegularExpressionCapturingGroup.js +43 -0
- package/Distributable/esm/Strings/RegularExpressions/replaceMatchesWithRegularExpressionToDynamicValue.d.ts +39 -0
- package/Distributable/esm/Strings/RegularExpressions/replaceMatchesWithRegularExpressionToDynamicValue.js +30 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/FileNameExtensions/appendLastFileNameExtension.d.ts +5 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/FileNameExtensions/appendLastFileNameExtension.js +15 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/FileNameExtensions/extractAllFileNameExtensions.d.ts +4 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/FileNameExtensions/extractAllFileNameExtensions.js +14 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/FileNameExtensions/extractLastExtensionOfFileName.d.ts +9 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/FileNameExtensions/extractLastExtensionOfFileName.js +20 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/FileNameExtensions/removeAllFileNameExtensions.d.ts +1 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/FileNameExtensions/removeAllFileNameExtensions.js +17 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/FileNameExtensions/removeSpecifiedFileNameExtensionsFromPath.d.ts +6 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/FileNameExtensions/removeSpecifiedFileNameExtensionsFromPath.js +36 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/Stem/extractFileNameWithoutAnyExtensions.d.ts +4 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/Stem/extractFileNameWithoutAnyExtensions.js +22 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/extractFileNameWithAllExtensionsFromPath.d.ts +4 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/extractFileNameWithAllExtensionsFromPath.js +21 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/extractFileNameWithoutLastExtension.d.ts +1 -0
- package/Distributable/esm/Strings/URI/FilesAndDirectories/extractFileNameWithoutLastExtension.js +15 -0
- package/Distributable/esm/Strings/URI/Fragment/appendFragmentToURI.d.ts +5 -0
- package/Distributable/esm/Strings/URI/Fragment/appendFragmentToURI.js +26 -0
- package/Distributable/esm/Strings/URI/Fragment/getURI_Fragment.d.ts +9 -0
- package/Distributable/esm/Strings/URI/Fragment/getURI_Fragment.js +19 -0
- package/Distributable/esm/Strings/URI/PathSegments/explodeURI_PathToSegments.d.ts +1 -0
- package/Distributable/esm/Strings/URI/PathSegments/explodeURI_PathToSegments.js +5 -0
- package/Distributable/esm/Strings/URI/PathSegments/replaceLastURI_PathSegment.d.ts +4 -0
- package/Distributable/esm/Strings/URI/PathSegments/replaceLastURI_PathSegment.js +13 -0
- package/Distributable/esm/Strings/URI/generateMailtoURI_Scheme.d.ts +8 -0
- package/Distributable/esm/Strings/URI/generateMailtoURI_Scheme.js +31 -0
- package/Distributable/esm/Strings/URI/getURI_PartWithoutFragment.d.ts +1 -0
- package/Distributable/esm/Strings/URI/getURI_PartWithoutFragment.js +3 -0
- package/Distributable/esm/Strings/URI/removeSpecificSegmentsFromURI_Path.d.ts +5 -0
- package/Distributable/esm/Strings/URI/removeSpecificSegmentsFromURI_Path.js +13 -0
- package/Distributable/esm/Strings/adjustCharactersCount.d.ts +36 -0
- package/Distributable/esm/Strings/adjustCharactersCount.js +111 -0
- package/Distributable/esm/Strings/appendCharacterIfItDoesNotPresentInLastPosition.d.ts +4 -0
- package/Distributable/esm/Strings/appendCharacterIfItDoesNotPresentInLastPosition.js +4 -0
- package/Distributable/esm/Strings/capitalizeFirstCharacter.d.ts +1 -0
- package/Distributable/esm/Strings/capitalizeFirstCharacter.js +3 -0
- package/Distributable/esm/Strings/cropString.d.ts +37 -0
- package/Distributable/esm/Strings/cropString.js +79 -0
- package/Distributable/esm/Strings/explodeCasedPhraseToWords.d.ts +1 -0
- package/Distributable/esm/Strings/explodeCasedPhraseToWords.js +53 -0
- package/Distributable/esm/Strings/explodeStringToLines.d.ts +4 -0
- package/Distributable/esm/Strings/explodeStringToLines.js +6 -0
- package/Distributable/esm/Strings/getEnglishAbbreviatedOrdinalNumber.d.ts +1 -0
- package/Distributable/esm/Strings/getEnglishAbbreviatedOrdinalNumber.js +8 -0
- package/Distributable/esm/Strings/getLastCharacter.d.ts +1 -0
- package/Distributable/esm/Strings/getLastCharacter.js +3 -0
- package/Distributable/esm/Strings/getPositionsOfAllSubstringOccurrences.d.ts +1 -0
- package/Distributable/esm/Strings/getPositionsOfAllSubstringOccurrences.js +12 -0
- package/Distributable/esm/Strings/hasStringOnlySpecificCharacters.d.ts +6 -0
- package/Distributable/esm/Strings/hasStringOnlySpecificCharacters.js +47 -0
- package/Distributable/esm/Strings/insertSubstring.d.ts +4 -0
- package/Distributable/esm/Strings/insertSubstring.js +9 -0
- package/Distributable/esm/Strings/insertSubstringIf.d.ts +1 -0
- package/Distributable/esm/Strings/insertSubstringIf.js +3 -0
- package/Distributable/esm/Strings/isIPv4_AddressLiesInRange.d.ts +5 -0
- package/Distributable/esm/Strings/isIPv4_AddressLiesInRange.js +99 -0
- package/Distributable/esm/Strings/isStringIncludingAtLeastOneOfSubstrings.d.ts +1 -0
- package/Distributable/esm/Strings/isStringIncludingAtLeastOneOfSubstrings.js +8 -0
- package/Distributable/esm/Strings/removeAllSpecifiedCharacters.d.ts +1 -0
- package/Distributable/esm/Strings/removeAllSpecifiedCharacters.js +10 -0
- package/Distributable/esm/Strings/removeLastCharacter.d.ts +1 -0
- package/Distributable/esm/Strings/removeLastCharacter.js +5 -0
- package/Distributable/esm/Strings/removeNonDigitsCharacters.d.ts +1 -0
- package/Distributable/esm/Strings/removeNonDigitsCharacters.js +6 -0
- package/Distributable/esm/Strings/removeNthCharacter.d.ts +4 -0
- package/Distributable/esm/Strings/removeNthCharacter.js +10 -0
- package/Distributable/esm/Strings/removeSpecificCharacterFromCertainPosition.d.ts +12 -0
- package/Distributable/esm/Strings/removeSpecificCharacterFromCertainPosition.js +25 -0
- package/Distributable/esm/Strings/replace2_OrMoreSpacesTo1.d.ts +1 -0
- package/Distributable/esm/Strings/replace2_OrMoreSpacesTo1.js +3 -0
- package/Distributable/esm/Strings/replaceBrHTML_TagToNewLineEscapeSequence.d.ts +1 -0
- package/Distributable/esm/Strings/replaceBrHTML_TagToNewLineEscapeSequence.js +3 -0
- package/Distributable/esm/Strings/replaceDoubleBackslashesWithForwardSlashes.d.ts +1 -0
- package/Distributable/esm/Strings/replaceDoubleBackslashesWithForwardSlashes.js +3 -0
- package/Distributable/esm/Strings/reverseString.d.ts +1 -0
- package/Distributable/esm/Strings/reverseString.js +5 -0
- package/Distributable/esm/Strings/splitString.d.ts +1 -0
- package/Distributable/esm/Strings/splitString.js +6 -0
- package/Distributable/esm/Strings/surroundLabelByOrnament.d.ts +7 -0
- package/Distributable/esm/Strings/surroundLabelByOrnament.js +13 -0
- package/Distributable/esm/Strings/toLowerCamelCase.d.ts +1 -0
- package/Distributable/esm/Strings/toLowerCamelCase.js +29 -0
- package/Distributable/esm/Strings/toScreamingSnakeCase.d.ts +1 -0
- package/Distributable/esm/Strings/toScreamingSnakeCase.js +20 -0
- package/Distributable/esm/Strings/toUpperCamelCase.d.ts +1 -0
- package/Distributable/esm/Strings/toUpperCamelCase.js +19 -0
- package/Distributable/esm/Strings/trimSpaces.d.ts +10 -0
- package/Distributable/esm/Strings/trimSpaces.js +28 -0
- package/Distributable/esm/TypeGuards/Arrays/isArrayOfCertainTypeElements.d.ts +1 -0
- package/Distributable/esm/TypeGuards/Arrays/isArrayOfCertainTypeElements.js +11 -0
- package/Distributable/esm/TypeGuards/Arrays/isArrayOfLength.d.ts +26 -0
- package/Distributable/esm/TypeGuards/Arrays/isArrayOfLength.js +24 -0
- package/Distributable/esm/TypeGuards/Arrays/isEmptyArray.d.ts +1 -0
- package/Distributable/esm/TypeGuards/Arrays/isEmptyArray.js +3 -0
- package/Distributable/esm/TypeGuards/Arrays/isNonEmptyArray.d.ts +1 -0
- package/Distributable/esm/TypeGuards/Arrays/isNonEmptyArray.js +6 -0
- package/Distributable/esm/TypeGuards/EmptyTypes/isEitherUndefinedOrNull.d.ts +1 -0
- package/Distributable/esm/TypeGuards/EmptyTypes/isEitherUndefinedOrNull.js +3 -0
- package/Distributable/esm/TypeGuards/EmptyTypes/isNeitherUndefinedNorNull.d.ts +1 -0
- package/Distributable/esm/TypeGuards/EmptyTypes/isNeitherUndefinedNorNull.js +3 -0
- package/Distributable/esm/TypeGuards/EmptyTypes/isNotNull.d.ts +1 -0
- package/Distributable/esm/TypeGuards/EmptyTypes/isNotNull.js +3 -0
- package/Distributable/esm/TypeGuards/EmptyTypes/isNotUndefined.d.ts +1 -0
- package/Distributable/esm/TypeGuards/EmptyTypes/isNotUndefined.js +3 -0
- package/Distributable/esm/TypeGuards/EmptyTypes/isNull.d.ts +1 -0
- package/Distributable/esm/TypeGuards/EmptyTypes/isNull.js +3 -0
- package/Distributable/esm/TypeGuards/EmptyTypes/isUndefined.d.ts +1 -0
- package/Distributable/esm/TypeGuards/EmptyTypes/isUndefined.js +3 -0
- package/Distributable/esm/TypeGuards/Numbers/isBigInt.d.ts +1 -0
- package/Distributable/esm/TypeGuards/Numbers/isBigInt.js +3 -0
- package/Distributable/esm/TypeGuards/Numbers/isDecimalFractionOfAnySign.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Numbers/isDecimalFractionOfAnySign.js +6 -0
- package/Distributable/esm/TypeGuards/Numbers/isIntegerOfAnySign.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Numbers/isIntegerOfAnySign.js +3 -0
- package/Distributable/esm/TypeGuards/Numbers/isNaturalNumber.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Numbers/isNaturalNumber.js +6 -0
- package/Distributable/esm/TypeGuards/Numbers/isNaturalNumberOrZero.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Numbers/isNaturalNumberOrZero.js +6 -0
- package/Distributable/esm/TypeGuards/Numbers/isNegativeDecimalFraction.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Numbers/isNegativeDecimalFraction.js +5 -0
- package/Distributable/esm/TypeGuards/Numbers/isNegativeInteger.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Numbers/isNegativeInteger.js +6 -0
- package/Distributable/esm/TypeGuards/Numbers/isNegativeIntegerOrZero.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Numbers/isNegativeIntegerOrZero.js +6 -0
- package/Distributable/esm/TypeGuards/Numbers/isNumber.d.ts +3 -0
- package/Distributable/esm/TypeGuards/Numbers/isNumber.js +6 -0
- package/Distributable/esm/TypeGuards/Numbers/isPositiveDecimalFraction.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Numbers/isPositiveDecimalFraction.js +5 -0
- package/Distributable/esm/TypeGuards/Numbers/isPositiveIntegerOrZero.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Numbers/isPositiveIntegerOrZero.js +6 -0
- package/Distributable/esm/TypeGuards/Objects/isArbitraryObject.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Objects/isArbitraryObject.js +3 -0
- package/Distributable/esm/TypeGuards/Objects/isEmptyObject.d.ts +1 -0
- package/Distributable/esm/TypeGuards/Objects/isEmptyObject.js +6 -0
- package/Distributable/esm/TypeGuards/Objects/isNonEmptyArbitraryObject.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Objects/isNonEmptyArbitraryObject.js +3 -0
- package/Distributable/esm/TypeGuards/Objects/isNonEmptyObject.d.ts +1 -0
- package/Distributable/esm/TypeGuards/Objects/isNonEmptyObject.js +6 -0
- package/Distributable/esm/TypeGuards/Objects/isNonNullObject.d.ts +1 -0
- package/Distributable/esm/TypeGuards/Objects/isNonNullObject.js +3 -0
- package/Distributable/esm/TypeGuards/ParsedJSON/isPossiblyReadonlyParsedJSON.d.ts +2 -0
- package/Distributable/esm/TypeGuards/ParsedJSON/isPossiblyReadonlyParsedJSON.js +3 -0
- package/Distributable/esm/TypeGuards/ParsedJSON/isPossiblyReadonlyParsedJSON_Object.d.ts +2 -0
- package/Distributable/esm/TypeGuards/ParsedJSON/isPossiblyReadonlyParsedJSON_Object.js +3 -0
- package/Distributable/esm/TypeGuards/Strings/areStringifiedDigitsOnly.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Strings/areStringifiedDigitsOnly.js +3 -0
- package/Distributable/esm/TypeGuards/Strings/isEmptyString.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Strings/isEmptyString.js +3 -0
- package/Distributable/esm/TypeGuards/Strings/isNonEmptyString.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Strings/isNonEmptyString.js +3 -0
- package/Distributable/esm/TypeGuards/Strings/isString.d.ts +1 -0
- package/Distributable/esm/TypeGuards/Strings/isString.js +3 -0
- package/Distributable/esm/TypeGuards/Strings/isStringOfLength.d.ts +27 -0
- package/Distributable/esm/TypeGuards/Strings/isStringOfLength.js +24 -0
- package/Distributable/esm/TypeGuards/isBoolean.d.ts +1 -0
- package/Distributable/esm/TypeGuards/isBoolean.js +3 -0
- package/Distributable/esm/TypeGuards/isElementOfEnumeration.d.ts +3 -0
- package/Distributable/esm/TypeGuards/isElementOfEnumeration.js +8 -0
- package/Distributable/esm/TypeGuards/isFunctionLike.d.ts +1 -0
- package/Distributable/esm/TypeGuards/isFunctionLike.js +3 -0
- package/Distributable/esm/Types/ArbitraryObject.d.ts +3 -0
- package/Distributable/esm/Types/ArbitraryObject.js +1 -0
- package/Distributable/esm/Types/ElementOfPseudoEnumeration.d.ts +3 -0
- package/Distributable/esm/Types/ElementOfPseudoEnumeration.js +1 -0
- package/Distributable/esm/Types/InheritEnumerationKeys.d.ts +3 -0
- package/Distributable/esm/Types/InheritEnumerationKeys.js +1 -0
- package/Distributable/esm/Types/ParsedJSON.d.ts +13 -0
- package/Distributable/esm/Types/ParsedJSON.js +1 -0
- package/Distributable/esm/Types/PartialBy.d.ts +1 -0
- package/Distributable/esm/Types/PartialBy.js +1 -0
- package/Distributable/esm/ValueTransformers/emptyStringToNull.d.ts +1 -0
- package/Distributable/esm/ValueTransformers/emptyStringToNull.js +3 -0
- package/Distributable/esm/ValueTransformers/emptyStringToTrue.d.ts +2 -0
- package/Distributable/esm/ValueTransformers/emptyStringToTrue.js +3 -0
- package/Distributable/esm/ValueTransformers/emptyStringToUndefined.d.ts +2 -0
- package/Distributable/esm/ValueTransformers/emptyStringToUndefined.js +3 -0
- package/Distributable/esm/ValueTransformers/nullToEmptyString.d.ts +1 -0
- package/Distributable/esm/ValueTransformers/nullToEmptyString.js +3 -0
- package/Distributable/esm/ValueTransformers/nullToUndefined.d.ts +1 -0
- package/Distributable/esm/ValueTransformers/nullToUndefined.js +3 -0
- package/Distributable/esm/ValueTransformers/nullToZero.d.ts +1 -0
- package/Distributable/esm/ValueTransformers/nullToZero.js +3 -0
- package/Distributable/esm/ValueTransformers/undefinedToEmptyArray.d.ts +2 -0
- package/Distributable/esm/ValueTransformers/undefinedToEmptyArray.js +3 -0
- package/Distributable/esm/ValueTransformers/undefinedToEmptyString.d.ts +1 -0
- package/Distributable/esm/ValueTransformers/undefinedToEmptyString.js +3 -0
- package/Distributable/esm/ValueTransformers/undefinedToFalse.d.ts +1 -0
- package/Distributable/esm/ValueTransformers/undefinedToFalse.js +3 -0
- package/Distributable/esm/ValueTransformers/undefinedToNull.d.ts +1 -0
- package/Distributable/esm/ValueTransformers/undefinedToNull.js +3 -0
- package/Distributable/esm/ValuesDeepCopier.d.ts +5 -0
- package/Distributable/esm/ValuesDeepCopier.js +49 -0
- package/Distributable/esm/index.d.ts +256 -0
- package/Distributable/esm/index.js +248 -0
- package/LICENSE +1 -1
- package/README.md +875 -144
- package/package.json +28 -18
- package/BrowserJS.d.ts +0 -16
- package/Distributable/Arrays/getArrayElementWhichMustExistByPredicate/GetArrayElementWhichMustExistByPredicateOperationLocalization__English.d.ts +0 -3
- package/Distributable/Arrays/getArrayElementWhichMustExistByPredicate/GetArrayElementWhichMustExistByPredicateOperationLocalization__English.js +0 -7
- package/Distributable/Arrays/getArrayElementWhichMustExistByPredicate/getArrayElementWhichMustExistByPredicate.d.ts +0 -9
- package/Distributable/Arrays/getArrayElementWhichMustExistByPredicate/getArrayElementWhichMustExistByPredicate.js +0 -27
- package/Distributable/Arrays/getIndexOfArrayElementByPredicate.d.ts +0 -1
- package/Distributable/Arrays/getIndexOfArrayElementByPredicate.js +0 -11
- package/Distributable/Arrays/getIndexesOfArrayElementsWhichSatisfiesToPredicate.d.ts +0 -1
- package/Distributable/Arrays/getIndexesOfArrayElementsWhichSatisfiesToPredicate.js +0 -12
- package/Distributable/Arrays/getLastElementOfNonEmptyArray/GetLastElementOfNonEmptyArrayOperationLocalization__English.d.ts +0 -3
- package/Distributable/Arrays/getLastElementOfNonEmptyArray/GetLastElementOfNonEmptyArrayOperationLocalization__English.js +0 -7
- package/Distributable/Arrays/getLastElementOfNonEmptyArray/getLastElementOfNonEmptyArray.d.ts +0 -9
- package/Distributable/Arrays/getLastElementOfNonEmptyArray/getLastElementOfNonEmptyArray.js +0 -26
- package/Distributable/BroswerJS/BasicFrontEndLogger.d.ts +0 -20
- package/Distributable/BroswerJS/BasicFrontEndLogger.js +0 -122
- package/Distributable/BroswerJS/DOM/delegateClickEventHandling.d.ts +0 -4
- package/Distributable/BroswerJS/DOM/delegateClickEventHandling.js +0 -16
- package/Distributable/BrowserJS.d.ts +0 -3
- package/Distributable/BrowserJS.js +0 -7
- package/Distributable/ConstantsAndEnumerations/HTTP_Methods.d.ts +0 -13
- package/Distributable/ConstantsAndEnumerations/HTTP_Methods.js +0 -16
- package/Distributable/ConstantsAndEnumerations/HTTP_StatusCodes.d.ts +0 -43
- package/Distributable/ConstantsAndEnumerations/HTTP_StatusCodes.js +0 -46
- package/Distributable/DateTime/Timer.d.ts +0 -11
- package/Distributable/DateTime/Timer.js +0 -9
- package/Distributable/DateTime/millisecondsToSeconds.d.ts +0 -1
- package/Distributable/DateTime/millisecondsToSeconds.js +0 -6
- package/Distributable/DateTime/secondsToMilliseconds.d.ts +0 -1
- package/Distributable/DateTime/secondsToMilliseconds.js +0 -6
- package/Distributable/DefaultValueSubstituters/substituteWhenNull.d.ts +0 -1
- package/Distributable/DefaultValueSubstituters/substituteWhenNull.js +0 -6
- package/Distributable/DefaultValueSubstituters/substituteWhenUndefined.d.ts +0 -1
- package/Distributable/DefaultValueSubstituters/substituteWhenUndefined.js +0 -6
- package/Distributable/Logging/Errors/AlgorithmMismatch/AlgorithmMismatchError.d.ts +0 -13
- package/Distributable/Logging/Errors/AlgorithmMismatch/AlgorithmMismatchError.js +0 -19
- package/Distributable/Logging/Errors/AlgorithmMismatch/AlgorithmMismatchErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/AlgorithmMismatch/AlgorithmMismatchErrorLocalization__English.js +0 -6
- package/Distributable/Logging/Errors/ClassRedundantSubsequentInitialization/ClassRedundantSubsequentInitializationError.d.ts +0 -24
- package/Distributable/Logging/Errors/ClassRedundantSubsequentInitialization/ClassRedundantSubsequentInitializationError.js +0 -24
- package/Distributable/Logging/Errors/ClassRedundantSubsequentInitialization/ClassRedundantSubsequentInitializationErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/ClassRedundantSubsequentInitialization/ClassRedundantSubsequentInitializationErrorLocalization__English.js +0 -7
- package/Distributable/Logging/Errors/ClassRequiredInitializationHasNotBeenExecuted/ClassRequiredInitializationHasNotBeenExecutedError.d.ts +0 -23
- package/Distributable/Logging/Errors/ClassRequiredInitializationHasNotBeenExecuted/ClassRequiredInitializationHasNotBeenExecutedError.js +0 -24
- package/Distributable/Logging/Errors/ClassRequiredInitializationHasNotBeenExecuted/ClassRequiredInitializationHasNotBeenExecutedErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/ClassRequiredInitializationHasNotBeenExecuted/ClassRequiredInitializationHasNotBeenExecutedErrorLocalization__English.js +0 -8
- package/Distributable/Logging/Errors/ConfigFileNotFound/ConfigFileNotFoundErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/ConfigFileNotFound/ConfigFileNotFoundErrorLocalization__English.js +0 -14
- package/Distributable/Logging/Errors/ConfigFileNotFound//320/241onfigFileNotFoundError.d.ts +0 -23
- package/Distributable/Logging/Errors/ConfigFileNotFound//320/241onfigFileNotFoundError.js +0 -24
- package/Distributable/Logging/Errors/CrossBrowserIssue/CrossBrowserIssueError.d.ts +0 -13
- package/Distributable/Logging/Errors/CrossBrowserIssue/CrossBrowserIssueError.js +0 -19
- package/Distributable/Logging/Errors/CrossBrowserIssue/CrossBrowserIssueErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/CrossBrowserIssue/CrossBrowserIssueErrorLocalization__English.js +0 -6
- package/Distributable/Logging/Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError.d.ts +0 -22
- package/Distributable/Logging/Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError.js +0 -24
- package/Distributable/Logging/Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedErrorLocalization__English.js +0 -7
- package/Distributable/Logging/Errors/DataRetrievingFailed/DataRetrievingFailedError.d.ts +0 -22
- package/Distributable/Logging/Errors/DataRetrievingFailed/DataRetrievingFailedError.js +0 -24
- package/Distributable/Logging/Errors/DataRetrievingFailed/DataRetrievingFailedErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/DataRetrievingFailed/DataRetrievingFailedErrorLocalization__English.js +0 -8
- package/Distributable/Logging/Errors/DataSubmittingFailed/DataSubmittingFailedError.d.ts +0 -22
- package/Distributable/Logging/Errors/DataSubmittingFailed/DataSubmittingFailedError.js +0 -24
- package/Distributable/Logging/Errors/DataSubmittingFailed/DataSubmittingFailedErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/DataSubmittingFailed/DataSubmittingFailedErrorLocalization__English.js +0 -7
- package/Distributable/Logging/Errors/FileReadingFailed/FileReadingFailedError.d.ts +0 -22
- package/Distributable/Logging/Errors/FileReadingFailed/FileReadingFailedError.js +0 -24
- package/Distributable/Logging/Errors/FileReadingFailed/FileReadingFailedErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/FileReadingFailed/FileReadingFailedErrorLocalization__English.js +0 -7
- package/Distributable/Logging/Errors/FileWritingFailed/FileWritingFailedError.d.ts +0 -22
- package/Distributable/Logging/Errors/FileWritingFailed/FileWritingFailedError.js +0 -24
- package/Distributable/Logging/Errors/FileWritingFailed/FileWritingFailedErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/FileWritingFailed/FileWritingFailedErrorLocalization__English.js +0 -7
- package/Distributable/Logging/Errors/ImproperUsage/ImproperUsageError.d.ts +0 -13
- package/Distributable/Logging/Errors/ImproperUsage/ImproperUsageError.js +0 -19
- package/Distributable/Logging/Errors/ImproperUsage/ImproperUsageErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/ImproperUsage/ImproperUsageErrorLocalization__English.js +0 -6
- package/Distributable/Logging/Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterError.d.ts +0 -24
- package/Distributable/Logging/Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterError.js +0 -24
- package/Distributable/Logging/Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterErrorLocalization__English.js +0 -9
- package/Distributable/Logging/Errors/InterProcessInteractionFailed/InterProcessInteractionFailedError.d.ts +0 -13
- package/Distributable/Logging/Errors/InterProcessInteractionFailed/InterProcessInteractionFailedError.js +0 -19
- package/Distributable/Logging/Errors/InterProcessInteractionFailed/InterProcessInteractionFailedErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/InterProcessInteractionFailed/InterProcessInteractionFailedErrorLocalization__English.js +0 -6
- package/Distributable/Logging/Errors/InvalidConfig/InvalidConfigError.d.ts +0 -23
- package/Distributable/Logging/Errors/InvalidConfig/InvalidConfigError.js +0 -24
- package/Distributable/Logging/Errors/InvalidConfig/InvalidConfigErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/InvalidConfig/InvalidConfigErrorLocalization__English.js +0 -11
- package/Distributable/Logging/Errors/InvalidExternalData/InvalidExternalDataError.d.ts +0 -23
- package/Distributable/Logging/Errors/InvalidExternalData/InvalidExternalDataError.js +0 -24
- package/Distributable/Logging/Errors/InvalidExternalData/InvalidExternalDataErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/InvalidExternalData/InvalidExternalDataErrorLocalization__English.js +0 -12
- package/Distributable/Logging/Errors/InvalidParameterValue/InvalidParameterValueError.d.ts +0 -23
- package/Distributable/Logging/Errors/InvalidParameterValue/InvalidParameterValueError.js +0 -24
- package/Distributable/Logging/Errors/InvalidParameterValue/InvalidParameterValueErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/InvalidParameterValue/InvalidParameterValueErrorLocalization__English.js +0 -11
- package/Distributable/Logging/Errors/ModuleDynamicLoadingFailed/ModuleDynamicLoadingFailedError.d.ts +0 -22
- package/Distributable/Logging/Errors/ModuleDynamicLoadingFailed/ModuleDynamicLoadingFailedError.js +0 -24
- package/Distributable/Logging/Errors/ModuleDynamicLoadingFailed/ModuleDynamicLoadingFailedErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/ModuleDynamicLoadingFailed/ModuleDynamicLoadingFailedErrorLocalization__English.js +0 -7
- package/Distributable/Logging/Errors/UnexpectedEvent/UnexpectedEventError.d.ts +0 -13
- package/Distributable/Logging/Errors/UnexpectedEvent/UnexpectedEventError.js +0 -19
- package/Distributable/Logging/Errors/UnexpectedEvent/UnexpectedEventErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/UnexpectedEvent/UnexpectedEventErrorLocalization__English.js +0 -6
- package/Distributable/Logging/Errors/UnsupportedScenario/UnsupportedScenarioError.d.ts +0 -13
- package/Distributable/Logging/Errors/UnsupportedScenario/UnsupportedScenarioError.js +0 -19
- package/Distributable/Logging/Errors/UnsupportedScenario/UnsupportedScenarioErrorLocalization__English.d.ts +0 -3
- package/Distributable/Logging/Errors/UnsupportedScenario/UnsupportedScenarioErrorLocalization__English.js +0 -6
- package/Distributable/Logging/ILogger.d.ts +0 -10
- package/Distributable/Logging/ILogger.js +0 -2
- package/Distributable/Logging/Logger.d.ts +0 -32
- package/Distributable/Logging/Logger.js +0 -99
- package/Distributable/Logging/LoggerLocalization__English.d.ts +0 -3
- package/Distributable/Logging/LoggerLocalization__English.js +0 -16
- package/Distributable/Logging/Logs.d.ts +0 -27
- package/Distributable/Logging/Logs.js +0 -2
- package/Distributable/Maps/addMultiplePairsToMap.d.ts +0 -1
- package/Distributable/Maps/addMultiplePairsToMap.js +0 -9
- package/Distributable/Maps/createMapBasedOnOtherMap.d.ts +0 -1
- package/Distributable/Maps/createMapBasedOnOtherMap.js +0 -10
- package/Distributable/Maps/filterMap.d.ts +0 -1
- package/Distributable/Maps/filterMap.js +0 -12
- package/Distributable/NodeJS/Timer/NodeJS_Timer.d.ts +0 -7
- package/Distributable/NodeJS/Timer/NodeJS_Timer.js +0 -17
- package/Distributable/NodeJS.d.ts +0 -7
- package/Distributable/NodeJS.js +0 -10
- package/Distributable/Numbers/formatNumberWith4KetaKanji.d.ts +0 -1
- package/Distributable/Numbers/formatNumberWith4KetaKanji.js +0 -45
- package/Distributable/Numbers/isStringifiedNonNegativeIntegerOfRegularNotation.d.ts +0 -1
- package/Distributable/Numbers/isStringifiedNonNegativeIntegerOfRegularNotation.js +0 -6
- package/Distributable/Numbers/separateEach3DigitsGroupWithComma.d.ts +0 -1
- package/Distributable/Numbers/separateEach3DigitsGroupWithComma.js +0 -6
- package/Distributable/Numbers/separateEach4DigitsGroupWithComma.d.ts +0 -1
- package/Distributable/Numbers/separateEach4DigitsGroupWithComma.js +0 -6
- package/Distributable/Pagination/computeFirstItemNumberForSpecificPaginationPage.d.ts +0 -4
- package/Distributable/Pagination/computeFirstItemNumberForSpecificPaginationPage.js +0 -6
- package/Distributable/Pagination/computeLastItemNumberForSpecificPaginationPage.d.ts +0 -5
- package/Distributable/Pagination/computeLastItemNumberForSpecificPaginationPage.js +0 -7
- package/Distributable/Pagination/splitToPaginationCollection.d.ts +0 -9
- package/Distributable/Pagination/splitToPaginationCollection.js +0 -22
- package/Distributable/RandomValuesGenerators/getRandomArrayElement.d.ts +0 -1
- package/Distributable/RandomValuesGenerators/getRandomArrayElement.js +0 -10
- package/Distributable/RandomValuesGenerators/getRandomBoolean.d.ts +0 -1
- package/Distributable/RandomValuesGenerators/getRandomBoolean.js +0 -6
- package/Distributable/RandomValuesGenerators/getRandomInteger.d.ts +0 -4
- package/Distributable/RandomValuesGenerators/getRandomInteger.js +0 -6
- package/Distributable/RandomValuesGenerators/getRandomLatinSymbol.d.ts +0 -4
- package/Distributable/RandomValuesGenerators/getRandomLatinSymbol.js +0 -19
- package/Distributable/RandomValuesGenerators/getRandomObjectPropertyValue.d.ts +0 -3
- package/Distributable/RandomValuesGenerators/getRandomObjectPropertyValue.js +0 -7
- package/Distributable/RandomValuesGenerators/getSpecificBooleanValueWithProbability.d.ts +0 -4
- package/Distributable/RandomValuesGenerators/getSpecificBooleanValueWithProbability.js +0 -9
- package/Distributable/Sets/addMultipleElementsToSet.d.ts +0 -1
- package/Distributable/Sets/addMultipleElementsToSet.js +0 -9
- package/Distributable/Strings/areStringifiedDigitsOnly.d.ts +0 -1
- package/Distributable/Strings/areStringifiedDigitsOnly.js +0 -6
- package/Distributable/Strings/capitalizeFirstSymbol.d.ts +0 -1
- package/Distributable/Strings/capitalizeFirstSymbol.js +0 -6
- package/Distributable/Strings/getLastSymbol.d.ts +0 -1
- package/Distributable/Strings/getLastSymbol.js +0 -6
- package/Distributable/Strings/getPositionsOfAllSubstringOccurrences.d.ts +0 -1
- package/Distributable/Strings/getPositionsOfAllSubstringOccurrences.js +0 -15
- package/Distributable/Strings/insertSubstring.d.ts +0 -4
- package/Distributable/Strings/insertSubstring.js +0 -12
- package/Distributable/Strings/insertSubstringIf.d.ts +0 -1
- package/Distributable/Strings/insertSubstringIf.js +0 -6
- package/Distributable/Strings/removeAllSpecifiedCharacters.d.ts +0 -1
- package/Distributable/Strings/removeAllSpecifiedCharacters.js +0 -13
- package/Distributable/Strings/removeNonDigitsCharacters.d.ts +0 -1
- package/Distributable/Strings/removeNonDigitsCharacters.js +0 -9
- package/Distributable/Strings/removeNthSymbol.d.ts +0 -4
- package/Distributable/Strings/removeNthSymbol.js +0 -13
- package/Distributable/Strings/replace2OrMoreSpacesTo1.d.ts +0 -1
- package/Distributable/Strings/replace2OrMoreSpacesTo1.js +0 -6
- package/Distributable/Strings/replaceBrHTML_TagToNewLineEscapeSequence.d.ts +0 -1
- package/Distributable/Strings/replaceBrHTML_TagToNewLineEscapeSequence.js +0 -6
- package/Distributable/Strings/reverseString.d.ts +0 -1
- package/Distributable/Strings/reverseString.js +0 -9
- package/Distributable/Strings/splitString.d.ts +0 -1
- package/Distributable/Strings/splitString.js +0 -9
- package/Distributable/Strings/stringifyAndFormatUnknownAtAdvanceEntity.d.ts +0 -1
- package/Distributable/Strings/stringifyAndFormatUnknownAtAdvanceEntity.js +0 -29
- package/Distributable/TypeGuards/Arrays/isArrayOfCertainTypeElements.d.ts +0 -1
- package/Distributable/TypeGuards/Arrays/isArrayOfCertainTypeElements.js +0 -14
- package/Distributable/TypeGuards/Arrays/isArrayOfLength.d.ts +0 -26
- package/Distributable/TypeGuards/Arrays/isArrayOfLength.js +0 -27
- package/Distributable/TypeGuards/Arrays/isEmptyArray.d.ts +0 -1
- package/Distributable/TypeGuards/Arrays/isEmptyArray.js +0 -6
- package/Distributable/TypeGuards/Arrays/isNonEmptyArray.d.ts +0 -1
- package/Distributable/TypeGuards/Arrays/isNonEmptyArray.js +0 -9
- package/Distributable/TypeGuards/Nullables/isNeitherUndefinedNorNull.d.ts +0 -1
- package/Distributable/TypeGuards/Nullables/isNeitherUndefinedNorNull.js +0 -6
- package/Distributable/TypeGuards/Nullables/isNotNull.d.ts +0 -1
- package/Distributable/TypeGuards/Nullables/isNotNull.js +0 -6
- package/Distributable/TypeGuards/Nullables/isNotUndefined.d.ts +0 -1
- package/Distributable/TypeGuards/Nullables/isNotUndefined.js +0 -6
- package/Distributable/TypeGuards/Nullables/isNull.d.ts +0 -1
- package/Distributable/TypeGuards/Nullables/isNull.js +0 -6
- package/Distributable/TypeGuards/Nullables/isUndefined.d.ts +0 -1
- package/Distributable/TypeGuards/Nullables/isUndefined.js +0 -6
- package/Distributable/TypeGuards/Numbers/isDecimalFractionOfAnySign.d.ts +0 -1
- package/Distributable/TypeGuards/Numbers/isDecimalFractionOfAnySign.js +0 -9
- package/Distributable/TypeGuards/Numbers/isNaturalNumber.d.ts +0 -1
- package/Distributable/TypeGuards/Numbers/isNaturalNumber.js +0 -9
- package/Distributable/TypeGuards/Numbers/isNegativeDecimalFraction.d.ts +0 -1
- package/Distributable/TypeGuards/Numbers/isNegativeDecimalFraction.js +0 -9
- package/Distributable/TypeGuards/Numbers/isNegativeInteger.d.ts +0 -1
- package/Distributable/TypeGuards/Numbers/isNegativeInteger.js +0 -9
- package/Distributable/TypeGuards/Numbers/isNegativeIntegerOrZero.d.ts +0 -1
- package/Distributable/TypeGuards/Numbers/isNegativeIntegerOrZero.js +0 -9
- package/Distributable/TypeGuards/Numbers/isNonNegativeInteger.d.ts +0 -1
- package/Distributable/TypeGuards/Numbers/isNonNegativeInteger.js +0 -9
- package/Distributable/TypeGuards/Numbers/isNumber.d.ts +0 -1
- package/Distributable/TypeGuards/Numbers/isNumber.js +0 -6
- package/Distributable/TypeGuards/Numbers/isPositiveDecimalFraction.d.ts +0 -1
- package/Distributable/TypeGuards/Numbers/isPositiveDecimalFraction.js +0 -9
- package/Distributable/TypeGuards/Objects/isEmptyObject.d.ts +0 -1
- package/Distributable/TypeGuards/Objects/isEmptyObject.js +0 -9
- package/Distributable/TypeGuards/Objects/isNonEmptyObject.d.ts +0 -1
- package/Distributable/TypeGuards/Objects/isNonEmptyObject.js +0 -9
- package/Distributable/TypeGuards/Objects/isNonNullObject.d.ts +0 -1
- package/Distributable/TypeGuards/Objects/isNonNullObject.js +0 -6
- package/Distributable/TypeGuards/Strings/isEmptyString.d.ts +0 -1
- package/Distributable/TypeGuards/Strings/isEmptyString.js +0 -6
- package/Distributable/TypeGuards/Strings/isNonEmptyString.d.ts +0 -1
- package/Distributable/TypeGuards/Strings/isNonEmptyString.js +0 -6
- package/Distributable/TypeGuards/Strings/isString.d.ts +0 -1
- package/Distributable/TypeGuards/Strings/isString.js +0 -6
- package/Distributable/TypeGuards/Strings/isStringOfLength.d.ts +0 -26
- package/Distributable/TypeGuards/Strings/isStringOfLength.js +0 -27
- package/Distributable/TypeGuards/isBoolean.d.ts +0 -1
- package/Distributable/TypeGuards/isBoolean.js +0 -6
- package/Distributable/TypeGuards/isElementOfEnumeration.d.ts +0 -3
- package/Distributable/TypeGuards/isElementOfEnumeration.js +0 -11
- package/Distributable/TypeGuards/isFunctionLike.d.ts +0 -1
- package/Distributable/TypeGuards/isFunctionLike.js +0 -6
- package/Distributable/Types/ParsedJSON.d.ts +0 -6
- package/Distributable/Types/ParsedJSON.js +0 -2
- package/Distributable/Types/PartialBy.d.ts +0 -1
- package/Distributable/Types/PartialBy.js +0 -2
- package/Distributable/ValueTransformers/emptyStringToNull.d.ts +0 -1
- package/Distributable/ValueTransformers/emptyStringToNull.js +0 -6
- package/Distributable/ValueTransformers/nullToEmptyString.d.ts +0 -1
- package/Distributable/ValueTransformers/nullToEmptyString.js +0 -6
- package/Distributable/ValueTransformers/nullToUndefined.d.ts +0 -1
- package/Distributable/ValueTransformers/nullToUndefined.js +0 -6
- package/Distributable/ValueTransformers/nullToZero.d.ts +0 -1
- package/Distributable/ValueTransformers/nullToZero.js +0 -6
- package/Distributable/ValueTransformers/undefinedToEmptyArray.d.ts +0 -1
- package/Distributable/ValueTransformers/undefinedToEmptyArray.js +0 -6
- package/Distributable/ValueTransformers/undefinedToEmptyString.d.ts +0 -1
- package/Distributable/ValueTransformers/undefinedToEmptyString.js +0 -6
- package/Distributable/ValueTransformers/undefinedToNull.d.ts +0 -1
- package/Distributable/ValueTransformers/undefinedToNull.js +0 -6
- package/Distributable/index.d.ts +0 -128
- package/Distributable/index.js +0 -246
- package/NodeJS.d.ts +0 -6
- package/index.d.ts +0 -391
- package/tsconfig.json +0 -20
|
@@ -0,0 +1,209 @@
|
|
|
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
|
+
const fundamental_constants_1 = require("fundamental-constants");
|
|
7
|
+
const RawObjectDataProcessor_1 = __importDefault(require("../RawObjectDataProcessor/RawObjectDataProcessor"));
|
|
8
|
+
const Logger_1 = __importDefault(require("../Logging/Logger"));
|
|
9
|
+
const InvalidParameterValueError_1 = __importDefault(require("../Errors/InvalidParameterValue/InvalidParameterValueError"));
|
|
10
|
+
const DataSubmittingFailedError_1 = __importDefault(require("../Errors/DataSubmittingFailed/DataSubmittingFailedError"));
|
|
11
|
+
const DataRetrievingFailedError_1 = __importDefault(require("../Errors/DataRetrievingFailed/DataRetrievingFailedError"));
|
|
12
|
+
const InvalidExternalDataError_1 = __importDefault(require("../Errors/InvalidExternalData/InvalidExternalDataError"));
|
|
13
|
+
const InvalidConfigError_1 = __importDefault(require("../Errors/InvalidConfig/InvalidConfigError"));
|
|
14
|
+
const removeSpecificCharacterFromCertainPosition_1 = __importDefault(require("../Strings/removeSpecificCharacterFromCertainPosition"));
|
|
15
|
+
const insertSubstring_1 = __importDefault(require("../Strings/insertSubstring"));
|
|
16
|
+
const serializeURI_QueryParameters_1 = __importDefault(require("./serializeURI_QueryParameters"));
|
|
17
|
+
const isNonEmptyString_1 = __importDefault(require("../TypeGuards/Strings/isNonEmptyString"));
|
|
18
|
+
const isNull_1 = __importDefault(require("../TypeGuards/EmptyTypes/isNull"));
|
|
19
|
+
const isUndefined_1 = __importDefault(require("../TypeGuards/EmptyTypes/isUndefined"));
|
|
20
|
+
const isNotUndefined_1 = __importDefault(require("../TypeGuards/EmptyTypes/isNotUndefined"));
|
|
21
|
+
class AJAX_Service {
|
|
22
|
+
static implementation = null;
|
|
23
|
+
static API_SERVER_URI_CONSTANT_PART__WITHOUT_TRAILING_SLASH = null;
|
|
24
|
+
static URI_QueryParametersSerializer = serializeURI_QueryParameters_1.default;
|
|
25
|
+
static set API_SERVER_URI_CONSTANT_PART(value) {
|
|
26
|
+
AJAX_Service.API_SERVER_URI_CONSTANT_PART__WITHOUT_TRAILING_SLASH = (0, removeSpecificCharacterFromCertainPosition_1.default)({
|
|
27
|
+
targetString: value,
|
|
28
|
+
targetCharacter: "/",
|
|
29
|
+
fromLastPosition: true
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
static setup(properties) {
|
|
33
|
+
if ((0, isNotUndefined_1.default)(properties.implementation)) {
|
|
34
|
+
AJAX_Service.implementation = properties.implementation;
|
|
35
|
+
}
|
|
36
|
+
if ((0, isNotUndefined_1.default)(properties.API_ServerURI_ConstantPart)) {
|
|
37
|
+
AJAX_Service.API_SERVER_URI_CONSTANT_PART = properties.API_ServerURI_ConstantPart;
|
|
38
|
+
}
|
|
39
|
+
if ((0, isNotUndefined_1.default)(properties.URI_QueryParametersSerializer)) {
|
|
40
|
+
AJAX_Service.URI_QueryParametersSerializer = properties.URI_QueryParametersSerializer;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
static async retrieveData(compoundParameter) {
|
|
44
|
+
return AJAX_Service.getExpectedToBeInitializedImplementation().retrieveData(compoundParameter);
|
|
45
|
+
}
|
|
46
|
+
static async submitData(compoundParameter) {
|
|
47
|
+
return AJAX_Service.getExpectedToBeInitializedImplementation().submitData(compoundParameter);
|
|
48
|
+
}
|
|
49
|
+
static async retrieveText(compoundParameter) {
|
|
50
|
+
return AJAX_Service.getExpectedToBeInitializedImplementation().retrieveText(compoundParameter);
|
|
51
|
+
}
|
|
52
|
+
async retrieveData(compoundParameter) {
|
|
53
|
+
let rawObjectDataResponse;
|
|
54
|
+
try {
|
|
55
|
+
rawObjectDataResponse = await this.retrieveResponseWithRawObjectData({
|
|
56
|
+
URI: this.normalizeURI(compoundParameter),
|
|
57
|
+
HTTP_Method: compoundParameter.HTTP_Method ?? fundamental_constants_1.HTTP_Methods.get,
|
|
58
|
+
HTTP_Headers: compoundParameter.HTTP_Headers ?? {},
|
|
59
|
+
mustIncludeCookiesAndAuthenticationHeadersToRequest: compoundParameter.mustIncludeCookiesAndAuthenticationHeadersToRequest === true
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
64
|
+
errorInstance: new DataRetrievingFailedError_1.default({
|
|
65
|
+
customMessage: "The retrieving data by AJAX has failed."
|
|
66
|
+
}),
|
|
67
|
+
title: DataRetrievingFailedError_1.default.localization.defaultTitle,
|
|
68
|
+
occurrenceLocation: "AJAX_Service.retrieveData(compoundParameter)",
|
|
69
|
+
innerError: error
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return AJAX_Service.normalizeRawObjectDataResponse(rawObjectDataResponse, compoundParameter.validResponseDataSpecification);
|
|
73
|
+
}
|
|
74
|
+
async submitData(compoundParameter) {
|
|
75
|
+
let rawObjectDataResponse;
|
|
76
|
+
try {
|
|
77
|
+
rawObjectDataResponse = await this.submitAndGetRawResponseDataIfAvailable({
|
|
78
|
+
URI: this.normalizeURI(compoundParameter),
|
|
79
|
+
HTTP_Method: compoundParameter.HTTP_Method ?? fundamental_constants_1.HTTP_Methods.get,
|
|
80
|
+
HTTP_Headers: compoundParameter.HTTP_Headers ?? {},
|
|
81
|
+
requestData: compoundParameter.requestData,
|
|
82
|
+
mustExpectResponseData: (0, isNotUndefined_1.default)(compoundParameter.validResponseDataSpecification),
|
|
83
|
+
mustIncludeCookiesAndAuthenticationHeadersToRequest: compoundParameter.mustIncludeCookiesAndAuthenticationHeadersToRequest === true
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
88
|
+
errorInstance: new DataSubmittingFailedError_1.default({
|
|
89
|
+
customMessage: "The submitting of the data by AJAX has failed."
|
|
90
|
+
}),
|
|
91
|
+
title: DataSubmittingFailedError_1.default.localization.defaultTitle,
|
|
92
|
+
occurrenceLocation: "AJAX_Service.submitData(compoundParameter)",
|
|
93
|
+
innerError: error
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
if ((0, isUndefined_1.default)(compoundParameter.validResponseDataSpecification)) {
|
|
97
|
+
return {
|
|
98
|
+
...rawObjectDataResponse.isSuccessful ?
|
|
99
|
+
{
|
|
100
|
+
isSuccessful: true,
|
|
101
|
+
data: rawObjectDataResponse.data
|
|
102
|
+
} :
|
|
103
|
+
{
|
|
104
|
+
isSuccessful: false,
|
|
105
|
+
..."errorObjectPayload" in rawObjectDataResponse ?
|
|
106
|
+
{ errorObjectPayload: rawObjectDataResponse.errorObjectPayload } :
|
|
107
|
+
{ errorTextPayload: rawObjectDataResponse.errorTextPayload }
|
|
108
|
+
},
|
|
109
|
+
HTTP_Headers: rawObjectDataResponse.HTTP_Headers,
|
|
110
|
+
HTTP_Status: rawObjectDataResponse.HTTP_Status
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
return AJAX_Service.normalizeRawObjectDataResponse(rawObjectDataResponse, compoundParameter.validResponseDataSpecification);
|
|
114
|
+
}
|
|
115
|
+
async retrieveText(compoundParameter) {
|
|
116
|
+
return this.retrieveResponseWithTextData({
|
|
117
|
+
URI: this.normalizeURI(compoundParameter),
|
|
118
|
+
HTTP_Method: compoundParameter.HTTP_Method ?? fundamental_constants_1.HTTP_Methods.get,
|
|
119
|
+
HTTP_Headers: compoundParameter.HTTP_Headers ?? {},
|
|
120
|
+
...(0, isNotUndefined_1.default)(compoundParameter.requestData) ? { requestData: compoundParameter.requestData } : null,
|
|
121
|
+
mustIncludeCookiesAndAuthenticationHeadersToRequest: compoundParameter.mustIncludeCookiesAndAuthenticationHeadersToRequest === true
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
normalizeURI(compoundParameter) {
|
|
125
|
+
const targetURI_PartUntilPath = this.normalizeURI_UntilPath(compoundParameter);
|
|
126
|
+
const URI_QueryParameters = compoundParameter.URI_QueryParameters ?? {};
|
|
127
|
+
let serializedQueryParameters;
|
|
128
|
+
if (Object.entries(URI_QueryParameters).length > 0) {
|
|
129
|
+
serializedQueryParameters =
|
|
130
|
+
compoundParameter.URI_QueryParametersSerializer?.(URI_QueryParameters) ??
|
|
131
|
+
AJAX_Service.URI_QueryParametersSerializer(URI_QueryParameters);
|
|
132
|
+
}
|
|
133
|
+
return targetURI_PartUntilPath +
|
|
134
|
+
(0, insertSubstring_1.default)(serializedQueryParameters, { modifier: (nonEmptySerializedQueryParameters) => `?${nonEmptySerializedQueryParameters}` });
|
|
135
|
+
}
|
|
136
|
+
normalizeURI_UntilPath(URI_PathRawDefinition) {
|
|
137
|
+
if ((0, isNonEmptyString_1.default)(URI_PathRawDefinition.alternatingURI_PathPart)) {
|
|
138
|
+
if ((0, isNull_1.default)(AJAX_Service.API_SERVER_URI_CONSTANT_PART__WITHOUT_TRAILING_SLASH)) {
|
|
139
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
140
|
+
errorInstance: new InvalidConfigError_1.default({
|
|
141
|
+
customMessage: "The \"alternatingURI_PathPart\" has been specified while the static field " +
|
|
142
|
+
"\"API_SERVER_URI_CONSTANT_PART\" has not been set."
|
|
143
|
+
}),
|
|
144
|
+
title: InvalidConfigError_1.default.localization.defaultTitle,
|
|
145
|
+
occurrenceLocation: "AJAX_Service.normalizeURI_UntilPath(URI_PathRawDefinition)"
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
return encodeURI(`${AJAX_Service.API_SERVER_URI_CONSTANT_PART__WITHOUT_TRAILING_SLASH}/` +
|
|
149
|
+
(0, removeSpecificCharacterFromCertainPosition_1.default)({
|
|
150
|
+
targetString: URI_PathRawDefinition.alternatingURI_PathPart,
|
|
151
|
+
targetCharacter: "/",
|
|
152
|
+
fromFirstPosition: true
|
|
153
|
+
}));
|
|
154
|
+
}
|
|
155
|
+
if ((0, isNonEmptyString_1.default)(URI_PathRawDefinition.specificURI_UntilPath)) {
|
|
156
|
+
return encodeURI(URI_PathRawDefinition.specificURI_UntilPath);
|
|
157
|
+
}
|
|
158
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
159
|
+
errorInstance: new InvalidParameterValueError_1.default({
|
|
160
|
+
customMessage: "Either \"alternatingURI_PathPart\" or \"specificURI_UntilPath\" must be specified with non-empty " +
|
|
161
|
+
"strings while neither has been."
|
|
162
|
+
}),
|
|
163
|
+
title: InvalidParameterValueError_1.default.localization.defaultTitle,
|
|
164
|
+
occurrenceLocation: "AJAX_Service.normalizeURI_UntilPath(URI_PathRawDefinition)"
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
static normalizeRawObjectDataResponse(rawObjectDataResponse, validResponseDataSpecification) {
|
|
168
|
+
if (rawObjectDataResponse.isSuccessful) {
|
|
169
|
+
const responseRawDataProcessingResult = RawObjectDataProcessor_1.default.process(rawObjectDataResponse.data, validResponseDataSpecification);
|
|
170
|
+
if (responseRawDataProcessingResult.isRawDataInvalid) {
|
|
171
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
172
|
+
errorInstance: new InvalidExternalDataError_1.default({
|
|
173
|
+
mentionToExpectedData: "HTTP_ResponseData",
|
|
174
|
+
messageSpecificPart: RawObjectDataProcessor_1.default.formatValidationErrorsList(responseRawDataProcessingResult.validationErrorsMessages)
|
|
175
|
+
}),
|
|
176
|
+
title: InvalidExternalDataError_1.default.localization.defaultTitle,
|
|
177
|
+
occurrenceLocation: "AJAX_Service.normalizeRawObjectDataResponse(rawObjectDataResponse, validResponseDataSpecification)"
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
return {
|
|
181
|
+
isSuccessful: true,
|
|
182
|
+
data: responseRawDataProcessingResult.processedData,
|
|
183
|
+
HTTP_Headers: rawObjectDataResponse.HTTP_Headers,
|
|
184
|
+
HTTP_Status: rawObjectDataResponse.HTTP_Status
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
return {
|
|
188
|
+
isSuccessful: false,
|
|
189
|
+
..."errorObjectPayload" in rawObjectDataResponse ?
|
|
190
|
+
{ errorObjectPayload: rawObjectDataResponse.errorObjectPayload } :
|
|
191
|
+
{ errorTextPayload: rawObjectDataResponse.errorTextPayload },
|
|
192
|
+
HTTP_Headers: rawObjectDataResponse.HTTP_Headers,
|
|
193
|
+
HTTP_Status: rawObjectDataResponse.HTTP_Status
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
static getExpectedToBeInitializedImplementation() {
|
|
197
|
+
if ((0, isNull_1.default)(AJAX_Service.implementation)) {
|
|
198
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
199
|
+
errorType: "ImplementationHasNotBeenSetError",
|
|
200
|
+
title: "Implementation has not been set",
|
|
201
|
+
description: "To use the static methods of \"AJAX_Service\" class and its inheritors, it is required to set " +
|
|
202
|
+
"the \"implementation\" public static field first or use \"setup\" static method.",
|
|
203
|
+
occurrenceLocation: "AJAX_Service.getExpectedToBeInitializedImplementation()"
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
return AJAX_Service.implementation;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
exports.default = AJAX_Service;
|
|
@@ -0,0 +1,211 @@
|
|
|
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
|
+
const AJAX_Service_1 = __importDefault(require("./AJAX_Service"));
|
|
7
|
+
const Logger_1 = __importDefault(require("../Logging/Logger"));
|
|
8
|
+
const DataRetrievingFailedError_1 = __importDefault(require("../Errors/DataRetrievingFailed/DataRetrievingFailedError"));
|
|
9
|
+
const DataSubmittingFailedError_1 = __importDefault(require("../Errors/DataSubmittingFailed/DataSubmittingFailedError"));
|
|
10
|
+
const UnsupportedScenarioError_1 = __importDefault(require("../Errors/UnsupportedScenario/UnsupportedScenarioError"));
|
|
11
|
+
const isPossiblyReadonlyParsedJSON_1 = __importDefault(require("../TypeGuards/ParsedJSON/isPossiblyReadonlyParsedJSON"));
|
|
12
|
+
const HTTP_ResponseBodyParsingFailureError_1 = __importDefault(require("../Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureError"));
|
|
13
|
+
const isNotUndefined_1 = __importDefault(require("../TypeGuards/EmptyTypes/isNotUndefined"));
|
|
14
|
+
class FetchAPI_Service extends AJAX_Service_1.default {
|
|
15
|
+
async retrieveResponseWithRawObjectData(compoundParameter) {
|
|
16
|
+
let response;
|
|
17
|
+
try {
|
|
18
|
+
response = await fetch(compoundParameter.URI, {
|
|
19
|
+
method: compoundParameter.HTTP_Method,
|
|
20
|
+
headers: { ...compoundParameter.HTTP_Headers },
|
|
21
|
+
...compoundParameter.mustIncludeCookiesAndAuthenticationHeadersToRequest ? { credentials: "include" } : null
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
26
|
+
errorInstance: new DataRetrievingFailedError_1.default({
|
|
27
|
+
customMessage: "The error has occurred before response has been retrieved."
|
|
28
|
+
}),
|
|
29
|
+
title: DataRetrievingFailedError_1.default.localization.defaultTitle,
|
|
30
|
+
occurrenceLocation: "FetchAPI_Service.retrieveResponseWithRawData(compoundParameter)",
|
|
31
|
+
innerError: error
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
...response.ok ?
|
|
36
|
+
{
|
|
37
|
+
isSuccessful: true,
|
|
38
|
+
data: await FetchAPI_Service.extractRawObjectDataFromResponse(response)
|
|
39
|
+
} :
|
|
40
|
+
{
|
|
41
|
+
isSuccessful: false,
|
|
42
|
+
...await FetchAPI_Service.extractErrorPayloadFromResponse(response)
|
|
43
|
+
},
|
|
44
|
+
HTTP_Headers: Array.from(response.headers).reduce((HTTP_Headers, [key, value]) => {
|
|
45
|
+
HTTP_Headers[key] = value;
|
|
46
|
+
return HTTP_Headers;
|
|
47
|
+
}, {}),
|
|
48
|
+
HTTP_Status: response.status
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
async submitAndGetRawResponseDataIfAvailable(compoundParameter) {
|
|
52
|
+
let response;
|
|
53
|
+
try {
|
|
54
|
+
response = await fetch(compoundParameter.URI, {
|
|
55
|
+
method: compoundParameter.HTTP_Method,
|
|
56
|
+
headers: {
|
|
57
|
+
"Content-Type": "application/json; charset=UTF-8",
|
|
58
|
+
...compoundParameter.HTTP_Headers
|
|
59
|
+
},
|
|
60
|
+
body: JSON.stringify(compoundParameter.requestData),
|
|
61
|
+
...compoundParameter.mustIncludeCookiesAndAuthenticationHeadersToRequest ? { credentials: "include" } : null
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
66
|
+
errorInstance: new DataSubmittingFailedError_1.default({
|
|
67
|
+
customMessage: "The error has occurred before server response has been retrieved."
|
|
68
|
+
}),
|
|
69
|
+
title: DataSubmittingFailedError_1.default.localization.defaultTitle,
|
|
70
|
+
occurrenceLocation: "FetchAPI_Service.submitAndGetRawResponseDataIfAvailable(compoundParameter)",
|
|
71
|
+
innerError: error
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
...response.ok ?
|
|
76
|
+
{
|
|
77
|
+
isSuccessful: true,
|
|
78
|
+
data: compoundParameter.mustExpectResponseData ?
|
|
79
|
+
await FetchAPI_Service.extractRawObjectDataFromResponse(response) : {}
|
|
80
|
+
} :
|
|
81
|
+
{
|
|
82
|
+
isSuccessful: false,
|
|
83
|
+
...await FetchAPI_Service.extractErrorPayloadFromResponse(response)
|
|
84
|
+
},
|
|
85
|
+
HTTP_Headers: Array.from(response.headers).reduce((HTTP_Headers, [key, value]) => {
|
|
86
|
+
HTTP_Headers[key] = value;
|
|
87
|
+
return HTTP_Headers;
|
|
88
|
+
}, {}),
|
|
89
|
+
HTTP_Status: response.status
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
async retrieveResponseWithTextData(compoundParameter) {
|
|
93
|
+
let response;
|
|
94
|
+
try {
|
|
95
|
+
response = await fetch(compoundParameter.URI, {
|
|
96
|
+
method: compoundParameter.HTTP_Method,
|
|
97
|
+
headers: {
|
|
98
|
+
...(0, isNotUndefined_1.default)(compoundParameter.requestData) ? { "Content-Type": "application/json; charset=UTF-8" } : null,
|
|
99
|
+
...compoundParameter.HTTP_Headers
|
|
100
|
+
},
|
|
101
|
+
...(0, isNotUndefined_1.default)(compoundParameter.requestData) ? { body: JSON.stringify(compoundParameter.requestData) } : null,
|
|
102
|
+
...compoundParameter.mustIncludeCookiesAndAuthenticationHeadersToRequest ? { credentials: "include" } : null
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
catch (error) {
|
|
106
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
107
|
+
errorInstance: new DataRetrievingFailedError_1.default({
|
|
108
|
+
customMessage: "The error has occurred before response has been retrieved."
|
|
109
|
+
}),
|
|
110
|
+
title: DataRetrievingFailedError_1.default.localization.defaultTitle,
|
|
111
|
+
occurrenceLocation: "FetchAPI_Service.retrieveResponseWithTextData(compoundParameter)",
|
|
112
|
+
innerError: error
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
let decodedText;
|
|
116
|
+
if (response.ok) {
|
|
117
|
+
try {
|
|
118
|
+
decodedText = await response.text();
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
122
|
+
errorInstance: new HTTP_ResponseBodyParsingFailureError_1.default("The HTTP response body could not be represented as text."),
|
|
123
|
+
title: HTTP_ResponseBodyParsingFailureError_1.default.localization.defaultTitle,
|
|
124
|
+
occurrenceLocation: "FetchAPI_Service.retrieveResponseWithTextData(compoundParameter)",
|
|
125
|
+
innerError: error
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
...(0, isNotUndefined_1.default)(decodedText) ?
|
|
131
|
+
{
|
|
132
|
+
isSuccessful: true,
|
|
133
|
+
text: decodedText
|
|
134
|
+
} : {
|
|
135
|
+
isSuccessful: false,
|
|
136
|
+
...await FetchAPI_Service.extractErrorPayloadFromResponse(response)
|
|
137
|
+
},
|
|
138
|
+
HTTP_Headers: Array.from(response.headers).reduce((HTTP_Headers, [key, value]) => {
|
|
139
|
+
HTTP_Headers[key] = value;
|
|
140
|
+
return HTTP_Headers;
|
|
141
|
+
}, {}),
|
|
142
|
+
HTTP_Status: response.status
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
static async extractRawObjectDataFromResponse(response) {
|
|
146
|
+
let responseRawData;
|
|
147
|
+
try {
|
|
148
|
+
responseRawData = await response.json();
|
|
149
|
+
}
|
|
150
|
+
catch (error) {
|
|
151
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
152
|
+
errorInstance: new HTTP_ResponseBodyParsingFailureError_1.default("The HTTP response body could not be represented as JSON."),
|
|
153
|
+
title: HTTP_ResponseBodyParsingFailureError_1.default.localization.defaultTitle,
|
|
154
|
+
occurrenceLocation: "FetchAPI_Service.extractRawObjectDataFromResponse(response)",
|
|
155
|
+
innerError: error
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
if (!(0, isPossiblyReadonlyParsedJSON_1.default)(responseRawData)) {
|
|
159
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
160
|
+
errorInstance: new UnsupportedScenarioError_1.default(`The data has type "${typeof responseRawData}" while currently non-object data in not supported.`),
|
|
161
|
+
title: UnsupportedScenarioError_1.default.localization.defaultTitle,
|
|
162
|
+
occurrenceLocation: "FetchAPI_Service.extractRawObjectDataFromResponse(response)"
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
return responseRawData;
|
|
166
|
+
}
|
|
167
|
+
static async extractErrorPayloadFromResponse(response) {
|
|
168
|
+
const contentType = response.headers.get("content-type");
|
|
169
|
+
if (contentType?.includes("application/json") === true) {
|
|
170
|
+
let objectTypeData;
|
|
171
|
+
try {
|
|
172
|
+
objectTypeData = await response.json();
|
|
173
|
+
}
|
|
174
|
+
catch (error) {
|
|
175
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
176
|
+
errorInstance: new HTTP_ResponseBodyParsingFailureError_1.default("The HTTP response body could not be represented as JSON while \"content-type\" HTTP header is includes " +
|
|
177
|
+
"\"application/json\"."),
|
|
178
|
+
title: HTTP_ResponseBodyParsingFailureError_1.default.localization.defaultTitle,
|
|
179
|
+
occurrenceLocation: "FetchAPI_Service.extractErrorPayloadFromResponse(response)",
|
|
180
|
+
innerError: error
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
if (!(0, isPossiblyReadonlyParsedJSON_1.default)(objectTypeData)) {
|
|
184
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
185
|
+
errorInstance: new UnsupportedScenarioError_1.default(`The data has type "${typeof objectTypeData}" while currently non-object data in not supported.`),
|
|
186
|
+
title: UnsupportedScenarioError_1.default.localization.defaultTitle,
|
|
187
|
+
occurrenceLocation: "FetchAPI_Service.extractRawObjectDataFromResponse(response)"
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
return { errorObjectPayload: objectTypeData };
|
|
191
|
+
}
|
|
192
|
+
if (contentType?.includes("text") === true) {
|
|
193
|
+
let decodedText;
|
|
194
|
+
try {
|
|
195
|
+
decodedText = await response.text();
|
|
196
|
+
}
|
|
197
|
+
catch (error) {
|
|
198
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
199
|
+
errorInstance: new HTTP_ResponseBodyParsingFailureError_1.default("The HTTP response body could not be represented as text while \"content-type\" HTTP header is includes " +
|
|
200
|
+
"\"text\"."),
|
|
201
|
+
title: HTTP_ResponseBodyParsingFailureError_1.default.localization.defaultTitle,
|
|
202
|
+
occurrenceLocation: "FetchAPI_Service.extractRawObjectDataFromResponse(compoundParameter)",
|
|
203
|
+
innerError: error
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
return { errorTextPayload: decodedText };
|
|
207
|
+
}
|
|
208
|
+
return { errorObjectPayload: {} };
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
exports.default = FetchAPI_Service;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
const isString_1 = __importDefault(require("../TypeGuards/Strings/isString"));
|
|
7
|
+
const index_1 = require("../index");
|
|
8
|
+
const serializeURI_QueryParameters = (URI_QueryParameters) => {
|
|
9
|
+
const stringifiedKeysAndValueParis = [];
|
|
10
|
+
for (const [key, value] of Object.entries(URI_QueryParameters)) {
|
|
11
|
+
if ((0, isString_1.default)(value) || (0, index_1.isNumber)(value, { mustConsiderNaN_AsNumber: true }) || (0, index_1.isBoolean)(value)) {
|
|
12
|
+
stringifiedKeysAndValueParis.push(`${key}=${value}`);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return stringifiedKeysAndValueParis.join("&");
|
|
16
|
+
};
|
|
17
|
+
exports.default = serializeURI_QueryParameters;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
exports.default = createArrayOfNaturalNumbers;
|
|
7
|
+
const isNaturalNumberOrZero_1 = __importDefault(require("../../TypeGuards/Numbers/isNaturalNumberOrZero"));
|
|
8
|
+
const isNaturalNumber_1 = __importDefault(require("../../TypeGuards/Numbers/isNaturalNumber"));
|
|
9
|
+
const Logger_1 = __importDefault(require("../../Logging/Logger"));
|
|
10
|
+
const InvalidParameterValueError_1 = __importDefault(require("../../Errors/InvalidParameterValue/InvalidParameterValueError"));
|
|
11
|
+
function createArrayOfNaturalNumbers({ elementsCount, isDescendingOrder = false, startingNumber = isDescendingOrder ? (elementsCount === 0 ? 1 : elementsCount) : 1 }) {
|
|
12
|
+
if (!(0, isNaturalNumberOrZero_1.default)(elementsCount)) {
|
|
13
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
14
|
+
errorInstance: new InvalidParameterValueError_1.default({
|
|
15
|
+
parameterNumber: 1,
|
|
16
|
+
parameterName: "options",
|
|
17
|
+
messageSpecificPart: `The \`elementsCount\` must be the natural number or zero while ${elementsCount} has been specified.`
|
|
18
|
+
}),
|
|
19
|
+
title: InvalidParameterValueError_1.default.localization.defaultTitle,
|
|
20
|
+
occurrenceLocation: "createArrayOfNaturalNumbers(options)"
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
if (!(0, isNaturalNumber_1.default)(startingNumber)) {
|
|
24
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
25
|
+
errorInstance: new InvalidParameterValueError_1.default({
|
|
26
|
+
parameterNumber: 1,
|
|
27
|
+
parameterName: "options",
|
|
28
|
+
messageSpecificPart: `The \`startingNumber\` must the natural number while ${elementsCount} has been specified.`
|
|
29
|
+
}),
|
|
30
|
+
title: InvalidParameterValueError_1.default.localization.defaultTitle,
|
|
31
|
+
occurrenceLocation: "createArrayOfNaturalNumbers(options)"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
if (isDescendingOrder && startingNumber < elementsCount) {
|
|
35
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
36
|
+
errorInstance: new InvalidParameterValueError_1.default({
|
|
37
|
+
parameterNumber: 1,
|
|
38
|
+
parameterName: "options",
|
|
39
|
+
messageSpecificPart: `The specified \`startingNumber\` ${startingNumber} is smaller than requested ${elementsCount} ` +
|
|
40
|
+
"elements count. " +
|
|
41
|
+
"The monotonically decreasing array of natural numbers could not be created with such conditions."
|
|
42
|
+
}),
|
|
43
|
+
title: InvalidParameterValueError_1.default.localization.defaultTitle,
|
|
44
|
+
occurrenceLocation: "createArrayOfNaturalNumbers(options)"
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return Array.from(new Array(elementsCount).keys()).
|
|
48
|
+
map((elementAsIndex) => startingNumber + (isDescendingOrder ? -elementAsIndex : elementAsIndex));
|
|
49
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
exports.default = getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne;
|
|
7
|
+
const Logger_1 = __importDefault(require("../../Logging/Logger"));
|
|
8
|
+
const UnexpectedEventError_1 = __importDefault(require("../../Errors/UnexpectedEvent/UnexpectedEventError"));
|
|
9
|
+
function getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne(targetArray, predicate, options = {}) {
|
|
10
|
+
const allElementsMatchingWithPredicate = targetArray.filter(predicate);
|
|
11
|
+
if (allElementsMatchingWithPredicate.length === 0) {
|
|
12
|
+
if (options.mustThrowErrorIfElementNotFoundOrMatchesAreMultiple === true) {
|
|
13
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
14
|
+
errorInstance: new UnexpectedEventError_1.default("Array element satisfies the specified predicate not found."),
|
|
15
|
+
title: UnexpectedEventError_1.default.localization.defaultTitle,
|
|
16
|
+
occurrenceLocation: "getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne(targetArray, predicate, options)"
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
if (allElementsMatchingWithPredicate.length > 1) {
|
|
22
|
+
if (options.mustThrowErrorIfElementNotFoundOrMatchesAreMultiple === true) {
|
|
23
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
24
|
+
errorInstance: new UnexpectedEventError_1.default("There are multiple elements satisfies the predicate. " +
|
|
25
|
+
"As it follows from the function name, two or more matches case is being considered as the unexpected event."),
|
|
26
|
+
title: UnexpectedEventError_1.default.localization.defaultTitle,
|
|
27
|
+
occurrenceLocation: "getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne(targetArray, predicate, options)"
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return allElementsMatchingWithPredicate[0];
|
|
33
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
exports.default = getLastElementOfArray;
|
|
7
|
+
const isUndefined_1 = __importDefault(require("../../TypeGuards/EmptyTypes/isUndefined"));
|
|
8
|
+
const Logger_1 = __importDefault(require("../../Logging/Logger"));
|
|
9
|
+
const UnexpectedEventError_1 = __importDefault(require("../../Errors/UnexpectedEvent/UnexpectedEventError"));
|
|
10
|
+
function getLastElementOfArray(targetArray, options) {
|
|
11
|
+
const lastElementOfTargetArray = targetArray[targetArray.length - 1];
|
|
12
|
+
if ((0, isUndefined_1.default)(lastElementOfTargetArray)) {
|
|
13
|
+
if (options?.mustThrowErrorIfArrayIsEmpty === true) {
|
|
14
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
15
|
+
errorInstance: new UnexpectedEventError_1.default("Contrary to expectations, target array is empty thus there is no the last element could be accessed."),
|
|
16
|
+
title: UnexpectedEventError_1.default.localization.defaultTitle,
|
|
17
|
+
occurrenceLocation: "getLastElementOfArray(targetArray, options)"
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return lastElementOfTargetArray;
|
|
23
|
+
}
|
|
@@ -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
|
+
exports.default = getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne;
|
|
7
|
+
const Logger_1 = __importDefault(require("../../Logging/Logger"));
|
|
8
|
+
const UnexpectedEventError_1 = __importDefault(require("../../Errors/UnexpectedEvent/UnexpectedEventError"));
|
|
9
|
+
function getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne(targetArray, predicate, options = {}) {
|
|
10
|
+
const indexesOfAllElementsSatisfiesThePredicate = [];
|
|
11
|
+
for (const [index, element] of targetArray.entries()) {
|
|
12
|
+
if (predicate(element)) {
|
|
13
|
+
indexesOfAllElementsSatisfiesThePredicate.push(index);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
if (indexesOfAllElementsSatisfiesThePredicate.length === 0) {
|
|
17
|
+
if (options.mustThrowErrorIfElementNotFoundOrMatchesAreMultiple === true) {
|
|
18
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
19
|
+
errorInstance: new UnexpectedEventError_1.default("Array element satisfies to specified predicate not found."),
|
|
20
|
+
title: UnexpectedEventError_1.default.localization.defaultTitle,
|
|
21
|
+
occurrenceLocation: "getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne" +
|
|
22
|
+
"(targetArray, predicate, options)"
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
if (indexesOfAllElementsSatisfiesThePredicate.length > 1) {
|
|
28
|
+
if (options.mustThrowErrorIfElementNotFoundOrMatchesAreMultiple === true) {
|
|
29
|
+
Logger_1.default.throwErrorWithFormattedMessage({
|
|
30
|
+
errorInstance: new UnexpectedEventError_1.default("There are multiple elements satisfies the predicate. As it follows from the function name, two or more " +
|
|
31
|
+
"matches case is being considered as unexpected event."),
|
|
32
|
+
title: UnexpectedEventError_1.default.localization.defaultTitle,
|
|
33
|
+
occurrenceLocation: "getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne" +
|
|
34
|
+
"(targetArray, predicate, options)"
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return indexesOfAllElementsSatisfiesThePredicate[0];
|
|
40
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = getIndexesOfSatisfiesThePredicateArrayElements;
|
|
4
|
+
function getIndexesOfSatisfiesThePredicateArrayElements(targetArray, predicate) {
|
|
5
|
+
return targetArray.flatMap((arrayElement, index) => (predicate(arrayElement) ? index : []));
|
|
6
|
+
}
|