@yamato-daiwa/es-extensions 1.6.2 → 1.6.5
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/Promises/PromisesQueue.js +6 -6
- package/Distributable/cjs/Strings/appendCharacterIfItDoesNotPresentInLastPosition.js +7 -0
- package/Distributable/cjs/Strings/explodeCasedPhraseToWords.js +1 -1
- package/Distributable/cjs/Strings/isIPv4AddressLiesInRange.js +32 -32
- package/Distributable/cjs/index.js +58 -56
- package/Distributable/esm/Promises/PromisesQueue.d.ts +2 -2
- package/Distributable/esm/Promises/PromisesQueue.js +6 -6
- package/Distributable/esm/Sets/addMultipleElementsToSet.d.ts +1 -1
- package/Distributable/esm/Strings/appendCharacterIfItDoesNotPresentInLastPosition.d.ts +4 -0
- package/Distributable/esm/Strings/appendCharacterIfItDoesNotPresentInLastPosition.js +4 -0
- package/Distributable/esm/Strings/explodeCasedPhraseToWords.js +1 -1
- package/Distributable/esm/Strings/isIPv4AddressLiesInRange.d.ts +1 -1
- package/Distributable/esm/Strings/isIPv4AddressLiesInRange.js +32 -32
- package/Distributable/esm/index.d.ts +28 -27
- package/Distributable/esm/index.js +27 -26
- package/README.md +2 -1
- package/package.json +1 -1
- package/Distributable/cjs/DateTime/TimePoint.js +0 -1
- package/Distributable/esm/DateTime/TimePoint.d.ts +0 -0
- package/Distributable/esm/DateTime/TimePoint.js +0 -1
|
@@ -21,7 +21,7 @@ class PromisesQueue {
|
|
|
21
21
|
constructor(initialAsynchronousFunctions = []) {
|
|
22
22
|
this.asynchronousFunctionsQueue.push(...initialAsynchronousFunctions);
|
|
23
23
|
}
|
|
24
|
-
async startExecutionIfHasNotStartedYet(
|
|
24
|
+
async startExecutionIfHasNotStartedYet(compoundParameter) {
|
|
25
25
|
if (this.isExecutingNow) {
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
@@ -31,7 +31,7 @@ class PromisesQueue {
|
|
|
31
31
|
await asynchronousFunction();
|
|
32
32
|
}
|
|
33
33
|
catch (error) {
|
|
34
|
-
switch (
|
|
34
|
+
switch (compoundParameter.behaviourOnSomePromiseFailed) {
|
|
35
35
|
case PromisesQueue.BEHAVIOUR_ON_SOME_PROMISE_FAILED.throwingTheError: {
|
|
36
36
|
throw error;
|
|
37
37
|
}
|
|
@@ -40,7 +40,7 @@ class PromisesQueue {
|
|
|
40
40
|
errorType: "AsynchronousProcessingFailedError",
|
|
41
41
|
title: "Asynchronous processing failed error",
|
|
42
42
|
description: "The error occurred during execution of one of promised.",
|
|
43
|
-
occurrenceLocation: "promisesQueue.startExecutionIfHasNotStartedYet(
|
|
43
|
+
occurrenceLocation: "promisesQueue.startExecutionIfHasNotStartedYet(compoundParameter)",
|
|
44
44
|
caughtError: error
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -58,10 +58,10 @@ class PromisesQueue {
|
|
|
58
58
|
addFunctionToQueue(newAsynchronousFunction) {
|
|
59
59
|
this.asynchronousFunctionsQueue.push(newAsynchronousFunction);
|
|
60
60
|
}
|
|
61
|
-
async addFunctionAndStartExecutionIfHasNotStartedYet(
|
|
62
|
-
this.addFunctionToQueue(
|
|
61
|
+
async addFunctionAndStartExecutionIfHasNotStartedYet(compoundParameter) {
|
|
62
|
+
this.addFunctionToQueue(compoundParameter.newAsynchronousFunction);
|
|
63
63
|
return this.startExecutionIfHasNotStartedYet({
|
|
64
|
-
behaviourOnSomePromiseFailed:
|
|
64
|
+
behaviourOnSomePromiseFailed: compoundParameter.behaviourOnSomePromiseFailed
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
stopExecutionOnceCurrentPromiseFinished() {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function appendCharacterIfItDoesNotPresentInLastPosition(compoundParameter) {
|
|
4
|
+
const { targetString, trailingCharacter } = compoundParameter;
|
|
5
|
+
return targetString.endsWith(trailingCharacter) ? targetString : `${targetString}${trailingCharacter}`;
|
|
6
|
+
}
|
|
7
|
+
exports.default = appendCharacterIfItDoesNotPresentInLastPosition;
|
|
@@ -15,7 +15,7 @@ function explodeCasedPhraseToWords(targetString) {
|
|
|
15
15
|
errorInstance: new InvalidParameterValueError_1.default({
|
|
16
16
|
parameterNumber: 1,
|
|
17
17
|
parameterName: "targetString",
|
|
18
|
-
customMessage: `The first and only parameter must be a string while actually is has type
|
|
18
|
+
customMessage: `The first and only parameter must be a string while actually is has type "${typeof targetString}".`
|
|
19
19
|
}),
|
|
20
20
|
title: InvalidParameterValueError_1.default.localization.defaultTitle,
|
|
21
21
|
occurrenceLocation: "explodeToWords(targetString)"
|
|
@@ -7,89 +7,89 @@ const isArbitraryObject_1 = __importDefault(require("../TypeGuards/Objects/isArb
|
|
|
7
7
|
const InvalidParameterValueError_1 = __importDefault(require("../Errors/InvalidParameterValue/InvalidParameterValueError"));
|
|
8
8
|
const Logger_1 = __importDefault(require("../Logging/Logger"));
|
|
9
9
|
const isString_1 = __importDefault(require("../TypeGuards/Strings/isString"));
|
|
10
|
-
function isIPv4AddressLiesInRange(
|
|
11
|
-
if (!(0, isArbitraryObject_1.default)(
|
|
10
|
+
function isIPv4AddressLiesInRange(compoundParameter) {
|
|
11
|
+
if (!(0, isArbitraryObject_1.default)(compoundParameter)) {
|
|
12
12
|
Logger_1.default.throwErrorAndLog({
|
|
13
13
|
errorInstance: new InvalidParameterValueError_1.default({
|
|
14
14
|
parameterNumber: 1,
|
|
15
|
-
parameterName: "
|
|
15
|
+
parameterName: "compoundParameter",
|
|
16
16
|
messageSpecificPart: "The first and only parameter must be an object type."
|
|
17
17
|
}),
|
|
18
18
|
title: InvalidParameterValueError_1.default.localization.defaultTitle,
|
|
19
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
19
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
if (!(0, isString_1.default)(
|
|
22
|
+
if (!(0, isString_1.default)(compoundParameter.comparedIP_Address)) {
|
|
23
23
|
Logger_1.default.throwErrorAndLog({
|
|
24
24
|
errorInstance: new InvalidParameterValueError_1.default({
|
|
25
25
|
parameterNumber: 1,
|
|
26
|
-
parameterName: "
|
|
27
|
-
messageSpecificPart: "The
|
|
28
|
-
`${typeof
|
|
26
|
+
parameterName: "compoundParameter.comparedIP_Address",
|
|
27
|
+
messageSpecificPart: "The \"comparedIP_Address\" must be a string while actually has type " +
|
|
28
|
+
`${typeof compoundParameter.comparedIP_Address}`
|
|
29
29
|
}),
|
|
30
30
|
title: InvalidParameterValueError_1.default.localization.defaultTitle,
|
|
31
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
31
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
if (!(0, isString_1.default)(
|
|
34
|
+
if (!(0, isString_1.default)(compoundParameter.minimalIP_Address)) {
|
|
35
35
|
Logger_1.default.throwErrorAndLog({
|
|
36
36
|
errorInstance: new InvalidParameterValueError_1.default({
|
|
37
37
|
parameterNumber: 1,
|
|
38
|
-
parameterName: "
|
|
39
|
-
messageSpecificPart: "The
|
|
40
|
-
`${typeof
|
|
38
|
+
parameterName: "compoundParameter.minimalIP_Address",
|
|
39
|
+
messageSpecificPart: "The \"minimalIP_Address\" must be a string while actually has type " +
|
|
40
|
+
`${typeof compoundParameter.minimalIP_Address}`
|
|
41
41
|
}),
|
|
42
42
|
title: InvalidParameterValueError_1.default.localization.defaultTitle,
|
|
43
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
43
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
if (!(0, isString_1.default)(
|
|
46
|
+
if (!(0, isString_1.default)(compoundParameter.maximalIP_Address)) {
|
|
47
47
|
Logger_1.default.throwErrorAndLog({
|
|
48
48
|
errorInstance: new InvalidParameterValueError_1.default({
|
|
49
49
|
parameterNumber: 1,
|
|
50
50
|
parameterName: "maximalIP_Address.minimalIP_Address",
|
|
51
|
-
messageSpecificPart: "The
|
|
52
|
-
`${typeof
|
|
51
|
+
messageSpecificPart: "The \"maximalIP_Address\" must be a string while actually has type " +
|
|
52
|
+
`${typeof compoundParameter.maximalIP_Address}`
|
|
53
53
|
}),
|
|
54
54
|
title: InvalidParameterValueError_1.default.localization.defaultTitle,
|
|
55
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
55
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
const VALID_IP_ADDRESS_PATTERN = /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/u;
|
|
59
|
-
if (!VALID_IP_ADDRESS_PATTERN.test(
|
|
59
|
+
if (!VALID_IP_ADDRESS_PATTERN.test(compoundParameter.comparedIP_Address)) {
|
|
60
60
|
Logger_1.default.throwErrorAndLog({
|
|
61
61
|
errorInstance: new InvalidParameterValueError_1.default({
|
|
62
62
|
parameterNumber: 1,
|
|
63
|
-
parameterName: "
|
|
64
|
-
messageSpecificPart: `The value
|
|
63
|
+
parameterName: "compoundParameter.comparedIP_Address",
|
|
64
|
+
messageSpecificPart: `The value "${compoundParameter.comparedIP_Address}" of 'comparedIP_Address' is not a` +
|
|
65
65
|
"valid IPv4 address."
|
|
66
66
|
}),
|
|
67
67
|
title: InvalidParameterValueError_1.default.localization.defaultTitle,
|
|
68
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
68
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
if (!VALID_IP_ADDRESS_PATTERN.test(
|
|
71
|
+
if (!VALID_IP_ADDRESS_PATTERN.test(compoundParameter.minimalIP_Address)) {
|
|
72
72
|
Logger_1.default.throwErrorAndLog({
|
|
73
73
|
errorInstance: new InvalidParameterValueError_1.default({
|
|
74
74
|
parameterNumber: 1,
|
|
75
|
-
parameterName: "
|
|
76
|
-
messageSpecificPart: `The value
|
|
75
|
+
parameterName: "compoundParameter.minimalIP_Address",
|
|
76
|
+
messageSpecificPart: `The value "${compoundParameter.minimalIP_Address}" of 'minimalIP_Address' is not a ` +
|
|
77
77
|
"valid IPv4 address."
|
|
78
78
|
}),
|
|
79
79
|
title: InvalidParameterValueError_1.default.localization.defaultTitle,
|
|
80
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
80
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
if (!VALID_IP_ADDRESS_PATTERN.test(
|
|
83
|
+
if (!VALID_IP_ADDRESS_PATTERN.test(compoundParameter.maximalIP_Address)) {
|
|
84
84
|
Logger_1.default.throwErrorAndLog({
|
|
85
85
|
errorInstance: new InvalidParameterValueError_1.default({
|
|
86
86
|
parameterNumber: 1,
|
|
87
|
-
parameterName: "
|
|
88
|
-
messageSpecificPart: `The value
|
|
87
|
+
parameterName: "compoundParameter.maximalIP_Address",
|
|
88
|
+
messageSpecificPart: `The value "${compoundParameter.maximalIP_Address}" of "maximalIP_Address" is not a ` +
|
|
89
89
|
"valid IPv4 address."
|
|
90
90
|
}),
|
|
91
91
|
title: InvalidParameterValueError_1.default.localization.defaultTitle,
|
|
92
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
92
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
function IPv4AddressToNumber(IPv4Address) {
|
|
@@ -99,7 +99,7 @@ function isIPv4AddressLiesInRange(namedParameters) {
|
|
|
99
99
|
substring(CHARACTERS_COUNT_WHICH_WILL_BE_REMOVED_FROM_THE_START_OF_IP_ADDRESS_OCTET)).
|
|
100
100
|
join(""));
|
|
101
101
|
}
|
|
102
|
-
return IPv4AddressToNumber(
|
|
103
|
-
IPv4AddressToNumber(
|
|
102
|
+
return IPv4AddressToNumber(compoundParameter.comparedIP_Address) >= IPv4AddressToNumber(compoundParameter.minimalIP_Address) &&
|
|
103
|
+
IPv4AddressToNumber(compoundParameter.comparedIP_Address) <= IPv4AddressToNumber(compoundParameter.maximalIP_Address);
|
|
104
104
|
}
|
|
105
105
|
exports.default = isIPv4AddressLiesInRange;
|
|
@@ -9,9 +9,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.ClassRequiredInitializationHasNotBeenExecutedErrorLocalization__English = exports.ClassRequiredInitializationHasNotBeenExecutedError = exports.ClassRedundantSubsequentInitializationErrorLocalization__English = exports.ClassRedundantSubsequentInitializationError = exports.AlgorithmMismatchErrorLocalization__English = exports.AlgorithmMismatchError = exports.substituteWhenUndefined = exports.substituteWhenNull = exports.Timer = exports.TimePoint = exports.secondsToMilliseconds = exports.millisecondsToSeconds = exports.hasTimeCome = exports.getYearOfPreviousMonth = exports.getYearOfNextMonth = exports.getPreviousMonthNumber = exports.getNextMonthNumber = exports.getMonthNumberByName = exports.getMonthNameByNumber = exports.getDaysCountInSpecificMonth = exports.CalendarBuilder = exports.MockGatewayHelperLocalization__English = exports.MockGatewayHelper = exports.DataMocking = exports.YDEE_BUG_REPORTING_PAGE_URI = exports.ServerErrorsHTTP_StatusCodes = exports.ClientErrorsHTTP_StatusCodes = exports.RedirectionResponsesHTTP_StatusCodes = exports.SuccessfulResponsesHTTP_StatusCodes = exports.InformationalResponsesHTTP_StatusCodes = exports.HTTP_StatusCodes = exports.HTTP_Methods = exports.SECONDS_PER_MINUTE = exports.MonthsNames = exports.MONTHS_PER_YEAR = exports.MINUTES_PER_HOUR = exports.MAXIMAL_DAYS_AT_MONTH = exports.HOURS_PER_STELLAR_DAY = exports.DaysOfWeek = exports.CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING = exports.twoDimensionalizeArray = exports.replaceArrayElementsByPredicates = exports.replaceArrayElementsByIndexesImmutably = exports.removeArrayElementsByPredicates = exports.removeArrayElementsByIndexes = exports.getLastElementOfArray = exports.getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne = exports.getIndexesOfArrayElementsWhichSatisfiesThePredicate = exports.getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne = exports.addElementsToArray = void 0;
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
12
|
+
exports.PromisesQueue = exports.splitToPaginationCollection = exports.computeLastItemNumberForSpecificPaginationPage = exports.computeFirstItemNumberForSpecificPaginationPage = exports.getObjectPropertySafely = exports.separateEach4DigitsGroupWithComma = exports.separateEach3DigitsGroupWithComma = exports.roundUpToSpecificIntegerPlaceValue = exports.roundToSpecifiedNearestDecimalPlaceValue = exports.roundToSpecificNearestIntegerPlaceValue = exports.roundDownToSpecificIntegerPlaceValue = exports.isStringifiedNonNegativeIntegerOfRegularNotation = exports.getArithmeticMean = exports.formatNumberWith4KetaKanji = exports.LoggerLocalization__English = exports.Logger = exports.PoliteErrorsMessagesBuilder__English = exports.PoliteErrorsMessagesBuilder = exports.UnsupportedScenarioErrorLocalization__English = exports.UnsupportedScenarioError = exports.UnexpectedEventErrorLocalization__English = exports.UnexpectedEventError = exports.ModuleDynamicLoadingFailedErrorLocalization__English = exports.ModuleDynamicLoadingFailedError = exports.InvalidParameterValueErrorLocalization__English = exports.InvalidParameterValueError = exports.InvalidExternalDataErrorLocalization__English = exports.InvalidExternalDataError = exports.InvalidConfigErrorLocalization__English = exports.InvalidConfigError = exports.InterProcessInteractionFailedErrorLocalization__English = exports.InterProcessInteractionFailedError = exports.IncompatiblePropertiesInObjectTypeParameterErrorLocalization__English = exports.IncompatiblePropertiesInObjectTypeParameterError = exports.ImproperUsageErrorLocalization__English = exports.ImproperUsageError = exports.FileWritingFailedErrorLocalization__English = exports.FileWritingFailedError = exports.FileReadingFailedErrorLocalization__English = exports.FileReadingFailedError = exports.DOM_ElementRetrievingFailedErrorLocalization__English = exports.DOM_ElementRetrievingFailedError = exports.DataSubmittingFailedErrorLocalization__English = exports.DataSubmittingFailedError = exports.DataRetrievingFailedErrorLocalization__English = exports.DataRetrievingFailedError = exports.CrossBrowserIssueErrorLocalization__English = exports.CrossBrowserIssueError = exports.ConfigFileNotFoundErrorLocalization__English = exports.ConfigFileNotFoundError = void 0;
|
|
13
|
+
exports.stringifyAndFormatArbitraryValue = exports.splitString = exports.reverseString = exports.replaceDoubleBackslashesWithForwardSlashes = exports.replaceBrHTML_TagToNewLineEscapeSequence = exports.replace2OrMoreSpacesTo1 = exports.removeSpecificCharacterFromCertainPosition = exports.removeNthCharacter = exports.removeNonDigitsCharacters = exports.removeLastCharacter = exports.removeAllSpecifiedCharacters = exports.insertSubstringIf = exports.insertSubstring = exports.getPositionsOfAllSubstringOccurrences = exports.getLastCharacter = exports.extractMatchingsWithRegularExpression = exports.stringifiedDigits = exports.SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag = exports.SpaceCharacters = exports.uppercaseLatinCharacters = exports.lowercaseLatinCharacters = exports.EscapeCharacters = exports.isIPv4AddressLiesInRange = exports.hasStringOnlySpecificCharacters = exports.getEnglishAbbreviatedOrdinalNumber = exports.explodeCasedPhraseToWords = exports.EmailAddress = exports.capitalizeFirstCharacter = exports.areStringifiedDigitsOnly = exports.appendCharacterIfItDoesNotPresentInLastPosition = exports.getURI_Fragment = exports.getURI_PartWithoutFragment = exports.appendFragmentToURI = exports.appendLastFileNameExtension = exports.getMatchingWithFirstRegularExpressionCapturingGroup = exports.convertPotentialStringToFloatIfPossible = exports.convertPotentialStringToIntegerIfPossible = exports.convertPotentialStringToNumberIfPossible = exports.RawObjectDataProcessorLocalization__English = exports.RawObjectDataProcessor = exports.removeRandomArrayElement = exports.getSpecificBooleanValueWithProbability = exports.getRandomSubarray = exports.getRandomObjectPropertyValue = exports.getRandomLatinCharacter = exports.getRandomInteger = exports.getRandomBoolean = exports.getRandomArrayElement = exports.RandomStringsGenerator = exports.getRandomString = void 0;
|
|
14
|
+
exports.undefinedToNull = exports.undefinedToEmptyString = exports.undefinedToEmptyArray = exports.nullToZero = exports.nullToUndefined = exports.nullToEmptyString = exports.emptyStringToNull = exports.isFunctionLike = exports.isElementOfEnumeration = exports.isBoolean = exports.isUndefined = exports.isNull = exports.isNotUndefined = exports.isNotNull = exports.isEitherUndefinedOrNull = exports.isNeitherUndefinedNorNull = exports.isNonEmptyArray = exports.isEmptyArray = exports.IsArrayOfLengthCheckingOperation = exports.isArrayOfLength = exports.isArrayOfCertainTypeElements = exports.isNonNullObject = exports.isNonEmptyObject = exports.isNonEmptyArbitraryObject = exports.isEmptyObject = exports.isArbitraryObject = exports.IsStringOfLengthCheckingOperation = exports.isStringOfLength = exports.isString = exports.isNonEmptyString = exports.isEmptyString = exports.isPositiveDecimalFraction = exports.isNumber = exports.isNonNegativeInteger = exports.isNegativeIntegerOrZero = exports.isNegativeInteger = exports.isNegativeDecimalFraction = exports.isNaturalNumber = exports.isDecimalFractionOfAnySign = exports.filterMap = exports.createMapBasedOnOtherMap = exports.addMultiplePairsToMap = exports.addMultipleElementsToSet = exports.trimSpaces = exports.toUpperCamelCase = exports.toScreamingSnakeCase = exports.toLowerCamelCase = void 0;
|
|
15
15
|
var addElementsToArray_1 = require("./Arrays/addElementsToArray");
|
|
16
16
|
Object.defineProperty(exports, "addElementsToArray", { enumerable: true, get: function () { return __importDefault(addElementsToArray_1).default; } });
|
|
17
17
|
var getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne_1 = require("./Arrays/getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne");
|
|
@@ -197,6 +197,45 @@ var separateEach3DigitsGroupWithComma_1 = require("./Numbers/separateEach3Digits
|
|
|
197
197
|
Object.defineProperty(exports, "separateEach3DigitsGroupWithComma", { enumerable: true, get: function () { return __importDefault(separateEach3DigitsGroupWithComma_1).default; } });
|
|
198
198
|
var separateEach4DigitsGroupWithComma_1 = require("./Numbers/separateEach4DigitsGroupWithComma");
|
|
199
199
|
Object.defineProperty(exports, "separateEach4DigitsGroupWithComma", { enumerable: true, get: function () { return __importDefault(separateEach4DigitsGroupWithComma_1).default; } });
|
|
200
|
+
var getObjectPropertySafely_1 = require("./Objects/getObjectPropertySafely");
|
|
201
|
+
Object.defineProperty(exports, "getObjectPropertySafely", { enumerable: true, get: function () { return __importDefault(getObjectPropertySafely_1).default; } });
|
|
202
|
+
var computeFirstItemNumberForSpecificPaginationPage_1 = require("./Pagination/computeFirstItemNumberForSpecificPaginationPage");
|
|
203
|
+
Object.defineProperty(exports, "computeFirstItemNumberForSpecificPaginationPage", { enumerable: true, get: function () { return __importDefault(computeFirstItemNumberForSpecificPaginationPage_1).default; } });
|
|
204
|
+
var computeLastItemNumberForSpecificPaginationPage_1 = require("./Pagination/computeLastItemNumberForSpecificPaginationPage");
|
|
205
|
+
Object.defineProperty(exports, "computeLastItemNumberForSpecificPaginationPage", { enumerable: true, get: function () { return __importDefault(computeLastItemNumberForSpecificPaginationPage_1).default; } });
|
|
206
|
+
var splitToPaginationCollection_1 = require("./Pagination/splitToPaginationCollection");
|
|
207
|
+
Object.defineProperty(exports, "splitToPaginationCollection", { enumerable: true, get: function () { return __importDefault(splitToPaginationCollection_1).default; } });
|
|
208
|
+
var PromisesQueue_1 = require("./Promises/PromisesQueue");
|
|
209
|
+
Object.defineProperty(exports, "PromisesQueue", { enumerable: true, get: function () { return __importDefault(PromisesQueue_1).default; } });
|
|
210
|
+
var getRandomString_1 = require("./RandomValuesGenerators/getRandomString/getRandomString");
|
|
211
|
+
Object.defineProperty(exports, "getRandomString", { enumerable: true, get: function () { return __importDefault(getRandomString_1).default; } });
|
|
212
|
+
Object.defineProperty(exports, "RandomStringsGenerator", { enumerable: true, get: function () { return getRandomString_1.RandomStringsGenerator; } });
|
|
213
|
+
var getRandomArrayElement_1 = require("./RandomValuesGenerators/getRandomArrayElement");
|
|
214
|
+
Object.defineProperty(exports, "getRandomArrayElement", { enumerable: true, get: function () { return __importDefault(getRandomArrayElement_1).default; } });
|
|
215
|
+
var getRandomBoolean_1 = require("./RandomValuesGenerators/getRandomBoolean");
|
|
216
|
+
Object.defineProperty(exports, "getRandomBoolean", { enumerable: true, get: function () { return __importDefault(getRandomBoolean_1).default; } });
|
|
217
|
+
var getRandomInteger_1 = require("./RandomValuesGenerators/getRandomInteger");
|
|
218
|
+
Object.defineProperty(exports, "getRandomInteger", { enumerable: true, get: function () { return __importDefault(getRandomInteger_1).default; } });
|
|
219
|
+
var getRandomLatinCharacter_1 = require("./RandomValuesGenerators/getRandomLatinCharacter");
|
|
220
|
+
Object.defineProperty(exports, "getRandomLatinCharacter", { enumerable: true, get: function () { return __importDefault(getRandomLatinCharacter_1).default; } });
|
|
221
|
+
var getRandomObjectPropertyValue_1 = require("./RandomValuesGenerators/getRandomObjectPropertyValue");
|
|
222
|
+
Object.defineProperty(exports, "getRandomObjectPropertyValue", { enumerable: true, get: function () { return __importDefault(getRandomObjectPropertyValue_1).default; } });
|
|
223
|
+
var getRandomSubarray_1 = require("./RandomValuesGenerators/getRandomSubarray");
|
|
224
|
+
Object.defineProperty(exports, "getRandomSubarray", { enumerable: true, get: function () { return __importDefault(getRandomSubarray_1).default; } });
|
|
225
|
+
var getSpecificBooleanValueWithProbability_1 = require("./RandomValuesGenerators/getSpecificBooleanValueWithProbability");
|
|
226
|
+
Object.defineProperty(exports, "getSpecificBooleanValueWithProbability", { enumerable: true, get: function () { return __importDefault(getSpecificBooleanValueWithProbability_1).default; } });
|
|
227
|
+
var removeRandomArrayElement_1 = require("./RandomValuesGenerators/removeRandomArrayElement");
|
|
228
|
+
Object.defineProperty(exports, "removeRandomArrayElement", { enumerable: true, get: function () { return __importDefault(removeRandomArrayElement_1).default; } });
|
|
229
|
+
var RawObjectDataProcessor_1 = require("./RawObjectDataProcessor/RawObjectDataProcessor");
|
|
230
|
+
Object.defineProperty(exports, "RawObjectDataProcessor", { enumerable: true, get: function () { return __importDefault(RawObjectDataProcessor_1).default; } });
|
|
231
|
+
var RawObjectDataProcessorLocalization__English_1 = require("./RawObjectDataProcessor/RawObjectDataProcessorLocalization__English");
|
|
232
|
+
Object.defineProperty(exports, "RawObjectDataProcessorLocalization__English", { enumerable: true, get: function () { return __importDefault(RawObjectDataProcessorLocalization__English_1).default; } });
|
|
233
|
+
var convertPotentialStringToNumberIfPossible_1 = require("./RawObjectDataProcessor/Helpers/convertPotentialStringToNumberIfPossible");
|
|
234
|
+
Object.defineProperty(exports, "convertPotentialStringToNumberIfPossible", { enumerable: true, get: function () { return __importDefault(convertPotentialStringToNumberIfPossible_1).default; } });
|
|
235
|
+
var convertPotentialStringToIntegerIfPossible_1 = require("./RawObjectDataProcessor/Helpers/convertPotentialStringToIntegerIfPossible");
|
|
236
|
+
Object.defineProperty(exports, "convertPotentialStringToIntegerIfPossible", { enumerable: true, get: function () { return __importDefault(convertPotentialStringToIntegerIfPossible_1).default; } });
|
|
237
|
+
var convertPotentialStringToFloatIfPossible_1 = require("./RawObjectDataProcessor/Helpers/convertPotentialStringToFloatIfPossible");
|
|
238
|
+
Object.defineProperty(exports, "convertPotentialStringToFloatIfPossible", { enumerable: true, get: function () { return __importDefault(convertPotentialStringToFloatIfPossible_1).default; } });
|
|
200
239
|
var getMatchingWithFirstRegularExpressionCapturingGroup_1 = require("./Strings/RegularExpressions/getMatchingWithFirstRegularExpressionCapturingGroup");
|
|
201
240
|
Object.defineProperty(exports, "getMatchingWithFirstRegularExpressionCapturingGroup", { enumerable: true, get: function () { return __importDefault(getMatchingWithFirstRegularExpressionCapturingGroup_1).default; } });
|
|
202
241
|
var appendLastFileNameExtension_1 = require("./Strings/URI/FilesAndDirectories/appendLastFileNameExtension");
|
|
@@ -207,6 +246,22 @@ var getURI_PartWithoutFragment_1 = require("./Strings/URI/getURI_PartWithoutFrag
|
|
|
207
246
|
Object.defineProperty(exports, "getURI_PartWithoutFragment", { enumerable: true, get: function () { return __importDefault(getURI_PartWithoutFragment_1).default; } });
|
|
208
247
|
var getURI_Fragment_1 = require("./Strings/URI/getURI_Fragment");
|
|
209
248
|
Object.defineProperty(exports, "getURI_Fragment", { enumerable: true, get: function () { return __importDefault(getURI_Fragment_1).default; } });
|
|
249
|
+
var appendCharacterIfItDoesNotPresentInLastPosition_1 = require("./Strings/appendCharacterIfItDoesNotPresentInLastPosition");
|
|
250
|
+
Object.defineProperty(exports, "appendCharacterIfItDoesNotPresentInLastPosition", { enumerable: true, get: function () { return __importDefault(appendCharacterIfItDoesNotPresentInLastPosition_1).default; } });
|
|
251
|
+
var areStringifiedDigitsOnly_1 = require("./Strings/areStringifiedDigitsOnly");
|
|
252
|
+
Object.defineProperty(exports, "areStringifiedDigitsOnly", { enumerable: true, get: function () { return __importDefault(areStringifiedDigitsOnly_1).default; } });
|
|
253
|
+
var capitalizeFirstCharacter_1 = require("./Strings/capitalizeFirstCharacter");
|
|
254
|
+
Object.defineProperty(exports, "capitalizeFirstCharacter", { enumerable: true, get: function () { return __importDefault(capitalizeFirstCharacter_1).default; } });
|
|
255
|
+
var EmailAddress_1 = require("./Strings/EmailAddress");
|
|
256
|
+
Object.defineProperty(exports, "EmailAddress", { enumerable: true, get: function () { return __importDefault(EmailAddress_1).default; } });
|
|
257
|
+
var explodeCasedPhraseToWords_1 = require("./Strings/explodeCasedPhraseToWords");
|
|
258
|
+
Object.defineProperty(exports, "explodeCasedPhraseToWords", { enumerable: true, get: function () { return __importDefault(explodeCasedPhraseToWords_1).default; } });
|
|
259
|
+
var getEnglishAbbreviatedOrdinalNumber_1 = require("./Strings/getEnglishAbbreviatedOrdinalNumber");
|
|
260
|
+
Object.defineProperty(exports, "getEnglishAbbreviatedOrdinalNumber", { enumerable: true, get: function () { return __importDefault(getEnglishAbbreviatedOrdinalNumber_1).default; } });
|
|
261
|
+
var hasStringOnlySpecificCharacters_1 = require("./Strings/hasStringOnlySpecificCharacters");
|
|
262
|
+
Object.defineProperty(exports, "hasStringOnlySpecificCharacters", { enumerable: true, get: function () { return __importDefault(hasStringOnlySpecificCharacters_1).default; } });
|
|
263
|
+
var isIPv4AddressLiesInRange_1 = require("./Strings/isIPv4AddressLiesInRange");
|
|
264
|
+
Object.defineProperty(exports, "isIPv4AddressLiesInRange", { enumerable: true, get: function () { return __importDefault(isIPv4AddressLiesInRange_1).default; } });
|
|
210
265
|
var EscapeCharacters_1 = require("./Strings/CharactersAssets/EscapeCharacters");
|
|
211
266
|
Object.defineProperty(exports, "EscapeCharacters", { enumerable: true, get: function () { return __importDefault(EscapeCharacters_1).default; } });
|
|
212
267
|
var lowercaseLatinCharacters_1 = require("./Strings/CharactersAssets/lowercaseLatinCharacters");
|
|
@@ -219,30 +274,16 @@ var SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag_1
|
|
|
219
274
|
Object.defineProperty(exports, "SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag", { enumerable: true, get: function () { return __importDefault(SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag_1).default; } });
|
|
220
275
|
var stringifiedDigits_1 = require("./Strings/CharactersAssets/stringifiedDigits");
|
|
221
276
|
Object.defineProperty(exports, "stringifiedDigits", { enumerable: true, get: function () { return __importDefault(stringifiedDigits_1).default; } });
|
|
222
|
-
var areStringifiedDigitsOnly_1 = require("./Strings/areStringifiedDigitsOnly");
|
|
223
|
-
Object.defineProperty(exports, "areStringifiedDigitsOnly", { enumerable: true, get: function () { return __importDefault(areStringifiedDigitsOnly_1).default; } });
|
|
224
|
-
var capitalizeFirstCharacter_1 = require("./Strings/capitalizeFirstCharacter");
|
|
225
|
-
Object.defineProperty(exports, "capitalizeFirstCharacter", { enumerable: true, get: function () { return __importDefault(capitalizeFirstCharacter_1).default; } });
|
|
226
|
-
var EmailAddress_1 = require("./Strings/EmailAddress");
|
|
227
|
-
Object.defineProperty(exports, "EmailAddress", { enumerable: true, get: function () { return __importDefault(EmailAddress_1).default; } });
|
|
228
|
-
var explodeCasedPhraseToWords_1 = require("./Strings/explodeCasedPhraseToWords");
|
|
229
|
-
Object.defineProperty(exports, "explodeCasedPhraseToWords", { enumerable: true, get: function () { return __importDefault(explodeCasedPhraseToWords_1).default; } });
|
|
230
277
|
var extractMatchingsWithRegularExpression_1 = require("./Strings/RegularExpressions/extractMatchingsWithRegularExpression");
|
|
231
278
|
Object.defineProperty(exports, "extractMatchingsWithRegularExpression", { enumerable: true, get: function () { return __importDefault(extractMatchingsWithRegularExpression_1).default; } });
|
|
232
|
-
var getEnglishAbbreviatedOrdinalNumber_1 = require("./Strings/getEnglishAbbreviatedOrdinalNumber");
|
|
233
|
-
Object.defineProperty(exports, "getEnglishAbbreviatedOrdinalNumber", { enumerable: true, get: function () { return __importDefault(getEnglishAbbreviatedOrdinalNumber_1).default; } });
|
|
234
279
|
var getLastCharacter_1 = require("./Strings/getLastCharacter");
|
|
235
280
|
Object.defineProperty(exports, "getLastCharacter", { enumerable: true, get: function () { return __importDefault(getLastCharacter_1).default; } });
|
|
236
281
|
var getPositionsOfAllSubstringOccurrences_1 = require("./Strings/getPositionsOfAllSubstringOccurrences");
|
|
237
282
|
Object.defineProperty(exports, "getPositionsOfAllSubstringOccurrences", { enumerable: true, get: function () { return __importDefault(getPositionsOfAllSubstringOccurrences_1).default; } });
|
|
238
|
-
var hasStringOnlySpecificCharacters_1 = require("./Strings/hasStringOnlySpecificCharacters");
|
|
239
|
-
Object.defineProperty(exports, "hasStringOnlySpecificCharacters", { enumerable: true, get: function () { return __importDefault(hasStringOnlySpecificCharacters_1).default; } });
|
|
240
283
|
var insertSubstring_1 = require("./Strings/insertSubstring");
|
|
241
284
|
Object.defineProperty(exports, "insertSubstring", { enumerable: true, get: function () { return __importDefault(insertSubstring_1).default; } });
|
|
242
285
|
var insertSubstringIf_1 = require("./Strings/insertSubstringIf");
|
|
243
286
|
Object.defineProperty(exports, "insertSubstringIf", { enumerable: true, get: function () { return __importDefault(insertSubstringIf_1).default; } });
|
|
244
|
-
var isIPv4AddressLiesInRange_1 = require("./Strings/isIPv4AddressLiesInRange");
|
|
245
|
-
Object.defineProperty(exports, "isIPv4AddressLiesInRange", { enumerable: true, get: function () { return __importDefault(isIPv4AddressLiesInRange_1).default; } });
|
|
246
287
|
var removeAllSpecifiedCharacters_1 = require("./Strings/removeAllSpecifiedCharacters");
|
|
247
288
|
Object.defineProperty(exports, "removeAllSpecifiedCharacters", { enumerable: true, get: function () { return __importDefault(removeAllSpecifiedCharacters_1).default; } });
|
|
248
289
|
var removeLastCharacter_1 = require("./Strings/removeLastCharacter");
|
|
@@ -273,8 +314,6 @@ var toUpperCamelCase_1 = require("./Strings/toUpperCamelCase");
|
|
|
273
314
|
Object.defineProperty(exports, "toUpperCamelCase", { enumerable: true, get: function () { return __importDefault(toUpperCamelCase_1).default; } });
|
|
274
315
|
var trimSpaces_1 = require("./Strings/trimSpaces");
|
|
275
316
|
Object.defineProperty(exports, "trimSpaces", { enumerable: true, get: function () { return __importDefault(trimSpaces_1).default; } });
|
|
276
|
-
var getObjectPropertySafely_1 = require("./Objects/getObjectPropertySafely");
|
|
277
|
-
Object.defineProperty(exports, "getObjectPropertySafely", { enumerable: true, get: function () { return __importDefault(getObjectPropertySafely_1).default; } });
|
|
278
317
|
var addMultipleElementsToSet_1 = require("./Sets/addMultipleElementsToSet");
|
|
279
318
|
Object.defineProperty(exports, "addMultipleElementsToSet", { enumerable: true, get: function () { return __importDefault(addMultipleElementsToSet_1).default; } });
|
|
280
319
|
var addMultiplePairsToMap_1 = require("./Maps/addMultiplePairsToMap");
|
|
@@ -359,40 +398,3 @@ var undefinedToEmptyString_1 = require("./ValueTransformers/undefinedToEmptyStri
|
|
|
359
398
|
Object.defineProperty(exports, "undefinedToEmptyString", { enumerable: true, get: function () { return __importDefault(undefinedToEmptyString_1).default; } });
|
|
360
399
|
var undefinedToNull_1 = require("./ValueTransformers/undefinedToNull");
|
|
361
400
|
Object.defineProperty(exports, "undefinedToNull", { enumerable: true, get: function () { return __importDefault(undefinedToNull_1).default; } });
|
|
362
|
-
var getRandomString_1 = require("./RandomValuesGenerators/getRandomString/getRandomString");
|
|
363
|
-
Object.defineProperty(exports, "getRandomString", { enumerable: true, get: function () { return __importDefault(getRandomString_1).default; } });
|
|
364
|
-
Object.defineProperty(exports, "RandomStringsGenerator", { enumerable: true, get: function () { return getRandomString_1.RandomStringsGenerator; } });
|
|
365
|
-
var getRandomArrayElement_1 = require("./RandomValuesGenerators/getRandomArrayElement");
|
|
366
|
-
Object.defineProperty(exports, "getRandomArrayElement", { enumerable: true, get: function () { return __importDefault(getRandomArrayElement_1).default; } });
|
|
367
|
-
var getRandomBoolean_1 = require("./RandomValuesGenerators/getRandomBoolean");
|
|
368
|
-
Object.defineProperty(exports, "getRandomBoolean", { enumerable: true, get: function () { return __importDefault(getRandomBoolean_1).default; } });
|
|
369
|
-
var getRandomInteger_1 = require("./RandomValuesGenerators/getRandomInteger");
|
|
370
|
-
Object.defineProperty(exports, "getRandomInteger", { enumerable: true, get: function () { return __importDefault(getRandomInteger_1).default; } });
|
|
371
|
-
var getRandomLatinCharacter_1 = require("./RandomValuesGenerators/getRandomLatinCharacter");
|
|
372
|
-
Object.defineProperty(exports, "getRandomLatinCharacter", { enumerable: true, get: function () { return __importDefault(getRandomLatinCharacter_1).default; } });
|
|
373
|
-
var getRandomObjectPropertyValue_1 = require("./RandomValuesGenerators/getRandomObjectPropertyValue");
|
|
374
|
-
Object.defineProperty(exports, "getRandomObjectPropertyValue", { enumerable: true, get: function () { return __importDefault(getRandomObjectPropertyValue_1).default; } });
|
|
375
|
-
var getRandomSubarray_1 = require("./RandomValuesGenerators/getRandomSubarray");
|
|
376
|
-
Object.defineProperty(exports, "getRandomSubarray", { enumerable: true, get: function () { return __importDefault(getRandomSubarray_1).default; } });
|
|
377
|
-
var getSpecificBooleanValueWithProbability_1 = require("./RandomValuesGenerators/getSpecificBooleanValueWithProbability");
|
|
378
|
-
Object.defineProperty(exports, "getSpecificBooleanValueWithProbability", { enumerable: true, get: function () { return __importDefault(getSpecificBooleanValueWithProbability_1).default; } });
|
|
379
|
-
var removeRandomArrayElement_1 = require("./RandomValuesGenerators/removeRandomArrayElement");
|
|
380
|
-
Object.defineProperty(exports, "removeRandomArrayElement", { enumerable: true, get: function () { return __importDefault(removeRandomArrayElement_1).default; } });
|
|
381
|
-
var computeFirstItemNumberForSpecificPaginationPage_1 = require("./Pagination/computeFirstItemNumberForSpecificPaginationPage");
|
|
382
|
-
Object.defineProperty(exports, "computeFirstItemNumberForSpecificPaginationPage", { enumerable: true, get: function () { return __importDefault(computeFirstItemNumberForSpecificPaginationPage_1).default; } });
|
|
383
|
-
var computeLastItemNumberForSpecificPaginationPage_1 = require("./Pagination/computeLastItemNumberForSpecificPaginationPage");
|
|
384
|
-
Object.defineProperty(exports, "computeLastItemNumberForSpecificPaginationPage", { enumerable: true, get: function () { return __importDefault(computeLastItemNumberForSpecificPaginationPage_1).default; } });
|
|
385
|
-
var splitToPaginationCollection_1 = require("./Pagination/splitToPaginationCollection");
|
|
386
|
-
Object.defineProperty(exports, "splitToPaginationCollection", { enumerable: true, get: function () { return __importDefault(splitToPaginationCollection_1).default; } });
|
|
387
|
-
var PromisesQueue_1 = require("./Promises/PromisesQueue");
|
|
388
|
-
Object.defineProperty(exports, "PromisesQueue", { enumerable: true, get: function () { return __importDefault(PromisesQueue_1).default; } });
|
|
389
|
-
var RawObjectDataProcessor_1 = require("./RawObjectDataProcessor/RawObjectDataProcessor");
|
|
390
|
-
Object.defineProperty(exports, "RawObjectDataProcessor", { enumerable: true, get: function () { return __importDefault(RawObjectDataProcessor_1).default; } });
|
|
391
|
-
var RawObjectDataProcessorLocalization__English_1 = require("./RawObjectDataProcessor/RawObjectDataProcessorLocalization__English");
|
|
392
|
-
Object.defineProperty(exports, "RawObjectDataProcessorLocalization__English", { enumerable: true, get: function () { return __importDefault(RawObjectDataProcessorLocalization__English_1).default; } });
|
|
393
|
-
var convertPotentialStringToNumberIfPossible_1 = require("./RawObjectDataProcessor/Helpers/convertPotentialStringToNumberIfPossible");
|
|
394
|
-
Object.defineProperty(exports, "convertPotentialStringToNumberIfPossible", { enumerable: true, get: function () { return __importDefault(convertPotentialStringToNumberIfPossible_1).default; } });
|
|
395
|
-
var convertPotentialStringToIntegerIfPossible_1 = require("./RawObjectDataProcessor/Helpers/convertPotentialStringToIntegerIfPossible");
|
|
396
|
-
Object.defineProperty(exports, "convertPotentialStringToIntegerIfPossible", { enumerable: true, get: function () { return __importDefault(convertPotentialStringToIntegerIfPossible_1).default; } });
|
|
397
|
-
var convertPotentialStringToFloatIfPossible_1 = require("./RawObjectDataProcessor/Helpers/convertPotentialStringToFloatIfPossible");
|
|
398
|
-
Object.defineProperty(exports, "convertPotentialStringToFloatIfPossible", { enumerable: true, get: function () { return __importDefault(convertPotentialStringToFloatIfPossible_1).default; } });
|
|
@@ -4,11 +4,11 @@ declare class PromisesQueue {
|
|
|
4
4
|
private asynchronousFunctionsQueue;
|
|
5
5
|
static errorHandler(error: unknown): void;
|
|
6
6
|
constructor(initialAsynchronousFunctions?: ReadonlyArray<(...parameters: ReadonlyArray<unknown>) => Promise<void>>);
|
|
7
|
-
startExecutionIfHasNotStartedYet(
|
|
7
|
+
startExecutionIfHasNotStartedYet(compoundParameter: Readonly<{
|
|
8
8
|
behaviourOnSomePromiseFailed: PromisesQueue.BEHAVIOUR_ON_SOME_PROMISE_FAILED;
|
|
9
9
|
}>): Promise<void>;
|
|
10
10
|
addFunctionToQueue(newAsynchronousFunction: (...parameters: ReadonlyArray<unknown>) => Promise<void>): void;
|
|
11
|
-
addFunctionAndStartExecutionIfHasNotStartedYet(
|
|
11
|
+
addFunctionAndStartExecutionIfHasNotStartedYet(compoundParameter: Readonly<{
|
|
12
12
|
newAsynchronousFunction: (...parameters: ReadonlyArray<unknown>) => Promise<void>;
|
|
13
13
|
behaviourOnSomePromiseFailed: PromisesQueue.BEHAVIOUR_ON_SOME_PROMISE_FAILED;
|
|
14
14
|
}>): Promise<void>;
|
|
@@ -16,7 +16,7 @@ class PromisesQueue {
|
|
|
16
16
|
constructor(initialAsynchronousFunctions = []) {
|
|
17
17
|
this.asynchronousFunctionsQueue.push(...initialAsynchronousFunctions);
|
|
18
18
|
}
|
|
19
|
-
async startExecutionIfHasNotStartedYet(
|
|
19
|
+
async startExecutionIfHasNotStartedYet(compoundParameter) {
|
|
20
20
|
if (this.isExecutingNow) {
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
@@ -26,7 +26,7 @@ class PromisesQueue {
|
|
|
26
26
|
await asynchronousFunction();
|
|
27
27
|
}
|
|
28
28
|
catch (error) {
|
|
29
|
-
switch (
|
|
29
|
+
switch (compoundParameter.behaviourOnSomePromiseFailed) {
|
|
30
30
|
case PromisesQueue.BEHAVIOUR_ON_SOME_PROMISE_FAILED.throwingTheError: {
|
|
31
31
|
throw error;
|
|
32
32
|
}
|
|
@@ -35,7 +35,7 @@ class PromisesQueue {
|
|
|
35
35
|
errorType: "AsynchronousProcessingFailedError",
|
|
36
36
|
title: "Asynchronous processing failed error",
|
|
37
37
|
description: "The error occurred during execution of one of promised.",
|
|
38
|
-
occurrenceLocation: "promisesQueue.startExecutionIfHasNotStartedYet(
|
|
38
|
+
occurrenceLocation: "promisesQueue.startExecutionIfHasNotStartedYet(compoundParameter)",
|
|
39
39
|
caughtError: error
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -53,10 +53,10 @@ class PromisesQueue {
|
|
|
53
53
|
addFunctionToQueue(newAsynchronousFunction) {
|
|
54
54
|
this.asynchronousFunctionsQueue.push(newAsynchronousFunction);
|
|
55
55
|
}
|
|
56
|
-
async addFunctionAndStartExecutionIfHasNotStartedYet(
|
|
57
|
-
this.addFunctionToQueue(
|
|
56
|
+
async addFunctionAndStartExecutionIfHasNotStartedYet(compoundParameter) {
|
|
57
|
+
this.addFunctionToQueue(compoundParameter.newAsynchronousFunction);
|
|
58
58
|
return this.startExecutionIfHasNotStartedYet({
|
|
59
|
-
behaviourOnSomePromiseFailed:
|
|
59
|
+
behaviourOnSomePromiseFailed: compoundParameter.behaviourOnSomePromiseFailed
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
stopExecutionOnceCurrentPromiseFinished() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function addMultipleElementsToSet<SetElement>(targetSet: Set<SetElement>, newElements:
|
|
1
|
+
export default function addMultipleElementsToSet<SetElement>(targetSet: Set<SetElement>, newElements: ReadonlyArray<SetElement>): Set<SetElement>;
|
|
@@ -10,7 +10,7 @@ export default function explodeCasedPhraseToWords(targetString) {
|
|
|
10
10
|
errorInstance: new InvalidParameterValueError({
|
|
11
11
|
parameterNumber: 1,
|
|
12
12
|
parameterName: "targetString",
|
|
13
|
-
customMessage: `The first and only parameter must be a string while actually is has type
|
|
13
|
+
customMessage: `The first and only parameter must be a string while actually is has type "${typeof targetString}".`
|
|
14
14
|
}),
|
|
15
15
|
title: InvalidParameterValueError.localization.defaultTitle,
|
|
16
16
|
occurrenceLocation: "explodeToWords(targetString)"
|
|
@@ -2,89 +2,89 @@ import isArbitraryObject from "../TypeGuards/Objects/isArbitraryObject";
|
|
|
2
2
|
import InvalidParameterValueError from "../Errors/InvalidParameterValue/InvalidParameterValueError";
|
|
3
3
|
import Logger from "../Logging/Logger";
|
|
4
4
|
import isString from "../TypeGuards/Strings/isString";
|
|
5
|
-
export default function isIPv4AddressLiesInRange(
|
|
6
|
-
if (!isArbitraryObject(
|
|
5
|
+
export default function isIPv4AddressLiesInRange(compoundParameter) {
|
|
6
|
+
if (!isArbitraryObject(compoundParameter)) {
|
|
7
7
|
Logger.throwErrorAndLog({
|
|
8
8
|
errorInstance: new InvalidParameterValueError({
|
|
9
9
|
parameterNumber: 1,
|
|
10
|
-
parameterName: "
|
|
10
|
+
parameterName: "compoundParameter",
|
|
11
11
|
messageSpecificPart: "The first and only parameter must be an object type."
|
|
12
12
|
}),
|
|
13
13
|
title: InvalidParameterValueError.localization.defaultTitle,
|
|
14
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
14
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
if (!isString(
|
|
17
|
+
if (!isString(compoundParameter.comparedIP_Address)) {
|
|
18
18
|
Logger.throwErrorAndLog({
|
|
19
19
|
errorInstance: new InvalidParameterValueError({
|
|
20
20
|
parameterNumber: 1,
|
|
21
|
-
parameterName: "
|
|
22
|
-
messageSpecificPart: "The
|
|
23
|
-
`${typeof
|
|
21
|
+
parameterName: "compoundParameter.comparedIP_Address",
|
|
22
|
+
messageSpecificPart: "The \"comparedIP_Address\" must be a string while actually has type " +
|
|
23
|
+
`${typeof compoundParameter.comparedIP_Address}`
|
|
24
24
|
}),
|
|
25
25
|
title: InvalidParameterValueError.localization.defaultTitle,
|
|
26
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
26
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
if (!isString(
|
|
29
|
+
if (!isString(compoundParameter.minimalIP_Address)) {
|
|
30
30
|
Logger.throwErrorAndLog({
|
|
31
31
|
errorInstance: new InvalidParameterValueError({
|
|
32
32
|
parameterNumber: 1,
|
|
33
|
-
parameterName: "
|
|
34
|
-
messageSpecificPart: "The
|
|
35
|
-
`${typeof
|
|
33
|
+
parameterName: "compoundParameter.minimalIP_Address",
|
|
34
|
+
messageSpecificPart: "The \"minimalIP_Address\" must be a string while actually has type " +
|
|
35
|
+
`${typeof compoundParameter.minimalIP_Address}`
|
|
36
36
|
}),
|
|
37
37
|
title: InvalidParameterValueError.localization.defaultTitle,
|
|
38
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
38
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
if (!isString(
|
|
41
|
+
if (!isString(compoundParameter.maximalIP_Address)) {
|
|
42
42
|
Logger.throwErrorAndLog({
|
|
43
43
|
errorInstance: new InvalidParameterValueError({
|
|
44
44
|
parameterNumber: 1,
|
|
45
45
|
parameterName: "maximalIP_Address.minimalIP_Address",
|
|
46
|
-
messageSpecificPart: "The
|
|
47
|
-
`${typeof
|
|
46
|
+
messageSpecificPart: "The \"maximalIP_Address\" must be a string while actually has type " +
|
|
47
|
+
`${typeof compoundParameter.maximalIP_Address}`
|
|
48
48
|
}),
|
|
49
49
|
title: InvalidParameterValueError.localization.defaultTitle,
|
|
50
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
50
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
const VALID_IP_ADDRESS_PATTERN = /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/u;
|
|
54
|
-
if (!VALID_IP_ADDRESS_PATTERN.test(
|
|
54
|
+
if (!VALID_IP_ADDRESS_PATTERN.test(compoundParameter.comparedIP_Address)) {
|
|
55
55
|
Logger.throwErrorAndLog({
|
|
56
56
|
errorInstance: new InvalidParameterValueError({
|
|
57
57
|
parameterNumber: 1,
|
|
58
|
-
parameterName: "
|
|
59
|
-
messageSpecificPart: `The value
|
|
58
|
+
parameterName: "compoundParameter.comparedIP_Address",
|
|
59
|
+
messageSpecificPart: `The value "${compoundParameter.comparedIP_Address}" of 'comparedIP_Address' is not a` +
|
|
60
60
|
"valid IPv4 address."
|
|
61
61
|
}),
|
|
62
62
|
title: InvalidParameterValueError.localization.defaultTitle,
|
|
63
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
63
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
if (!VALID_IP_ADDRESS_PATTERN.test(
|
|
66
|
+
if (!VALID_IP_ADDRESS_PATTERN.test(compoundParameter.minimalIP_Address)) {
|
|
67
67
|
Logger.throwErrorAndLog({
|
|
68
68
|
errorInstance: new InvalidParameterValueError({
|
|
69
69
|
parameterNumber: 1,
|
|
70
|
-
parameterName: "
|
|
71
|
-
messageSpecificPart: `The value
|
|
70
|
+
parameterName: "compoundParameter.minimalIP_Address",
|
|
71
|
+
messageSpecificPart: `The value "${compoundParameter.minimalIP_Address}" of 'minimalIP_Address' is not a ` +
|
|
72
72
|
"valid IPv4 address."
|
|
73
73
|
}),
|
|
74
74
|
title: InvalidParameterValueError.localization.defaultTitle,
|
|
75
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
75
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
if (!VALID_IP_ADDRESS_PATTERN.test(
|
|
78
|
+
if (!VALID_IP_ADDRESS_PATTERN.test(compoundParameter.maximalIP_Address)) {
|
|
79
79
|
Logger.throwErrorAndLog({
|
|
80
80
|
errorInstance: new InvalidParameterValueError({
|
|
81
81
|
parameterNumber: 1,
|
|
82
|
-
parameterName: "
|
|
83
|
-
messageSpecificPart: `The value
|
|
82
|
+
parameterName: "compoundParameter.maximalIP_Address",
|
|
83
|
+
messageSpecificPart: `The value "${compoundParameter.maximalIP_Address}" of "maximalIP_Address" is not a ` +
|
|
84
84
|
"valid IPv4 address."
|
|
85
85
|
}),
|
|
86
86
|
title: InvalidParameterValueError.localization.defaultTitle,
|
|
87
|
-
occurrenceLocation: "isIPv4AddressLiesInRange(
|
|
87
|
+
occurrenceLocation: "isIPv4AddressLiesInRange(compoundParameter)"
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
function IPv4AddressToNumber(IPv4Address) {
|
|
@@ -94,6 +94,6 @@ export default function isIPv4AddressLiesInRange(namedParameters) {
|
|
|
94
94
|
substring(CHARACTERS_COUNT_WHICH_WILL_BE_REMOVED_FROM_THE_START_OF_IP_ADDRESS_OCTET)).
|
|
95
95
|
join(""));
|
|
96
96
|
}
|
|
97
|
-
return IPv4AddressToNumber(
|
|
98
|
-
IPv4AddressToNumber(
|
|
97
|
+
return IPv4AddressToNumber(compoundParameter.comparedIP_Address) >= IPv4AddressToNumber(compoundParameter.minimalIP_Address) &&
|
|
98
|
+
IPv4AddressToNumber(compoundParameter.comparedIP_Address) <= IPv4AddressToNumber(compoundParameter.maximalIP_Address);
|
|
99
99
|
}
|
|
@@ -95,29 +95,50 @@ export { default as roundToSpecifiedNearestDecimalPlaceValue } from "./Numbers/r
|
|
|
95
95
|
export { default as roundUpToSpecificIntegerPlaceValue } from "./Numbers/roundUpToSpecificIntegerPlaceValue";
|
|
96
96
|
export { default as separateEach3DigitsGroupWithComma } from "./Numbers/separateEach3DigitsGroupWithComma";
|
|
97
97
|
export { default as separateEach4DigitsGroupWithComma } from "./Numbers/separateEach4DigitsGroupWithComma";
|
|
98
|
+
export { default as getObjectPropertySafely } from "./Objects/getObjectPropertySafely";
|
|
99
|
+
export { default as computeFirstItemNumberForSpecificPaginationPage } from "./Pagination/computeFirstItemNumberForSpecificPaginationPage";
|
|
100
|
+
export { default as computeLastItemNumberForSpecificPaginationPage } from "./Pagination/computeLastItemNumberForSpecificPaginationPage";
|
|
101
|
+
export { default as splitToPaginationCollection } from "./Pagination/splitToPaginationCollection";
|
|
102
|
+
export type { PaginationCollection } from "./Pagination/splitToPaginationCollection";
|
|
103
|
+
export { default as PromisesQueue } from "./Promises/PromisesQueue";
|
|
104
|
+
export { default as getRandomString, RandomStringsGenerator } from "./RandomValuesGenerators/getRandomString/getRandomString";
|
|
105
|
+
export { default as getRandomArrayElement } from "./RandomValuesGenerators/getRandomArrayElement";
|
|
106
|
+
export { default as getRandomBoolean } from "./RandomValuesGenerators/getRandomBoolean";
|
|
107
|
+
export { default as getRandomInteger } from "./RandomValuesGenerators/getRandomInteger";
|
|
108
|
+
export { default as getRandomLatinCharacter } from "./RandomValuesGenerators/getRandomLatinCharacter";
|
|
109
|
+
export { default as getRandomObjectPropertyValue } from "./RandomValuesGenerators/getRandomObjectPropertyValue";
|
|
110
|
+
export { default as getRandomSubarray } from "./RandomValuesGenerators/getRandomSubarray";
|
|
111
|
+
export { default as getSpecificBooleanValueWithProbability } from "./RandomValuesGenerators/getSpecificBooleanValueWithProbability";
|
|
112
|
+
export { default as removeRandomArrayElement } from "./RandomValuesGenerators/removeRandomArrayElement";
|
|
113
|
+
export { default as RawObjectDataProcessor } from "./RawObjectDataProcessor/RawObjectDataProcessor";
|
|
114
|
+
export { default as RawObjectDataProcessorLocalization__English } from "./RawObjectDataProcessor/RawObjectDataProcessorLocalization__English";
|
|
115
|
+
export { default as convertPotentialStringToNumberIfPossible } from "./RawObjectDataProcessor/Helpers/convertPotentialStringToNumberIfPossible";
|
|
116
|
+
export { default as convertPotentialStringToIntegerIfPossible } from "./RawObjectDataProcessor/Helpers/convertPotentialStringToIntegerIfPossible";
|
|
117
|
+
export { default as convertPotentialStringToFloatIfPossible } from "./RawObjectDataProcessor/Helpers/convertPotentialStringToFloatIfPossible";
|
|
98
118
|
export { default as getMatchingWithFirstRegularExpressionCapturingGroup } from "./Strings/RegularExpressions/getMatchingWithFirstRegularExpressionCapturingGroup";
|
|
99
119
|
export { default as appendLastFileNameExtension } from "./Strings/URI/FilesAndDirectories/appendLastFileNameExtension";
|
|
100
120
|
export { default as appendFragmentToURI } from "./Strings/URI/appendFragmentToURI";
|
|
101
121
|
export { default as getURI_PartWithoutFragment } from "./Strings/URI/getURI_PartWithoutFragment";
|
|
102
122
|
export { default as getURI_Fragment } from "./Strings/URI/getURI_Fragment";
|
|
123
|
+
export { default as appendCharacterIfItDoesNotPresentInLastPosition } from "./Strings/appendCharacterIfItDoesNotPresentInLastPosition";
|
|
124
|
+
export { default as areStringifiedDigitsOnly } from "./Strings/areStringifiedDigitsOnly";
|
|
125
|
+
export { default as capitalizeFirstCharacter } from "./Strings/capitalizeFirstCharacter";
|
|
126
|
+
export { default as EmailAddress } from "./Strings/EmailAddress";
|
|
127
|
+
export { default as explodeCasedPhraseToWords } from "./Strings/explodeCasedPhraseToWords";
|
|
128
|
+
export { default as getEnglishAbbreviatedOrdinalNumber } from "./Strings/getEnglishAbbreviatedOrdinalNumber";
|
|
129
|
+
export { default as hasStringOnlySpecificCharacters } from "./Strings/hasStringOnlySpecificCharacters";
|
|
130
|
+
export { default as isIPv4AddressLiesInRange } from "./Strings/isIPv4AddressLiesInRange";
|
|
103
131
|
export { default as EscapeCharacters } from "./Strings/CharactersAssets/EscapeCharacters";
|
|
104
132
|
export { default as lowercaseLatinCharacters } from "./Strings/CharactersAssets/lowercaseLatinCharacters";
|
|
105
133
|
export { default as uppercaseLatinCharacters } from "./Strings/CharactersAssets/uppercaseLatinCharacters";
|
|
106
134
|
export { default as SpaceCharacters } from "./Strings/CharactersAssets/SpaceCharacters";
|
|
107
135
|
export { default as SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag } from "./Strings/CharactersAssets/SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag";
|
|
108
136
|
export { default as stringifiedDigits } from "./Strings/CharactersAssets/stringifiedDigits";
|
|
109
|
-
export { default as areStringifiedDigitsOnly } from "./Strings/areStringifiedDigitsOnly";
|
|
110
|
-
export { default as capitalizeFirstCharacter } from "./Strings/capitalizeFirstCharacter";
|
|
111
|
-
export { default as EmailAddress } from "./Strings/EmailAddress";
|
|
112
|
-
export { default as explodeCasedPhraseToWords } from "./Strings/explodeCasedPhraseToWords";
|
|
113
137
|
export { default as extractMatchingsWithRegularExpression, type ExtractingOfMatchingsWithRegularExpression } from "./Strings/RegularExpressions/extractMatchingsWithRegularExpression";
|
|
114
|
-
export { default as getEnglishAbbreviatedOrdinalNumber } from "./Strings/getEnglishAbbreviatedOrdinalNumber";
|
|
115
138
|
export { default as getLastCharacter } from "./Strings/getLastCharacter";
|
|
116
139
|
export { default as getPositionsOfAllSubstringOccurrences } from "./Strings/getPositionsOfAllSubstringOccurrences";
|
|
117
|
-
export { default as hasStringOnlySpecificCharacters } from "./Strings/hasStringOnlySpecificCharacters";
|
|
118
140
|
export { default as insertSubstring } from "./Strings/insertSubstring";
|
|
119
141
|
export { default as insertSubstringIf } from "./Strings/insertSubstringIf";
|
|
120
|
-
export { default as isIPv4AddressLiesInRange } from "./Strings/isIPv4AddressLiesInRange";
|
|
121
142
|
export { default as removeAllSpecifiedCharacters } from "./Strings/removeAllSpecifiedCharacters";
|
|
122
143
|
export { default as removeLastCharacter } from "./Strings/removeLastCharacter";
|
|
123
144
|
export { default as removeNonDigitsCharacters } from "./Strings/removeNonDigitsCharacters";
|
|
@@ -133,7 +154,6 @@ export { default as toLowerCamelCase } from "./Strings/toLowerCamelCase";
|
|
|
133
154
|
export { default as toScreamingSnakeCase } from "./Strings/toScreamingSnakeCase";
|
|
134
155
|
export { default as toUpperCamelCase } from "./Strings/toUpperCamelCase";
|
|
135
156
|
export { default as trimSpaces } from "./Strings/trimSpaces";
|
|
136
|
-
export { default as getObjectPropertySafely } from "./Objects/getObjectPropertySafely";
|
|
137
157
|
export { default as addMultipleElementsToSet } from "./Sets/addMultipleElementsToSet";
|
|
138
158
|
export { default as addMultiplePairsToMap } from "./Maps/addMultiplePairsToMap";
|
|
139
159
|
export { default as createMapBasedOnOtherMap } from "./Maps/createMapBasedOnOtherMap";
|
|
@@ -180,22 +200,3 @@ export { default as nullToZero } from "./ValueTransformers/nullToZero";
|
|
|
180
200
|
export { default as undefinedToEmptyArray } from "./ValueTransformers/undefinedToEmptyArray";
|
|
181
201
|
export { default as undefinedToEmptyString } from "./ValueTransformers/undefinedToEmptyString";
|
|
182
202
|
export { default as undefinedToNull } from "./ValueTransformers/undefinedToNull";
|
|
183
|
-
export { default as getRandomString, RandomStringsGenerator } from "./RandomValuesGenerators/getRandomString/getRandomString";
|
|
184
|
-
export { default as getRandomArrayElement } from "./RandomValuesGenerators/getRandomArrayElement";
|
|
185
|
-
export { default as getRandomBoolean } from "./RandomValuesGenerators/getRandomBoolean";
|
|
186
|
-
export { default as getRandomInteger } from "./RandomValuesGenerators/getRandomInteger";
|
|
187
|
-
export { default as getRandomLatinCharacter } from "./RandomValuesGenerators/getRandomLatinCharacter";
|
|
188
|
-
export { default as getRandomObjectPropertyValue } from "./RandomValuesGenerators/getRandomObjectPropertyValue";
|
|
189
|
-
export { default as getRandomSubarray } from "./RandomValuesGenerators/getRandomSubarray";
|
|
190
|
-
export { default as getSpecificBooleanValueWithProbability } from "./RandomValuesGenerators/getSpecificBooleanValueWithProbability";
|
|
191
|
-
export { default as removeRandomArrayElement } from "./RandomValuesGenerators/removeRandomArrayElement";
|
|
192
|
-
export { default as computeFirstItemNumberForSpecificPaginationPage } from "./Pagination/computeFirstItemNumberForSpecificPaginationPage";
|
|
193
|
-
export { default as computeLastItemNumberForSpecificPaginationPage } from "./Pagination/computeLastItemNumberForSpecificPaginationPage";
|
|
194
|
-
export { default as splitToPaginationCollection } from "./Pagination/splitToPaginationCollection";
|
|
195
|
-
export type { PaginationCollection } from "./Pagination/splitToPaginationCollection";
|
|
196
|
-
export { default as PromisesQueue } from "./Promises/PromisesQueue";
|
|
197
|
-
export { default as RawObjectDataProcessor } from "./RawObjectDataProcessor/RawObjectDataProcessor";
|
|
198
|
-
export { default as RawObjectDataProcessorLocalization__English } from "./RawObjectDataProcessor/RawObjectDataProcessorLocalization__English";
|
|
199
|
-
export { default as convertPotentialStringToNumberIfPossible } from "./RawObjectDataProcessor/Helpers/convertPotentialStringToNumberIfPossible";
|
|
200
|
-
export { default as convertPotentialStringToIntegerIfPossible } from "./RawObjectDataProcessor/Helpers/convertPotentialStringToIntegerIfPossible";
|
|
201
|
-
export { default as convertPotentialStringToFloatIfPossible } from "./RawObjectDataProcessor/Helpers/convertPotentialStringToFloatIfPossible";
|
|
@@ -93,29 +93,49 @@ export { default as roundToSpecifiedNearestDecimalPlaceValue } from "./Numbers/r
|
|
|
93
93
|
export { default as roundUpToSpecificIntegerPlaceValue } from "./Numbers/roundUpToSpecificIntegerPlaceValue";
|
|
94
94
|
export { default as separateEach3DigitsGroupWithComma } from "./Numbers/separateEach3DigitsGroupWithComma";
|
|
95
95
|
export { default as separateEach4DigitsGroupWithComma } from "./Numbers/separateEach4DigitsGroupWithComma";
|
|
96
|
+
export { default as getObjectPropertySafely } from "./Objects/getObjectPropertySafely";
|
|
97
|
+
export { default as computeFirstItemNumberForSpecificPaginationPage } from "./Pagination/computeFirstItemNumberForSpecificPaginationPage";
|
|
98
|
+
export { default as computeLastItemNumberForSpecificPaginationPage } from "./Pagination/computeLastItemNumberForSpecificPaginationPage";
|
|
99
|
+
export { default as splitToPaginationCollection } from "./Pagination/splitToPaginationCollection";
|
|
100
|
+
export { default as PromisesQueue } from "./Promises/PromisesQueue";
|
|
101
|
+
export { default as getRandomString, RandomStringsGenerator } from "./RandomValuesGenerators/getRandomString/getRandomString";
|
|
102
|
+
export { default as getRandomArrayElement } from "./RandomValuesGenerators/getRandomArrayElement";
|
|
103
|
+
export { default as getRandomBoolean } from "./RandomValuesGenerators/getRandomBoolean";
|
|
104
|
+
export { default as getRandomInteger } from "./RandomValuesGenerators/getRandomInteger";
|
|
105
|
+
export { default as getRandomLatinCharacter } from "./RandomValuesGenerators/getRandomLatinCharacter";
|
|
106
|
+
export { default as getRandomObjectPropertyValue } from "./RandomValuesGenerators/getRandomObjectPropertyValue";
|
|
107
|
+
export { default as getRandomSubarray } from "./RandomValuesGenerators/getRandomSubarray";
|
|
108
|
+
export { default as getSpecificBooleanValueWithProbability } from "./RandomValuesGenerators/getSpecificBooleanValueWithProbability";
|
|
109
|
+
export { default as removeRandomArrayElement } from "./RandomValuesGenerators/removeRandomArrayElement";
|
|
110
|
+
export { default as RawObjectDataProcessor } from "./RawObjectDataProcessor/RawObjectDataProcessor";
|
|
111
|
+
export { default as RawObjectDataProcessorLocalization__English } from "./RawObjectDataProcessor/RawObjectDataProcessorLocalization__English";
|
|
112
|
+
export { default as convertPotentialStringToNumberIfPossible } from "./RawObjectDataProcessor/Helpers/convertPotentialStringToNumberIfPossible";
|
|
113
|
+
export { default as convertPotentialStringToIntegerIfPossible } from "./RawObjectDataProcessor/Helpers/convertPotentialStringToIntegerIfPossible";
|
|
114
|
+
export { default as convertPotentialStringToFloatIfPossible } from "./RawObjectDataProcessor/Helpers/convertPotentialStringToFloatIfPossible";
|
|
96
115
|
export { default as getMatchingWithFirstRegularExpressionCapturingGroup } from "./Strings/RegularExpressions/getMatchingWithFirstRegularExpressionCapturingGroup";
|
|
97
116
|
export { default as appendLastFileNameExtension } from "./Strings/URI/FilesAndDirectories/appendLastFileNameExtension";
|
|
98
117
|
export { default as appendFragmentToURI } from "./Strings/URI/appendFragmentToURI";
|
|
99
118
|
export { default as getURI_PartWithoutFragment } from "./Strings/URI/getURI_PartWithoutFragment";
|
|
100
119
|
export { default as getURI_Fragment } from "./Strings/URI/getURI_Fragment";
|
|
120
|
+
export { default as appendCharacterIfItDoesNotPresentInLastPosition } from "./Strings/appendCharacterIfItDoesNotPresentInLastPosition";
|
|
121
|
+
export { default as areStringifiedDigitsOnly } from "./Strings/areStringifiedDigitsOnly";
|
|
122
|
+
export { default as capitalizeFirstCharacter } from "./Strings/capitalizeFirstCharacter";
|
|
123
|
+
export { default as EmailAddress } from "./Strings/EmailAddress";
|
|
124
|
+
export { default as explodeCasedPhraseToWords } from "./Strings/explodeCasedPhraseToWords";
|
|
125
|
+
export { default as getEnglishAbbreviatedOrdinalNumber } from "./Strings/getEnglishAbbreviatedOrdinalNumber";
|
|
126
|
+
export { default as hasStringOnlySpecificCharacters } from "./Strings/hasStringOnlySpecificCharacters";
|
|
127
|
+
export { default as isIPv4AddressLiesInRange } from "./Strings/isIPv4AddressLiesInRange";
|
|
101
128
|
export { default as EscapeCharacters } from "./Strings/CharactersAssets/EscapeCharacters";
|
|
102
129
|
export { default as lowercaseLatinCharacters } from "./Strings/CharactersAssets/lowercaseLatinCharacters";
|
|
103
130
|
export { default as uppercaseLatinCharacters } from "./Strings/CharactersAssets/uppercaseLatinCharacters";
|
|
104
131
|
export { default as SpaceCharacters } from "./Strings/CharactersAssets/SpaceCharacters";
|
|
105
132
|
export { default as SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag } from "./Strings/CharactersAssets/SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag";
|
|
106
133
|
export { default as stringifiedDigits } from "./Strings/CharactersAssets/stringifiedDigits";
|
|
107
|
-
export { default as areStringifiedDigitsOnly } from "./Strings/areStringifiedDigitsOnly";
|
|
108
|
-
export { default as capitalizeFirstCharacter } from "./Strings/capitalizeFirstCharacter";
|
|
109
|
-
export { default as EmailAddress } from "./Strings/EmailAddress";
|
|
110
|
-
export { default as explodeCasedPhraseToWords } from "./Strings/explodeCasedPhraseToWords";
|
|
111
134
|
export { default as extractMatchingsWithRegularExpression } from "./Strings/RegularExpressions/extractMatchingsWithRegularExpression";
|
|
112
|
-
export { default as getEnglishAbbreviatedOrdinalNumber } from "./Strings/getEnglishAbbreviatedOrdinalNumber";
|
|
113
135
|
export { default as getLastCharacter } from "./Strings/getLastCharacter";
|
|
114
136
|
export { default as getPositionsOfAllSubstringOccurrences } from "./Strings/getPositionsOfAllSubstringOccurrences";
|
|
115
|
-
export { default as hasStringOnlySpecificCharacters } from "./Strings/hasStringOnlySpecificCharacters";
|
|
116
137
|
export { default as insertSubstring } from "./Strings/insertSubstring";
|
|
117
138
|
export { default as insertSubstringIf } from "./Strings/insertSubstringIf";
|
|
118
|
-
export { default as isIPv4AddressLiesInRange } from "./Strings/isIPv4AddressLiesInRange";
|
|
119
139
|
export { default as removeAllSpecifiedCharacters } from "./Strings/removeAllSpecifiedCharacters";
|
|
120
140
|
export { default as removeLastCharacter } from "./Strings/removeLastCharacter";
|
|
121
141
|
export { default as removeNonDigitsCharacters } from "./Strings/removeNonDigitsCharacters";
|
|
@@ -131,7 +151,6 @@ export { default as toLowerCamelCase } from "./Strings/toLowerCamelCase";
|
|
|
131
151
|
export { default as toScreamingSnakeCase } from "./Strings/toScreamingSnakeCase";
|
|
132
152
|
export { default as toUpperCamelCase } from "./Strings/toUpperCamelCase";
|
|
133
153
|
export { default as trimSpaces } from "./Strings/trimSpaces";
|
|
134
|
-
export { default as getObjectPropertySafely } from "./Objects/getObjectPropertySafely";
|
|
135
154
|
export { default as addMultipleElementsToSet } from "./Sets/addMultipleElementsToSet";
|
|
136
155
|
export { default as addMultiplePairsToMap } from "./Maps/addMultiplePairsToMap";
|
|
137
156
|
export { default as createMapBasedOnOtherMap } from "./Maps/createMapBasedOnOtherMap";
|
|
@@ -173,21 +192,3 @@ export { default as nullToZero } from "./ValueTransformers/nullToZero";
|
|
|
173
192
|
export { default as undefinedToEmptyArray } from "./ValueTransformers/undefinedToEmptyArray";
|
|
174
193
|
export { default as undefinedToEmptyString } from "./ValueTransformers/undefinedToEmptyString";
|
|
175
194
|
export { default as undefinedToNull } from "./ValueTransformers/undefinedToNull";
|
|
176
|
-
export { default as getRandomString, RandomStringsGenerator } from "./RandomValuesGenerators/getRandomString/getRandomString";
|
|
177
|
-
export { default as getRandomArrayElement } from "./RandomValuesGenerators/getRandomArrayElement";
|
|
178
|
-
export { default as getRandomBoolean } from "./RandomValuesGenerators/getRandomBoolean";
|
|
179
|
-
export { default as getRandomInteger } from "./RandomValuesGenerators/getRandomInteger";
|
|
180
|
-
export { default as getRandomLatinCharacter } from "./RandomValuesGenerators/getRandomLatinCharacter";
|
|
181
|
-
export { default as getRandomObjectPropertyValue } from "./RandomValuesGenerators/getRandomObjectPropertyValue";
|
|
182
|
-
export { default as getRandomSubarray } from "./RandomValuesGenerators/getRandomSubarray";
|
|
183
|
-
export { default as getSpecificBooleanValueWithProbability } from "./RandomValuesGenerators/getSpecificBooleanValueWithProbability";
|
|
184
|
-
export { default as removeRandomArrayElement } from "./RandomValuesGenerators/removeRandomArrayElement";
|
|
185
|
-
export { default as computeFirstItemNumberForSpecificPaginationPage } from "./Pagination/computeFirstItemNumberForSpecificPaginationPage";
|
|
186
|
-
export { default as computeLastItemNumberForSpecificPaginationPage } from "./Pagination/computeLastItemNumberForSpecificPaginationPage";
|
|
187
|
-
export { default as splitToPaginationCollection } from "./Pagination/splitToPaginationCollection";
|
|
188
|
-
export { default as PromisesQueue } from "./Promises/PromisesQueue";
|
|
189
|
-
export { default as RawObjectDataProcessor } from "./RawObjectDataProcessor/RawObjectDataProcessor";
|
|
190
|
-
export { default as RawObjectDataProcessorLocalization__English } from "./RawObjectDataProcessor/RawObjectDataProcessorLocalization__English";
|
|
191
|
-
export { default as convertPotentialStringToNumberIfPossible } from "./RawObjectDataProcessor/Helpers/convertPotentialStringToNumberIfPossible";
|
|
192
|
-
export { default as convertPotentialStringToIntegerIfPossible } from "./RawObjectDataProcessor/Helpers/convertPotentialStringToIntegerIfPossible";
|
|
193
|
-
export { default as convertPotentialStringToFloatIfPossible } from "./RawObjectDataProcessor/Helpers/convertPotentialStringToFloatIfPossible";
|
package/README.md
CHANGED
|
@@ -372,7 +372,8 @@ If some function works incorrectly with surrogate pairs, it means the bug; pleas
|
|
|
372
372
|
* [Strings](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/blob/master/CoreLibrary/Package/Documentation/TypeGuards/Strings/StringTypeGuards.md)
|
|
373
373
|
* [Objects](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/blob/master/CoreLibrary/Package/Documentation/TypeGuards/Objects/ObjectTypeGuards.md)
|
|
374
374
|
* [Arrays](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/blob/master/CoreLibrary/Package/Documentation/TypeGuards/Arrays/ArrayTypeGuards.md)
|
|
375
|
-
* [Nullables](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/blob/master/CoreLibrary/Package/Documentation/TypeGuards/
|
|
375
|
+
* [Nullables](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/blob/master/CoreLibrary/Package/Documentation/TypeGuards/Nullables/NullableTypeGuards.md)
|
|
376
|
+
* [Other](https://github.com/TokugawaTakeshi/Yamato-Daiwa-ES-Extensions/blob/master/CoreLibrary/Package/Documentation/TypeGuards/Others/OtherTypeGuards.md)
|
|
376
377
|
|
|
377
378
|
|
|
378
379
|
#### Default value subsituters
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|