@yamato-daiwa/es-extensions 1.5.4 → 1.5.6
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/Arrays/getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne.js +5 -2
- package/Distributable/cjs/Arrays/getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne.js +5 -2
- package/Distributable/cjs/Arrays/getLastElementOfNonEmptyArray.js +5 -2
- package/Distributable/cjs/Arrays/removeArrayElementsByIndexes.js +6 -3
- package/Distributable/cjs/Arrays/removeArrayElementsByPredicates.js +5 -2
- package/Distributable/cjs/Arrays/replaceArrayElementsByPredicates.js +6 -3
- package/Distributable/cjs/DateTime/CalendarBuilder.js +10 -7
- package/Distributable/cjs/DateTime/TimePoint/TimePoint.js +10 -7
- package/Distributable/cjs/DateTime/getMonthNameByNumber.js +6 -3
- package/Distributable/cjs/DateTime/getMonthNumberByName.js +6 -3
- package/Distributable/cjs/DateTime/getNextMonthNumber.js +5 -2
- package/Distributable/cjs/DateTime/getPreviousMonthNumber.js +5 -2
- package/Distributable/cjs/DateTime/getYearOfNextMonth.js +4 -1
- package/Distributable/cjs/Errors/AlgorithmMismatch/AlgorithmMismatchError.js +4 -1
- package/Distributable/cjs/Errors/ClassRedundantSubsequentInitialization/ClassRedundantSubsequentInitializationError.js +4 -1
- package/Distributable/cjs/Errors/ClassRequiredInitializationHasNotBeenExecuted/ClassRequiredInitializationHasNotBeenExecutedError.js +4 -1
- package/Distributable/cjs/Errors/ConfigFileNotFound/ConfigFileNotFoundError.js +4 -1
- package/Distributable/cjs/Errors/CrossBrowserIssue/CrossBrowserIssueError.js +4 -1
- package/Distributable/cjs/Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError.js +4 -1
- package/Distributable/cjs/Errors/DataRetrievingFailed/DataRetrievingFailedError.js +4 -1
- package/Distributable/cjs/Errors/DataSubmittingFailed/DataSubmittingFailedError.js +4 -1
- package/Distributable/cjs/Errors/FileReadingFailed/FileReadingFailedError.js +4 -1
- package/Distributable/cjs/Errors/FileWritingFailed/FileWritingFailedError.js +4 -1
- package/Distributable/cjs/Errors/ImproperUsage/ImproperUsageError.js +4 -1
- package/Distributable/cjs/Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterError.js +4 -1
- package/Distributable/cjs/Errors/InterProcessInteractionFailed/InterProcessInteractionFailedError.js +4 -1
- package/Distributable/cjs/Errors/InvalidConfig/InvalidConfigError.js +4 -1
- package/Distributable/cjs/Errors/InvalidConfig/InvalidConfigErrorLocalization.english.js +4 -1
- package/Distributable/cjs/Errors/InvalidExternalData/InvalidExternalDataError.js +4 -1
- package/Distributable/cjs/Errors/InvalidExternalData/InvalidExternalDataErrorLocalization.english.js +4 -1
- package/Distributable/cjs/Errors/InvalidParameterValue/InvalidParameterValueError.js +4 -1
- package/Distributable/cjs/Errors/InvalidParameterValue/InvalidParameterValueErrorLocalization.english.js +4 -1
- package/Distributable/cjs/Errors/ModuleDynamicLoadingFailed/ModuleDynamicLoadingFailedError.js +4 -1
- package/Distributable/cjs/Errors/UnexpectedEvent/UnexpectedEventError.js +4 -1
- package/Distributable/cjs/Errors/UnsupportedScenario/UnsupportedScenarioError.js +4 -1
- package/Distributable/cjs/Logging/Logger.js +9 -6
- package/Distributable/cjs/Numbers/formatNumberWith4KetaKanji.js +5 -2
- package/Distributable/cjs/RandomValuesGenerators/getRandomArrayElement.js +4 -1
- package/Distributable/cjs/RandomValuesGenerators/getRandomLatinCharacter.js +7 -4
- package/Distributable/cjs/RandomValuesGenerators/getRandomObjectPropertyValue.js +4 -1
- package/Distributable/cjs/RandomValuesGenerators/getRandomString/GetRandomStringOperationLocalization__English.js +5 -5
- package/Distributable/cjs/RandomValuesGenerators/getRandomString/getRandomString.js +17 -14
- package/Distributable/cjs/RandomValuesGenerators/getRandomSubarray.js +9 -6
- package/Distributable/cjs/RandomValuesGenerators/removeRandomArrayElement.js +4 -1
- package/Distributable/cjs/RawObjectDataProcessor/Helpers/convertPotentialStringToFloatIfPossible.js +4 -1
- package/Distributable/cjs/RawObjectDataProcessor/Helpers/convertPotentialStringToIntegerIfPossible.js +4 -1
- package/Distributable/cjs/RawObjectDataProcessor/Helpers/convertPotentialStringToNumberIfPossible.js +4 -1
- package/Distributable/cjs/RawObjectDataProcessor/RawObjectDataProcessor.js +22 -19
- package/Distributable/cjs/RawObjectDataProcessor/RawObjectDataProcessorLocalization__English.js +6 -3
- package/Distributable/cjs/Strings/hasStringOnlySpecificCharacters.js +9 -6
- package/Distributable/cjs/Strings/removeSpecificCharacterFromCertainPosition.js +4 -1
- package/Distributable/cjs/Strings/reverseString.js +4 -1
- package/Distributable/cjs/Strings/stringifyAndFormatArbitraryValue.js +8 -5
- package/Distributable/cjs/Strings/trimSpaces.js +5 -2
- package/Distributable/cjs/TypeGuards/Arrays/isArrayOfLength.js +4 -1
- package/Distributable/cjs/TypeGuards/Strings/isStringOfLength.js +4 -1
- package/Distributable/cjs/index.js +165 -162
- package/Distributable/esm/RandomValuesGenerators/getRandomString/GetRandomStringOperationLocalization__English.js +5 -5
- package/Distributable/esm/RawObjectDataProcessor/RawObjectDataProcessor.d.ts +2 -2
- package/package.json +1 -1
package/Distributable/cjs/Arrays/getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const Logger_1 = require("../Logging/Logger");
|
|
4
|
-
const UnexpectedEventError_1 = require("../Errors/UnexpectedEvent/UnexpectedEventError");
|
|
6
|
+
const Logger_1 = __importDefault(require("../Logging/Logger"));
|
|
7
|
+
const UnexpectedEventError_1 = __importDefault(require("../Errors/UnexpectedEvent/UnexpectedEventError"));
|
|
5
8
|
function getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne(targetArray, predicate, { throwErrorIfElementNotFoundOrMoreThan1 } = {}) {
|
|
6
9
|
const allElementsMatchingWithPredicate = targetArray.filter(predicate);
|
|
7
10
|
if (allElementsMatchingWithPredicate.length === 0) {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const Logger_1 = require("../Logging/Logger");
|
|
4
|
-
const UnexpectedEventError_1 = require("../Errors/UnexpectedEvent/UnexpectedEventError");
|
|
6
|
+
const Logger_1 = __importDefault(require("../Logging/Logger"));
|
|
7
|
+
const UnexpectedEventError_1 = __importDefault(require("../Errors/UnexpectedEvent/UnexpectedEventError"));
|
|
5
8
|
function getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne(targetArray, predicate, { throwErrorIfElementNotFoundOrMoreThan1 } = {}) {
|
|
6
9
|
const indexesOfAllElementsSatisfiesThePredicate = [];
|
|
7
10
|
for (const [index, element] of targetArray.entries()) {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const Logger_1 = require("../Logging/Logger");
|
|
4
|
-
const UnexpectedEventError_1 = require("../Errors/UnexpectedEvent/UnexpectedEventError");
|
|
6
|
+
const Logger_1 = __importDefault(require("../Logging/Logger"));
|
|
7
|
+
const UnexpectedEventError_1 = __importDefault(require("../Errors/UnexpectedEvent/UnexpectedEventError"));
|
|
5
8
|
function getLastElementOfNonEmptyArray(targetArray) {
|
|
6
9
|
if (targetArray.length === 0) {
|
|
7
10
|
Logger_1.default.throwErrorAndLog({
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.RemovingArrayElementsByIndexesOperation = void 0;
|
|
4
|
-
const isNonNegativeInteger_1 = require("../TypeGuards/Numbers/isNonNegativeInteger");
|
|
5
|
-
const Logger_1 = require("../Logging/Logger");
|
|
6
|
-
const InvalidParameterValueError_1 = require("../Errors/InvalidParameterValue/InvalidParameterValueError");
|
|
7
|
+
const isNonNegativeInteger_1 = __importDefault(require("../TypeGuards/Numbers/isNonNegativeInteger"));
|
|
8
|
+
const Logger_1 = __importDefault(require("../Logging/Logger"));
|
|
9
|
+
const InvalidParameterValueError_1 = __importDefault(require("../Errors/InvalidParameterValue/InvalidParameterValueError"));
|
|
7
10
|
var RemovingArrayElementsByIndexesOperation;
|
|
8
11
|
(function (RemovingArrayElementsByIndexesOperation) {
|
|
9
12
|
function removeArrayElementsByIndexes(namedParameters) {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.RemovingArrayElementsByPredicatesOperation = void 0;
|
|
4
|
-
const removeArrayElementsByIndexes_1 = require("./removeArrayElementsByIndexes");
|
|
5
|
-
const getIndexesOfArrayElementsWhichSatisfiesThePredicate_1 = require("./getIndexesOfArrayElementsWhichSatisfiesThePredicate");
|
|
7
|
+
const removeArrayElementsByIndexes_1 = __importDefault(require("./removeArrayElementsByIndexes"));
|
|
8
|
+
const getIndexesOfArrayElementsWhichSatisfiesThePredicate_1 = __importDefault(require("./getIndexesOfArrayElementsWhichSatisfiesThePredicate"));
|
|
6
9
|
var RemovingArrayElementsByPredicatesOperation;
|
|
7
10
|
(function (RemovingArrayElementsByPredicatesOperation) {
|
|
8
11
|
function removeArrayElementsByPredicates(namedParameters) {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.ReplacingArrayElementsByPredicatesOperation = void 0;
|
|
4
|
-
const getIndexesOfArrayElementsWhichSatisfiesThePredicate_1 = require("./getIndexesOfArrayElementsWhichSatisfiesThePredicate");
|
|
5
|
-
const Logger_1 = require("../Logging/Logger");
|
|
6
|
-
const InvalidParameterValueError_1 = require("../Errors/InvalidParameterValue/InvalidParameterValueError");
|
|
7
|
+
const getIndexesOfArrayElementsWhichSatisfiesThePredicate_1 = __importDefault(require("./getIndexesOfArrayElementsWhichSatisfiesThePredicate"));
|
|
8
|
+
const Logger_1 = __importDefault(require("../Logging/Logger"));
|
|
9
|
+
const InvalidParameterValueError_1 = __importDefault(require("../Errors/InvalidParameterValue/InvalidParameterValueError"));
|
|
7
10
|
var ReplacingArrayElementsByPredicatesOperation;
|
|
8
11
|
(function (ReplacingArrayElementsByPredicatesOperation) {
|
|
9
12
|
function replaceArrayElementsByPredicates(namedParameters) {
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const isNotUndefined_1 = require("../TypeGuards/Nullables/isNotUndefined");
|
|
4
|
-
const getDaysCountInSpecificMonth_1 = require("./getDaysCountInSpecificMonth");
|
|
5
|
-
const getMonthNameByNumber_1 = require("./getMonthNameByNumber");
|
|
6
|
-
const getYearOfPreviousMonth_1 = require("./getYearOfPreviousMonth");
|
|
7
|
-
const getYearOfNextMonth_1 = require("./getYearOfNextMonth");
|
|
8
|
-
const getPreviousMonthNumber_1 = require("./getPreviousMonthNumber");
|
|
9
|
-
const getNextMonthNumber_1 = require("./getNextMonthNumber");
|
|
6
|
+
const isNotUndefined_1 = __importDefault(require("../TypeGuards/Nullables/isNotUndefined"));
|
|
7
|
+
const getDaysCountInSpecificMonth_1 = __importDefault(require("./getDaysCountInSpecificMonth"));
|
|
8
|
+
const getMonthNameByNumber_1 = __importDefault(require("./getMonthNameByNumber"));
|
|
9
|
+
const getYearOfPreviousMonth_1 = __importDefault(require("./getYearOfPreviousMonth"));
|
|
10
|
+
const getYearOfNextMonth_1 = __importDefault(require("./getYearOfNextMonth"));
|
|
11
|
+
const getPreviousMonthNumber_1 = __importDefault(require("./getPreviousMonthNumber"));
|
|
12
|
+
const getNextMonthNumber_1 = __importDefault(require("./getNextMonthNumber"));
|
|
10
13
|
class CalendarBuilder {
|
|
11
14
|
constructor(parametersObject) {
|
|
12
15
|
this.dataFor42DaysMatrix = [];
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const DaysOfWeek_1 = require("../../ConstantsAndEnumerations/DateTime/DaysOfWeek");
|
|
4
|
-
const isNumber_1 = require("../../TypeGuards/Numbers/isNumber");
|
|
5
|
-
const isString_1 = require("../../TypeGuards/Strings/isString");
|
|
6
|
-
const getMonthNameByNumber_1 = require("../getMonthNameByNumber");
|
|
7
|
-
const Logger_1 = require("../../Logging/Logger");
|
|
8
|
-
const InvalidParameterValueError_1 = require("../../Errors/InvalidParameterValue/InvalidParameterValueError");
|
|
9
|
-
const TimePointLocalization__English_1 = require("./TimePointLocalization__English");
|
|
6
|
+
const DaysOfWeek_1 = __importDefault(require("../../ConstantsAndEnumerations/DateTime/DaysOfWeek"));
|
|
7
|
+
const isNumber_1 = __importDefault(require("../../TypeGuards/Numbers/isNumber"));
|
|
8
|
+
const isString_1 = __importDefault(require("../../TypeGuards/Strings/isString"));
|
|
9
|
+
const getMonthNameByNumber_1 = __importDefault(require("../getMonthNameByNumber"));
|
|
10
|
+
const Logger_1 = __importDefault(require("../../Logging/Logger"));
|
|
11
|
+
const InvalidParameterValueError_1 = __importDefault(require("../../Errors/InvalidParameterValue/InvalidParameterValueError"));
|
|
12
|
+
const TimePointLocalization__English_1 = __importDefault(require("./TimePointLocalization__English"));
|
|
10
13
|
class TimePoint {
|
|
11
14
|
constructor(rawDateTime) {
|
|
12
15
|
let normalizedDateTime;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const MonthsNames_1 = require("../ConstantsAndEnumerations/MonthsNames");
|
|
4
|
-
const InvalidParameterValueError_1 = require("../Errors/InvalidParameterValue/InvalidParameterValueError");
|
|
5
|
-
const Logger_1 = require("../Logging/Logger");
|
|
6
|
+
const MonthsNames_1 = __importDefault(require("../ConstantsAndEnumerations/MonthsNames"));
|
|
7
|
+
const InvalidParameterValueError_1 = __importDefault(require("../Errors/InvalidParameterValue/InvalidParameterValueError"));
|
|
8
|
+
const Logger_1 = __importDefault(require("../Logging/Logger"));
|
|
6
9
|
function getMonthNameByNumber(namedParameters) {
|
|
7
10
|
const { targetMonthNumber, numerationFrom } = namedParameters;
|
|
8
11
|
if (numerationFrom !== 0 && numerationFrom !== 1) {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const MonthsNames_1 = require("../ConstantsAndEnumerations/MonthsNames");
|
|
4
|
-
const Logger_1 = require("../Logging/Logger");
|
|
5
|
-
const InvalidParameterValueError_1 = require("../Errors/InvalidParameterValue/InvalidParameterValueError");
|
|
6
|
+
const MonthsNames_1 = __importDefault(require("../ConstantsAndEnumerations/MonthsNames"));
|
|
7
|
+
const Logger_1 = __importDefault(require("../Logging/Logger"));
|
|
8
|
+
const InvalidParameterValueError_1 = __importDefault(require("../Errors/InvalidParameterValue/InvalidParameterValueError"));
|
|
6
9
|
function getMonthNumberByName(namedParameters) {
|
|
7
10
|
const numerationFrom = namedParameters.numerationFrom;
|
|
8
11
|
if (numerationFrom !== 0 && numerationFrom !== 1) {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const MONTHS_PER_YEAR_1 = require("../ConstantsAndEnumerations/DateTime/MONTHS_PER_YEAR");
|
|
4
|
-
const getMonthNumberByName_1 = require("./getMonthNumberByName");
|
|
6
|
+
const MONTHS_PER_YEAR_1 = __importDefault(require("../ConstantsAndEnumerations/DateTime/MONTHS_PER_YEAR"));
|
|
7
|
+
const getMonthNumberByName_1 = __importDefault(require("./getMonthNumberByName"));
|
|
5
8
|
function getNextMonthNumber(namedParameters) {
|
|
6
9
|
let referenceMonthNumber__numerationFrom1;
|
|
7
10
|
if ("referenceMonthNumber__numerationFrom1" in namedParameters) {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const MONTHS_PER_YEAR_1 = require("../ConstantsAndEnumerations/DateTime/MONTHS_PER_YEAR");
|
|
4
|
-
const getMonthNumberByName_1 = require("./getMonthNumberByName");
|
|
6
|
+
const MONTHS_PER_YEAR_1 = __importDefault(require("../ConstantsAndEnumerations/DateTime/MONTHS_PER_YEAR"));
|
|
7
|
+
const getMonthNumberByName_1 = __importDefault(require("./getMonthNumberByName"));
|
|
5
8
|
function getPreviousMonthNumber(namedParameters) {
|
|
6
9
|
let referenceMonthNumber__numerationFrom1;
|
|
7
10
|
if ("referenceMonthNumber__numerationFrom1" in namedParameters) {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const MONTHS_PER_YEAR_1 = require("../ConstantsAndEnumerations/DateTime/MONTHS_PER_YEAR");
|
|
6
|
+
const MONTHS_PER_YEAR_1 = __importDefault(require("../ConstantsAndEnumerations/DateTime/MONTHS_PER_YEAR"));
|
|
4
7
|
function getYearOfNextMonth(namedParameters) {
|
|
5
8
|
const referenceMonthNumber__numerationFrom1 = "referenceMonthNumber__numerationFrom1" in namedParameters ?
|
|
6
9
|
namedParameters.referenceMonthNumber__numerationFrom1 : namedParameters.referenceMonthNumber__numerationFrom0 + 1;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const AlgorithmMismatchErrorLocalization_english_1 = require("./AlgorithmMismatchErrorLocalization.english");
|
|
6
|
+
const AlgorithmMismatchErrorLocalization_english_1 = __importDefault(require("./AlgorithmMismatchErrorLocalization.english"));
|
|
4
7
|
class AlgorithmMismatchError extends Error {
|
|
5
8
|
constructor(message) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ClassRedundantSubsequentInitializationErrorLocalization_english_1 = require("./ClassRedundantSubsequentInitializationErrorLocalization.english");
|
|
6
|
+
const ClassRedundantSubsequentInitializationErrorLocalization_english_1 = __importDefault(require("./ClassRedundantSubsequentInitializationErrorLocalization.english"));
|
|
4
7
|
class ClassRedundantSubsequentInitializationError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ClassRequiredInitializationHasNotBeenExecutedErrorLocalization_english_1 = require("./ClassRequiredInitializationHasNotBeenExecutedErrorLocalization.english");
|
|
6
|
+
const ClassRequiredInitializationHasNotBeenExecutedErrorLocalization_english_1 = __importDefault(require("./ClassRequiredInitializationHasNotBeenExecutedErrorLocalization.english"));
|
|
4
7
|
class ClassRequiredInitializationHasNotBeenExecutedError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ConfigFileNotFoundErrorLocalization_english_1 = require("./ConfigFileNotFoundErrorLocalization.english");
|
|
6
|
+
const ConfigFileNotFoundErrorLocalization_english_1 = __importDefault(require("./ConfigFileNotFoundErrorLocalization.english"));
|
|
4
7
|
class ConfigFileNotFoundError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const CrossBrowserIssueErrorLocalization_english_1 = require("./CrossBrowserIssueErrorLocalization.english");
|
|
6
|
+
const CrossBrowserIssueErrorLocalization_english_1 = __importDefault(require("./CrossBrowserIssueErrorLocalization.english"));
|
|
4
7
|
class CrossBrowserIssueError extends Error {
|
|
5
8
|
constructor(message) {
|
|
6
9
|
super();
|
package/Distributable/cjs/Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const DOM_ElementRetrievingFailedErrorLocalization_english_1 = require("./DOM_ElementRetrievingFailedErrorLocalization.english");
|
|
6
|
+
const DOM_ElementRetrievingFailedErrorLocalization_english_1 = __importDefault(require("./DOM_ElementRetrievingFailedErrorLocalization.english"));
|
|
4
7
|
class DOM_ElementRetrievingFailedError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const DataRetrievingFailedErrorLocalization_english_1 = require("./DataRetrievingFailedErrorLocalization.english");
|
|
6
|
+
const DataRetrievingFailedErrorLocalization_english_1 = __importDefault(require("./DataRetrievingFailedErrorLocalization.english"));
|
|
4
7
|
class DataRetrievingFailedError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const DataSubmittingFailedErrorLocalization_english_1 = require("./DataSubmittingFailedErrorLocalization.english");
|
|
6
|
+
const DataSubmittingFailedErrorLocalization_english_1 = __importDefault(require("./DataSubmittingFailedErrorLocalization.english"));
|
|
4
7
|
class DataSubmittingFailedError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const FileReadingFailedErrorLocalization_english_1 = require("./FileReadingFailedErrorLocalization.english");
|
|
6
|
+
const FileReadingFailedErrorLocalization_english_1 = __importDefault(require("./FileReadingFailedErrorLocalization.english"));
|
|
4
7
|
class FileReadingFailedError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const FileWritingFailedErrorLocalization_english_1 = require("./FileWritingFailedErrorLocalization.english");
|
|
6
|
+
const FileWritingFailedErrorLocalization_english_1 = __importDefault(require("./FileWritingFailedErrorLocalization.english"));
|
|
4
7
|
class FileWritingFailedError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ImproperUsageErrorLocalization_english_1 = require("./ImproperUsageErrorLocalization.english");
|
|
6
|
+
const ImproperUsageErrorLocalization_english_1 = __importDefault(require("./ImproperUsageErrorLocalization.english"));
|
|
4
7
|
class ImproperUsageError extends Error {
|
|
5
8
|
constructor(message) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const IncompatiblePropertiesInObjectTypeParameterErrorLocalization_english_1 = require("./IncompatiblePropertiesInObjectTypeParameterErrorLocalization.english");
|
|
6
|
+
const IncompatiblePropertiesInObjectTypeParameterErrorLocalization_english_1 = __importDefault(require("./IncompatiblePropertiesInObjectTypeParameterErrorLocalization.english"));
|
|
4
7
|
class IncompatiblePropertiesInObjectTypeParameterError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
package/Distributable/cjs/Errors/InterProcessInteractionFailed/InterProcessInteractionFailedError.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const InterProcessInteractionFailedErrorLocalization_english_1 = require("./InterProcessInteractionFailedErrorLocalization.english");
|
|
6
|
+
const InterProcessInteractionFailedErrorLocalization_english_1 = __importDefault(require("./InterProcessInteractionFailedErrorLocalization.english"));
|
|
4
7
|
class InterProcessInteractionFailedError extends Error {
|
|
5
8
|
constructor(message) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const InvalidConfigErrorLocalization_english_1 = require("./InvalidConfigErrorLocalization.english");
|
|
6
|
+
const InvalidConfigErrorLocalization_english_1 = __importDefault(require("./InvalidConfigErrorLocalization.english"));
|
|
4
7
|
class InvalidConfigError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const insertSubstring_1 = require("../../Strings/insertSubstring");
|
|
6
|
+
const insertSubstring_1 = __importDefault(require("../../Strings/insertSubstring"));
|
|
4
7
|
const InvalidConfigErrorLocalization__English = {
|
|
5
8
|
defaultTitle: "Invalid configuration",
|
|
6
9
|
generateDescription: (namedParameters) => `The configuration of '${namedParameters.mentionToConfig}' is invalid.` +
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const InvalidExternalDataErrorLocalization_english_1 = require("./InvalidExternalDataErrorLocalization.english");
|
|
6
|
+
const InvalidExternalDataErrorLocalization_english_1 = __importDefault(require("./InvalidExternalDataErrorLocalization.english"));
|
|
4
7
|
class InvalidExternalDataError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
package/Distributable/cjs/Errors/InvalidExternalData/InvalidExternalDataErrorLocalization.english.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.InvalidExternalDataErrorLocalization__English = void 0;
|
|
4
|
-
const insertSubstring_1 = require("../../Strings/insertSubstring");
|
|
7
|
+
const insertSubstring_1 = __importDefault(require("../../Strings/insertSubstring"));
|
|
5
8
|
exports.InvalidExternalDataErrorLocalization__English = {
|
|
6
9
|
defaultTitle: "Invalid external data",
|
|
7
10
|
generateDescription: (namedParameters) => `The data '${namedParameters.mentionToExpectedData}' does not match with expected.` +
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const InvalidParameterValueErrorLocalization_english_1 = require("./InvalidParameterValueErrorLocalization.english");
|
|
6
|
+
const InvalidParameterValueErrorLocalization_english_1 = __importDefault(require("./InvalidParameterValueErrorLocalization.english"));
|
|
4
7
|
class InvalidParameterValueError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const insertSubstring_1 = require("../../Strings/insertSubstring");
|
|
6
|
+
const insertSubstring_1 = __importDefault(require("../../Strings/insertSubstring"));
|
|
4
7
|
const InvalidParameterValueErrorLocalization__English = {
|
|
5
8
|
defaultTitle: "Invalid parameter value",
|
|
6
9
|
generateDescription: (parametersObject) => `The value of parameter '${parametersObject.parameterName}' is invalid.` +
|
package/Distributable/cjs/Errors/ModuleDynamicLoadingFailed/ModuleDynamicLoadingFailedError.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const ModuleDynamicLoadingFailedErrorLocalization_english_1 = require("./ModuleDynamicLoadingFailedErrorLocalization.english");
|
|
6
|
+
const ModuleDynamicLoadingFailedErrorLocalization_english_1 = __importDefault(require("./ModuleDynamicLoadingFailedErrorLocalization.english"));
|
|
4
7
|
class ModuleDynamicLoadingFailedError extends Error {
|
|
5
8
|
constructor(namedParameters) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const UnexpectedEventErrorLocalization_english_1 = require("./UnexpectedEventErrorLocalization.english");
|
|
6
|
+
const UnexpectedEventErrorLocalization_english_1 = __importDefault(require("./UnexpectedEventErrorLocalization.english"));
|
|
4
7
|
class UnexpectedEventError extends Error {
|
|
5
8
|
constructor(message) {
|
|
6
9
|
super();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const UnsupportedScenarioErrorLocalization_english_1 = require("./UnsupportedScenarioErrorLocalization.english");
|
|
6
|
+
const UnsupportedScenarioErrorLocalization_english_1 = __importDefault(require("./UnsupportedScenarioErrorLocalization.english"));
|
|
4
7
|
class UnsupportedScenarioError extends Error {
|
|
5
8
|
constructor(message) {
|
|
6
9
|
super();
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const isNotNull_1 = require("../TypeGuards/Nullables/isNotNull");
|
|
4
|
-
const isNotUndefined_1 = require("../TypeGuards/Nullables/isNotUndefined");
|
|
5
|
-
const substituteWhenUndefined_1 = require("../DefaultValueSubstituters/substituteWhenUndefined");
|
|
6
|
-
const insertSubstringIf_1 = require("../Strings/insertSubstringIf");
|
|
7
|
-
const stringifyAndFormatArbitraryValue_1 = require("../Strings/stringifyAndFormatArbitraryValue");
|
|
8
|
-
const LoggerLocalization__English_1 = require("./LoggerLocalization__English");
|
|
6
|
+
const isNotNull_1 = __importDefault(require("../TypeGuards/Nullables/isNotNull"));
|
|
7
|
+
const isNotUndefined_1 = __importDefault(require("../TypeGuards/Nullables/isNotUndefined"));
|
|
8
|
+
const substituteWhenUndefined_1 = __importDefault(require("../DefaultValueSubstituters/substituteWhenUndefined"));
|
|
9
|
+
const insertSubstringIf_1 = __importDefault(require("../Strings/insertSubstringIf"));
|
|
10
|
+
const stringifyAndFormatArbitraryValue_1 = __importDefault(require("../Strings/stringifyAndFormatArbitraryValue"));
|
|
11
|
+
const LoggerLocalization__English_1 = __importDefault(require("./LoggerLocalization__English"));
|
|
9
12
|
class Logger {
|
|
10
13
|
static setImplementation(implementation) {
|
|
11
14
|
Logger.implementation = implementation;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const reverseString_1 = require("../Strings/reverseString");
|
|
4
|
-
const isUndefined_1 = require("../TypeGuards/Nullables/isUndefined");
|
|
6
|
+
const reverseString_1 = __importDefault(require("../Strings/reverseString"));
|
|
7
|
+
const isUndefined_1 = __importDefault(require("../TypeGuards/Nullables/isUndefined"));
|
|
5
8
|
function formatNumberWith4KetaKanji(targetNumber) {
|
|
6
9
|
const NUMBER_DIGITS_SEPARATION__CHARACTERS_COUNT = 4;
|
|
7
10
|
let targetNumber__stringified = targetNumber.toString();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getRandomInteger_1 = require("./getRandomInteger");
|
|
6
|
+
const getRandomInteger_1 = __importDefault(require("./getRandomInteger"));
|
|
4
7
|
function getRandomArrayElement(targetArray) {
|
|
5
8
|
return targetArray[(0, getRandomInteger_1.default)({
|
|
6
9
|
minimalValue: 0,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const latinCharacters__uppercase_1 = require("../Strings/CharactersAssets/latinCharacters__uppercase");
|
|
4
|
-
const latinCharacters__lowercase_1 = require("../Strings/CharactersAssets/latinCharacters__lowercase");
|
|
5
|
-
const getRandomBoolean_1 = require("./getRandomBoolean");
|
|
6
|
-
const getRandomArrayElement_1 = require("./getRandomArrayElement");
|
|
6
|
+
const latinCharacters__uppercase_1 = __importDefault(require("../Strings/CharactersAssets/latinCharacters__uppercase"));
|
|
7
|
+
const latinCharacters__lowercase_1 = __importDefault(require("../Strings/CharactersAssets/latinCharacters__lowercase"));
|
|
8
|
+
const getRandomBoolean_1 = __importDefault(require("./getRandomBoolean"));
|
|
9
|
+
const getRandomArrayElement_1 = __importDefault(require("./getRandomArrayElement"));
|
|
7
10
|
function getRandomLatinCharacter({ capital = false, lowercase = false } = {}) {
|
|
8
11
|
if (capital) {
|
|
9
12
|
return (0, getRandomArrayElement_1.default)(latinCharacters__uppercase_1.default);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const getRandomArrayElement_1 = require("./getRandomArrayElement");
|
|
6
|
+
const getRandomArrayElement_1 = __importDefault(require("./getRandomArrayElement"));
|
|
4
7
|
function getRandomObjectPropertyValue(targetObject) {
|
|
5
8
|
return (0, getRandomArrayElement_1.default)(Object.values(targetObject));
|
|
6
9
|
}
|
|
@@ -5,14 +5,14 @@ const GetRandomStringOperationLocalization__English = {
|
|
|
5
5
|
minimalCharactersCountMustBeGreaterThan0: (actualValue) => `The 'minimalCharactersCount' property must be greater than 0 while really it's ${actualValue}`,
|
|
6
6
|
sumOfCharactersCountOfAffixesAndMinimalRandomlyGeneratedCharactersCountIsExceedsMaximalCharactersCount: (namedParameters) => "The sum of characters count of 'prefix', 'infix' and 'postfix' and also 'minimalRandomlyGeneratedCharactersCount' are " +
|
|
7
7
|
"exceeds the 'maximalCharactersCount':\n" +
|
|
8
|
-
` prefix.length: ${namedParameters.prefix.length}` +
|
|
9
|
-
` infix.length: ${namedParameters.infix.length}` +
|
|
10
|
-
` postfix.length: ${namedParameters.postfix.length}` +
|
|
11
|
-
`minimalRandomlyGeneratedCharactersCount: ${namedParameters.minimalRandomlyGeneratedCharactersCount}` +
|
|
8
|
+
` prefix.length: ${namedParameters.prefix.length}\n` +
|
|
9
|
+
` infix.length: ${namedParameters.infix.length}\n` +
|
|
10
|
+
` postfix.length: ${namedParameters.postfix.length}\n` +
|
|
11
|
+
`minimalRandomlyGeneratedCharactersCount: ${namedParameters.minimalRandomlyGeneratedCharactersCount}\n` +
|
|
12
12
|
` SUBTOTAL: ${namedParameters.prefix.length +
|
|
13
13
|
namedParameters.infix.length +
|
|
14
14
|
namedParameters.postfix.length +
|
|
15
|
-
namedParameters.minimalRandomlyGeneratedCharactersCount}` +
|
|
15
|
+
namedParameters.minimalRandomlyGeneratedCharactersCount}\n` +
|
|
16
16
|
` maximalCharactersCount: ${namedParameters.maximalCharactersCount}`,
|
|
17
17
|
explicitlySpecifiedMinimalCharactersCountExceedsMaximalCharactersCount: ({ minimalCharactersCount, maximalCharactersCount }) => `The explicitly specified minimal characters count (${minimalCharactersCount}) exceeds the maximal characters ` +
|
|
18
18
|
`count ${maximalCharactersCount}`,
|