@yamato-daiwa/es-extensions 1.8.1 → 1.8.2
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/RawObjectDataProcessor/RawObjectDataProcessor.js +9 -9
- package/Distributable/cjs/RawObjectDataProcessor/RawObjectDataProcessorLocalization.english.js +41 -40
- package/Distributable/cjs/TypeGuards/Numbers/isIntegerOfAnySign.js +6 -0
- package/Distributable/cjs/index.js +38 -34
- package/Distributable/esm/RawObjectDataProcessor/RawObjectDataProcessor.d.ts +1 -1
- package/Distributable/esm/RawObjectDataProcessor/RawObjectDataProcessor.js +9 -9
- package/Distributable/esm/RawObjectDataProcessor/RawObjectDataProcessorLocalization.english.js +41 -40
- package/Distributable/esm/TypeGuards/Numbers/isIntegerOfAnySign.d.ts +2 -0
- package/Distributable/esm/TypeGuards/Numbers/isIntegerOfAnySign.js +3 -0
- package/Distributable/esm/index.d.ts +16 -14
- package/Distributable/esm/index.js +16 -14
- package/README.md +11 -12
- package/package.json +1 -2
|
@@ -2243,19 +2243,19 @@ class RawObjectDataProcessor {
|
|
|
2243
2243
|
break;
|
|
2244
2244
|
}
|
|
2245
2245
|
case "object": {
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2246
|
+
const isIndexedArrayLikeType = Array.isArray(targetValue);
|
|
2247
|
+
const possibleSpecificationsForObjectValueTypes = targetValueSpecification.alternatives.filter((alternativeSpecification) => (isIndexedArrayLikeType ?
|
|
2248
|
+
alternativeSpecification.type === RawObjectDataProcessor.ValuesTypesIDs.indexedArray ||
|
|
2249
|
+
alternativeSpecification.type === RawObjectDataProcessor.ValuesTypesIDs.tuple ||
|
|
2250
|
+
alternativeSpecification.type === Array :
|
|
2251
|
+
alternativeSpecification.type === RawObjectDataProcessor.ValuesTypesIDs.fixedSchemaObject ||
|
|
2252
|
+
alternativeSpecification.type === RawObjectDataProcessor.ValuesTypesIDs.associativeArray ||
|
|
2253
|
+
alternativeSpecification.type === Object));
|
|
2254
2254
|
if (possibleSpecificationsForObjectValueTypes.length > 1) {
|
|
2255
2255
|
Logger_1.default.throwErrorWithFormattedMessage({
|
|
2256
2256
|
errorInstance: new InvalidParameterValueError_1.default({
|
|
2257
2257
|
customMessage: this.localization.throwableErrors.incompatibleValuesTypesAlternatives.generateDescription({
|
|
2258
|
-
|
|
2258
|
+
isIndexedArrayLikeType,
|
|
2259
2259
|
documentationPageAnchor: "THROWABLE_ERRORS-INCOMPATIBLE_VALUES_TYPES_ALTERNATIVES"
|
|
2260
2260
|
})
|
|
2261
2261
|
}),
|
package/Distributable/cjs/RawObjectDataProcessor/RawObjectDataProcessorLocalization.english.js
CHANGED
|
@@ -55,8 +55,7 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
55
55
|
generateDescription: ({ stringifiedCaughtError }) => "The following error has occurred during the pre-validation modification of this property/element. \n" +
|
|
56
56
|
`${stringifiedCaughtError}\n` +
|
|
57
57
|
"The data has been marked as invalid because the error handling strategy \"onPreValidationModificationFailed\" " +
|
|
58
|
-
"is \"ErrorHandlingStrategies.markingOfDataAsInvalid\" what is not recommended
|
|
59
|
-
"be in pre-validation modification function, not always in the data. "
|
|
58
|
+
"is \"ErrorHandlingStrategies.markingOfDataAsInvalid\" what is not recommended. "
|
|
60
59
|
},
|
|
61
60
|
forbiddenUndefinedValue: {
|
|
62
61
|
title: "Forbidden Undefined Value",
|
|
@@ -134,30 +133,30 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
134
133
|
join("\n")
|
|
135
134
|
},
|
|
136
135
|
disallowedKeysFoundInAssociativeArray: {
|
|
137
|
-
title: "Disallowed
|
|
138
|
-
generateDescription: ({ foundDisallowedKeys }) => "
|
|
136
|
+
title: "Disallowed Keys of Associative Array",
|
|
137
|
+
generateDescription: ({ foundDisallowedKeys }) => "The following keys presents in this associative array while these keys are disallowed.\n" +
|
|
139
138
|
foundDisallowedKeys.
|
|
140
139
|
map((foundDisallowedKey) => ` ● ${foundDisallowedKey}`).
|
|
141
140
|
join("\n")
|
|
142
141
|
},
|
|
143
142
|
indexedArrayElementsCountIsLessThanRequiredMinimum: {
|
|
144
|
-
title: "
|
|
145
|
-
generateDescription: ({ minimalElementsCount, actualElementsCount }) => `This value of indexed array
|
|
143
|
+
title: "Too Few Elements in Indexed Array",
|
|
144
|
+
generateDescription: ({ minimalElementsCount, actualElementsCount }) => `This value of indexed array has ${actualElementsCount} elements while at least ` +
|
|
146
145
|
`${minimalElementsCount} expected.`
|
|
147
146
|
},
|
|
148
147
|
indexedArrayElementsCountIsMoreThanAllowedMaximum: {
|
|
149
148
|
title: "Indexed Array has More Elements than Expected Maximum",
|
|
150
|
-
generateDescription: ({ maximalElementsCount, actualElementsCount }) => `This value of indexed array
|
|
149
|
+
generateDescription: ({ maximalElementsCount, actualElementsCount }) => `This value of indexed array has ${actualElementsCount} elements while maximally ` +
|
|
151
150
|
`${maximalElementsCount} expected.`
|
|
152
151
|
},
|
|
153
152
|
indexedArrayOrTupleElementsCountDoesNotMatchWithSpecifiedExactNumber: {
|
|
154
|
-
title: "
|
|
153
|
+
title: "Wrong Exact Number of Element in Indexed Array or Tuple",
|
|
155
154
|
generateDescription: ({ exactElementsCount, actualElementsCount }) => `This value of indexed array or tuple type has ${actualElementsCount} elements while exactly ` +
|
|
156
155
|
`${exactElementsCount} expected.`
|
|
157
156
|
},
|
|
158
157
|
forbiddenNaN_Value: {
|
|
159
158
|
title: "Forbidden NaN Value Of Numeric Property/Element",
|
|
160
|
-
description: "The value of this numeric property
|
|
159
|
+
description: "The value of this numeric property or element is NaN while it has been explicitly forbidden. "
|
|
161
160
|
},
|
|
162
161
|
numericValueIsNotBelongToExpectedNumbersSet: {
|
|
163
162
|
title: "Expected and Actual Numbers Set Mismatch",
|
|
@@ -166,7 +165,7 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
166
165
|
},
|
|
167
166
|
valueIsNotAmongAllowedAlternatives: {
|
|
168
167
|
title: "Disallowed Alternative of Value",
|
|
169
|
-
generateDescription: ({ allowedAlternatives }) => "This value is not among following allowed alternatives
|
|
168
|
+
generateDescription: ({ allowedAlternatives }) => "This value is not among following allowed alternatives:\n" +
|
|
170
169
|
allowedAlternatives.map((allowedAlternative) => ` ○ ${allowedAlternative}`).join("\n")
|
|
171
170
|
},
|
|
172
171
|
numericValueIsSmallerThanRequiredMinimum: {
|
|
@@ -175,29 +174,28 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
175
174
|
},
|
|
176
175
|
numericValueIsGreaterThanAllowedMaximum: {
|
|
177
176
|
title: "Maximal Numeric Value Exceeding",
|
|
178
|
-
generateDescription: ({ allowedMaximum }) => `This value is greater than
|
|
177
|
+
generateDescription: ({ allowedMaximum }) => `This value is greater than allowed maximal value ${allowedMaximum}.`
|
|
179
178
|
},
|
|
180
179
|
charactersCountIsLessThanRequired: {
|
|
181
180
|
title: "Minimal Characters Count Fall Short",
|
|
182
|
-
generateDescription: ({ minimalCharactersCount, realCharactersCount }) => `This string
|
|
181
|
+
generateDescription: ({ minimalCharactersCount, realCharactersCount }) => `This string has ${realCharactersCount} characters while at least ${minimalCharactersCount} required.`
|
|
183
182
|
},
|
|
184
183
|
charactersCountIsMoreThanAllowed: {
|
|
185
184
|
title: "Maximal Characters Count Exceeding",
|
|
186
|
-
generateDescription: ({ maximalCharactersCount, realCharactersCount }) => `This string
|
|
187
|
-
"as maximum."
|
|
185
|
+
generateDescription: ({ maximalCharactersCount, realCharactersCount }) => `This string has ${realCharactersCount} characters while maximally ${maximalCharactersCount} allowed.`
|
|
188
186
|
},
|
|
189
187
|
charactersCountDoesNotMatchWithSpecified: {
|
|
190
188
|
title: "Fixed Characters Count Mismatch",
|
|
191
|
-
generateDescription: ({ fixedCharactersCount, realCharactersCount }) => `The value has ${realCharactersCount} characters while exactly ${fixedCharactersCount}
|
|
189
|
+
generateDescription: ({ fixedCharactersCount, realCharactersCount }) => `The value has ${realCharactersCount} characters while exactly ${fixedCharactersCount} expected.`
|
|
192
190
|
},
|
|
193
191
|
forbiddenCharactersFound: {
|
|
194
|
-
title: "Forbidden Characters
|
|
195
|
-
generateDescription: ({ foundForbiddenCharacters }) => "
|
|
192
|
+
title: "Forbidden Characters",
|
|
193
|
+
generateDescription: ({ foundForbiddenCharacters }) => "This string including the following characters which has been forbidden:\n" +
|
|
196
194
|
foundForbiddenCharacters.map((character) => `● ${character}`).join("\n")
|
|
197
195
|
},
|
|
198
196
|
regularExpressionMismatch: {
|
|
199
197
|
title: "Regular Expression Mismatch",
|
|
200
|
-
generateDescription: ({ regularExpression }) => `This string
|
|
198
|
+
generateDescription: ({ regularExpression }) => `This string does not match with specified regular expression:\n ${regularExpression.toString()}`
|
|
201
199
|
},
|
|
202
200
|
disallowedBooleanValueVariant: {
|
|
203
201
|
title: "Disallowed Boolean Variant",
|
|
@@ -206,7 +204,7 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
206
204
|
unsupportedValueType: {
|
|
207
205
|
title: "Unsupported Value Type",
|
|
208
206
|
generateDescription: ({ targetPropertyType }) => `This value has type ${targetPropertyType} which currently not supported as any other type incompatible ` +
|
|
209
|
-
"
|
|
207
|
+
"with JSON."
|
|
210
208
|
}
|
|
211
209
|
},
|
|
212
210
|
throwableErrors: {
|
|
@@ -231,23 +229,22 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
231
229
|
},
|
|
232
230
|
propertyUndefinedabilityNotSpecified: {
|
|
233
231
|
title: "Property Undefinedability has not been Specified",
|
|
234
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "It has not been specified how to process the undefined value of the property
|
|
232
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "It has not been specified how to process the undefined value of the property " +
|
|
235
233
|
`\`${targetPropertyDotSeparatedQualifiedName}\`. ` +
|
|
236
234
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
237
235
|
},
|
|
238
236
|
propertyNullabilityNotSpecified: {
|
|
239
237
|
title: "Property Nullability has not been Specified",
|
|
240
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "It has not been specified how to process the null value of the property
|
|
238
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "It has not been specified how to process the null value of the property " +
|
|
241
239
|
`\`${targetPropertyDotSeparatedQualifiedName}\`. ` +
|
|
242
240
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
243
241
|
},
|
|
244
242
|
dataTypeNotSpecified: {
|
|
245
|
-
title: "
|
|
243
|
+
title: "Unsupported or Not Specified Data Type",
|
|
246
244
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, specifiedStringifiedType, documentationPageAnchor }) => ((0, isUndefined_1.default)(specifiedStringifiedType) ?
|
|
247
245
|
"Data type has not been " :
|
|
248
246
|
`Unsupported data type "${specifiedStringifiedType} has been"`) +
|
|
249
247
|
`specified for property/element "${targetPropertyDotSeparatedQualifiedName}". ` +
|
|
250
|
-
"It is possible only with TypeScript error. " +
|
|
251
248
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
252
249
|
},
|
|
253
250
|
unableToDeletePropertyWithOutdatedKey: {
|
|
@@ -260,16 +257,13 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
260
257
|
unableToChangePropertyDescriptors: {
|
|
261
258
|
title: "Unable to Change Property Descriptors",
|
|
262
259
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `Unable to change the descriptions of property "${targetPropertyDotSeparatedQualifiedName}" because this ` +
|
|
263
|
-
"property is not configurable while the processing approach is the manipulations with source object
|
|
264
|
-
"\"mustLeaveEvenRenamed\" has not been set to true. " +
|
|
260
|
+
"property is not configurable while the processing approach is the manipulations with source object. " +
|
|
265
261
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
266
262
|
},
|
|
267
263
|
unableToUpdatePropertyValue: {
|
|
268
264
|
title: "Unable to Update Property Value",
|
|
269
265
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `The updating of the property "${targetPropertyDotSeparatedQualifiedName}" has been requested via default ` +
|
|
270
266
|
"value substitution or pre-validation modification while this property is read-only. " +
|
|
271
|
-
"This error has been thrown because the error handling strategy \"onUnableToUnableToUpdatePropertyValue\" " +
|
|
272
|
-
"is \"ErrorHandlingStrategies.throwingOfError\" which is default. " +
|
|
273
267
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
274
268
|
},
|
|
275
269
|
mutuallyExclusiveAssociativeArrayKeysLimitations: {
|
|
@@ -279,19 +273,23 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
279
273
|
"root associative array " :
|
|
280
274
|
`associative array "${targetPropertyDotSeparatedQualifiedName}" `) +
|
|
281
275
|
"what it the contradiction. " +
|
|
282
|
-
"
|
|
276
|
+
"Either allowed keys or forbidden ones can be specified but not both." +
|
|
283
277
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
284
278
|
},
|
|
285
279
|
incompatibleValuesTypesAlternatives: {
|
|
286
280
|
title: "Incompatible Values Types Alternatives",
|
|
287
|
-
generateDescription: ({
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
281
|
+
generateDescription: ({ isIndexedArrayLikeType, documentationPageAnchor }) => "The" +
|
|
282
|
+
(isIndexedArrayLikeType ?
|
|
283
|
+
"`ValuesTypesIDs.indexedArray` (aliased as `Array`) and `ValuesTypesIDs.tuple`" :
|
|
284
|
+
"`ValuesTypesIDs.fixedSchemaObject` (aliased as `Object`) and `ValuesTypesIDs.associativeArray`") +
|
|
285
|
+
"are incompatible alternatives of `ValuesTypesIDs.polymorphic` because from the viewpoint of ECMAScript " +
|
|
286
|
+
"both are the " +
|
|
287
|
+
(isIndexedArrayLikeType ? "`Array`" : "`Object`") +
|
|
288
|
+
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
291
289
|
},
|
|
292
290
|
bothAllowedAndForbiddenCharactersSpecified: {
|
|
293
291
|
title: "Both Allowed And Forbidden Characters Specified",
|
|
294
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "Both allowed and forbidden characters has been specified for property/element " +
|
|
292
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "Both allowed and forbidden characters has been specified for string-type property/element " +
|
|
295
293
|
`${targetPropertyDotSeparatedQualifiedName} what it the contradiction. ` +
|
|
296
294
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
297
295
|
}
|
|
@@ -299,13 +297,12 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
299
297
|
warnings: {
|
|
300
298
|
preValidationModificationFailed: {
|
|
301
299
|
title: "Pre-validation Modification Failed",
|
|
302
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, stringifiedCaughtError, documentationPageAnchor }) => "The
|
|
300
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, stringifiedCaughtError, documentationPageAnchor }) => "The error has occurred during the pre-validation modification of the property/element " +
|
|
303
301
|
`"${targetPropertyDotSeparatedQualifiedName}".\n` +
|
|
304
302
|
`${stringifiedCaughtError}\n` +
|
|
305
303
|
"This error has been reported as warning because the error handling strategy " +
|
|
306
304
|
"\"onPreValidationModificationFailed\" is \"ErrorHandlingStrategies.warningWithoutMarkingOfDataAsInvalid\" " +
|
|
307
|
-
"what is not recommended
|
|
308
|
-
"does not respect all possible variations of the source data and could cause the subsequent errors. " +
|
|
305
|
+
"what is not recommended. " +
|
|
309
306
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
310
307
|
},
|
|
311
308
|
unableToDeletePropertyWithOutdatedKey: {
|
|
@@ -313,14 +310,18 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
313
310
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, propertyNewKey, documentationPageAnchor }) => `Unable to delete the property "${targetPropertyDotSeparatedQualifiedName}" after renaming to ` +
|
|
314
311
|
`"${propertyNewKey}" because it is not configurable while the processing approach is the manipulations ` +
|
|
315
312
|
"with source object and \"mustLeaveEvenRenamed\" has not been set to true. " +
|
|
313
|
+
"This error has been reported as warning because the error handling strategy " +
|
|
314
|
+
"\"unableToChangePropertyDescriptors\" is \"ErrorHandlingStrategies.warningWithoutMarkingOfDataAsInvalid\" " +
|
|
315
|
+
"what is not recommended. " +
|
|
316
316
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
317
317
|
},
|
|
318
318
|
unableToChangePropertyDescriptors: {
|
|
319
319
|
title: "Unable to Change Property Descriptors",
|
|
320
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `Unable to change the descriptions of property "${targetPropertyDotSeparatedQualifiedName}"
|
|
320
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `Unable to change the descriptions of property "${targetPropertyDotSeparatedQualifiedName}" because this ` +
|
|
321
|
+
"property is not configurable while the processing approach is the manipulations with source object. " +
|
|
321
322
|
"This error has been reported as warning because the error handling strategy " +
|
|
322
323
|
"\"unableToChangePropertyDescriptors\" is \"ErrorHandlingStrategies.warningWithoutMarkingOfDataAsInvalid\" " +
|
|
323
|
-
"what is not recommended
|
|
324
|
+
"what is not recommended. " +
|
|
324
325
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
325
326
|
},
|
|
326
327
|
unableToUpdatePropertyValue: {
|
|
@@ -328,8 +329,8 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
328
329
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `The updating of the property "${targetPropertyDotSeparatedQualifiedName}" has been requested via default ` +
|
|
329
330
|
"value substitution or pre-validation modification while this property is read-only. " +
|
|
330
331
|
"This error has been reported as warning because the error handling strategy " +
|
|
331
|
-
"\"
|
|
332
|
-
"what is not recommended
|
|
332
|
+
"\"unableToChangePropertyDescriptors\" is \"ErrorHandlingStrategies.warningWithoutMarkingOfDataAsInvalid\" " +
|
|
333
|
+
"what is not recommended. " +
|
|
333
334
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
334
335
|
}
|
|
335
336
|
},
|
|
@@ -9,11 +9,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.MockGatewayHelperLocalization__English = exports.MockGatewayHelper = exports.DataMocking = exports.MINIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS = exports.MAXIMAL_CHARACTERS_COUNT_OF_EMAIL_ADDRESS = exports.EMAIL_ADDRESS_VALID_PATTERN = exports.CHARACTERS_COUNT_IN_FULL_ISO8601_STRING = exports.MAXIMAL_CHARACTERS_COUNT_IN_DATE_PART_OF_ISO8601_STRING = exports.SECONDS_COUNT_IN_MINUTE = exports.MonthsNames = exports.MONTHS_COUNT_IN_YEAR = exports.MINUTES_COUNT_IN_HOUR = exports.MINIMAL_SUPPORTED_UNIX_MILLISECONDS_AMOUNT = exports.MAXIMAL_SUPPORTED_UNIX_MILLISECONDS_AMOUNT = exports.MAXIMAL_DAYS_IN_MONTH = exports.HOURS_COUNT_IN_STELLAR_DAY = exports.DaysOfWeekNames = exports.DAYS_COUNT_IN_WEEK = exports.IntegerDataTypes = exports.ServerErrorsHTTP_StatusCodes = exports.ClientErrorsHTTP_StatusCodes = exports.RedirectionResponsesHTTP_StatusCodes = exports.SuccessfulResponsesHTTP_StatusCodes = exports.InformationalResponsesHTTP_StatusCodes = exports.HTTP_StatusCodes = exports.NETWORK_PORT_MINIMAL_VALUE = exports.NETWORK_PORT_MAXIMAL_VALUE = exports.HTTPS_DEFAULT_PORT = exports.HTTP_Methods = exports.HTTP_DEFAULT_PORT = exports.YDEE_BUG_REPORTING_PAGE_URI = exports.readonlyArrayToMutableOne = exports.addElementsToArrayIfTheyAreNotPresentOtherwiseRemove = exports.twoDimensionalizeArray = exports.removeArrayElementsByPredicates = exports.removeArrayElementsByIndexes = exports.swapArrayElements = exports.moveArrayElementToOnePosition = exports.replaceArrayElementsByPredicates = exports.replaceArrayElementsByIndexesImmutably = exports.addElementsToArray = exports.cropArray = exports.getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne = exports.getIndexesOfSatisfiesThePredicateArrayElements = exports.getLastElementOfArray = exports.getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne = exports.createArrayOfNaturalNumbers = exports.serializeURI_QueryParameters = exports.FetchAPI_Service = exports.AJAX_Service = void 0;
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.ValuesDeepCopier = exports.undefinedToNull = exports.undefinedToFalse = exports.undefinedToEmptyString = exports.undefinedToEmptyArray = exports.nullToZero = exports.nullToUndefined = exports.nullToEmptyString = exports.emptyStringToUndefined = exports.emptyStringToTrue = exports.emptyStringToNull = exports.isFunctionLike = exports.isElementOfEnumeration = exports.isBoolean = exports.IsStringOfLengthCheck = exports.isStringOfLength = exports.isString = exports.isNonEmptyString = void 0;
|
|
12
|
+
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.dataSubmittingFailedErrorLocalization__english = exports.DataSubmittingFailedError = exports.dataRetrievingFailedErrorLocalization__english = exports.DataRetrievingFailedError = exports.DOM_ElementRetrievingFailedErrorLocalization__english = exports.DOM_ElementRetrievingFailedError = exports.crossBrowserIssueErrorLocalization__english = exports.CrossBrowserIssueError = exports.configFileNotFoundErrorLocalization__english = exports.ConfigFileNotFoundError = 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.isValidNativeDate = exports.hasTimeCome = exports.getYearOfPreviousMonth = exports.getYearOfNextMonth = exports.getPreviousMonthNumber = exports.getNextMonthNumber = exports.getMonthNumberByName = exports.getMonthNameByNumber = exports.getISO8601_StringWithoutTimePart = exports.getDaysCountInSpecificMonth = exports.DateWithoutTime = exports.convert24_HoursFormatTo12_HoursFormat = exports.CalendarBuilder = void 0;
|
|
13
|
+
exports.getRandomSubarray = exports.gettingOfRandomStringLocalization__english = exports.RandomStringsGenerator = exports.getRandomString = exports.getRandomObjectPropertyValue = exports.getRandomLatinCharacter = exports.getRandomInteger = exports.getRandomBoolean = exports.getRandomArrayElement = exports.PromisesQueue = exports.getItemsOfPaginationPage = exports.computeLastItemNumberForSpecificPaginationPage = exports.computeFirstItemNumberForSpecificPaginationPage = exports.PaginationCollection = exports.getObjectPropertySafely = exports.separateEach4_DigitsGroupWithComma = exports.separateEach3_DigitsGroupWithComma = exports.roundUpToSpecificIntegerPlaceValue = exports.roundToSpecifiedNearestDecimalPlaceValue = exports.roundToSpecificNearestIntegerPlaceValue = exports.roundDownToSpecificIntegerPlaceValue = exports.limitMinimalValue = exports.limitMinimalAndMaximalValues = exports.limitMaximalValue = exports.isStringifiedNonNegativeIntegerOfRegularNotation = exports.getArithmeticMean = exports.formatNumberWith4_KetaKanji = exports.replaceValuesInMap = exports.removeEntriesFromMap = exports.mergeMaps = exports.invertMapImmutably = exports.getExpectedToBeNonUndefinedMapValue = exports.filterMap = exports.createMapBasedOnOtherMap = exports.addEntriesToMap = exports.PoliteErrorsMessagesBuilder__English = exports.PoliteErrorsMessagesBuilder = exports.loggerLocalization__english = exports.Logger = exports.StringTypeID_Generator = exports.encodeFileToBase64 = exports.HTTP_ResponseBodyParsingFailureErrorLocalization__english = exports.HTTP_ResponseBodyParsingFailureError = exports.unsupportedScenarioErrorLocalization__english = exports.UnsupportedScenarioError = exports.unexpectedEventErrorLocalization__english = exports.UnexpectedEventError = exports.moduleDynamicLoadingFailedErrorLocalization__english = exports.ModuleDynamicLoadingFailedError = exports.invalidParameterValueErrorLocalization__english = void 0;
|
|
14
|
+
exports.hasStringOnlySpecificCharacters = exports.getPositionsOfAllSubstringOccurrences = exports.getLastCharacter = exports.getEnglishAbbreviatedOrdinalNumber = exports.explodeStringToLines = exports.explodeCasedPhraseToWords = exports.EmailAddress = exports.cropString = exports.capitalizeFirstCharacter = exports.stringifyAndFormatArbitraryValue = exports.ArbitraryValueFormatter = exports.appendCharacterIfItDoesNotPresentInLastPosition = exports.adjustCharactersCount = exports.removeSpecificSegmentsFromURI_Path = exports.getURI_PartWithoutFragment = exports.generateMailtoURI_Scheme = exports.replaceLastURI_PathSegment = exports.explodeURI_PathToSegments = exports.getURI_Fragment = exports.appendFragmentToURI = exports.extractFileNameWithoutLastExtension = exports.extractFileNameWithAllExtensionsFromPath = exports.extractFileNameWithoutAnyExtensions = exports.removeAllFileNameExtensions = exports.extractLastExtensionOfFileName = exports.extractAllFileNameExtensions = exports.appendLastFileNameExtension = exports.replaceMatchesWithRegularExpressionToDynamicValue = exports.extractMatchingsWithRegularExpression = exports.getMatchingWithFirstRegularExpressionCapturingGroup = exports.LineSeparators = exports.getLineSeparatorType = exports.uppercaseLatinCharacters = exports.stringifiedDigits = exports.SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag = exports.SpaceCharacters = exports.lowercaseLatinCharacters = exports.EscapeCharacters = exports.removeSetElementsByPredicates = exports.mergeSets = exports.createSetBasedOnOtherSet = exports.addElementsToSet = exports.destringifyBooleanValueIfPossible = exports.convertPotentialStringToFloatIfPossible = exports.convertPotentialStringToIntegerIfPossible = exports.convertPotentialStringToNumberIfPossible = exports.rawObjectDataProcessorLocalization__english = exports.RawObjectDataProcessor = exports.removeRandomArrayElement = exports.getSpecificBooleanValueWithProbability = void 0;
|
|
15
|
+
exports.isPossiblyReadonlyParsedJSON_Object = exports.isPossiblyReadonlyParsedJSON = exports.isNonNullObject = exports.isNonEmptyObject = exports.isNonEmptyArbitraryObject = exports.isEmptyObject = exports.isArbitraryObject = exports.isPositiveIntegerOrZero = exports.isPositiveDecimalFraction = exports.isNumber = exports.isNegativeIntegerOrZero = exports.isNegativeInteger = exports.isNegativeDecimalFraction = exports.isNaturalNumberOrZero = exports.isNaturalNumber = exports.isIntegerOfAnySign = exports.isIntegerOnAnySign = exports.isDecimalFractionOfAnySign = exports.isBigInt = exports.isUndefined = exports.isNull = exports.isNotUndefined = exports.isNotNull = exports.isNeitherUndefinedNorNull = exports.isEitherUndefinedOrNull = exports.isNonEmptyArray = exports.isEmptyArray = exports.IsArrayOfLengthCheck = exports.isArrayOfLength = exports.isArrayOfCertainTypeElements = exports.trimSpaces = exports.toUpperCamelCase = exports.toScreamingSnakeCase = exports.toLowerCamelCase = exports.surroundLabelByOrnament = exports.splitString = exports.reverseString = exports.replaceDoubleBackslashesWithForwardSlashes = exports.replaceBrHTML_TagToNewLineEscapeSequence = exports.replace2_OrMoreSpacesTo1 = exports.removeSpecificCharacterFromCertainPosition = exports.removeNthCharacter = exports.removeNonDigitsCharacters = exports.removeLastCharacter = exports.removeAllSpecifiedCharacters = exports.isStringIncludingAtLeastOneOfSubstrings = exports.isIPv4_AddressLiesInRange = exports.insertSubstringIf = exports.insertSubstring = exports.IndentationCoordinator = void 0;
|
|
16
|
+
exports.ValuesDeepCopier = exports.undefinedToNull = exports.undefinedToFalse = exports.undefinedToEmptyString = exports.undefinedToEmptyArray = exports.nullToZero = exports.nullToUndefined = exports.nullToEmptyString = exports.emptyStringToUndefined = exports.emptyStringToTrue = exports.emptyStringToNull = exports.isFunctionLike = exports.isElementOfEnumeration = exports.isBoolean = exports.IsStringOfLengthCheck = exports.isStringOfLength = exports.isString = exports.isNonEmptyString = exports.isEmptyString = exports.areStringifiedDigitsOnly = void 0;
|
|
17
17
|
var AJAX_Service_1 = require("./AJAX/AJAX_Service");
|
|
18
18
|
Object.defineProperty(exports, "AJAX_Service", { enumerable: true, get: function () { return __importDefault(AJAX_Service_1).default; } });
|
|
19
19
|
var FetchAPI_Service_1 = require("./AJAX/FetchAPI_Service");
|
|
@@ -146,6 +146,10 @@ var CrossBrowserIssueError_1 = require("./Errors/CrossBrowserIssue/CrossBrowserI
|
|
|
146
146
|
Object.defineProperty(exports, "CrossBrowserIssueError", { enumerable: true, get: function () { return __importDefault(CrossBrowserIssueError_1).default; } });
|
|
147
147
|
var CrossBrowserIssueErrorLocalization_english_1 = require("./Errors/CrossBrowserIssue/CrossBrowserIssueErrorLocalization.english");
|
|
148
148
|
Object.defineProperty(exports, "crossBrowserIssueErrorLocalization__english", { enumerable: true, get: function () { return __importDefault(CrossBrowserIssueErrorLocalization_english_1).default; } });
|
|
149
|
+
var DOM_ElementRetrievingFailedError_1 = require("./Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError");
|
|
150
|
+
Object.defineProperty(exports, "DOM_ElementRetrievingFailedError", { enumerable: true, get: function () { return __importDefault(DOM_ElementRetrievingFailedError_1).default; } });
|
|
151
|
+
var DOM_ElementRetrievingFailedErrorLocalization_english_1 = require("./Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedErrorLocalization.english");
|
|
152
|
+
Object.defineProperty(exports, "DOM_ElementRetrievingFailedErrorLocalization__english", { enumerable: true, get: function () { return __importDefault(DOM_ElementRetrievingFailedErrorLocalization_english_1).default; } });
|
|
149
153
|
var DataRetrievingFailedError_1 = require("./Errors/DataRetrievingFailed/DataRetrievingFailedError");
|
|
150
154
|
Object.defineProperty(exports, "DataRetrievingFailedError", { enumerable: true, get: function () { return __importDefault(DataRetrievingFailedError_1).default; } });
|
|
151
155
|
var DataRetrievingFailedErrorLocalization_english_1 = require("./Errors/DataRetrievingFailed/DataRetrievingFailedErrorLocalization.english");
|
|
@@ -154,10 +158,6 @@ var DataSubmittingFailedError_1 = require("./Errors/DataSubmittingFailed/DataSub
|
|
|
154
158
|
Object.defineProperty(exports, "DataSubmittingFailedError", { enumerable: true, get: function () { return __importDefault(DataSubmittingFailedError_1).default; } });
|
|
155
159
|
var DataSubmittingFailedErrorLocalization_english_1 = require("./Errors/DataSubmittingFailed/DataSubmittingFailedErrorLocalization.english");
|
|
156
160
|
Object.defineProperty(exports, "dataSubmittingFailedErrorLocalization__english", { enumerable: true, get: function () { return __importDefault(DataSubmittingFailedErrorLocalization_english_1).default; } });
|
|
157
|
-
var DOM_ElementRetrievingFailedError_1 = require("./Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError");
|
|
158
|
-
Object.defineProperty(exports, "DOM_ElementRetrievingFailedError", { enumerable: true, get: function () { return __importDefault(DOM_ElementRetrievingFailedError_1).default; } });
|
|
159
|
-
var DOM_ElementRetrievingFailedErrorLocalization_english_1 = require("./Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedErrorLocalization.english");
|
|
160
|
-
Object.defineProperty(exports, "DOM_ElementRetrievingFailedErrorLocalization__english", { enumerable: true, get: function () { return __importDefault(DOM_ElementRetrievingFailedErrorLocalization_english_1).default; } });
|
|
161
161
|
var FileReadingFailedError_1 = require("./Errors/FileReadingFailed/FileReadingFailedError");
|
|
162
162
|
Object.defineProperty(exports, "FileReadingFailedError", { enumerable: true, get: function () { return __importDefault(FileReadingFailedError_1).default; } });
|
|
163
163
|
var FileReadingFailedErrorLocalization_english_1 = require("./Errors/FileReadingFailed/FileReadingFailedErrorLocalization.english");
|
|
@@ -166,10 +166,6 @@ var FileWritingFailedError_1 = require("./Errors/FileWritingFailed/FileWritingFa
|
|
|
166
166
|
Object.defineProperty(exports, "FileWritingFailedError", { enumerable: true, get: function () { return __importDefault(FileWritingFailedError_1).default; } });
|
|
167
167
|
var FileWritingFailedErrorLocalization_english_1 = require("./Errors/FileWritingFailed/FileWritingFailedErrorLocalization.english");
|
|
168
168
|
Object.defineProperty(exports, "fileWritingFailedErrorLocalization__english", { enumerable: true, get: function () { return __importDefault(FileWritingFailedErrorLocalization_english_1).default; } });
|
|
169
|
-
var HTTP_ResponseBodyParsingFailureError_1 = require("./Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureError");
|
|
170
|
-
Object.defineProperty(exports, "HTTP_ResponseBodyParsingFailureError", { enumerable: true, get: function () { return __importDefault(HTTP_ResponseBodyParsingFailureError_1).default; } });
|
|
171
|
-
var HTTP_ResponseBodyParsingFailureErrorLocalization_english_1 = require("./Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureErrorLocalization.english");
|
|
172
|
-
Object.defineProperty(exports, "HTTP_ResponseBodyParsingFailureErrorLocalization__english", { enumerable: true, get: function () { return __importDefault(HTTP_ResponseBodyParsingFailureErrorLocalization_english_1).default; } });
|
|
173
169
|
var ImproperUsageError_1 = require("./Errors/ImproperUsage/ImproperUsageError");
|
|
174
170
|
Object.defineProperty(exports, "ImproperUsageError", { enumerable: true, get: function () { return __importDefault(ImproperUsageError_1).default; } });
|
|
175
171
|
var ImproperUsageErrorLocalization_english_1 = require("./Errors/ImproperUsage/ImproperUsageErrorLocalization.english");
|
|
@@ -206,18 +202,22 @@ var UnsupportedScenarioError_1 = require("./Errors/UnsupportedScenario/Unsupport
|
|
|
206
202
|
Object.defineProperty(exports, "UnsupportedScenarioError", { enumerable: true, get: function () { return __importDefault(UnsupportedScenarioError_1).default; } });
|
|
207
203
|
var UnsupportedScenarioErrorLocalization_english_1 = require("./Errors/UnsupportedScenario/UnsupportedScenarioErrorLocalization.english");
|
|
208
204
|
Object.defineProperty(exports, "unsupportedScenarioErrorLocalization__english", { enumerable: true, get: function () { return __importDefault(UnsupportedScenarioErrorLocalization_english_1).default; } });
|
|
205
|
+
var HTTP_ResponseBodyParsingFailureError_1 = require("./Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureError");
|
|
206
|
+
Object.defineProperty(exports, "HTTP_ResponseBodyParsingFailureError", { enumerable: true, get: function () { return __importDefault(HTTP_ResponseBodyParsingFailureError_1).default; } });
|
|
207
|
+
var HTTP_ResponseBodyParsingFailureErrorLocalization_english_1 = require("./Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureErrorLocalization.english");
|
|
208
|
+
Object.defineProperty(exports, "HTTP_ResponseBodyParsingFailureErrorLocalization__english", { enumerable: true, get: function () { return __importDefault(HTTP_ResponseBodyParsingFailureErrorLocalization_english_1).default; } });
|
|
209
209
|
var encodeFileToBase64_1 = require("./Files/encodeFileToBase64");
|
|
210
210
|
Object.defineProperty(exports, "encodeFileToBase64", { enumerable: true, get: function () { return __importDefault(encodeFileToBase64_1).default; } });
|
|
211
211
|
var StringTypeID_Generator_1 = require("./IDsGenerators/StringTypeID_Generator");
|
|
212
212
|
Object.defineProperty(exports, "StringTypeID_Generator", { enumerable: true, get: function () { return __importDefault(StringTypeID_Generator_1).default; } });
|
|
213
|
-
var PoliteErrorsMessagesBuilder_1 = require("./Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilder");
|
|
214
|
-
Object.defineProperty(exports, "PoliteErrorsMessagesBuilder", { enumerable: true, get: function () { return __importDefault(PoliteErrorsMessagesBuilder_1).default; } });
|
|
215
|
-
var PoliteErrorsMessagesBuilderLocalization_english_1 = require("./Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilderLocalization.english");
|
|
216
|
-
Object.defineProperty(exports, "PoliteErrorsMessagesBuilder__English", { enumerable: true, get: function () { return __importDefault(PoliteErrorsMessagesBuilderLocalization_english_1).default; } });
|
|
217
213
|
var Logger_1 = require("./Logging/Logger");
|
|
218
214
|
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return __importDefault(Logger_1).default; } });
|
|
219
215
|
var LoggerLocalization_english_1 = require("./Logging/LoggerLocalization.english");
|
|
220
216
|
Object.defineProperty(exports, "loggerLocalization__english", { enumerable: true, get: function () { return __importDefault(LoggerLocalization_english_1).default; } });
|
|
217
|
+
var PoliteErrorsMessagesBuilder_1 = require("./Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilder");
|
|
218
|
+
Object.defineProperty(exports, "PoliteErrorsMessagesBuilder", { enumerable: true, get: function () { return __importDefault(PoliteErrorsMessagesBuilder_1).default; } });
|
|
219
|
+
var PoliteErrorsMessagesBuilderLocalization_english_1 = require("./Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilderLocalization.english");
|
|
220
|
+
Object.defineProperty(exports, "PoliteErrorsMessagesBuilder__English", { enumerable: true, get: function () { return __importDefault(PoliteErrorsMessagesBuilderLocalization_english_1).default; } });
|
|
221
221
|
var addEntriesToMap_1 = require("./Maps/addEntriesToMap");
|
|
222
222
|
Object.defineProperty(exports, "addEntriesToMap", { enumerable: true, get: function () { return __importDefault(addEntriesToMap_1).default; } });
|
|
223
223
|
var createMapBasedOnOtherMap_1 = require("./Maps/createMapBasedOnOtherMap");
|
|
@@ -260,19 +260,16 @@ var separateEach4_DigitsGroupWithComma_1 = require("./Numbers/separateEach4_Digi
|
|
|
260
260
|
Object.defineProperty(exports, "separateEach4_DigitsGroupWithComma", { enumerable: true, get: function () { return __importDefault(separateEach4_DigitsGroupWithComma_1).default; } });
|
|
261
261
|
var getObjectPropertySafely_1 = require("./Objects/getObjectPropertySafely");
|
|
262
262
|
Object.defineProperty(exports, "getObjectPropertySafely", { enumerable: true, get: function () { return __importDefault(getObjectPropertySafely_1).default; } });
|
|
263
|
+
var PaginationCollection_1 = require("./Pagination/PaginationCollection");
|
|
264
|
+
Object.defineProperty(exports, "PaginationCollection", { enumerable: true, get: function () { return __importDefault(PaginationCollection_1).default; } });
|
|
263
265
|
var computeFirstItemNumberForSpecificPaginationPage_1 = require("./Pagination/computeFirstItemNumberForSpecificPaginationPage");
|
|
264
266
|
Object.defineProperty(exports, "computeFirstItemNumberForSpecificPaginationPage", { enumerable: true, get: function () { return __importDefault(computeFirstItemNumberForSpecificPaginationPage_1).default; } });
|
|
265
267
|
var computeLastItemNumberForSpecificPaginationPage_1 = require("./Pagination/computeLastItemNumberForSpecificPaginationPage");
|
|
266
268
|
Object.defineProperty(exports, "computeLastItemNumberForSpecificPaginationPage", { enumerable: true, get: function () { return __importDefault(computeLastItemNumberForSpecificPaginationPage_1).default; } });
|
|
267
269
|
var getItemsOfPaginationPage_1 = require("./Pagination/getItemsOfPaginationPage");
|
|
268
270
|
Object.defineProperty(exports, "getItemsOfPaginationPage", { enumerable: true, get: function () { return __importDefault(getItemsOfPaginationPage_1).default; } });
|
|
269
|
-
var PaginationCollection_1 = require("./Pagination/PaginationCollection");
|
|
270
|
-
Object.defineProperty(exports, "PaginationCollection", { enumerable: true, get: function () { return __importDefault(PaginationCollection_1).default; } });
|
|
271
271
|
var PromisesQueue_1 = require("./Promises/PromisesQueue");
|
|
272
272
|
Object.defineProperty(exports, "PromisesQueue", { enumerable: true, get: function () { return __importDefault(PromisesQueue_1).default; } });
|
|
273
|
-
var getRandomString_1 = require("./RandomValuesGenerators/getRandomString/getRandomString");
|
|
274
|
-
Object.defineProperty(exports, "getRandomString", { enumerable: true, get: function () { return __importDefault(getRandomString_1).default; } });
|
|
275
|
-
Object.defineProperty(exports, "RandomStringsGenerator", { enumerable: true, get: function () { return getRandomString_1.RandomStringsGenerator; } });
|
|
276
273
|
var getRandomArrayElement_1 = require("./RandomValuesGenerators/getRandomArrayElement");
|
|
277
274
|
Object.defineProperty(exports, "getRandomArrayElement", { enumerable: true, get: function () { return __importDefault(getRandomArrayElement_1).default; } });
|
|
278
275
|
var getRandomBoolean_1 = require("./RandomValuesGenerators/getRandomBoolean");
|
|
@@ -283,6 +280,11 @@ var getRandomLatinCharacter_1 = require("./RandomValuesGenerators/getRandomLatin
|
|
|
283
280
|
Object.defineProperty(exports, "getRandomLatinCharacter", { enumerable: true, get: function () { return __importDefault(getRandomLatinCharacter_1).default; } });
|
|
284
281
|
var getRandomObjectPropertyValue_1 = require("./RandomValuesGenerators/getRandomObjectPropertyValue");
|
|
285
282
|
Object.defineProperty(exports, "getRandomObjectPropertyValue", { enumerable: true, get: function () { return __importDefault(getRandomObjectPropertyValue_1).default; } });
|
|
283
|
+
var getRandomString_1 = require("./RandomValuesGenerators/getRandomString/getRandomString");
|
|
284
|
+
Object.defineProperty(exports, "getRandomString", { enumerable: true, get: function () { return __importDefault(getRandomString_1).default; } });
|
|
285
|
+
Object.defineProperty(exports, "RandomStringsGenerator", { enumerable: true, get: function () { return getRandomString_1.RandomStringsGenerator; } });
|
|
286
|
+
var gettingOfRandomStringLocalization__english_1 = require("./RandomValuesGenerators/getRandomString/gettingOfRandomStringLocalization__english");
|
|
287
|
+
Object.defineProperty(exports, "gettingOfRandomStringLocalization__english", { enumerable: true, get: function () { return __importDefault(gettingOfRandomStringLocalization__english_1).default; } });
|
|
286
288
|
var getRandomSubarray_1 = require("./RandomValuesGenerators/getRandomSubarray");
|
|
287
289
|
Object.defineProperty(exports, "getRandomSubarray", { enumerable: true, get: function () { return __importDefault(getRandomSubarray_1).default; } });
|
|
288
290
|
var getSpecificBooleanValueWithProbability_1 = require("./RandomValuesGenerators/getSpecificBooleanValueWithProbability");
|
|
@@ -335,30 +337,30 @@ var appendLastFileNameExtension_1 = require("./Strings/URI/FilesAndDirectories/F
|
|
|
335
337
|
Object.defineProperty(exports, "appendLastFileNameExtension", { enumerable: true, get: function () { return __importDefault(appendLastFileNameExtension_1).default; } });
|
|
336
338
|
var extractAllFileNameExtensions_1 = require("./Strings/URI/FilesAndDirectories/FileNameExtensions/extractAllFileNameExtensions");
|
|
337
339
|
Object.defineProperty(exports, "extractAllFileNameExtensions", { enumerable: true, get: function () { return __importDefault(extractAllFileNameExtensions_1).default; } });
|
|
338
|
-
var extractFileNameWithAllExtensionsFromPath_1 = require("./Strings/URI/FilesAndDirectories/extractFileNameWithAllExtensionsFromPath");
|
|
339
|
-
Object.defineProperty(exports, "extractFileNameWithAllExtensionsFromPath", { enumerable: true, get: function () { return __importDefault(extractFileNameWithAllExtensionsFromPath_1).default; } });
|
|
340
|
-
var extractFileNameWithoutAnyExtensions_1 = require("./Strings/URI/FilesAndDirectories/Stem/extractFileNameWithoutAnyExtensions");
|
|
341
|
-
Object.defineProperty(exports, "extractFileNameWithoutAnyExtensions", { enumerable: true, get: function () { return __importDefault(extractFileNameWithoutAnyExtensions_1).default; } });
|
|
342
|
-
var extractFileNameWithoutLastExtension_1 = require("./Strings/URI/FilesAndDirectories/extractFileNameWithoutLastExtension");
|
|
343
|
-
Object.defineProperty(exports, "extractFileNameWithoutLastExtension", { enumerable: true, get: function () { return __importDefault(extractFileNameWithoutLastExtension_1).default; } });
|
|
344
340
|
var extractLastExtensionOfFileName_1 = require("./Strings/URI/FilesAndDirectories/FileNameExtensions/extractLastExtensionOfFileName");
|
|
345
341
|
Object.defineProperty(exports, "extractLastExtensionOfFileName", { enumerable: true, get: function () { return __importDefault(extractLastExtensionOfFileName_1).default; } });
|
|
346
342
|
var removeAllFileNameExtensions_1 = require("./Strings/URI/FilesAndDirectories/FileNameExtensions/removeAllFileNameExtensions");
|
|
347
343
|
Object.defineProperty(exports, "removeAllFileNameExtensions", { enumerable: true, get: function () { return __importDefault(removeAllFileNameExtensions_1).default; } });
|
|
344
|
+
var extractFileNameWithoutAnyExtensions_1 = require("./Strings/URI/FilesAndDirectories/Stem/extractFileNameWithoutAnyExtensions");
|
|
345
|
+
Object.defineProperty(exports, "extractFileNameWithoutAnyExtensions", { enumerable: true, get: function () { return __importDefault(extractFileNameWithoutAnyExtensions_1).default; } });
|
|
346
|
+
var extractFileNameWithAllExtensionsFromPath_1 = require("./Strings/URI/FilesAndDirectories/extractFileNameWithAllExtensionsFromPath");
|
|
347
|
+
Object.defineProperty(exports, "extractFileNameWithAllExtensionsFromPath", { enumerable: true, get: function () { return __importDefault(extractFileNameWithAllExtensionsFromPath_1).default; } });
|
|
348
|
+
var extractFileNameWithoutLastExtension_1 = require("./Strings/URI/FilesAndDirectories/extractFileNameWithoutLastExtension");
|
|
349
|
+
Object.defineProperty(exports, "extractFileNameWithoutLastExtension", { enumerable: true, get: function () { return __importDefault(extractFileNameWithoutLastExtension_1).default; } });
|
|
348
350
|
var appendFragmentToURI_1 = require("./Strings/URI/Fragment/appendFragmentToURI");
|
|
349
351
|
Object.defineProperty(exports, "appendFragmentToURI", { enumerable: true, get: function () { return __importDefault(appendFragmentToURI_1).default; } });
|
|
352
|
+
var getURI_Fragment_1 = require("./Strings/URI/Fragment/getURI_Fragment");
|
|
353
|
+
Object.defineProperty(exports, "getURI_Fragment", { enumerable: true, get: function () { return __importDefault(getURI_Fragment_1).default; } });
|
|
350
354
|
var explodeURI_PathToSegments_1 = require("./Strings/URI/PathSegments/explodeURI_PathToSegments");
|
|
351
355
|
Object.defineProperty(exports, "explodeURI_PathToSegments", { enumerable: true, get: function () { return __importDefault(explodeURI_PathToSegments_1).default; } });
|
|
356
|
+
var replaceLastURI_PathSegment_1 = require("./Strings/URI/PathSegments/replaceLastURI_PathSegment");
|
|
357
|
+
Object.defineProperty(exports, "replaceLastURI_PathSegment", { enumerable: true, get: function () { return __importDefault(replaceLastURI_PathSegment_1).default; } });
|
|
352
358
|
var generateMailtoURI_Scheme_1 = require("./Strings/URI/generateMailtoURI_Scheme");
|
|
353
359
|
Object.defineProperty(exports, "generateMailtoURI_Scheme", { enumerable: true, get: function () { return __importDefault(generateMailtoURI_Scheme_1).default; } });
|
|
354
|
-
var getURI_Fragment_1 = require("./Strings/URI/Fragment/getURI_Fragment");
|
|
355
|
-
Object.defineProperty(exports, "getURI_Fragment", { enumerable: true, get: function () { return __importDefault(getURI_Fragment_1).default; } });
|
|
356
360
|
var getURI_PartWithoutFragment_1 = require("./Strings/URI/getURI_PartWithoutFragment");
|
|
357
361
|
Object.defineProperty(exports, "getURI_PartWithoutFragment", { enumerable: true, get: function () { return __importDefault(getURI_PartWithoutFragment_1).default; } });
|
|
358
362
|
var removeSpecificSegmentsFromURI_Path_1 = require("./Strings/URI/removeSpecificSegmentsFromURI_Path");
|
|
359
363
|
Object.defineProperty(exports, "removeSpecificSegmentsFromURI_Path", { enumerable: true, get: function () { return __importDefault(removeSpecificSegmentsFromURI_Path_1).default; } });
|
|
360
|
-
var replaceLastURI_PathSegment_1 = require("./Strings/URI/PathSegments/replaceLastURI_PathSegment");
|
|
361
|
-
Object.defineProperty(exports, "replaceLastURI_PathSegment", { enumerable: true, get: function () { return __importDefault(replaceLastURI_PathSegment_1).default; } });
|
|
362
364
|
var adjustCharactersCount_1 = require("./Strings/adjustCharactersCount");
|
|
363
365
|
Object.defineProperty(exports, "adjustCharactersCount", { enumerable: true, get: function () { return __importDefault(adjustCharactersCount_1).default; } });
|
|
364
366
|
var appendCharacterIfItDoesNotPresentInLastPosition_1 = require("./Strings/appendCharacterIfItDoesNotPresentInLastPosition");
|
|
@@ -433,10 +435,10 @@ var isEmptyArray_1 = require("./TypeGuards/Arrays/isEmptyArray");
|
|
|
433
435
|
Object.defineProperty(exports, "isEmptyArray", { enumerable: true, get: function () { return __importDefault(isEmptyArray_1).default; } });
|
|
434
436
|
var isNonEmptyArray_1 = require("./TypeGuards/Arrays/isNonEmptyArray");
|
|
435
437
|
Object.defineProperty(exports, "isNonEmptyArray", { enumerable: true, get: function () { return __importDefault(isNonEmptyArray_1).default; } });
|
|
436
|
-
var isNeitherUndefinedNorNull_1 = require("./TypeGuards/EmptyTypes/isNeitherUndefinedNorNull");
|
|
437
|
-
Object.defineProperty(exports, "isNeitherUndefinedNorNull", { enumerable: true, get: function () { return __importDefault(isNeitherUndefinedNorNull_1).default; } });
|
|
438
438
|
var isEitherUndefinedOrNull_1 = require("./TypeGuards/EmptyTypes/isEitherUndefinedOrNull");
|
|
439
439
|
Object.defineProperty(exports, "isEitherUndefinedOrNull", { enumerable: true, get: function () { return __importDefault(isEitherUndefinedOrNull_1).default; } });
|
|
440
|
+
var isNeitherUndefinedNorNull_1 = require("./TypeGuards/EmptyTypes/isNeitherUndefinedNorNull");
|
|
441
|
+
Object.defineProperty(exports, "isNeitherUndefinedNorNull", { enumerable: true, get: function () { return __importDefault(isNeitherUndefinedNorNull_1).default; } });
|
|
440
442
|
var isNotNull_1 = require("./TypeGuards/EmptyTypes/isNotNull");
|
|
441
443
|
Object.defineProperty(exports, "isNotNull", { enumerable: true, get: function () { return __importDefault(isNotNull_1).default; } });
|
|
442
444
|
var isNotUndefined_1 = require("./TypeGuards/EmptyTypes/isNotUndefined");
|
|
@@ -451,6 +453,8 @@ var isDecimalFractionOfAnySign_1 = require("./TypeGuards/Numbers/isDecimalFracti
|
|
|
451
453
|
Object.defineProperty(exports, "isDecimalFractionOfAnySign", { enumerable: true, get: function () { return __importDefault(isDecimalFractionOfAnySign_1).default; } });
|
|
452
454
|
var isIntegerOnAnySign_1 = require("./TypeGuards/Numbers/isIntegerOnAnySign");
|
|
453
455
|
Object.defineProperty(exports, "isIntegerOnAnySign", { enumerable: true, get: function () { return __importDefault(isIntegerOnAnySign_1).default; } });
|
|
456
|
+
var isIntegerOfAnySign_1 = require("./TypeGuards/Numbers/isIntegerOfAnySign");
|
|
457
|
+
Object.defineProperty(exports, "isIntegerOfAnySign", { enumerable: true, get: function () { return __importDefault(isIntegerOfAnySign_1).default; } });
|
|
454
458
|
var isNaturalNumber_1 = require("./TypeGuards/Numbers/isNaturalNumber");
|
|
455
459
|
Object.defineProperty(exports, "isNaturalNumber", { enumerable: true, get: function () { return __importDefault(isNaturalNumber_1).default; } });
|
|
456
460
|
var isNaturalNumberOrZero_1 = require("./TypeGuards/Numbers/isNaturalNumberOrZero");
|
|
@@ -823,7 +823,7 @@ declare namespace RawObjectDataProcessor {
|
|
|
823
823
|
}
|
|
824
824
|
namespace IncompatibleValuesTypesAlternatives {
|
|
825
825
|
type TemplateVariables = Readonly<{
|
|
826
|
-
|
|
826
|
+
isIndexedArrayLikeType: boolean;
|
|
827
827
|
documentationPageAnchor: string;
|
|
828
828
|
}>;
|
|
829
829
|
}
|
|
@@ -2238,19 +2238,19 @@ class RawObjectDataProcessor {
|
|
|
2238
2238
|
break;
|
|
2239
2239
|
}
|
|
2240
2240
|
case "object": {
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2241
|
+
const isIndexedArrayLikeType = Array.isArray(targetValue);
|
|
2242
|
+
const possibleSpecificationsForObjectValueTypes = targetValueSpecification.alternatives.filter((alternativeSpecification) => (isIndexedArrayLikeType ?
|
|
2243
|
+
alternativeSpecification.type === RawObjectDataProcessor.ValuesTypesIDs.indexedArray ||
|
|
2244
|
+
alternativeSpecification.type === RawObjectDataProcessor.ValuesTypesIDs.tuple ||
|
|
2245
|
+
alternativeSpecification.type === Array :
|
|
2246
|
+
alternativeSpecification.type === RawObjectDataProcessor.ValuesTypesIDs.fixedSchemaObject ||
|
|
2247
|
+
alternativeSpecification.type === RawObjectDataProcessor.ValuesTypesIDs.associativeArray ||
|
|
2248
|
+
alternativeSpecification.type === Object));
|
|
2249
2249
|
if (possibleSpecificationsForObjectValueTypes.length > 1) {
|
|
2250
2250
|
Logger.throwErrorWithFormattedMessage({
|
|
2251
2251
|
errorInstance: new InvalidParameterValueError({
|
|
2252
2252
|
customMessage: this.localization.throwableErrors.incompatibleValuesTypesAlternatives.generateDescription({
|
|
2253
|
-
|
|
2253
|
+
isIndexedArrayLikeType,
|
|
2254
2254
|
documentationPageAnchor: "THROWABLE_ERRORS-INCOMPATIBLE_VALUES_TYPES_ALTERNATIVES"
|
|
2255
2255
|
})
|
|
2256
2256
|
}),
|
package/Distributable/esm/RawObjectDataProcessor/RawObjectDataProcessorLocalization.english.js
CHANGED
|
@@ -50,8 +50,7 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
50
50
|
generateDescription: ({ stringifiedCaughtError }) => "The following error has occurred during the pre-validation modification of this property/element. \n" +
|
|
51
51
|
`${stringifiedCaughtError}\n` +
|
|
52
52
|
"The data has been marked as invalid because the error handling strategy \"onPreValidationModificationFailed\" " +
|
|
53
|
-
"is \"ErrorHandlingStrategies.markingOfDataAsInvalid\" what is not recommended
|
|
54
|
-
"be in pre-validation modification function, not always in the data. "
|
|
53
|
+
"is \"ErrorHandlingStrategies.markingOfDataAsInvalid\" what is not recommended. "
|
|
55
54
|
},
|
|
56
55
|
forbiddenUndefinedValue: {
|
|
57
56
|
title: "Forbidden Undefined Value",
|
|
@@ -129,30 +128,30 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
129
128
|
join("\n")
|
|
130
129
|
},
|
|
131
130
|
disallowedKeysFoundInAssociativeArray: {
|
|
132
|
-
title: "Disallowed
|
|
133
|
-
generateDescription: ({ foundDisallowedKeys }) => "
|
|
131
|
+
title: "Disallowed Keys of Associative Array",
|
|
132
|
+
generateDescription: ({ foundDisallowedKeys }) => "The following keys presents in this associative array while these keys are disallowed.\n" +
|
|
134
133
|
foundDisallowedKeys.
|
|
135
134
|
map((foundDisallowedKey) => ` ● ${foundDisallowedKey}`).
|
|
136
135
|
join("\n")
|
|
137
136
|
},
|
|
138
137
|
indexedArrayElementsCountIsLessThanRequiredMinimum: {
|
|
139
|
-
title: "
|
|
140
|
-
generateDescription: ({ minimalElementsCount, actualElementsCount }) => `This value of indexed array
|
|
138
|
+
title: "Too Few Elements in Indexed Array",
|
|
139
|
+
generateDescription: ({ minimalElementsCount, actualElementsCount }) => `This value of indexed array has ${actualElementsCount} elements while at least ` +
|
|
141
140
|
`${minimalElementsCount} expected.`
|
|
142
141
|
},
|
|
143
142
|
indexedArrayElementsCountIsMoreThanAllowedMaximum: {
|
|
144
143
|
title: "Indexed Array has More Elements than Expected Maximum",
|
|
145
|
-
generateDescription: ({ maximalElementsCount, actualElementsCount }) => `This value of indexed array
|
|
144
|
+
generateDescription: ({ maximalElementsCount, actualElementsCount }) => `This value of indexed array has ${actualElementsCount} elements while maximally ` +
|
|
146
145
|
`${maximalElementsCount} expected.`
|
|
147
146
|
},
|
|
148
147
|
indexedArrayOrTupleElementsCountDoesNotMatchWithSpecifiedExactNumber: {
|
|
149
|
-
title: "
|
|
148
|
+
title: "Wrong Exact Number of Element in Indexed Array or Tuple",
|
|
150
149
|
generateDescription: ({ exactElementsCount, actualElementsCount }) => `This value of indexed array or tuple type has ${actualElementsCount} elements while exactly ` +
|
|
151
150
|
`${exactElementsCount} expected.`
|
|
152
151
|
},
|
|
153
152
|
forbiddenNaN_Value: {
|
|
154
153
|
title: "Forbidden NaN Value Of Numeric Property/Element",
|
|
155
|
-
description: "The value of this numeric property
|
|
154
|
+
description: "The value of this numeric property or element is NaN while it has been explicitly forbidden. "
|
|
156
155
|
},
|
|
157
156
|
numericValueIsNotBelongToExpectedNumbersSet: {
|
|
158
157
|
title: "Expected and Actual Numbers Set Mismatch",
|
|
@@ -161,7 +160,7 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
161
160
|
},
|
|
162
161
|
valueIsNotAmongAllowedAlternatives: {
|
|
163
162
|
title: "Disallowed Alternative of Value",
|
|
164
|
-
generateDescription: ({ allowedAlternatives }) => "This value is not among following allowed alternatives
|
|
163
|
+
generateDescription: ({ allowedAlternatives }) => "This value is not among following allowed alternatives:\n" +
|
|
165
164
|
allowedAlternatives.map((allowedAlternative) => ` ○ ${allowedAlternative}`).join("\n")
|
|
166
165
|
},
|
|
167
166
|
numericValueIsSmallerThanRequiredMinimum: {
|
|
@@ -170,29 +169,28 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
170
169
|
},
|
|
171
170
|
numericValueIsGreaterThanAllowedMaximum: {
|
|
172
171
|
title: "Maximal Numeric Value Exceeding",
|
|
173
|
-
generateDescription: ({ allowedMaximum }) => `This value is greater than
|
|
172
|
+
generateDescription: ({ allowedMaximum }) => `This value is greater than allowed maximal value ${allowedMaximum}.`
|
|
174
173
|
},
|
|
175
174
|
charactersCountIsLessThanRequired: {
|
|
176
175
|
title: "Minimal Characters Count Fall Short",
|
|
177
|
-
generateDescription: ({ minimalCharactersCount, realCharactersCount }) => `This string
|
|
176
|
+
generateDescription: ({ minimalCharactersCount, realCharactersCount }) => `This string has ${realCharactersCount} characters while at least ${minimalCharactersCount} required.`
|
|
178
177
|
},
|
|
179
178
|
charactersCountIsMoreThanAllowed: {
|
|
180
179
|
title: "Maximal Characters Count Exceeding",
|
|
181
|
-
generateDescription: ({ maximalCharactersCount, realCharactersCount }) => `This string
|
|
182
|
-
"as maximum."
|
|
180
|
+
generateDescription: ({ maximalCharactersCount, realCharactersCount }) => `This string has ${realCharactersCount} characters while maximally ${maximalCharactersCount} allowed.`
|
|
183
181
|
},
|
|
184
182
|
charactersCountDoesNotMatchWithSpecified: {
|
|
185
183
|
title: "Fixed Characters Count Mismatch",
|
|
186
|
-
generateDescription: ({ fixedCharactersCount, realCharactersCount }) => `The value has ${realCharactersCount} characters while exactly ${fixedCharactersCount}
|
|
184
|
+
generateDescription: ({ fixedCharactersCount, realCharactersCount }) => `The value has ${realCharactersCount} characters while exactly ${fixedCharactersCount} expected.`
|
|
187
185
|
},
|
|
188
186
|
forbiddenCharactersFound: {
|
|
189
|
-
title: "Forbidden Characters
|
|
190
|
-
generateDescription: ({ foundForbiddenCharacters }) => "
|
|
187
|
+
title: "Forbidden Characters",
|
|
188
|
+
generateDescription: ({ foundForbiddenCharacters }) => "This string including the following characters which has been forbidden:\n" +
|
|
191
189
|
foundForbiddenCharacters.map((character) => `● ${character}`).join("\n")
|
|
192
190
|
},
|
|
193
191
|
regularExpressionMismatch: {
|
|
194
192
|
title: "Regular Expression Mismatch",
|
|
195
|
-
generateDescription: ({ regularExpression }) => `This string
|
|
193
|
+
generateDescription: ({ regularExpression }) => `This string does not match with specified regular expression:\n ${regularExpression.toString()}`
|
|
196
194
|
},
|
|
197
195
|
disallowedBooleanValueVariant: {
|
|
198
196
|
title: "Disallowed Boolean Variant",
|
|
@@ -201,7 +199,7 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
201
199
|
unsupportedValueType: {
|
|
202
200
|
title: "Unsupported Value Type",
|
|
203
201
|
generateDescription: ({ targetPropertyType }) => `This value has type ${targetPropertyType} which currently not supported as any other type incompatible ` +
|
|
204
|
-
"
|
|
202
|
+
"with JSON."
|
|
205
203
|
}
|
|
206
204
|
},
|
|
207
205
|
throwableErrors: {
|
|
@@ -226,23 +224,22 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
226
224
|
},
|
|
227
225
|
propertyUndefinedabilityNotSpecified: {
|
|
228
226
|
title: "Property Undefinedability has not been Specified",
|
|
229
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "It has not been specified how to process the undefined value of the property
|
|
227
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "It has not been specified how to process the undefined value of the property " +
|
|
230
228
|
`\`${targetPropertyDotSeparatedQualifiedName}\`. ` +
|
|
231
229
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
232
230
|
},
|
|
233
231
|
propertyNullabilityNotSpecified: {
|
|
234
232
|
title: "Property Nullability has not been Specified",
|
|
235
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "It has not been specified how to process the null value of the property
|
|
233
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "It has not been specified how to process the null value of the property " +
|
|
236
234
|
`\`${targetPropertyDotSeparatedQualifiedName}\`. ` +
|
|
237
235
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
238
236
|
},
|
|
239
237
|
dataTypeNotSpecified: {
|
|
240
|
-
title: "
|
|
238
|
+
title: "Unsupported or Not Specified Data Type",
|
|
241
239
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, specifiedStringifiedType, documentationPageAnchor }) => (isUndefined(specifiedStringifiedType) ?
|
|
242
240
|
"Data type has not been " :
|
|
243
241
|
`Unsupported data type "${specifiedStringifiedType} has been"`) +
|
|
244
242
|
`specified for property/element "${targetPropertyDotSeparatedQualifiedName}". ` +
|
|
245
|
-
"It is possible only with TypeScript error. " +
|
|
246
243
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
247
244
|
},
|
|
248
245
|
unableToDeletePropertyWithOutdatedKey: {
|
|
@@ -255,16 +252,13 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
255
252
|
unableToChangePropertyDescriptors: {
|
|
256
253
|
title: "Unable to Change Property Descriptors",
|
|
257
254
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `Unable to change the descriptions of property "${targetPropertyDotSeparatedQualifiedName}" because this ` +
|
|
258
|
-
"property is not configurable while the processing approach is the manipulations with source object
|
|
259
|
-
"\"mustLeaveEvenRenamed\" has not been set to true. " +
|
|
255
|
+
"property is not configurable while the processing approach is the manipulations with source object. " +
|
|
260
256
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
261
257
|
},
|
|
262
258
|
unableToUpdatePropertyValue: {
|
|
263
259
|
title: "Unable to Update Property Value",
|
|
264
260
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `The updating of the property "${targetPropertyDotSeparatedQualifiedName}" has been requested via default ` +
|
|
265
261
|
"value substitution or pre-validation modification while this property is read-only. " +
|
|
266
|
-
"This error has been thrown because the error handling strategy \"onUnableToUnableToUpdatePropertyValue\" " +
|
|
267
|
-
"is \"ErrorHandlingStrategies.throwingOfError\" which is default. " +
|
|
268
262
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
269
263
|
},
|
|
270
264
|
mutuallyExclusiveAssociativeArrayKeysLimitations: {
|
|
@@ -274,19 +268,23 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
274
268
|
"root associative array " :
|
|
275
269
|
`associative array "${targetPropertyDotSeparatedQualifiedName}" `) +
|
|
276
270
|
"what it the contradiction. " +
|
|
277
|
-
"
|
|
271
|
+
"Either allowed keys or forbidden ones can be specified but not both." +
|
|
278
272
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
279
273
|
},
|
|
280
274
|
incompatibleValuesTypesAlternatives: {
|
|
281
275
|
title: "Incompatible Values Types Alternatives",
|
|
282
|
-
generateDescription: ({
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
276
|
+
generateDescription: ({ isIndexedArrayLikeType, documentationPageAnchor }) => "The" +
|
|
277
|
+
(isIndexedArrayLikeType ?
|
|
278
|
+
"`ValuesTypesIDs.indexedArray` (aliased as `Array`) and `ValuesTypesIDs.tuple`" :
|
|
279
|
+
"`ValuesTypesIDs.fixedSchemaObject` (aliased as `Object`) and `ValuesTypesIDs.associativeArray`") +
|
|
280
|
+
"are incompatible alternatives of `ValuesTypesIDs.polymorphic` because from the viewpoint of ECMAScript " +
|
|
281
|
+
"both are the " +
|
|
282
|
+
(isIndexedArrayLikeType ? "`Array`" : "`Object`") +
|
|
283
|
+
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
286
284
|
},
|
|
287
285
|
bothAllowedAndForbiddenCharactersSpecified: {
|
|
288
286
|
title: "Both Allowed And Forbidden Characters Specified",
|
|
289
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "Both allowed and forbidden characters has been specified for property/element " +
|
|
287
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => "Both allowed and forbidden characters has been specified for string-type property/element " +
|
|
290
288
|
`${targetPropertyDotSeparatedQualifiedName} what it the contradiction. ` +
|
|
291
289
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
292
290
|
}
|
|
@@ -294,13 +292,12 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
294
292
|
warnings: {
|
|
295
293
|
preValidationModificationFailed: {
|
|
296
294
|
title: "Pre-validation Modification Failed",
|
|
297
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, stringifiedCaughtError, documentationPageAnchor }) => "The
|
|
295
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, stringifiedCaughtError, documentationPageAnchor }) => "The error has occurred during the pre-validation modification of the property/element " +
|
|
298
296
|
`"${targetPropertyDotSeparatedQualifiedName}".\n` +
|
|
299
297
|
`${stringifiedCaughtError}\n` +
|
|
300
298
|
"This error has been reported as warning because the error handling strategy " +
|
|
301
299
|
"\"onPreValidationModificationFailed\" is \"ErrorHandlingStrategies.warningWithoutMarkingOfDataAsInvalid\" " +
|
|
302
|
-
"what is not recommended
|
|
303
|
-
"does not respect all possible variations of the source data and could cause the subsequent errors. " +
|
|
300
|
+
"what is not recommended. " +
|
|
304
301
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
305
302
|
},
|
|
306
303
|
unableToDeletePropertyWithOutdatedKey: {
|
|
@@ -308,14 +305,18 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
308
305
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, propertyNewKey, documentationPageAnchor }) => `Unable to delete the property "${targetPropertyDotSeparatedQualifiedName}" after renaming to ` +
|
|
309
306
|
`"${propertyNewKey}" because it is not configurable while the processing approach is the manipulations ` +
|
|
310
307
|
"with source object and \"mustLeaveEvenRenamed\" has not been set to true. " +
|
|
308
|
+
"This error has been reported as warning because the error handling strategy " +
|
|
309
|
+
"\"unableToChangePropertyDescriptors\" is \"ErrorHandlingStrategies.warningWithoutMarkingOfDataAsInvalid\" " +
|
|
310
|
+
"what is not recommended. " +
|
|
311
311
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
312
312
|
},
|
|
313
313
|
unableToChangePropertyDescriptors: {
|
|
314
314
|
title: "Unable to Change Property Descriptors",
|
|
315
|
-
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `Unable to change the descriptions of property "${targetPropertyDotSeparatedQualifiedName}"
|
|
315
|
+
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `Unable to change the descriptions of property "${targetPropertyDotSeparatedQualifiedName}" because this ` +
|
|
316
|
+
"property is not configurable while the processing approach is the manipulations with source object. " +
|
|
316
317
|
"This error has been reported as warning because the error handling strategy " +
|
|
317
318
|
"\"unableToChangePropertyDescriptors\" is \"ErrorHandlingStrategies.warningWithoutMarkingOfDataAsInvalid\" " +
|
|
318
|
-
"what is not recommended
|
|
319
|
+
"what is not recommended. " +
|
|
319
320
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
320
321
|
},
|
|
321
322
|
unableToUpdatePropertyValue: {
|
|
@@ -323,8 +324,8 @@ const rawObjectDataProcessorLocalization__english = {
|
|
|
323
324
|
generateDescription: ({ targetPropertyDotSeparatedQualifiedName, documentationPageAnchor }) => `The updating of the property "${targetPropertyDotSeparatedQualifiedName}" has been requested via default ` +
|
|
324
325
|
"value substitution or pre-validation modification while this property is read-only. " +
|
|
325
326
|
"This error has been reported as warning because the error handling strategy " +
|
|
326
|
-
"\"
|
|
327
|
-
"what is not recommended
|
|
327
|
+
"\"unableToChangePropertyDescriptors\" is \"ErrorHandlingStrategies.warningWithoutMarkingOfDataAsInvalid\" " +
|
|
328
|
+
"what is not recommended. " +
|
|
328
329
|
rawObjectDataProcessorLocalization__english.generateSeeMoreSentence({ documentationPageAnchor })
|
|
329
330
|
}
|
|
330
331
|
},
|
|
@@ -57,18 +57,16 @@ export { default as ConfigFileNotFoundError } from "./Errors/ConfigFileNotFound/
|
|
|
57
57
|
export { default as configFileNotFoundErrorLocalization__english } from "./Errors/ConfigFileNotFound/ConfigFileNotFoundErrorLocalization.english";
|
|
58
58
|
export { default as CrossBrowserIssueError } from "./Errors/CrossBrowserIssue/CrossBrowserIssueError";
|
|
59
59
|
export { default as crossBrowserIssueErrorLocalization__english } from "./Errors/CrossBrowserIssue/CrossBrowserIssueErrorLocalization.english";
|
|
60
|
+
export { default as DOM_ElementRetrievingFailedError } from "./Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError";
|
|
61
|
+
export { default as DOM_ElementRetrievingFailedErrorLocalization__english } from "./Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedErrorLocalization.english";
|
|
60
62
|
export { default as DataRetrievingFailedError } from "./Errors/DataRetrievingFailed/DataRetrievingFailedError";
|
|
61
63
|
export { default as dataRetrievingFailedErrorLocalization__english } from "./Errors/DataRetrievingFailed/DataRetrievingFailedErrorLocalization.english";
|
|
62
64
|
export { default as DataSubmittingFailedError } from "./Errors/DataSubmittingFailed/DataSubmittingFailedError";
|
|
63
65
|
export { default as dataSubmittingFailedErrorLocalization__english } from "./Errors/DataSubmittingFailed/DataSubmittingFailedErrorLocalization.english";
|
|
64
|
-
export { default as DOM_ElementRetrievingFailedError } from "./Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError";
|
|
65
|
-
export { default as DOM_ElementRetrievingFailedErrorLocalization__english } from "./Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedErrorLocalization.english";
|
|
66
66
|
export { default as FileReadingFailedError } from "./Errors/FileReadingFailed/FileReadingFailedError";
|
|
67
67
|
export { default as fileReadingFailedErrorLocalization__english } from "./Errors/FileReadingFailed/FileReadingFailedErrorLocalization.english";
|
|
68
68
|
export { default as FileWritingFailedError } from "./Errors/FileWritingFailed/FileWritingFailedError";
|
|
69
69
|
export { default as fileWritingFailedErrorLocalization__english } from "./Errors/FileWritingFailed/FileWritingFailedErrorLocalization.english";
|
|
70
|
-
export { default as HTTP_ResponseBodyParsingFailureError } from "./Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureError";
|
|
71
|
-
export { default as HTTP_ResponseBodyParsingFailureErrorLocalization__english } from "./Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureErrorLocalization.english";
|
|
72
70
|
export { default as ImproperUsageError } from "./Errors/ImproperUsage/ImproperUsageError";
|
|
73
71
|
export { default as improperUsageErrorLocalization__english } from "./Errors/ImproperUsage/ImproperUsageErrorLocalization.english";
|
|
74
72
|
export { default as IncompatiblePropertiesInObjectTypeParameterError } from "./Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterError";
|
|
@@ -87,14 +85,16 @@ export { default as UnexpectedEventError } from "./Errors/UnexpectedEvent/Unexpe
|
|
|
87
85
|
export { default as unexpectedEventErrorLocalization__english } from "./Errors/UnexpectedEvent/UnexpectedEventErrorLocalization.english";
|
|
88
86
|
export { default as UnsupportedScenarioError } from "./Errors/UnsupportedScenario/UnsupportedScenarioError";
|
|
89
87
|
export { default as unsupportedScenarioErrorLocalization__english } from "./Errors/UnsupportedScenario/UnsupportedScenarioErrorLocalization.english";
|
|
88
|
+
export { default as HTTP_ResponseBodyParsingFailureError } from "./Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureError";
|
|
89
|
+
export { default as HTTP_ResponseBodyParsingFailureErrorLocalization__english } from "./Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureErrorLocalization.english";
|
|
90
90
|
export { default as encodeFileToBase64 } from "./Files/encodeFileToBase64";
|
|
91
91
|
export { default as StringTypeID_Generator } from "./IDsGenerators/StringTypeID_Generator";
|
|
92
|
-
export { default as PoliteErrorsMessagesBuilder } from "./Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilder";
|
|
93
|
-
export { default as PoliteErrorsMessagesBuilder__English } from "./Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilderLocalization.english";
|
|
94
92
|
export type { Log, ErrorLog, ThrownErrorLog, WarningLog, SuccessLog, InfoLog } from "./Logging/Logs";
|
|
95
93
|
export type { default as ILogger } from "./Logging/ILogger";
|
|
96
94
|
export { default as Logger } from "./Logging/Logger";
|
|
97
95
|
export { default as loggerLocalization__english } from "./Logging/LoggerLocalization.english";
|
|
96
|
+
export { default as PoliteErrorsMessagesBuilder } from "./Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilder";
|
|
97
|
+
export { default as PoliteErrorsMessagesBuilder__English } from "./Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilderLocalization.english";
|
|
98
98
|
export { default as addEntriesToMap } from "./Maps/addEntriesToMap";
|
|
99
99
|
export { default as createMapBasedOnOtherMap } from "./Maps/createMapBasedOnOtherMap";
|
|
100
100
|
export { default as filterMap } from "./Maps/filterMap";
|
|
@@ -116,17 +116,18 @@ export { default as roundUpToSpecificIntegerPlaceValue } from "./Numbers/roundUp
|
|
|
116
116
|
export { default as separateEach3_DigitsGroupWithComma } from "./Numbers/separateEach3_DigitsGroupWithComma";
|
|
117
117
|
export { default as separateEach4_DigitsGroupWithComma } from "./Numbers/separateEach4_DigitsGroupWithComma";
|
|
118
118
|
export { default as getObjectPropertySafely } from "./Objects/getObjectPropertySafely";
|
|
119
|
+
export { default as PaginationCollection } from "./Pagination/PaginationCollection";
|
|
119
120
|
export { default as computeFirstItemNumberForSpecificPaginationPage } from "./Pagination/computeFirstItemNumberForSpecificPaginationPage";
|
|
120
121
|
export { default as computeLastItemNumberForSpecificPaginationPage } from "./Pagination/computeLastItemNumberForSpecificPaginationPage";
|
|
121
122
|
export { default as getItemsOfPaginationPage } from "./Pagination/getItemsOfPaginationPage";
|
|
122
|
-
export { default as PaginationCollection } from "./Pagination/PaginationCollection";
|
|
123
123
|
export { default as PromisesQueue } from "./Promises/PromisesQueue";
|
|
124
|
-
export { default as getRandomString, RandomStringsGenerator } from "./RandomValuesGenerators/getRandomString/getRandomString";
|
|
125
124
|
export { default as getRandomArrayElement } from "./RandomValuesGenerators/getRandomArrayElement";
|
|
126
125
|
export { default as getRandomBoolean } from "./RandomValuesGenerators/getRandomBoolean";
|
|
127
126
|
export { default as getRandomInteger } from "./RandomValuesGenerators/getRandomInteger";
|
|
128
127
|
export { default as getRandomLatinCharacter } from "./RandomValuesGenerators/getRandomLatinCharacter";
|
|
129
128
|
export { default as getRandomObjectPropertyValue } from "./RandomValuesGenerators/getRandomObjectPropertyValue";
|
|
129
|
+
export { default as getRandomString, RandomStringsGenerator } from "./RandomValuesGenerators/getRandomString/getRandomString";
|
|
130
|
+
export { default as gettingOfRandomStringLocalization__english } from "./RandomValuesGenerators/getRandomString/gettingOfRandomStringLocalization__english";
|
|
130
131
|
export { default as getRandomSubarray } from "./RandomValuesGenerators/getRandomSubarray";
|
|
131
132
|
export { default as getSpecificBooleanValueWithProbability } from "./RandomValuesGenerators/getSpecificBooleanValueWithProbability";
|
|
132
133
|
export { default as removeRandomArrayElement } from "./RandomValuesGenerators/removeRandomArrayElement";
|
|
@@ -153,18 +154,18 @@ export { default as extractMatchingsWithRegularExpression, type ExtractingOfMatc
|
|
|
153
154
|
export { default as replaceMatchesWithRegularExpressionToDynamicValue, type ReplacingOfMatchesWithRegularExpressionToDynamicValue } from "./Strings/RegularExpressions/replaceMatchesWithRegularExpressionToDynamicValue";
|
|
154
155
|
export { default as appendLastFileNameExtension } from "./Strings/URI/FilesAndDirectories/FileNameExtensions/appendLastFileNameExtension";
|
|
155
156
|
export { default as extractAllFileNameExtensions } from "./Strings/URI/FilesAndDirectories/FileNameExtensions/extractAllFileNameExtensions";
|
|
156
|
-
export { default as extractFileNameWithAllExtensionsFromPath } from "./Strings/URI/FilesAndDirectories/extractFileNameWithAllExtensionsFromPath";
|
|
157
|
-
export { default as extractFileNameWithoutAnyExtensions } from "./Strings/URI/FilesAndDirectories/Stem/extractFileNameWithoutAnyExtensions";
|
|
158
|
-
export { default as extractFileNameWithoutLastExtension } from "./Strings/URI/FilesAndDirectories/extractFileNameWithoutLastExtension";
|
|
159
157
|
export { default as extractLastExtensionOfFileName } from "./Strings/URI/FilesAndDirectories/FileNameExtensions/extractLastExtensionOfFileName";
|
|
160
158
|
export { default as removeAllFileNameExtensions } from "./Strings/URI/FilesAndDirectories/FileNameExtensions/removeAllFileNameExtensions";
|
|
159
|
+
export { default as extractFileNameWithoutAnyExtensions } from "./Strings/URI/FilesAndDirectories/Stem/extractFileNameWithoutAnyExtensions";
|
|
160
|
+
export { default as extractFileNameWithAllExtensionsFromPath } from "./Strings/URI/FilesAndDirectories/extractFileNameWithAllExtensionsFromPath";
|
|
161
|
+
export { default as extractFileNameWithoutLastExtension } from "./Strings/URI/FilesAndDirectories/extractFileNameWithoutLastExtension";
|
|
161
162
|
export { default as appendFragmentToURI } from "./Strings/URI/Fragment/appendFragmentToURI";
|
|
163
|
+
export { default as getURI_Fragment } from "./Strings/URI/Fragment/getURI_Fragment";
|
|
162
164
|
export { default as explodeURI_PathToSegments } from "./Strings/URI/PathSegments/explodeURI_PathToSegments";
|
|
165
|
+
export { default as replaceLastURI_PathSegment } from "./Strings/URI/PathSegments/replaceLastURI_PathSegment";
|
|
163
166
|
export { default as generateMailtoURI_Scheme } from "./Strings/URI/generateMailtoURI_Scheme";
|
|
164
|
-
export { default as getURI_Fragment } from "./Strings/URI/Fragment/getURI_Fragment";
|
|
165
167
|
export { default as getURI_PartWithoutFragment } from "./Strings/URI/getURI_PartWithoutFragment";
|
|
166
168
|
export { default as removeSpecificSegmentsFromURI_Path } from "./Strings/URI/removeSpecificSegmentsFromURI_Path";
|
|
167
|
-
export { default as replaceLastURI_PathSegment } from "./Strings/URI/PathSegments/replaceLastURI_PathSegment";
|
|
168
169
|
export { default as adjustCharactersCount } from "./Strings/adjustCharactersCount";
|
|
169
170
|
export { default as appendCharacterIfItDoesNotPresentInLastPosition } from "./Strings/appendCharacterIfItDoesNotPresentInLastPosition";
|
|
170
171
|
export { default as ArbitraryValueFormatter, stringifyAndFormatArbitraryValue } from "./Strings/ArbitraryValueFormatter";
|
|
@@ -201,8 +202,8 @@ export { default as isArrayOfCertainTypeElements } from "./TypeGuards/Arrays/isA
|
|
|
201
202
|
export { default as isArrayOfLength, IsArrayOfLengthCheck } from "./TypeGuards/Arrays/isArrayOfLength";
|
|
202
203
|
export { default as isEmptyArray } from "./TypeGuards/Arrays/isEmptyArray";
|
|
203
204
|
export { default as isNonEmptyArray } from "./TypeGuards/Arrays/isNonEmptyArray";
|
|
204
|
-
export { default as isNeitherUndefinedNorNull } from "./TypeGuards/EmptyTypes/isNeitherUndefinedNorNull";
|
|
205
205
|
export { default as isEitherUndefinedOrNull } from "./TypeGuards/EmptyTypes/isEitherUndefinedOrNull";
|
|
206
|
+
export { default as isNeitherUndefinedNorNull } from "./TypeGuards/EmptyTypes/isNeitherUndefinedNorNull";
|
|
206
207
|
export { default as isNotNull } from "./TypeGuards/EmptyTypes/isNotNull";
|
|
207
208
|
export { default as isNotUndefined } from "./TypeGuards/EmptyTypes/isNotUndefined";
|
|
208
209
|
export { default as isNull } from "./TypeGuards/EmptyTypes/isNull";
|
|
@@ -210,6 +211,7 @@ export { default as isUndefined } from "./TypeGuards/EmptyTypes/isUndefined";
|
|
|
210
211
|
export { default as isBigInt } from "./TypeGuards/Numbers/isBigInt";
|
|
211
212
|
export { default as isDecimalFractionOfAnySign } from "./TypeGuards/Numbers/isDecimalFractionOfAnySign";
|
|
212
213
|
export { default as isIntegerOnAnySign } from "./TypeGuards/Numbers/isIntegerOnAnySign";
|
|
214
|
+
export { default as isIntegerOfAnySign } from "./TypeGuards/Numbers/isIntegerOfAnySign";
|
|
213
215
|
export { default as isNaturalNumber } from "./TypeGuards/Numbers/isNaturalNumber";
|
|
214
216
|
export { default as isNaturalNumberOrZero } from "./TypeGuards/Numbers/isNaturalNumberOrZero";
|
|
215
217
|
export { default as isNegativeDecimalFraction } from "./TypeGuards/Numbers/isNegativeDecimalFraction";
|
|
@@ -56,18 +56,16 @@ export { default as ConfigFileNotFoundError } from "./Errors/ConfigFileNotFound/
|
|
|
56
56
|
export { default as configFileNotFoundErrorLocalization__english } from "./Errors/ConfigFileNotFound/ConfigFileNotFoundErrorLocalization.english";
|
|
57
57
|
export { default as CrossBrowserIssueError } from "./Errors/CrossBrowserIssue/CrossBrowserIssueError";
|
|
58
58
|
export { default as crossBrowserIssueErrorLocalization__english } from "./Errors/CrossBrowserIssue/CrossBrowserIssueErrorLocalization.english";
|
|
59
|
+
export { default as DOM_ElementRetrievingFailedError } from "./Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError";
|
|
60
|
+
export { default as DOM_ElementRetrievingFailedErrorLocalization__english } from "./Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedErrorLocalization.english";
|
|
59
61
|
export { default as DataRetrievingFailedError } from "./Errors/DataRetrievingFailed/DataRetrievingFailedError";
|
|
60
62
|
export { default as dataRetrievingFailedErrorLocalization__english } from "./Errors/DataRetrievingFailed/DataRetrievingFailedErrorLocalization.english";
|
|
61
63
|
export { default as DataSubmittingFailedError } from "./Errors/DataSubmittingFailed/DataSubmittingFailedError";
|
|
62
64
|
export { default as dataSubmittingFailedErrorLocalization__english } from "./Errors/DataSubmittingFailed/DataSubmittingFailedErrorLocalization.english";
|
|
63
|
-
export { default as DOM_ElementRetrievingFailedError } from "./Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedError";
|
|
64
|
-
export { default as DOM_ElementRetrievingFailedErrorLocalization__english } from "./Errors/DOM_ElementRetrievingFailed/DOM_ElementRetrievingFailedErrorLocalization.english";
|
|
65
65
|
export { default as FileReadingFailedError } from "./Errors/FileReadingFailed/FileReadingFailedError";
|
|
66
66
|
export { default as fileReadingFailedErrorLocalization__english } from "./Errors/FileReadingFailed/FileReadingFailedErrorLocalization.english";
|
|
67
67
|
export { default as FileWritingFailedError } from "./Errors/FileWritingFailed/FileWritingFailedError";
|
|
68
68
|
export { default as fileWritingFailedErrorLocalization__english } from "./Errors/FileWritingFailed/FileWritingFailedErrorLocalization.english";
|
|
69
|
-
export { default as HTTP_ResponseBodyParsingFailureError } from "./Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureError";
|
|
70
|
-
export { default as HTTP_ResponseBodyParsingFailureErrorLocalization__english } from "./Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureErrorLocalization.english";
|
|
71
69
|
export { default as ImproperUsageError } from "./Errors/ImproperUsage/ImproperUsageError";
|
|
72
70
|
export { default as improperUsageErrorLocalization__english } from "./Errors/ImproperUsage/ImproperUsageErrorLocalization.english";
|
|
73
71
|
export { default as IncompatiblePropertiesInObjectTypeParameterError } from "./Errors/IncompatiblePropertiesInObjectTypeParameter/IncompatiblePropertiesInObjectTypeParameterError";
|
|
@@ -86,12 +84,14 @@ export { default as UnexpectedEventError } from "./Errors/UnexpectedEvent/Unexpe
|
|
|
86
84
|
export { default as unexpectedEventErrorLocalization__english } from "./Errors/UnexpectedEvent/UnexpectedEventErrorLocalization.english";
|
|
87
85
|
export { default as UnsupportedScenarioError } from "./Errors/UnsupportedScenario/UnsupportedScenarioError";
|
|
88
86
|
export { default as unsupportedScenarioErrorLocalization__english } from "./Errors/UnsupportedScenario/UnsupportedScenarioErrorLocalization.english";
|
|
87
|
+
export { default as HTTP_ResponseBodyParsingFailureError } from "./Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureError";
|
|
88
|
+
export { default as HTTP_ResponseBodyParsingFailureErrorLocalization__english } from "./Errors/HTTP/ResponseBodyParsingFailure/HTTP_ResponseBodyParsingFailureErrorLocalization.english";
|
|
89
89
|
export { default as encodeFileToBase64 } from "./Files/encodeFileToBase64";
|
|
90
90
|
export { default as StringTypeID_Generator } from "./IDsGenerators/StringTypeID_Generator";
|
|
91
|
-
export { default as PoliteErrorsMessagesBuilder } from "./Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilder";
|
|
92
|
-
export { default as PoliteErrorsMessagesBuilder__English } from "./Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilderLocalization.english";
|
|
93
91
|
export { default as Logger } from "./Logging/Logger";
|
|
94
92
|
export { default as loggerLocalization__english } from "./Logging/LoggerLocalization.english";
|
|
93
|
+
export { default as PoliteErrorsMessagesBuilder } from "./Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilder";
|
|
94
|
+
export { default as PoliteErrorsMessagesBuilder__English } from "./Logging/PoliteErrorsMessagesBuilder/PoliteErrorsMessagesBuilderLocalization.english";
|
|
95
95
|
export { default as addEntriesToMap } from "./Maps/addEntriesToMap";
|
|
96
96
|
export { default as createMapBasedOnOtherMap } from "./Maps/createMapBasedOnOtherMap";
|
|
97
97
|
export { default as filterMap } from "./Maps/filterMap";
|
|
@@ -113,17 +113,18 @@ export { default as roundUpToSpecificIntegerPlaceValue } from "./Numbers/roundUp
|
|
|
113
113
|
export { default as separateEach3_DigitsGroupWithComma } from "./Numbers/separateEach3_DigitsGroupWithComma";
|
|
114
114
|
export { default as separateEach4_DigitsGroupWithComma } from "./Numbers/separateEach4_DigitsGroupWithComma";
|
|
115
115
|
export { default as getObjectPropertySafely } from "./Objects/getObjectPropertySafely";
|
|
116
|
+
export { default as PaginationCollection } from "./Pagination/PaginationCollection";
|
|
116
117
|
export { default as computeFirstItemNumberForSpecificPaginationPage } from "./Pagination/computeFirstItemNumberForSpecificPaginationPage";
|
|
117
118
|
export { default as computeLastItemNumberForSpecificPaginationPage } from "./Pagination/computeLastItemNumberForSpecificPaginationPage";
|
|
118
119
|
export { default as getItemsOfPaginationPage } from "./Pagination/getItemsOfPaginationPage";
|
|
119
|
-
export { default as PaginationCollection } from "./Pagination/PaginationCollection";
|
|
120
120
|
export { default as PromisesQueue } from "./Promises/PromisesQueue";
|
|
121
|
-
export { default as getRandomString, RandomStringsGenerator } from "./RandomValuesGenerators/getRandomString/getRandomString";
|
|
122
121
|
export { default as getRandomArrayElement } from "./RandomValuesGenerators/getRandomArrayElement";
|
|
123
122
|
export { default as getRandomBoolean } from "./RandomValuesGenerators/getRandomBoolean";
|
|
124
123
|
export { default as getRandomInteger } from "./RandomValuesGenerators/getRandomInteger";
|
|
125
124
|
export { default as getRandomLatinCharacter } from "./RandomValuesGenerators/getRandomLatinCharacter";
|
|
126
125
|
export { default as getRandomObjectPropertyValue } from "./RandomValuesGenerators/getRandomObjectPropertyValue";
|
|
126
|
+
export { default as getRandomString, RandomStringsGenerator } from "./RandomValuesGenerators/getRandomString/getRandomString";
|
|
127
|
+
export { default as gettingOfRandomStringLocalization__english } from "./RandomValuesGenerators/getRandomString/gettingOfRandomStringLocalization__english";
|
|
127
128
|
export { default as getRandomSubarray } from "./RandomValuesGenerators/getRandomSubarray";
|
|
128
129
|
export { default as getSpecificBooleanValueWithProbability } from "./RandomValuesGenerators/getSpecificBooleanValueWithProbability";
|
|
129
130
|
export { default as removeRandomArrayElement } from "./RandomValuesGenerators/removeRandomArrayElement";
|
|
@@ -150,18 +151,18 @@ export { default as extractMatchingsWithRegularExpression } from "./Strings/Regu
|
|
|
150
151
|
export { default as replaceMatchesWithRegularExpressionToDynamicValue } from "./Strings/RegularExpressions/replaceMatchesWithRegularExpressionToDynamicValue";
|
|
151
152
|
export { default as appendLastFileNameExtension } from "./Strings/URI/FilesAndDirectories/FileNameExtensions/appendLastFileNameExtension";
|
|
152
153
|
export { default as extractAllFileNameExtensions } from "./Strings/URI/FilesAndDirectories/FileNameExtensions/extractAllFileNameExtensions";
|
|
153
|
-
export { default as extractFileNameWithAllExtensionsFromPath } from "./Strings/URI/FilesAndDirectories/extractFileNameWithAllExtensionsFromPath";
|
|
154
|
-
export { default as extractFileNameWithoutAnyExtensions } from "./Strings/URI/FilesAndDirectories/Stem/extractFileNameWithoutAnyExtensions";
|
|
155
|
-
export { default as extractFileNameWithoutLastExtension } from "./Strings/URI/FilesAndDirectories/extractFileNameWithoutLastExtension";
|
|
156
154
|
export { default as extractLastExtensionOfFileName } from "./Strings/URI/FilesAndDirectories/FileNameExtensions/extractLastExtensionOfFileName";
|
|
157
155
|
export { default as removeAllFileNameExtensions } from "./Strings/URI/FilesAndDirectories/FileNameExtensions/removeAllFileNameExtensions";
|
|
156
|
+
export { default as extractFileNameWithoutAnyExtensions } from "./Strings/URI/FilesAndDirectories/Stem/extractFileNameWithoutAnyExtensions";
|
|
157
|
+
export { default as extractFileNameWithAllExtensionsFromPath } from "./Strings/URI/FilesAndDirectories/extractFileNameWithAllExtensionsFromPath";
|
|
158
|
+
export { default as extractFileNameWithoutLastExtension } from "./Strings/URI/FilesAndDirectories/extractFileNameWithoutLastExtension";
|
|
158
159
|
export { default as appendFragmentToURI } from "./Strings/URI/Fragment/appendFragmentToURI";
|
|
160
|
+
export { default as getURI_Fragment } from "./Strings/URI/Fragment/getURI_Fragment";
|
|
159
161
|
export { default as explodeURI_PathToSegments } from "./Strings/URI/PathSegments/explodeURI_PathToSegments";
|
|
162
|
+
export { default as replaceLastURI_PathSegment } from "./Strings/URI/PathSegments/replaceLastURI_PathSegment";
|
|
160
163
|
export { default as generateMailtoURI_Scheme } from "./Strings/URI/generateMailtoURI_Scheme";
|
|
161
|
-
export { default as getURI_Fragment } from "./Strings/URI/Fragment/getURI_Fragment";
|
|
162
164
|
export { default as getURI_PartWithoutFragment } from "./Strings/URI/getURI_PartWithoutFragment";
|
|
163
165
|
export { default as removeSpecificSegmentsFromURI_Path } from "./Strings/URI/removeSpecificSegmentsFromURI_Path";
|
|
164
|
-
export { default as replaceLastURI_PathSegment } from "./Strings/URI/PathSegments/replaceLastURI_PathSegment";
|
|
165
166
|
export { default as adjustCharactersCount } from "./Strings/adjustCharactersCount";
|
|
166
167
|
export { default as appendCharacterIfItDoesNotPresentInLastPosition } from "./Strings/appendCharacterIfItDoesNotPresentInLastPosition";
|
|
167
168
|
export { default as ArbitraryValueFormatter, stringifyAndFormatArbitraryValue } from "./Strings/ArbitraryValueFormatter";
|
|
@@ -198,8 +199,8 @@ export { default as isArrayOfCertainTypeElements } from "./TypeGuards/Arrays/isA
|
|
|
198
199
|
export { default as isArrayOfLength, IsArrayOfLengthCheck } from "./TypeGuards/Arrays/isArrayOfLength";
|
|
199
200
|
export { default as isEmptyArray } from "./TypeGuards/Arrays/isEmptyArray";
|
|
200
201
|
export { default as isNonEmptyArray } from "./TypeGuards/Arrays/isNonEmptyArray";
|
|
201
|
-
export { default as isNeitherUndefinedNorNull } from "./TypeGuards/EmptyTypes/isNeitherUndefinedNorNull";
|
|
202
202
|
export { default as isEitherUndefinedOrNull } from "./TypeGuards/EmptyTypes/isEitherUndefinedOrNull";
|
|
203
|
+
export { default as isNeitherUndefinedNorNull } from "./TypeGuards/EmptyTypes/isNeitherUndefinedNorNull";
|
|
203
204
|
export { default as isNotNull } from "./TypeGuards/EmptyTypes/isNotNull";
|
|
204
205
|
export { default as isNotUndefined } from "./TypeGuards/EmptyTypes/isNotUndefined";
|
|
205
206
|
export { default as isNull } from "./TypeGuards/EmptyTypes/isNull";
|
|
@@ -207,6 +208,7 @@ export { default as isUndefined } from "./TypeGuards/EmptyTypes/isUndefined";
|
|
|
207
208
|
export { default as isBigInt } from "./TypeGuards/Numbers/isBigInt";
|
|
208
209
|
export { default as isDecimalFractionOfAnySign } from "./TypeGuards/Numbers/isDecimalFractionOfAnySign";
|
|
209
210
|
export { default as isIntegerOnAnySign } from "./TypeGuards/Numbers/isIntegerOnAnySign";
|
|
211
|
+
export { default as isIntegerOfAnySign } from "./TypeGuards/Numbers/isIntegerOfAnySign";
|
|
210
212
|
export { default as isNaturalNumber } from "./TypeGuards/Numbers/isNaturalNumber";
|
|
211
213
|
export { default as isNaturalNumberOrZero } from "./TypeGuards/Numbers/isNaturalNumberOrZero";
|
|
212
214
|
export { default as isNegativeDecimalFraction } from "./TypeGuards/Numbers/isNegativeDecimalFraction";
|
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ npm i @yamato-daiwa/es-extensions -E
|
|
|
42
42
|
|
|
43
43
|
<dl>
|
|
44
44
|
|
|
45
|
-
<dt><a href="https://
|
|
45
|
+
<dt><a href="https://ee.yamato-daiwa.com/CoreLibrary/Functionality/AJAX/AJAX_Service/AJAX_Service.english.html"><code>AJAX_Service</code></a></dt>
|
|
46
46
|
<dd>
|
|
47
47
|
<p>
|
|
48
48
|
The facade for convenient usage of <a href="https://developer.mozilla.org/en-US/docs/Glossary/AJAX">AJAX</a> with
|
|
@@ -55,22 +55,22 @@ npm i @yamato-daiwa/es-extensions -E
|
|
|
55
55
|
</li>
|
|
56
56
|
<li>
|
|
57
57
|
Needs some implementation, but there is the pre-made one:
|
|
58
|
-
<a href="https://
|
|
58
|
+
<a href="https://ee.yamato-daiwa.com/CoreLibrary/Functionality/AJAX/FetchAPI_Service/FetchAPI_Service.english.html"><code>FetchAPI_Service</code></a>.
|
|
59
59
|
</li>
|
|
60
60
|
</ul>
|
|
61
61
|
</dd>
|
|
62
62
|
|
|
63
|
-
<dt><a href="https://
|
|
63
|
+
<dt><a href="https://ee.yamato-daiwa.com/CoreLibrary/Functionality/AJAX/FetchAPI_Service/FetchAPI_Service.english.html"><code>FetchAPI_Service</code></a></dt>
|
|
64
64
|
<dd>
|
|
65
|
-
The implementation of <a href="https://
|
|
65
|
+
The implementation of <a href="https://ee.yamato-daiwa.com/CoreLibrary/Functionality/AJAX/AJAX_Service/AJAX_Service.english.html"><code>AJAX_Service</code></a>
|
|
66
66
|
abstract class based on <a href="https://developer.mozilla.org/ru/docs/Web/API/Fetch_API">Fetch API</a>.
|
|
67
67
|
Works with all modern browsers, and also stable in Node.js since version <strong>22</strong>.
|
|
68
68
|
</dd>
|
|
69
69
|
|
|
70
|
-
<dt><a href="https://
|
|
70
|
+
<dt><a href="https://ee.yamato-daiwa.com/CoreLibrary/Functionality/AJAX/URI_QueryParametersSerializer/URI_QueryParametersSerializer.english.html"><code>URI_QueryParametersSerializer</code></a><dt>
|
|
71
71
|
<dd>
|
|
72
72
|
The function-like <a href="https://www.typescriptlang.org/docs/handbook/declaration-files/by-example.html#reusable-types-type-aliases">TypeScript type</a>
|
|
73
|
-
used by <a href="https://
|
|
73
|
+
used by <a href="https://ee.yamato-daiwa.com/CoreLibrary/Functionality/AJAX/AJAX_Service/AJAX_Service.english.html"><code>AJAX_Service</code></a>
|
|
74
74
|
and should be used to implement the custom serializing algorithm for URI query parameters.
|
|
75
75
|
</dd>
|
|
76
76
|
|
|
@@ -173,7 +173,7 @@ npm i @yamato-daiwa/es-extensions -E
|
|
|
173
173
|
<dd>Creates the swallow copy of the target array and replaces the elements by specified indexes.</dd>
|
|
174
174
|
|
|
175
175
|
<dt><a href="https://ee.yamato-daiwa.com/CoreLibrary/Functionality/Arrays/05-ReplacingOfElements/replaceArrayElementsByPredicates/replaceArrayElementsByPredicates.english.html"><code>replaceArrayElementsByPredicates</code></a></dt>
|
|
176
|
-
<dd>Replaces array elements by one or more predicates, herewith the replacing
|
|
176
|
+
<dd>Replaces array elements by one or more predicates, herewith the replacing can be mutable or no depending on dedicated option.</dd>
|
|
177
177
|
|
|
178
178
|
</dl>
|
|
179
179
|
|
|
@@ -206,10 +206,10 @@ npm i @yamato-daiwa/es-extensions -E
|
|
|
206
206
|
<dl>
|
|
207
207
|
|
|
208
208
|
<dt><a href="https://ee.yamato-daiwa.com/CoreLibrary/Functionality/Arrays/07-RemovingOfElements/removeArrayElementsByIndexes/removeArrayElementsByIndexes.english.html"><code>removeArrayElementsByIndexes</code></a></dt>
|
|
209
|
-
<dd>Removes array elements by indexes, herewith the removing
|
|
209
|
+
<dd>Removes array elements by indexes, herewith the removing can be mutable or no depending on dedicated option.</dd>
|
|
210
210
|
|
|
211
211
|
<dt><a href="https://ee.yamato-daiwa.com/CoreLibrary/Functionality/Arrays/07-RemovingOfElements/removeArrayElementsByPredicates/removeArrayElementsByPredicates.english.html"><code>removeArrayElementsByPredicates</code></a></dt>
|
|
212
|
-
<dd>Removes array elements by one or more predicates, herewith the removing
|
|
212
|
+
<dd>Removes array elements by one or more predicates, herewith the removing can be mutable or not depending on dedicated option.</dd>
|
|
213
213
|
|
|
214
214
|
</dl>
|
|
215
215
|
|
|
@@ -230,7 +230,7 @@ npm i @yamato-daiwa/es-extensions -E
|
|
|
230
230
|
|
|
231
231
|
<dt><a href="https://ee.yamato-daiwa.com/CoreLibrary/Functionality/Arrays/09-Other/addElementsToArrayIfTheyAreNotPresentOtherwiseRemove/addElementsToArrayIfTheyAreNotPresentOtherwiseRemove.english.html"><code>addElementsToArrayIfTheyAreNotPresentOtherwiseRemove</code></a></dt>
|
|
232
232
|
<dd>
|
|
233
|
-
<p>Obviously from the function name, add elements to array if they
|
|
233
|
+
<p>Obviously from the function name, add elements to an array if they do not present otherwise remove them.</p>
|
|
234
234
|
<ul>
|
|
235
235
|
<li>
|
|
236
236
|
For all types of elements except numbers, bigints, strings and booleans the element finding predicate must be
|
|
@@ -247,10 +247,9 @@ npm i @yamato-daiwa/es-extensions -E
|
|
|
247
247
|
From the viewpoint of TypeScript, allows to mutate the <code>ReadonlyArray</code> what basically not recommeded
|
|
248
248
|
but in some particular cases almost inevitably.
|
|
249
249
|
</li>
|
|
250
|
-
<li>
|
|
250
|
+
<li>From the viewpoint of JavaScript, does nothing.</li>
|
|
251
251
|
</ul>
|
|
252
252
|
</dd>
|
|
253
|
-
|
|
254
253
|
|
|
255
254
|
</dl>
|
|
256
255
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/es-extensions",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
4
4
|
"description": "Helper functions and classes aimed to reduce the routine code. Build-in TypeScript type safety.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"@yamato-daiwa/style_guides": "0.9.0",
|
|
37
37
|
"rimraf": "6.0.1",
|
|
38
38
|
"timezone-mock": "1.3.6",
|
|
39
|
-
"ts-node": "10.9.2",
|
|
40
39
|
"tsx": "4.20.4",
|
|
41
40
|
"typescript": "5.9.2"
|
|
42
41
|
},
|