@dereekb/util 13.4.1 → 13.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fetch/package.json +2 -2
- package/index.cjs.js +79 -77
- package/index.esm.js +77 -78
- package/package.json +1 -1
- package/src/lib/contact/phone.d.ts +24 -3
- package/src/lib/object/object.d.ts +3 -0
- package/src/lib/string/html.d.ts +51 -0
- package/test/package.json +2 -2
package/fetch/package.json
CHANGED
package/index.cjs.js
CHANGED
|
@@ -1345,13 +1345,11 @@ function _unsupported_iterable_to_array$z(o, minLen) {
|
|
|
1345
1345
|
*/ function invertBooleanReturnFunction(decisionFn) {
|
|
1346
1346
|
var invert = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
1347
1347
|
if (invert) {
|
|
1348
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1349
1348
|
return function() {
|
|
1350
1349
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
1351
1350
|
args[_key] = arguments[_key];
|
|
1352
1351
|
}
|
|
1353
1352
|
var _decisionFn;
|
|
1354
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1355
1353
|
var result = (_decisionFn = decisionFn).call.apply(_decisionFn, [
|
|
1356
1354
|
undefined
|
|
1357
1355
|
].concat(_to_consumable_array$o(args)));
|
|
@@ -1521,7 +1519,6 @@ function _type_of$l(obj) {
|
|
|
1521
1519
|
* @param value - the value to check
|
|
1522
1520
|
* @returns `true` if the value is a non-empty string or is `true`
|
|
1523
1521
|
*/ function isStringOrTrue(value) {
|
|
1524
|
-
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
1525
1522
|
return Boolean(value || value !== '');
|
|
1526
1523
|
}
|
|
1527
1524
|
/**
|
|
@@ -2121,7 +2118,6 @@ function makeModelMap(input, read) {
|
|
|
2121
2118
|
var map = new Map();
|
|
2122
2119
|
input.forEach(function(x) {
|
|
2123
2120
|
var _read;
|
|
2124
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
2125
2121
|
var keys = (_read = read(x)) !== null && _read !== void 0 ? _read : [];
|
|
2126
2122
|
keys.forEach(function(key) {
|
|
2127
2123
|
return map.set(key, x);
|
|
@@ -2144,7 +2140,6 @@ function makeModelMap(input, read) {
|
|
|
2144
2140
|
*/ function useModelOrKey(input, param) {
|
|
2145
2141
|
var useModel = param.useModel, useKey = param.useKey, _param_required = param.required, required = _param_required === void 0 ? false : _param_required;
|
|
2146
2142
|
var result;
|
|
2147
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
2148
2143
|
if (input != null) {
|
|
2149
2144
|
if (isModelKey(input)) {
|
|
2150
2145
|
result = useKey(input);
|
|
@@ -2182,7 +2177,6 @@ function makeModelMap(input, read) {
|
|
|
2182
2177
|
function readModelKey(input) {
|
|
2183
2178
|
var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ref_required = _ref.required, required = _ref_required === void 0 ? false : _ref_required, _ref_read = _ref.read, read = _ref_read === void 0 ? readUniqueModelKey : _ref_read;
|
|
2184
2179
|
var key;
|
|
2185
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
2186
2180
|
switch(typeof input === "undefined" ? "undefined" : _type_of$k(input)){
|
|
2187
2181
|
case 'string':
|
|
2188
2182
|
key = input;
|
|
@@ -2220,7 +2214,6 @@ function readModelKey(input) {
|
|
|
2220
2214
|
* @param input - A model object or a key string
|
|
2221
2215
|
* @returns `true` if the input is a string key
|
|
2222
2216
|
*/ function isModelKey(input) {
|
|
2223
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
2224
2217
|
switch(typeof input === "undefined" ? "undefined" : _type_of$k(input)){
|
|
2225
2218
|
case 'string':
|
|
2226
2219
|
return true;
|
|
@@ -3301,7 +3294,6 @@ function _unsupported_iterable_to_array$s(o, minLen) {
|
|
|
3301
3294
|
var map = new Map();
|
|
3302
3295
|
values.forEach(function(x) {
|
|
3303
3296
|
var _read;
|
|
3304
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
3305
3297
|
var keys = (_read = read(x)) !== null && _read !== void 0 ? _read : [];
|
|
3306
3298
|
keys.forEach(function(key) {
|
|
3307
3299
|
return map.set(key, x);
|
|
@@ -3530,8 +3522,7 @@ function _unsupported_iterable_to_array$s(o, minLen) {
|
|
|
3530
3522
|
*
|
|
3531
3523
|
* @param obj - The value to check.
|
|
3532
3524
|
* @returns Whether the value is a function with a constructor.
|
|
3533
|
-
*/
|
|
3534
|
-
function isObjectWithConstructor(obj) {
|
|
3525
|
+
*/ function isObjectWithConstructor(obj) {
|
|
3535
3526
|
return typeof obj === 'function' && !!obj.prototype && !!obj.constructor && !!obj.prototype.constructor.name;
|
|
3536
3527
|
}
|
|
3537
3528
|
/**
|
|
@@ -3620,7 +3611,6 @@ function getValueFromGetter(input, args) {
|
|
|
3620
3611
|
* @returns An ObjectCopyFactory for the input
|
|
3621
3612
|
*/ function asObjectCopyFactory(input, copyFunction) {
|
|
3622
3613
|
if ((typeof input === "undefined" ? "undefined" : _type_of$j(input)) === 'object') {
|
|
3623
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3624
3614
|
return objectCopyFactory(input, copyFunction);
|
|
3625
3615
|
} else {
|
|
3626
3616
|
return asGetter(input);
|
|
@@ -3799,7 +3789,6 @@ function _type_of$i(obj) {
|
|
|
3799
3789
|
* @returns The numeric value, or 0 for null/undefined
|
|
3800
3790
|
*/ function asNumber(input) {
|
|
3801
3791
|
var value;
|
|
3802
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
3803
3792
|
switch(typeof input === "undefined" ? "undefined" : _type_of$i(input)){
|
|
3804
3793
|
case 'number':
|
|
3805
3794
|
value = input;
|
|
@@ -4044,7 +4033,6 @@ function _type_of$h(obj) {
|
|
|
4044
4033
|
}
|
|
4045
4034
|
var fn = function fn(input) {
|
|
4046
4035
|
var value;
|
|
4047
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
4048
4036
|
switch(typeof input === "undefined" ? "undefined" : _type_of$h(input)){
|
|
4049
4037
|
case 'number':
|
|
4050
4038
|
value = input;
|
|
@@ -4355,9 +4343,7 @@ function reduceNumbersFn(reduceFn, emptyArrayValue) {
|
|
|
4355
4343
|
}
|
|
4356
4344
|
} else {
|
|
4357
4345
|
var _ref, _input_start, _input_end;
|
|
4358
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
4359
4346
|
start = (_ref = (_input_start = input.start) !== null && _input_start !== void 0 ? _input_start : input.minIndex) !== null && _ref !== void 0 ? _ref : 0;
|
|
4360
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
4361
4347
|
end = (_input_end = input.end) !== null && _input_end !== void 0 ? _input_end : input.maxIndex;
|
|
4362
4348
|
}
|
|
4363
4349
|
if (end >= start) {
|
|
@@ -7795,11 +7781,9 @@ var AUTH_ROLE_CLAIMS_DEFAULT_EMPTY_VALUE = null;
|
|
|
7795
7781
|
var _ref, _ref1;
|
|
7796
7782
|
var defaultClaimValue = (_ref = objectHasKey(defaults, 'claimValue') ? defaults.claimValue : AUTH_ROLE_CLAIMS_DEFAULT_CLAIM_VALUE) !== null && _ref !== void 0 ? _ref : AUTH_ROLE_CLAIMS_DEFAULT_CLAIM_VALUE;
|
|
7797
7783
|
var defaultEmptyValue = (_ref1 = objectHasKey(defaults, 'emptyValue') ? defaults.emptyValue : AUTH_ROLE_CLAIMS_DEFAULT_EMPTY_VALUE) !== null && _ref1 !== void 0 ? _ref1 : null;
|
|
7798
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7799
7784
|
function isSimpleOptions(entry) {
|
|
7800
7785
|
return 'roles' in entry;
|
|
7801
7786
|
}
|
|
7802
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- generic config object needs cast for Object.entries
|
|
7803
7787
|
var tuples = Object.entries(config).filter(function(x) {
|
|
7804
7788
|
return x[1] != null;
|
|
7805
7789
|
}) // skip any ignored/null values
|
|
@@ -8454,11 +8438,11 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
8454
8438
|
|
|
8455
8439
|
/**
|
|
8456
8440
|
* Regular expression for validating E.164 phone numbers.
|
|
8457
|
-
* Validates numbers that start with a + followed by
|
|
8441
|
+
* Validates numbers that start with a + followed by 7-15 digits.
|
|
8458
8442
|
* The first digit after the + must be 1-9 (not 0).
|
|
8459
8443
|
*
|
|
8460
8444
|
* Requires the + to be provided.
|
|
8461
|
-
*/ var E164PHONE_NUMBER_REGEX = /^\+[1-9]\d{
|
|
8445
|
+
*/ var E164PHONE_NUMBER_REGEX = /^\+[1-9]\d{6,14}$/;
|
|
8462
8446
|
/**
|
|
8463
8447
|
* Validates if the input string is a valid E.164 phone number.
|
|
8464
8448
|
*
|
|
@@ -8471,18 +8455,18 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
8471
8455
|
}
|
|
8472
8456
|
/**
|
|
8473
8457
|
* Regular expression for validating E.164 phone numbers with an optional extension.
|
|
8474
|
-
* Validates numbers in the format +number or +number#extension.
|
|
8458
|
+
* Validates numbers with 7-15 digits in the format +number or +number#extension.
|
|
8475
8459
|
* The extension part is 1-6 digits following a # character.
|
|
8476
8460
|
*
|
|
8477
8461
|
* Requires the + to be provided.
|
|
8478
|
-
*/ var E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX = /^\+[1-9]\d{
|
|
8462
|
+
*/ var E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX = /^\+[1-9]\d{6,14}(#\d{1,6})?$/;
|
|
8479
8463
|
/**
|
|
8480
8464
|
* Regular expression for validating E.164 phone numbers that must include an extension.
|
|
8481
|
-
* Validates numbers strictly in the format +number#extension.
|
|
8465
|
+
* Validates numbers with 7-15 digits strictly in the format +number#extension.
|
|
8482
8466
|
* The extension part is 1-6 digits following a # character.
|
|
8483
8467
|
*
|
|
8484
8468
|
* Requires the + to be provided and the extension part.
|
|
8485
|
-
*/ var E164PHONE_NUMBER_WITH_EXTENSION_REGEX = /^\+[1-9]\d{
|
|
8469
|
+
*/ var E164PHONE_NUMBER_WITH_EXTENSION_REGEX = /^\+[1-9]\d{6,14}(#\d{1,6})$/;
|
|
8486
8470
|
/**
|
|
8487
8471
|
* Validates if the input string is a valid E.164 phone number with an extension.
|
|
8488
8472
|
* The phone number must be in the format +number#extension.
|
|
@@ -8538,6 +8522,42 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
8538
8522
|
*/ function e164PhoneNumberFromE164PhoneNumberExtensionPair(input) {
|
|
8539
8523
|
return input.extension ? "".concat(input.number, "#").concat(input.extension) : input.number;
|
|
8540
8524
|
}
|
|
8525
|
+
/**
|
|
8526
|
+
* Regex matching common phone number formatting characters to strip: parentheses, hyphens, spaces, and dots.
|
|
8527
|
+
*/ var PHONE_NUMBER_FORMATTING_CHARACTERS_REGEX = /[() \-\.]/g;
|
|
8528
|
+
/**
|
|
8529
|
+
* Attempts to convert a raw phone number string into a valid {@link E164PhoneNumber}.
|
|
8530
|
+
*
|
|
8531
|
+
* Strips common formatting characters (parentheses, hyphens, spaces, dots), then checks
|
|
8532
|
+
* if the result is already valid E.164. If not, prepends the given country code and
|
|
8533
|
+
* validates again.
|
|
8534
|
+
*
|
|
8535
|
+
* @param input - A raw phone number string, possibly with formatting (e.g. `'(720)6620850'`, `'720-662-0850'`)
|
|
8536
|
+
* @param defaultCountryCode - The country calling code to prepend if the number lacks one (default: `'1'` for US/Canada)
|
|
8537
|
+
* @returns The corrected {@link E164PhoneNumber}, or `undefined` if the input cannot be converted
|
|
8538
|
+
*
|
|
8539
|
+
* @example
|
|
8540
|
+
* ```typescript
|
|
8541
|
+
* tryConvertToE164PhoneNumber('(720)6620850'); // '+17206620850'
|
|
8542
|
+
* tryConvertToE164PhoneNumber('720-662-0850'); // '+17206620850'
|
|
8543
|
+
* tryConvertToE164PhoneNumber('+17206620850'); // '+17206620850'
|
|
8544
|
+
* tryConvertToE164PhoneNumber('7206620850', '44'); // '+447206620850'
|
|
8545
|
+
* tryConvertToE164PhoneNumber('abc'); // undefined
|
|
8546
|
+
* ```
|
|
8547
|
+
*/ function tryConvertToE164PhoneNumber(input) {
|
|
8548
|
+
var defaultCountryCode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '1';
|
|
8549
|
+
var stripped = input.replace(PHONE_NUMBER_FORMATTING_CHARACTERS_REGEX, '');
|
|
8550
|
+
var result;
|
|
8551
|
+
if (isE164PhoneNumber(stripped, false)) {
|
|
8552
|
+
result = stripped;
|
|
8553
|
+
} else {
|
|
8554
|
+
var withCountryCode = "+".concat(defaultCountryCode).concat(stripped);
|
|
8555
|
+
if (isE164PhoneNumber(withCountryCode, false)) {
|
|
8556
|
+
result = withCountryCode;
|
|
8557
|
+
}
|
|
8558
|
+
}
|
|
8559
|
+
return result;
|
|
8560
|
+
}
|
|
8541
8561
|
|
|
8542
8562
|
/**
|
|
8543
8563
|
* Creates a {@link DecisionFunction} that always returns the given boolean, regardless of input.
|
|
@@ -8571,8 +8591,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
8571
8591
|
* const isNotPositive = invertDecision(isPositive, true);
|
|
8572
8592
|
* isNotPositive(5); // false
|
|
8573
8593
|
* ```
|
|
8574
|
-
*/
|
|
8575
|
-
var invertDecision = invertBooleanReturnFunction;
|
|
8594
|
+
*/ var invertDecision = invertBooleanReturnFunction;
|
|
8576
8595
|
/**
|
|
8577
8596
|
* Normalizes a boolean value, a {@link DecisionFunction}, or undefined into a consistent {@link DecisionFunction}.
|
|
8578
8597
|
*
|
|
@@ -9156,7 +9175,6 @@ var ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX = /\.+/g;
|
|
|
9156
9175
|
var targetPathPartsInput = asArray(path);
|
|
9157
9176
|
var indexMatchingDecisionFunctions = [];
|
|
9158
9177
|
targetPathPartsInput.forEach(function(part, _index) {
|
|
9159
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
9160
9178
|
switch(typeof part === "undefined" ? "undefined" : _type_of$c(part)){
|
|
9161
9179
|
case 'number':
|
|
9162
9180
|
{
|
|
@@ -9202,7 +9220,6 @@ var ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX = /\.+/g;
|
|
|
9202
9220
|
targetPath: input
|
|
9203
9221
|
};
|
|
9204
9222
|
} else {
|
|
9205
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
9206
9223
|
switch(typeof input === "undefined" ? "undefined" : _type_of$c(input)){
|
|
9207
9224
|
case 'string':
|
|
9208
9225
|
pathMatcherConfig = {
|
|
@@ -10058,7 +10075,6 @@ function partialServerError(messageOrError) {
|
|
|
10058
10075
|
message: messageOrError
|
|
10059
10076
|
};
|
|
10060
10077
|
} else {
|
|
10061
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
10062
10078
|
serverError = messageOrError !== null && messageOrError !== void 0 ? messageOrError : {};
|
|
10063
10079
|
}
|
|
10064
10080
|
return serverError;
|
|
@@ -11056,7 +11072,6 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
11056
11072
|
throw new Error("Encountered unknown value ".concat(input, " in primativeKeyDencoder."));
|
|
11057
11073
|
}
|
|
11058
11074
|
}
|
|
11059
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- overloaded return type requires cast
|
|
11060
11075
|
return value;
|
|
11061
11076
|
}
|
|
11062
11077
|
};
|
|
@@ -11103,7 +11118,6 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
11103
11118
|
return dencoder(split);
|
|
11104
11119
|
} else {
|
|
11105
11120
|
var encoded = dencoder(input);
|
|
11106
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- overloaded return type requires cast
|
|
11107
11121
|
return encoded.join(joiner);
|
|
11108
11122
|
}
|
|
11109
11123
|
};
|
|
@@ -12351,7 +12365,6 @@ function _unsupported_iterable_to_array$d(o, minLen) {
|
|
|
12351
12365
|
*/ function latLngBoundFromInput(input) {
|
|
12352
12366
|
var bound;
|
|
12353
12367
|
var first = firstValue(input);
|
|
12354
|
-
// eslint-disable-next-line eqeqeq -- firstValue returns undefined for empty arrays despite type signature
|
|
12355
12368
|
if (first != null) {
|
|
12356
12369
|
if (isLatLngBound(first)) {
|
|
12357
12370
|
bound = first;
|
|
@@ -13224,8 +13237,7 @@ var MINUTE_OF_DAY_MAXMIMUM = MINUTES_IN_DAY - 1;
|
|
|
13224
13237
|
* A no-operation modifier that does nothing to the input. Useful as a default/fallback.
|
|
13225
13238
|
*
|
|
13226
13239
|
* @returns undefined (no mutation is performed)
|
|
13227
|
-
*/
|
|
13228
|
-
var NOOP_MODIFIER = function NOOP_MODIFIER() {
|
|
13240
|
+
*/ var NOOP_MODIFIER = function NOOP_MODIFIER() {
|
|
13229
13241
|
return undefined;
|
|
13230
13242
|
};
|
|
13231
13243
|
/**
|
|
@@ -13906,7 +13918,6 @@ function _object_spread$7(target) {
|
|
|
13906
13918
|
* @param b - Second array (or single value) of partial objects
|
|
13907
13919
|
* @returns 2D array where result[i][j] is `{ ...a[i], ...b[j] }`
|
|
13908
13920
|
*/ function objectMergeMatrix(a, b) {
|
|
13909
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
13910
13921
|
if (a && b) {
|
|
13911
13922
|
var aNorm = convertToArray(a);
|
|
13912
13923
|
var bNorm = convertToArray(b);
|
|
@@ -13916,12 +13927,10 @@ function _object_spread$7(target) {
|
|
|
13916
13927
|
});
|
|
13917
13928
|
});
|
|
13918
13929
|
return results;
|
|
13919
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
13920
13930
|
} else if (a) {
|
|
13921
13931
|
return [
|
|
13922
13932
|
convertToArray(a)
|
|
13923
13933
|
];
|
|
13924
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
13925
13934
|
} else if (b) {
|
|
13926
13935
|
return [
|
|
13927
13936
|
convertToArray(b)
|
|
@@ -15432,7 +15441,6 @@ function _performAsyncTask(_0, _1) {
|
|
|
15432
15441
|
config = _arguments.length > 2 && _arguments[2] !== void 0 ? _arguments[2] : {};
|
|
15433
15442
|
inputThrowError = config.throwError, inputRetriesAllowed = config.retriesAllowed, _config_retryWait = config.retryWait, retryWait = _config_retryWait === void 0 ? 200 : _config_retryWait, beforeRetry = config.beforeRetry;
|
|
15434
15443
|
throwError = inputThrowError !== null && inputThrowError !== void 0 ? inputThrowError : true; // throw errors by default
|
|
15435
|
-
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
15436
15444
|
retriesAllowed = inputRetriesAllowed || 0;
|
|
15437
15445
|
return [
|
|
15438
15446
|
2,
|
|
@@ -15519,46 +15527,28 @@ function _performAsyncTask(_0, _1) {
|
|
|
15519
15527
|
return _async_to_generator$4(function() {
|
|
15520
15528
|
var promiseRef;
|
|
15521
15529
|
return _ts_generator$4(this, function(_state) {
|
|
15522
|
-
|
|
15523
|
-
|
|
15524
|
-
|
|
15525
|
-
|
|
15526
|
-
|
|
15527
|
-
|
|
15528
|
-
|
|
15529
|
-
2
|
|
15530
|
-
];
|
|
15531
|
-
case 1:
|
|
15532
|
-
promiseRef = promiseReference();
|
|
15533
|
-
if (!isFulfillingTask) return [
|
|
15534
|
-
3,
|
|
15535
|
-
3
|
|
15536
|
-
];
|
|
15530
|
+
if (isOutOfTasks) {
|
|
15531
|
+
return [
|
|
15532
|
+
2
|
|
15533
|
+
];
|
|
15534
|
+
} else {
|
|
15535
|
+
promiseRef = promiseReference();
|
|
15536
|
+
if (isFulfillingTask) {
|
|
15537
15537
|
requestTasksQueue.push([
|
|
15538
15538
|
parallelIndex,
|
|
15539
15539
|
promiseRef
|
|
15540
15540
|
]);
|
|
15541
|
-
return [
|
|
15542
|
-
4,
|
|
15543
|
-
promiseRef.promise
|
|
15544
|
-
];
|
|
15545
|
-
case 2:
|
|
15546
|
-
return [
|
|
15547
|
-
2,
|
|
15548
|
-
_state.sent()
|
|
15549
|
-
];
|
|
15550
|
-
case 3:
|
|
15551
|
-
void fulfillRequestMoreTasks(parallelIndex, promiseRef);
|
|
15552
|
-
_state.label = 4;
|
|
15553
|
-
case 4:
|
|
15554
15541
|
return [
|
|
15555
15542
|
2,
|
|
15556
15543
|
promiseRef.promise
|
|
15557
15544
|
];
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
|
|
15561
|
-
|
|
15545
|
+
} else {
|
|
15546
|
+
void fulfillRequestMoreTasks(parallelIndex, promiseRef);
|
|
15547
|
+
}
|
|
15548
|
+
return [
|
|
15549
|
+
2,
|
|
15550
|
+
promiseRef.promise
|
|
15551
|
+
];
|
|
15562
15552
|
}
|
|
15563
15553
|
});
|
|
15564
15554
|
})();
|
|
@@ -15643,7 +15633,6 @@ function _performAsyncTask(_0, _1) {
|
|
|
15643
15633
|
// un-reserve the key from each parallel task
|
|
15644
15634
|
currentParellelTaskKeys.delete(key);
|
|
15645
15635
|
var waitingForKey = waitingConcurrentTasks.get(key);
|
|
15646
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- intentional infinite loop with break
|
|
15647
15636
|
while(true){
|
|
15648
15637
|
var nextWaitingTask = waitingForKey.shift(); // take from the front to retain unique task order
|
|
15649
15638
|
if (nextWaitingTask) {
|
|
@@ -15794,9 +15783,7 @@ function _performAsyncTask(_0, _1) {
|
|
|
15794
15783
|
* Creates a default non-concurrent task key factory that generates unique incrementing number strings.
|
|
15795
15784
|
*
|
|
15796
15785
|
* @returns A {@link StringFactory} that produces unique keys for identifying non-concurrent tasks.
|
|
15797
|
-
*/
|
|
15798
|
-
function makeDefaultNonConcurrentTaskKeyFactory() {
|
|
15799
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- matching return type
|
|
15786
|
+
*/ function makeDefaultNonConcurrentTaskKeyFactory() {
|
|
15800
15787
|
return stringFactoryFromFactory(incrementingNumberFactory(), function(x) {
|
|
15801
15788
|
return x.toString();
|
|
15802
15789
|
});
|
|
@@ -17059,9 +17046,7 @@ function _compareObjects(a, b, pojoFilter) {
|
|
|
17059
17046
|
return isEqualDate(a, b);
|
|
17060
17047
|
}
|
|
17061
17048
|
// check object comparison via keys
|
|
17062
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17063
17049
|
var aObject = a;
|
|
17064
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17065
17050
|
var bObject = b;
|
|
17066
17051
|
var aKeys = Object.keys(aObject);
|
|
17067
17052
|
var bKeys = Object.keys(bObject);
|
|
@@ -17258,7 +17243,6 @@ function _unsupported_iterable_to_array$6(o, minLen) {
|
|
|
17258
17243
|
* @returns A function that remaps keys on any input object
|
|
17259
17244
|
*/ function mapObjectKeysFunction(mapKeyFn) {
|
|
17260
17245
|
return function(object) {
|
|
17261
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17262
17246
|
var target = {};
|
|
17263
17247
|
Object.entries(object).forEach(function(param) {
|
|
17264
17248
|
var _param = _sliced_to_array$4(param, 2), key = _param[0], value = _param[1];
|
|
@@ -18185,7 +18169,6 @@ function handlerFactory(readKey, options) {
|
|
|
18185
18169
|
var handler = (_ref = key != null ? map.get(key) : undefined) !== null && _ref !== void 0 ? _ref : catchAll;
|
|
18186
18170
|
var handled;
|
|
18187
18171
|
if (handler) {
|
|
18188
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- defaultResultValue is needed as fallback when handler returns undefined
|
|
18189
18172
|
handled = Promise.resolve(handler(value)).then(function(x) {
|
|
18190
18173
|
return x !== null && x !== void 0 ? x : defaultResultValue;
|
|
18191
18174
|
});
|
|
@@ -18844,6 +18827,22 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
18844
18827
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
18845
18828
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
18846
18829
|
}
|
|
18830
|
+
/**
|
|
18831
|
+
* Converts a CSS token into a var() string.
|
|
18832
|
+
*
|
|
18833
|
+
* @example
|
|
18834
|
+
* ```ts
|
|
18835
|
+
* cssTokenVar('--dbx-primary-color'); // 'var(--dbx-primary-color)'
|
|
18836
|
+
* ```
|
|
18837
|
+
*
|
|
18838
|
+
* @param cssToken - the CSS token to convert
|
|
18839
|
+
* @returns the var() string
|
|
18840
|
+
*/ function cssTokenVar(cssToken) {
|
|
18841
|
+
return "var(".concat(cssToken, ")");
|
|
18842
|
+
}
|
|
18843
|
+
/**
|
|
18844
|
+
* @deprecated Use {@link cssTokenVar} instead.
|
|
18845
|
+
*/ var cssVariableVar = cssTokenVar;
|
|
18847
18846
|
/**
|
|
18848
18847
|
* Joins together various arrays of CSS classes into a single space-separated string of unique class names.
|
|
18849
18848
|
*
|
|
@@ -20959,6 +20958,8 @@ exports.countPOJOKeys = countPOJOKeys;
|
|
|
20959
20958
|
exports.countPOJOKeysFunction = countPOJOKeysFunction;
|
|
20960
20959
|
exports.cronExpressionRepeatingEveryNMinutes = cronExpressionRepeatingEveryNMinutes;
|
|
20961
20960
|
exports.cssClassesSet = cssClassesSet;
|
|
20961
|
+
exports.cssTokenVar = cssTokenVar;
|
|
20962
|
+
exports.cssVariableVar = cssVariableVar;
|
|
20962
20963
|
exports.cutString = cutString;
|
|
20963
20964
|
exports.cutStringFunction = cutStringFunction;
|
|
20964
20965
|
exports.cutToPrecision = cutToPrecision;
|
|
@@ -21600,6 +21601,7 @@ exports.transformStringFunctionConfig = transformStringFunctionConfig;
|
|
|
21600
21601
|
exports.transformStrings = transformStrings;
|
|
21601
21602
|
exports.trimArray = trimArray;
|
|
21602
21603
|
exports.trueOrFalseString = trueOrFalseString;
|
|
21604
|
+
exports.tryConvertToE164PhoneNumber = tryConvertToE164PhoneNumber;
|
|
21603
21605
|
exports.tryWithPromiseFactoriesFunction = tryWithPromiseFactoriesFunction;
|
|
21604
21606
|
exports.typedServiceRegistry = typedServiceRegistry;
|
|
21605
21607
|
exports.unique = unique;
|
package/index.esm.js
CHANGED
|
@@ -1343,13 +1343,11 @@ function _unsupported_iterable_to_array$z(o, minLen) {
|
|
|
1343
1343
|
*/ function invertBooleanReturnFunction(decisionFn) {
|
|
1344
1344
|
var invert = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
1345
1345
|
if (invert) {
|
|
1346
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1347
1346
|
return function() {
|
|
1348
1347
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
1349
1348
|
args[_key] = arguments[_key];
|
|
1350
1349
|
}
|
|
1351
1350
|
var _decisionFn;
|
|
1352
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1353
1351
|
var result = (_decisionFn = decisionFn).call.apply(_decisionFn, [
|
|
1354
1352
|
undefined
|
|
1355
1353
|
].concat(_to_consumable_array$o(args)));
|
|
@@ -1519,7 +1517,6 @@ function _type_of$l(obj) {
|
|
|
1519
1517
|
* @param value - the value to check
|
|
1520
1518
|
* @returns `true` if the value is a non-empty string or is `true`
|
|
1521
1519
|
*/ function isStringOrTrue(value) {
|
|
1522
|
-
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
1523
1520
|
return Boolean(value || value !== '');
|
|
1524
1521
|
}
|
|
1525
1522
|
/**
|
|
@@ -2119,7 +2116,6 @@ function makeModelMap(input, read) {
|
|
|
2119
2116
|
var map = new Map();
|
|
2120
2117
|
input.forEach(function(x) {
|
|
2121
2118
|
var _read;
|
|
2122
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
2123
2119
|
var keys = (_read = read(x)) !== null && _read !== void 0 ? _read : [];
|
|
2124
2120
|
keys.forEach(function(key) {
|
|
2125
2121
|
return map.set(key, x);
|
|
@@ -2142,7 +2138,6 @@ function makeModelMap(input, read) {
|
|
|
2142
2138
|
*/ function useModelOrKey(input, param) {
|
|
2143
2139
|
var useModel = param.useModel, useKey = param.useKey, _param_required = param.required, required = _param_required === void 0 ? false : _param_required;
|
|
2144
2140
|
var result;
|
|
2145
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
2146
2141
|
if (input != null) {
|
|
2147
2142
|
if (isModelKey(input)) {
|
|
2148
2143
|
result = useKey(input);
|
|
@@ -2180,7 +2175,6 @@ function makeModelMap(input, read) {
|
|
|
2180
2175
|
function readModelKey(input) {
|
|
2181
2176
|
var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ref_required = _ref.required, required = _ref_required === void 0 ? false : _ref_required, _ref_read = _ref.read, read = _ref_read === void 0 ? readUniqueModelKey : _ref_read;
|
|
2182
2177
|
var key;
|
|
2183
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
2184
2178
|
switch(typeof input === "undefined" ? "undefined" : _type_of$k(input)){
|
|
2185
2179
|
case 'string':
|
|
2186
2180
|
key = input;
|
|
@@ -2218,7 +2212,6 @@ function readModelKey(input) {
|
|
|
2218
2212
|
* @param input - A model object or a key string
|
|
2219
2213
|
* @returns `true` if the input is a string key
|
|
2220
2214
|
*/ function isModelKey(input) {
|
|
2221
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
2222
2215
|
switch(typeof input === "undefined" ? "undefined" : _type_of$k(input)){
|
|
2223
2216
|
case 'string':
|
|
2224
2217
|
return true;
|
|
@@ -3299,7 +3292,6 @@ function _unsupported_iterable_to_array$s(o, minLen) {
|
|
|
3299
3292
|
var map = new Map();
|
|
3300
3293
|
values.forEach(function(x) {
|
|
3301
3294
|
var _read;
|
|
3302
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
3303
3295
|
var keys = (_read = read(x)) !== null && _read !== void 0 ? _read : [];
|
|
3304
3296
|
keys.forEach(function(key) {
|
|
3305
3297
|
return map.set(key, x);
|
|
@@ -3528,8 +3520,7 @@ function _unsupported_iterable_to_array$s(o, minLen) {
|
|
|
3528
3520
|
*
|
|
3529
3521
|
* @param obj - The value to check.
|
|
3530
3522
|
* @returns Whether the value is a function with a constructor.
|
|
3531
|
-
*/
|
|
3532
|
-
function isObjectWithConstructor(obj) {
|
|
3523
|
+
*/ function isObjectWithConstructor(obj) {
|
|
3533
3524
|
return typeof obj === 'function' && !!obj.prototype && !!obj.constructor && !!obj.prototype.constructor.name;
|
|
3534
3525
|
}
|
|
3535
3526
|
/**
|
|
@@ -3618,7 +3609,6 @@ function getValueFromGetter(input, args) {
|
|
|
3618
3609
|
* @returns An ObjectCopyFactory for the input
|
|
3619
3610
|
*/ function asObjectCopyFactory(input, copyFunction) {
|
|
3620
3611
|
if ((typeof input === "undefined" ? "undefined" : _type_of$j(input)) === 'object') {
|
|
3621
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3622
3612
|
return objectCopyFactory(input, copyFunction);
|
|
3623
3613
|
} else {
|
|
3624
3614
|
return asGetter(input);
|
|
@@ -3797,7 +3787,6 @@ function _type_of$i(obj) {
|
|
|
3797
3787
|
* @returns The numeric value, or 0 for null/undefined
|
|
3798
3788
|
*/ function asNumber(input) {
|
|
3799
3789
|
var value;
|
|
3800
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
3801
3790
|
switch(typeof input === "undefined" ? "undefined" : _type_of$i(input)){
|
|
3802
3791
|
case 'number':
|
|
3803
3792
|
value = input;
|
|
@@ -4042,7 +4031,6 @@ function _type_of$h(obj) {
|
|
|
4042
4031
|
}
|
|
4043
4032
|
var fn = function fn(input) {
|
|
4044
4033
|
var value;
|
|
4045
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
4046
4034
|
switch(typeof input === "undefined" ? "undefined" : _type_of$h(input)){
|
|
4047
4035
|
case 'number':
|
|
4048
4036
|
value = input;
|
|
@@ -4353,9 +4341,7 @@ function reduceNumbersFn(reduceFn, emptyArrayValue) {
|
|
|
4353
4341
|
}
|
|
4354
4342
|
} else {
|
|
4355
4343
|
var _ref, _input_start, _input_end;
|
|
4356
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
4357
4344
|
start = (_ref = (_input_start = input.start) !== null && _input_start !== void 0 ? _input_start : input.minIndex) !== null && _ref !== void 0 ? _ref : 0;
|
|
4358
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
4359
4345
|
end = (_input_end = input.end) !== null && _input_end !== void 0 ? _input_end : input.maxIndex;
|
|
4360
4346
|
}
|
|
4361
4347
|
if (end >= start) {
|
|
@@ -7793,11 +7779,9 @@ var AUTH_ROLE_CLAIMS_DEFAULT_EMPTY_VALUE = null;
|
|
|
7793
7779
|
var _ref, _ref1;
|
|
7794
7780
|
var defaultClaimValue = (_ref = objectHasKey(defaults, 'claimValue') ? defaults.claimValue : AUTH_ROLE_CLAIMS_DEFAULT_CLAIM_VALUE) !== null && _ref !== void 0 ? _ref : AUTH_ROLE_CLAIMS_DEFAULT_CLAIM_VALUE;
|
|
7795
7781
|
var defaultEmptyValue = (_ref1 = objectHasKey(defaults, 'emptyValue') ? defaults.emptyValue : AUTH_ROLE_CLAIMS_DEFAULT_EMPTY_VALUE) !== null && _ref1 !== void 0 ? _ref1 : null;
|
|
7796
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7797
7782
|
function isSimpleOptions(entry) {
|
|
7798
7783
|
return 'roles' in entry;
|
|
7799
7784
|
}
|
|
7800
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- generic config object needs cast for Object.entries
|
|
7801
7785
|
var tuples = Object.entries(config).filter(function(x) {
|
|
7802
7786
|
return x[1] != null;
|
|
7803
7787
|
}) // skip any ignored/null values
|
|
@@ -8452,11 +8436,11 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
8452
8436
|
|
|
8453
8437
|
/**
|
|
8454
8438
|
* Regular expression for validating E.164 phone numbers.
|
|
8455
|
-
* Validates numbers that start with a + followed by
|
|
8439
|
+
* Validates numbers that start with a + followed by 7-15 digits.
|
|
8456
8440
|
* The first digit after the + must be 1-9 (not 0).
|
|
8457
8441
|
*
|
|
8458
8442
|
* Requires the + to be provided.
|
|
8459
|
-
*/ var E164PHONE_NUMBER_REGEX = /^\+[1-9]\d{
|
|
8443
|
+
*/ var E164PHONE_NUMBER_REGEX = /^\+[1-9]\d{6,14}$/;
|
|
8460
8444
|
/**
|
|
8461
8445
|
* Validates if the input string is a valid E.164 phone number.
|
|
8462
8446
|
*
|
|
@@ -8469,18 +8453,18 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
8469
8453
|
}
|
|
8470
8454
|
/**
|
|
8471
8455
|
* Regular expression for validating E.164 phone numbers with an optional extension.
|
|
8472
|
-
* Validates numbers in the format +number or +number#extension.
|
|
8456
|
+
* Validates numbers with 7-15 digits in the format +number or +number#extension.
|
|
8473
8457
|
* The extension part is 1-6 digits following a # character.
|
|
8474
8458
|
*
|
|
8475
8459
|
* Requires the + to be provided.
|
|
8476
|
-
*/ var E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX = /^\+[1-9]\d{
|
|
8460
|
+
*/ var E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX = /^\+[1-9]\d{6,14}(#\d{1,6})?$/;
|
|
8477
8461
|
/**
|
|
8478
8462
|
* Regular expression for validating E.164 phone numbers that must include an extension.
|
|
8479
|
-
* Validates numbers strictly in the format +number#extension.
|
|
8463
|
+
* Validates numbers with 7-15 digits strictly in the format +number#extension.
|
|
8480
8464
|
* The extension part is 1-6 digits following a # character.
|
|
8481
8465
|
*
|
|
8482
8466
|
* Requires the + to be provided and the extension part.
|
|
8483
|
-
*/ var E164PHONE_NUMBER_WITH_EXTENSION_REGEX = /^\+[1-9]\d{
|
|
8467
|
+
*/ var E164PHONE_NUMBER_WITH_EXTENSION_REGEX = /^\+[1-9]\d{6,14}(#\d{1,6})$/;
|
|
8484
8468
|
/**
|
|
8485
8469
|
* Validates if the input string is a valid E.164 phone number with an extension.
|
|
8486
8470
|
* The phone number must be in the format +number#extension.
|
|
@@ -8536,6 +8520,42 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
8536
8520
|
*/ function e164PhoneNumberFromE164PhoneNumberExtensionPair(input) {
|
|
8537
8521
|
return input.extension ? "".concat(input.number, "#").concat(input.extension) : input.number;
|
|
8538
8522
|
}
|
|
8523
|
+
/**
|
|
8524
|
+
* Regex matching common phone number formatting characters to strip: parentheses, hyphens, spaces, and dots.
|
|
8525
|
+
*/ var PHONE_NUMBER_FORMATTING_CHARACTERS_REGEX = /[() \-\.]/g;
|
|
8526
|
+
/**
|
|
8527
|
+
* Attempts to convert a raw phone number string into a valid {@link E164PhoneNumber}.
|
|
8528
|
+
*
|
|
8529
|
+
* Strips common formatting characters (parentheses, hyphens, spaces, dots), then checks
|
|
8530
|
+
* if the result is already valid E.164. If not, prepends the given country code and
|
|
8531
|
+
* validates again.
|
|
8532
|
+
*
|
|
8533
|
+
* @param input - A raw phone number string, possibly with formatting (e.g. `'(720)6620850'`, `'720-662-0850'`)
|
|
8534
|
+
* @param defaultCountryCode - The country calling code to prepend if the number lacks one (default: `'1'` for US/Canada)
|
|
8535
|
+
* @returns The corrected {@link E164PhoneNumber}, or `undefined` if the input cannot be converted
|
|
8536
|
+
*
|
|
8537
|
+
* @example
|
|
8538
|
+
* ```typescript
|
|
8539
|
+
* tryConvertToE164PhoneNumber('(720)6620850'); // '+17206620850'
|
|
8540
|
+
* tryConvertToE164PhoneNumber('720-662-0850'); // '+17206620850'
|
|
8541
|
+
* tryConvertToE164PhoneNumber('+17206620850'); // '+17206620850'
|
|
8542
|
+
* tryConvertToE164PhoneNumber('7206620850', '44'); // '+447206620850'
|
|
8543
|
+
* tryConvertToE164PhoneNumber('abc'); // undefined
|
|
8544
|
+
* ```
|
|
8545
|
+
*/ function tryConvertToE164PhoneNumber(input) {
|
|
8546
|
+
var defaultCountryCode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '1';
|
|
8547
|
+
var stripped = input.replace(PHONE_NUMBER_FORMATTING_CHARACTERS_REGEX, '');
|
|
8548
|
+
var result;
|
|
8549
|
+
if (isE164PhoneNumber(stripped, false)) {
|
|
8550
|
+
result = stripped;
|
|
8551
|
+
} else {
|
|
8552
|
+
var withCountryCode = "+".concat(defaultCountryCode).concat(stripped);
|
|
8553
|
+
if (isE164PhoneNumber(withCountryCode, false)) {
|
|
8554
|
+
result = withCountryCode;
|
|
8555
|
+
}
|
|
8556
|
+
}
|
|
8557
|
+
return result;
|
|
8558
|
+
}
|
|
8539
8559
|
|
|
8540
8560
|
/**
|
|
8541
8561
|
* Creates a {@link DecisionFunction} that always returns the given boolean, regardless of input.
|
|
@@ -8569,8 +8589,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
8569
8589
|
* const isNotPositive = invertDecision(isPositive, true);
|
|
8570
8590
|
* isNotPositive(5); // false
|
|
8571
8591
|
* ```
|
|
8572
|
-
*/
|
|
8573
|
-
var invertDecision = invertBooleanReturnFunction;
|
|
8592
|
+
*/ var invertDecision = invertBooleanReturnFunction;
|
|
8574
8593
|
/**
|
|
8575
8594
|
* Normalizes a boolean value, a {@link DecisionFunction}, or undefined into a consistent {@link DecisionFunction}.
|
|
8576
8595
|
*
|
|
@@ -9154,7 +9173,6 @@ var ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX = /\.+/g;
|
|
|
9154
9173
|
var targetPathPartsInput = asArray(path);
|
|
9155
9174
|
var indexMatchingDecisionFunctions = [];
|
|
9156
9175
|
targetPathPartsInput.forEach(function(part, _index) {
|
|
9157
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
9158
9176
|
switch(typeof part === "undefined" ? "undefined" : _type_of$c(part)){
|
|
9159
9177
|
case 'number':
|
|
9160
9178
|
{
|
|
@@ -9200,7 +9218,6 @@ var ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX = /\.+/g;
|
|
|
9200
9218
|
targetPath: input
|
|
9201
9219
|
};
|
|
9202
9220
|
} else {
|
|
9203
|
-
// eslint-disable-next-line @typescript-eslint/switch-exhaustiveness-check
|
|
9204
9221
|
switch(typeof input === "undefined" ? "undefined" : _type_of$c(input)){
|
|
9205
9222
|
case 'string':
|
|
9206
9223
|
pathMatcherConfig = {
|
|
@@ -10056,7 +10073,6 @@ function partialServerError(messageOrError) {
|
|
|
10056
10073
|
message: messageOrError
|
|
10057
10074
|
};
|
|
10058
10075
|
} else {
|
|
10059
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
10060
10076
|
serverError = messageOrError !== null && messageOrError !== void 0 ? messageOrError : {};
|
|
10061
10077
|
}
|
|
10062
10078
|
return serverError;
|
|
@@ -11054,7 +11070,6 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
11054
11070
|
throw new Error("Encountered unknown value ".concat(input, " in primativeKeyDencoder."));
|
|
11055
11071
|
}
|
|
11056
11072
|
}
|
|
11057
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- overloaded return type requires cast
|
|
11058
11073
|
return value;
|
|
11059
11074
|
}
|
|
11060
11075
|
};
|
|
@@ -11101,7 +11116,6 @@ function _unsupported_iterable_to_array$f(o, minLen) {
|
|
|
11101
11116
|
return dencoder(split);
|
|
11102
11117
|
} else {
|
|
11103
11118
|
var encoded = dencoder(input);
|
|
11104
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- overloaded return type requires cast
|
|
11105
11119
|
return encoded.join(joiner);
|
|
11106
11120
|
}
|
|
11107
11121
|
};
|
|
@@ -12349,7 +12363,6 @@ function _unsupported_iterable_to_array$d(o, minLen) {
|
|
|
12349
12363
|
*/ function latLngBoundFromInput(input) {
|
|
12350
12364
|
var bound;
|
|
12351
12365
|
var first = firstValue(input);
|
|
12352
|
-
// eslint-disable-next-line eqeqeq -- firstValue returns undefined for empty arrays despite type signature
|
|
12353
12366
|
if (first != null) {
|
|
12354
12367
|
if (isLatLngBound(first)) {
|
|
12355
12368
|
bound = first;
|
|
@@ -13222,8 +13235,7 @@ var MINUTE_OF_DAY_MAXMIMUM = MINUTES_IN_DAY - 1;
|
|
|
13222
13235
|
* A no-operation modifier that does nothing to the input. Useful as a default/fallback.
|
|
13223
13236
|
*
|
|
13224
13237
|
* @returns undefined (no mutation is performed)
|
|
13225
|
-
*/
|
|
13226
|
-
var NOOP_MODIFIER = function NOOP_MODIFIER() {
|
|
13238
|
+
*/ var NOOP_MODIFIER = function NOOP_MODIFIER() {
|
|
13227
13239
|
return undefined;
|
|
13228
13240
|
};
|
|
13229
13241
|
/**
|
|
@@ -13904,7 +13916,6 @@ function _object_spread$7(target) {
|
|
|
13904
13916
|
* @param b - Second array (or single value) of partial objects
|
|
13905
13917
|
* @returns 2D array where result[i][j] is `{ ...a[i], ...b[j] }`
|
|
13906
13918
|
*/ function objectMergeMatrix(a, b) {
|
|
13907
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
13908
13919
|
if (a && b) {
|
|
13909
13920
|
var aNorm = convertToArray(a);
|
|
13910
13921
|
var bNorm = convertToArray(b);
|
|
@@ -13914,12 +13925,10 @@ function _object_spread$7(target) {
|
|
|
13914
13925
|
});
|
|
13915
13926
|
});
|
|
13916
13927
|
return results;
|
|
13917
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
13918
13928
|
} else if (a) {
|
|
13919
13929
|
return [
|
|
13920
13930
|
convertToArray(a)
|
|
13921
13931
|
];
|
|
13922
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
13923
13932
|
} else if (b) {
|
|
13924
13933
|
return [
|
|
13925
13934
|
convertToArray(b)
|
|
@@ -15430,7 +15439,6 @@ function _performAsyncTask(_0, _1) {
|
|
|
15430
15439
|
config = _arguments.length > 2 && _arguments[2] !== void 0 ? _arguments[2] : {};
|
|
15431
15440
|
inputThrowError = config.throwError, inputRetriesAllowed = config.retriesAllowed, _config_retryWait = config.retryWait, retryWait = _config_retryWait === void 0 ? 200 : _config_retryWait, beforeRetry = config.beforeRetry;
|
|
15432
15441
|
throwError = inputThrowError !== null && inputThrowError !== void 0 ? inputThrowError : true; // throw errors by default
|
|
15433
|
-
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
15434
15442
|
retriesAllowed = inputRetriesAllowed || 0;
|
|
15435
15443
|
return [
|
|
15436
15444
|
2,
|
|
@@ -15517,46 +15525,28 @@ function _performAsyncTask(_0, _1) {
|
|
|
15517
15525
|
return _async_to_generator$4(function() {
|
|
15518
15526
|
var promiseRef;
|
|
15519
15527
|
return _ts_generator$4(this, function(_state) {
|
|
15520
|
-
|
|
15521
|
-
|
|
15522
|
-
|
|
15523
|
-
|
|
15524
|
-
|
|
15525
|
-
|
|
15526
|
-
|
|
15527
|
-
2
|
|
15528
|
-
];
|
|
15529
|
-
case 1:
|
|
15530
|
-
promiseRef = promiseReference();
|
|
15531
|
-
if (!isFulfillingTask) return [
|
|
15532
|
-
3,
|
|
15533
|
-
3
|
|
15534
|
-
];
|
|
15528
|
+
if (isOutOfTasks) {
|
|
15529
|
+
return [
|
|
15530
|
+
2
|
|
15531
|
+
];
|
|
15532
|
+
} else {
|
|
15533
|
+
promiseRef = promiseReference();
|
|
15534
|
+
if (isFulfillingTask) {
|
|
15535
15535
|
requestTasksQueue.push([
|
|
15536
15536
|
parallelIndex,
|
|
15537
15537
|
promiseRef
|
|
15538
15538
|
]);
|
|
15539
|
-
return [
|
|
15540
|
-
4,
|
|
15541
|
-
promiseRef.promise
|
|
15542
|
-
];
|
|
15543
|
-
case 2:
|
|
15544
|
-
return [
|
|
15545
|
-
2,
|
|
15546
|
-
_state.sent()
|
|
15547
|
-
];
|
|
15548
|
-
case 3:
|
|
15549
|
-
void fulfillRequestMoreTasks(parallelIndex, promiseRef);
|
|
15550
|
-
_state.label = 4;
|
|
15551
|
-
case 4:
|
|
15552
15539
|
return [
|
|
15553
15540
|
2,
|
|
15554
15541
|
promiseRef.promise
|
|
15555
15542
|
];
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15543
|
+
} else {
|
|
15544
|
+
void fulfillRequestMoreTasks(parallelIndex, promiseRef);
|
|
15545
|
+
}
|
|
15546
|
+
return [
|
|
15547
|
+
2,
|
|
15548
|
+
promiseRef.promise
|
|
15549
|
+
];
|
|
15560
15550
|
}
|
|
15561
15551
|
});
|
|
15562
15552
|
})();
|
|
@@ -15641,7 +15631,6 @@ function _performAsyncTask(_0, _1) {
|
|
|
15641
15631
|
// un-reserve the key from each parallel task
|
|
15642
15632
|
currentParellelTaskKeys.delete(key);
|
|
15643
15633
|
var waitingForKey = waitingConcurrentTasks.get(key);
|
|
15644
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- intentional infinite loop with break
|
|
15645
15634
|
while(true){
|
|
15646
15635
|
var nextWaitingTask = waitingForKey.shift(); // take from the front to retain unique task order
|
|
15647
15636
|
if (nextWaitingTask) {
|
|
@@ -15792,9 +15781,7 @@ function _performAsyncTask(_0, _1) {
|
|
|
15792
15781
|
* Creates a default non-concurrent task key factory that generates unique incrementing number strings.
|
|
15793
15782
|
*
|
|
15794
15783
|
* @returns A {@link StringFactory} that produces unique keys for identifying non-concurrent tasks.
|
|
15795
|
-
*/
|
|
15796
|
-
function makeDefaultNonConcurrentTaskKeyFactory() {
|
|
15797
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- matching return type
|
|
15784
|
+
*/ function makeDefaultNonConcurrentTaskKeyFactory() {
|
|
15798
15785
|
return stringFactoryFromFactory(incrementingNumberFactory(), function(x) {
|
|
15799
15786
|
return x.toString();
|
|
15800
15787
|
});
|
|
@@ -17057,9 +17044,7 @@ function _compareObjects(a, b, pojoFilter) {
|
|
|
17057
17044
|
return isEqualDate(a, b);
|
|
17058
17045
|
}
|
|
17059
17046
|
// check object comparison via keys
|
|
17060
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17061
17047
|
var aObject = a;
|
|
17062
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17063
17048
|
var bObject = b;
|
|
17064
17049
|
var aKeys = Object.keys(aObject);
|
|
17065
17050
|
var bKeys = Object.keys(bObject);
|
|
@@ -17256,7 +17241,6 @@ function _unsupported_iterable_to_array$6(o, minLen) {
|
|
|
17256
17241
|
* @returns A function that remaps keys on any input object
|
|
17257
17242
|
*/ function mapObjectKeysFunction(mapKeyFn) {
|
|
17258
17243
|
return function(object) {
|
|
17259
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17260
17244
|
var target = {};
|
|
17261
17245
|
Object.entries(object).forEach(function(param) {
|
|
17262
17246
|
var _param = _sliced_to_array$4(param, 2), key = _param[0], value = _param[1];
|
|
@@ -18183,7 +18167,6 @@ function handlerFactory(readKey, options) {
|
|
|
18183
18167
|
var handler = (_ref = key != null ? map.get(key) : undefined) !== null && _ref !== void 0 ? _ref : catchAll;
|
|
18184
18168
|
var handled;
|
|
18185
18169
|
if (handler) {
|
|
18186
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- defaultResultValue is needed as fallback when handler returns undefined
|
|
18187
18170
|
handled = Promise.resolve(handler(value)).then(function(x) {
|
|
18188
18171
|
return x !== null && x !== void 0 ? x : defaultResultValue;
|
|
18189
18172
|
});
|
|
@@ -18842,6 +18825,22 @@ function _unsupported_iterable_to_array$2(o, minLen) {
|
|
|
18842
18825
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
18843
18826
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
18844
18827
|
}
|
|
18828
|
+
/**
|
|
18829
|
+
* Converts a CSS token into a var() string.
|
|
18830
|
+
*
|
|
18831
|
+
* @example
|
|
18832
|
+
* ```ts
|
|
18833
|
+
* cssTokenVar('--dbx-primary-color'); // 'var(--dbx-primary-color)'
|
|
18834
|
+
* ```
|
|
18835
|
+
*
|
|
18836
|
+
* @param cssToken - the CSS token to convert
|
|
18837
|
+
* @returns the var() string
|
|
18838
|
+
*/ function cssTokenVar(cssToken) {
|
|
18839
|
+
return "var(".concat(cssToken, ")");
|
|
18840
|
+
}
|
|
18841
|
+
/**
|
|
18842
|
+
* @deprecated Use {@link cssTokenVar} instead.
|
|
18843
|
+
*/ var cssVariableVar = cssTokenVar;
|
|
18845
18844
|
/**
|
|
18846
18845
|
* Joins together various arrays of CSS classes into a single space-separated string of unique class names.
|
|
18847
18846
|
*
|
|
@@ -20681,4 +20680,4 @@ function _ts_generator(thisArg, body) {
|
|
|
20681
20680
|
return result;
|
|
20682
20681
|
}
|
|
20683
20682
|
|
|
20684
|
-
export { ALL_DOUBLE_SLASHES_REGEX, ALL_SLASHES_REGEX, ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX, APPLICATION_FILE_EXTENSION_TO_MIME_TYPES_RECORD, APPLICATION_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, ASSERTION_ERROR_CODE, ASSERTION_HANDLER, AUTH_ADMIN_ROLE, AUTH_ONBOARDED_ROLE, AUTH_ROLE_CLAIMS_DEFAULT_CLAIM_VALUE, AUTH_ROLE_CLAIMS_DEFAULT_EMPTY_VALUE, AUTH_TOS_SIGNED_ROLE, AUTH_USER_ROLE, AbstractUniqueModel, Assert, AssertMax, AssertMin, AssertionError, AssertionIssueHandler, BooleanStringKeyArrayUtility, CATCH_ALL_HANDLE_RESULT_KEY, COMMA_JOINER, COMMA_STRING_SPLIT_JOIN, CSV_MIME_TYPE, CUT_VALUE_TO_ZERO_PRECISION, DASH_CHARACTER_PREFIX_INSTANCE, DATE_NOW_VALUE, DAYS_IN_YEAR, DEFAULT_CUT_STRING_END_TEXT, DEFAULT_ENCRYPTED_FIELD_PREFIX, DEFAULT_LAT_LNG_STRING_VALUE, DEFAULT_RANDOM_EMAIL_FACTORY_CONFIG, DEFAULT_RANDOM_PHONE_NUMBER_FACTORY_CONFIG, DEFAULT_READABLE_ERROR_CODE, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTERS, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTER_REPLACEMENT, DEFAULT_SLASH_PATH_PATH_MATCHER_NON_MATCHING_FILL_VALUE, DEFAULT_UNKNOWN_MODEL_TYPE_STRING, DOCUMENT_FILE_EXTENSION_TO_MIME_TYPES_RECORD, DOCUMENT_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, DOCX_MIME_TYPE, DOLLAR_AMOUNT_PRECISION, DOLLAR_AMOUNT_STRING_REGEX, DataDoesNotExistError, DataIsExpiredError, Day, DestroyFunctionObject, E164PHONE_NUMBER_REGEX, E164PHONE_NUMBER_WITH_EXTENSION_REGEX, E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX, ExploreTreeVisitNodeDecision, FINAL_PAGE, FIRST_PAGE, FRACTIONAL_HOURS_PRECISION_FUNCTION, FlattenTreeAddNodeDecision, FullStorageObject, GIF_MIME_TYPE, HAS_PORT_NUMBER_REGEX, HAS_WEBSITE_DOMAIN_NAME_REGEX, HEIF_MIME_TYPE, HEX_PATTERN, HOURS_IN_DAY, HTML_MIME_TYPE, HTTP_OR_HTTPS_REGEX, HashSet, IMAGE_FILE_EXTENSION_TO_MIME_TYPES_RECORD, IMAGE_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, ISO8601_DAY_STRING_REGEX, ISO8601_DAY_STRING_START_REGEX, ISO_8601_DATE_STRING_REGEX, JPEG_MIME_TYPE, JSON_MIME_TYPE, KeyValueTypleValueFilter, LAT_LNG_PATTERN, LAT_LNG_PATTERN_MAX_PRECISION, LAT_LONG_100KM_PRECISION, LAT_LONG_100M_PRECISION, LAT_LONG_10CM_PRECISION, LAT_LONG_10KM_PRECISION, LAT_LONG_10M_PRECISION, LAT_LONG_1CM_PRECISION, LAT_LONG_1KM_PRECISION, LAT_LONG_1MM_PRECISION, LAT_LONG_1M_PRECISION, LAT_LONG_GRAINS_OF_SAND_PRECISION, LEADING_SLASHES_REGEX, MAP_IDENTITY, MARKDOWN_MIME_TYPE, MAX_BITWISE_SET_SIZE, MAX_LATITUDE_VALUE, MAX_LONGITUDE_VALUE, MINUTES_IN_DAY, MINUTES_IN_HOUR, MINUTE_OF_DAY_MAXMIMUM, MINUTE_OF_DAY_MINIUMUM, MIN_LATITUDE_VALUE, MIN_LONGITUDE_VALUE, MONTH_DAY_SLASH_DATE_STRING_REGEX, MS_IN_DAY, MS_IN_HOUR, MS_IN_MINUTE, MS_IN_SECOND, MemoryStorageInstance, ModelRelationUtility, NOOP_MODIFIER, NUMBER_STRING_DENCODER_64, NUMBER_STRING_DENCODER_64_DEFAULT_NEGATIVE_PREFIX, NUMBER_STRING_DENCODER_64_DIGITS, PDF_MIME_TYPE, PHONE_EXTENSION_NUMBER_REGEX, PNG_MIME_TYPE, PRIMATIVE_KEY_DENCODER_VALUE, PropertyDescriptorUtility, RAW_MIME_TYPE, REGEX_SPECIAL_CHARACTERS, REGEX_SPECIAL_CHARACTERS_SET, RelationChange, SECONDS_IN_HOUR, SECONDS_IN_MINUTE, SHARED_MEMORY_STORAGE, SLASH_PATH_FILE_TYPE_SEPARATOR, SLASH_PATH_SEPARATOR, SORT_VALUE_EQUAL, SORT_VALUE_GREATER_THAN, SORT_VALUE_LESS_THAN, SPACE_JOINER, SPACE_STRING_SPLIT_JOIN, SPLIT_STRING_TREE_NODE_ROOT_VALUE, SVG_MIME_TYPE, ServerErrorResponse, SetDeltaChange, SimpleStorageObject, SlashPathPathMatcherPartCode, StorageObject, StorageObjectUtility, StoredDataError, SyncState, TIFF_MIME_TYPE, TOTAL_LATITUDE_RANGE, TOTAL_LONGITUDE_RANGE, TOTAL_SPAN_OF_LONGITUDE, TRAILING_FILE_TYPE_SEPARATORS_REGEX, TRAILING_SLASHES_REGEX, TXT_MIME_TYPE, TimeAM, TimerCancelledError, TypedServiceRegistryInstance, UNLOADED_PAGE, UNSET_INDEX_NUMBER, US_STATE_CODE_STRING_REGEX, UTC_DATE_STRING_REGEX, UTC_TIMEZONE_STRING, UTF_8_START_CHARACTER, UTF_PRIVATE_USAGE_AREA_START, UnauthorizedServerErrorResponse, WEBP_MIME_TYPE, WEBSITE_TLD_DETECTION_REGEX, WEB_PROTOCOL_PREFIX_REGEX, XLSX_MIME_TYPE, XML_MIME_TYPE, YAML_MIME_TYPE, ZIP_CODE_STRING_REGEX, ZIP_FILE_MIME_TYPE, addHttpToUrl, addLatLngPoints, addMilliseconds, addModifiers, addPlusPrefixToNumber, addPrefix, addPrefixFunction, addSuffix, addSuffixFunction, addToSet, addToSetCopy, addToSplitStringTree, addTrailingSlash, allFalsyOrEmptyKeys, allIndexesInIndexRange, allKeyValueTuples, allMaybeSoKeys, allNonUndefinedKeys, allObjectsAreEqual, allValuesAreMaybeNot, allValuesAreNotMaybe, allowValueOnceFilter, applicationFileExtensionForMimeType, applyBestFit, applySplitStringTreeWithMultipleValues, applyToMultipleFields, approximateTimerEndDate, areEqualContext, areEqualPOJOValues, areEqualPOJOValuesUsingPojoFilter, arrayContainsDuplicateValue, arrayContentsDiffer, arrayDecision, arrayDecisionFunction, arrayFactory, arrayInputFactory, arrayToLowercase, arrayToMap, arrayToObject, arrayToUppercase, asArray, asDecisionFunction, asGetter, asIndexRangeCheckFunctionConfig, asIterable, asMinuteOfDay, asNonEmptyArray, asNumber, asObjectCopyFactory, asPromise, asSet, assignValuesToPOJO, assignValuesToPOJOFunction, authClaims, authRoleClaimsService, authRolesSetHasRoles, baseWebsiteUrl, batch, batchCalc, bitwiseObjectDencoder, bitwiseObjectEncoder, bitwiseObjectdecoder, bitwiseSetDecoder, bitwiseSetDencoder, booleanFactory, booleanKeyArrayUtility, boundNumber, boundNumberFunction, boundToRectangle, breadthFirstExploreTreeTraversalFactoryFunction, bufferHasValidPdfMarkings, build, cachedGetter, calculateExpirationDate, capLatValue, capitalizeFirstLetter, caseInsensitiveFilterByIndexOfDecisionFactory, caseInsensitiveString, catchAllHandlerKey, chainMapFunction, chainMapSameFunctions, characterPrefixSuffixInstance, checkAnyHaveExpired, checkAtleastOneNotExpired, coerceToEmailParticipants, combineMaps, compareEqualityWithValueFromItemsFunction, compareEqualityWithValueFromItemsFunctionFactory, compareFnOrder, compareWithMappedValuesFunction, computeNextFractionalHour, computeNextFreeIndexFunction, computeNextFreeIndexOnSortedValuesFunction, concatArrays, concatArraysUnique, containsAllStringsAnyCase, containsAllValues, containsAnyStringAnyCase, containsAnyValue, containsAnyValueFromSet, containsNoValueFromSet, containsNoneOfValue, containsStringAnyCase, convertEmailParticipantStringToParticipant, convertMaybeToArray, convertMaybeToNonEmptyArray, convertParticipantToEmailParticipantString, convertToArray, copyArray, copyField, copyLatLngBound, copyLatLngPoint, copyObject, copySetAndDo, countAllInNestedArray, countPOJOKeys, countPOJOKeysFunction, cronExpressionRepeatingEveryNMinutes, cssClassesSet, cutString, cutStringFunction, cutToPrecision, cutValueToInteger, cutValueToPrecision, cutValueToPrecisionFunction, dateFromDateOrTimeMillisecondsNumber, dateFromDateOrTimeSecondsNumber, dateFromLogicalDate, dateFromMinuteOfDay, dateOrMillisecondsToDate, dateToHoursAndMinutes, dateToMinuteOfDay, dayOfWeek, daysOfWeekArray, daysOfWeekFromEnabledDays, daysOfWeekNameFunction, daysOfWeekNameMap, decisionFunction, decodeHashedValues, decodeHashedValuesWithDecodeMap, decodeModelKeyTypePair, decodeRadix36Number, defaultFilterFromPOJOFunctionNoCopy, defaultForwardFunctionFactory, defaultLatLngPoint, defaultLatLngString, dencodeBitwiseSet, depthFirstExploreTreeTraversalFactoryFunction, diffLatLngBoundPoints, diffLatLngPoints, documentFileExtensionForMimeType, dollarAmountString, dollarAmountStringWithUnitFunction, e164PhoneNumberExtensionPair, e164PhoneNumberFromE164PhoneNumberExtensionPair, enabledDaysFromDaysOfWeek, encodeBitwiseSet, encodeModelKeyTypePair, encodeRadix36Number, errorMessageContainsString, errorMessageContainsStringFunction, escapeStringCharactersFunction, escapeStringForRegex, excludeValues, excludeValuesFromArray, excludeValuesFromSet, existsInIterable, expandArrayMapTuples, expandArrayValueTuples, expandFlattenTreeFunction, expandIndexSet, expandSlashPathPathMatcherPartToDecisionFunctions, expandTreeFunction, expandTrees, expirationDetails, exploreTreeFunction, exponentialPromiseRateLimiter, extendLatLngBound, fileExtensionForMimeType, filterAndMapFunction, filterEmptyArrayValues, filterEmptyPojoValues, filterFalsyAndEmptyValues, filterFromIterable, filterFromPOJO, filterFromPOJOFunction, filterKeyValueTupleFunction, filterKeyValueTuples, filterKeyValueTuplesFunction, filterKeyValueTuplesInputToFilter, filterKeysOnPOJOFunction, filterMaybeArrayFunction, filterMaybeArrayValues, filterNullAndUndefinedValues, filterOnlyUndefinedValues, filterTuplesOnPOJOFunction, filterUndefinedValues, filterUniqueByIndex, filterUniqueCaseInsensitiveStrings, filterUniqueFunction, filterUniqueTransform, filterUniqueValues, filterValuesByDistance, filterValuesByDistanceNoOrder, filterValuesToSet, filterValuesUsingSet, filteredPage, findAllCharacterOccurences, findAllCharacterOccurencesFunction, findBest, findBestIndexMatch, findBestIndexMatchFunction, findBestIndexSetPair, findBestSplitStringTreeChildMatch, findBestSplitStringTreeChildMatchPath, findBestSplitStringTreeMatch, findBestSplitStringTreeMatchPath, findFirstCharacterOccurence, findInIterable, findIndexOfFirstDuplicateValue, findItemsByIndex, findNext, findPOJOKeys, findPOJOKeysFunction, findStringsRegexString, findToIndexSet, findValuesFrom, firstAndLastCharacterOccurrence, firstAndLastValue, firstValue, firstValueFromIterable, fitToIndexRangeFunction, fixExtraQueryParameters, fixMultiSlashesInSlashPath, flattenArray, flattenArrayOrValueArray, flattenArrayToSet, flattenArrayUnique, flattenArrayUniqueCaseInsensitiveStrings, flattenObject, flattenTree, flattenTreeToArray, flattenTreeToArrayFunction, flattenWhitespace, forEachInIterable, forEachKeyValue, forEachKeyValueOnPOJOFunction, forEachWithArray, forwardFunction, fractionalHoursToMinutes, generateIfDoesNotExist, getArrayNextIndex, getBaseLog, getDayOffset, getDayTomorrow, getDayYesterday, getDaysOfWeekNames, getFunctionType, getNextDay, getNextPageNumber, getOverlappingRectangle, getPageNumber, getPreviousDay, getValueFromGetter, groupValues, handlerBindAccessor, handlerConfigurerFactory, handlerFactory, handlerMappedSetFunction, handlerMappedSetFunctionFactory, handlerSetFunction, hasDifferentStringsNoCase, hasDifferentValues, hasHttpPrefix, hasNonNullValue, hasPortNumber, hasSameTimezone, hasSameValues, hasValueFunction, hasValueOrNotEmpty, hasValueOrNotEmptyObject, hasWebsiteDomain, hasWebsiteTopLevelDomain, hashSetForIndexed, hourToFractionalHour, hoursAndMinutesToString, idBatchFactory, imageFileExtensionForMimeType, incrementingNumberFactory, indexDeltaGroup, indexDeltaGroupFunction, indexRange, indexRangeCheckFunction, indexRangeCheckReaderFunction, indexRangeForArray, indexRangeOverlapsIndexRange, indexRangeOverlapsIndexRangeFunction, indexRangeReaderPairFactory, indexRefMap, indexedValuesArrayAccessorFactory, insertIntoBooleanKeyArray, invertBooleanReturnFunction, invertDecision, invertFilter, invertMaybeBoolean, invertStringRecord, isAllowed, isClassLikeType, isCompleteUnitedStatesAddress, isConsideredUtcTimezoneString, isDate, isDefaultLatLngPoint, isDefaultLatLngPointValue, isDefaultReadableError, isDefinedAndNotFalse, isDollarAmountString, isE164PhoneNumber, isE164PhoneNumberWithExtension, isEmptyIterable, isEqualContext, isEqualDate, isEqualToValueDecisionFunction, isEvenNumber, isFalseBooleanKeyArray, isFinalPage, isGetter, isHex, isISO8601DateString, isISO8601DayString, isISO8601DayStringStart, isInAllowedDaysOfWeekSet, isInNumberBoundFunction, isInSetDecisionFunction, isIndexNumberInIndexRange, isIndexNumberInIndexRangeFunction, isIndexRangeInIndexRange, isIndexRangeInIndexRangeFunction, isIterable, isKnownHttpWebsiteProtocol, isLatLngBound, isLatLngBoundWithinLatLngBound, isLatLngPoint, isLatLngPointWithinLatLngBound, isLatLngString, isLogicalDateStringCode, isMapIdentityFunction, isMaybeNot, isMaybeNotOrTrue, isMaybeSo, isMinuteOfDay, isModelKey, isMonthDaySlashDate, isNonClassFunction, isNotFalse, isNotNullOrEmptyString, isNumberDivisibleBy, isObjectWithConstructor, isOddNumber, isPast, isPromise, isPromiseLike, isSameLatLngBound, isSameLatLngPoint, isSameNonNullValue, isSameVector, isSelectedDecisionFunctionFactory, isSelectedIndexDecisionFunction, isServerError, isSlashPathFile, isSlashPathFolder, isSlashPathTypedFile, isStandardInternetAccessibleWebsiteUrl, isStringOrTrue, isThrottled, isTrueBooleanKeyArray, isUTCDateString, isUnderThreshold, isUniqueKeyedFunction, isUsStateCodeString, isValidLatLngPoint, isValidLatitude, isValidLongitude, isValidNumberBound, isValidPhoneExtensionNumber, isValidSlashPath, isWebsiteUrl, isWebsiteUrlWithPrefix, isWithinLatLngBoundFunction, isolateSlashPath, isolateSlashPathFunction, isolateWebsitePathFunction, itemCountForBatchIndex, iterableToArray, iterableToMap, iterableToSet, iterablesAreSetEquivalent, iterate, iterateFilteredPages, joinHostAndPort, joinStrings, joinStringsInstance, joinStringsWithCommas, joinStringsWithSpaces, keepCharactersAfterFirstCharacterOccurence, keepCharactersAfterFirstCharacterOccurenceFunction, keepFromSetCopy, keepValuesFromArray, keepValuesFromSet, keyValueMapFactory, labeledValueMap, lastValue, latLngBound, latLngBoundCenterPoint, latLngBoundEastBound, latLngBoundFromInput, latLngBoundFullyWrapsMap, latLngBoundFunction, latLngBoundNorthBound, latLngBoundNorthEastPoint, latLngBoundNorthWestPoint, latLngBoundOverlapsLatLngBound, latLngBoundSouthBound, latLngBoundSouthEastPoint, latLngBoundSouthWestPoint, latLngBoundStrictlyWrapsMap, latLngBoundTuple, latLngBoundTupleFunction, latLngBoundWestBound, latLngBoundWrapsMap, latLngDataPointFunction, latLngPoint, latLngPointFromString, latLngPointFunction, latLngPointPrecisionFunction, latLngString, latLngStringFunction, latLngTuple, latLngTupleFunction, limitArray, lonLatTuple, lowercaseFirstLetter, mailToUrlString, makeBestFit, makeCopyModelFieldFunction, makeDateMonthForMonthOfYear, makeDefaultNonConcurrentTaskKeyFactory, makeGetter, makeHandler, makeHashDecodeMap, makeKeyPairs, makeModelConversionFieldValuesFunction, makeModelMap, makeModelMapFunctions, makeMultiModelKeyMap, makeTimer, makeValuesGroupMap, makeWithFactory, makeWithFactoryInput, mapArrayFunction, mapFunctionOutput, mapFunctionOutputPair, mapGetter, mapGetterFactory, mapIdentityFunction, mapIterable, mapKeysIntersectionObjectToArray, mapMaybeFunction, mapObjectKeysFunction, mapObjectKeysToLowercase, mapObjectMap, mapObjectMapFunction, mapObjectToTargetObject, mapPromiseOrValue, mapToObject, mapToTuples, mapValuesToSet, mappedUseAsyncFunction, mappedUseFunction, mapsHaveSameKeys, maybeMergeModelModifiers, maybeMergeModifiers, maybeModifierMapToFunction, maybeSet, mergeArrays, mergeArraysIntoArray, mergeFilterFunctions, mergeModifiers, mergeObjects, mergeObjectsFunction, mergeSlashPaths, messageFromError, millisecondsToMinutes, millisecondsToMinutesAndSeconds, mimeTypeForApplicationFileExtension, mimeTypeForDocumentFileExtension, mimeTypeForFileExtension, mimeTypeForImageFileExtension, minAndMaxFunction, minAndMaxIndex, minAndMaxIndexFunction, minAndMaxIndexItemsFunction, minAndMaxNumber, minutesToFractionalHours, minutesToHoursAndMinutes, modelFieldConversions, modelFieldMapFunction, modelFieldMapFunctions, modelTypeDataPairFactory, modifier, modifierMapToFunction, modifyModelMapFunction, modifyModelMapFunctions, monthDaySlashDateToDateString, monthOfYearFromDate, monthOfYearFromDateMonth, monthOfYearFromUTCDate, multiKeyValueMapFactory, multiValueMapBuilder, neMostLatLngPoint, nearestDivisibleValues, numberStringDencoder, numberStringDencoderDecodedNumberValueFunction, numberStringDencoderEncodedStringValueFunction, numberStringDencoderFunction, objectCopyFactory, objectDeltaArrayCompressor, objectFieldEqualityChecker, objectFlatMergeMatrix, objectHasKey, objectHasKeys, objectHasNoKeys, objectIsEmpty, objectKeyEqualityComparatorFunction, objectKeysEqualityComparatorFunction, objectMergeMatrix, objectToMap, overlapsLatLngBoundFunction, overrideInObject, overrideInObjectFunctionFactory, padStartFunction, pairGroupValues, parseISO8601DayStringToUTCDate, partialServerError, passThrough, percentNumberFromDecimal, percentNumberToDecimal, performAsyncTask, performAsyncTasks, performBatchLoop, performMakeLoop, performTaskCountLoop, performTaskLoop, performTasksFromFactoryInParallelFunction, performTasksInParallel, performTasksInParallelFunction, pickOneRandomly, poll, primativeKeyDencoder, primativeKeyDencoderMap, primativeKeyStringDencoder, primativeValuesDelta, promiseReference, protectedFactory, pushArrayItemsIntoArray, pushElementOntoArray, pushItemOrArrayItemsIntoArray, randomArrayFactory, randomArrayIndex, randomBoolean, randomEmailFactory, randomFromArrayFactory, randomLatLngFactory, randomLatLngFromCenterFactory, randomNumber, randomNumberFactory, randomPhoneNumberFactory, randomPickFactory, range, rangedIndexedValuesArrayAccessorFactory, rangedIndexedValuesArrayAccessorInfoFactory, readBooleanKeySafetyWrap, readDomainFromEmailAddress, readDomainsFromEmailAddresses, readEmailDomainFromUrlOrEmailAddress, readIndexNumber, readKeysFrom, readKeysFromFilterUniqueFunctionAdditionalKeys, readKeysFromFilterUniqueFunctionAdditionalKeysInput, readKeysFunction, readKeysSetFrom, readKeysSetFunction, readKeysToMap, readModelKey, readModelKeyFromObject, readModelKeys, readModelKeysFromObjects, readMultipleKeysToMap, readPortNumber, readUniqueModelKey, readWebsiteProtocol, readableError, readableStreamToBase64, readableStreamToBuffer, readableStreamToStringFunction, rectangleOverlapsRectangle, reduceBooleansFn, reduceBooleansWithAnd, reduceBooleansWithAndFn, reduceBooleansWithOr, reduceBooleansWithOrFn, reduceNumbers, reduceNumbersFn, reduceNumbersWithAdd, reduceNumbersWithAddFn, reduceNumbersWithMax, reduceNumbersWithMaxFn, reduceNumbersWithMin, reduceNumbersWithMinFn, removeByKeyFromBooleanKeyArray, removeCharactersAfterFirstCharacterOccurence, removeCharactersAfterFirstCharacterOccurenceFunction, removeExtensionFromPhoneNumber, removeFromBooleanKeyArray, removeFromSet, removeFromSetCopy, removeHttpFromUrl, removeModelsWithKey, removeModelsWithSameKey, removeModifiers, removeTrailingFileTypeSeparators, removeTrailingSlashes, removeValuesAtIndexesFromArrayCopy, removeWebProtocolPrefix, repeatString, replaceCharacterAtIndexIf, replaceCharacterAtIndexWith, replaceInvalidFilePathTypeSeparatorsInSlashPath, replaceInvalidFilePathTypeSeparatorsInSlashPathFunction, replaceLastCharacterIf, replaceLastCharacterIfIsFunction, replaceMultipleFilePathsInSlashPath, replaceStringsFunction, requireModelKey, resetPeriodPromiseRateLimiter, restoreOrder, restoreOrderWithValues, reverseCompareFn, roundNumberToStepFunction, roundNumberUpToStep, roundToPrecision, roundToPrecisionFunction, roundingFunction, runAsyncTaskForValue, runAsyncTasksForValues, runNamedAsyncTasks, runNamedAsyncTasksFunction, safeCompareEquality, safeEqualityComparatorFunction, safeFindBestIndexMatch, searchStringFilterFunction, secondsToMinutesAndSeconds, selectiveFieldEncryptor, separateValues, separateValuesToSets, sequentialIncrementingNumberStringModelIdFactory, serverError, setContainsAllValues, setContainsAnyValue, setContainsNoneOfValue, setDeltaChangeKeys, setDeltaFunction, setHasValueFunction, setIncludes, setIncludesFunction, setKeysOnMap, setWebProtocolPrefix, setsAreEquivalent, simpleSortValuesFunctionWithSortRef, simplifyWhitespace, slashPathDetails, slashPathDirectoryTree, slashPathFactory, slashPathFolder, slashPathFolderFactory, slashPathInvalidError, slashPathName, slashPathParts, slashPathPathMatcher, slashPathPathMatcherConfig, slashPathStartTypeFactory, slashPathSubPathMatcher, slashPathType, slashPathValidationFactory, sliceIndexRangeFunction, sliceStringFunction, sortAscendingIndexNumberRefFunction, sortByIndexAscendingCompareFunction, sortByIndexRangeAscendingCompareFunction, sortByLabelFunction, sortByNumberFunction, sortByStringFunction, sortCompareNumberFunction, sortNumbersAscendingFunction, sortValues, sortValuesFunctionOrMapIdentityWithSortRef, sortValuesFunctionWithSortRef, spaceSeparatedCssClasses, splitCommaSeparatedString, splitCommaSeparatedStringToSet, splitFront, splitJoinNameString, splitJoinRemainder, splitStringAtFirstCharacterOccurence, splitStringAtFirstCharacterOccurenceFunction, splitStringAtIndex, splitStringTreeFactory, startOfDayForSystemDateInUTC, startOfDayForUTCDateInUTC, stepsFromIndex, stepsFromIndexFunction, stringCharactersToIndexRecord, stringContains, stringFactoryFromFactory, stringFromDateFactory, stringFromTimeFactory, stringSplitJoinInstance, stringToBoolean, stringToLowercaseFunction, stringToUppercaseFunction, stringTrimFunction, sumOfIntegersBetween, swMostLatLngPoint, symmetricDifferenceArray, symmetricDifferenceArrayBetweenSets, symmetricDifferenceWithModels, takeFront, takeLast, takeValuesFromIterable, telUrlString, telUrlStringForE164PhoneNumberPair, terminatingFactoryFromArray, throwKeyIsRequired, timePeriodCounter, toAbsoluteSlashPathStartType, toCaseInsensitiveStringArray, toMinuteOfDay, toModelFieldConversions, toModelMapFunctions, toReadableError, toRelativeSlashPathStartType, toggleInSet, toggleInSetCopy, toggleTimerRunning, transformNumberFunction, transformNumberFunctionConfig, transformStringFunction, transformStringFunctionConfig, transformStrings, trimArray, trueOrFalseString, tryWithPromiseFactoriesFunction, typedServiceRegistry, unique, uniqueCaseInsensitiveStrings, uniqueCaseInsensitiveStringsSet, uniqueKeys, uniqueModels, unitedStatesAddressString, unixDateTimeSecondsNumberForNow, unixDateTimeSecondsNumberFromDate, unixDateTimeSecondsNumberFromDateOrTimeNumber, unixDateTimeSecondsNumberToDate, unixMillisecondsNumberToDate, updateMaybeValue, urlWithoutParameters, useAsync, useCallback, useContextFunction, useIterableOrValue, useModelOrKey, usePromise, useValue, validLatLngPoint, validLatLngPointFunction, valueAtIndex, valuesAreBothNullishOrEquivalent, valuesFromPOJO, valuesFromPOJOFunction, vectorMinimumSizeResizeFunction, vectorsAreEqual, waitForMs, websiteDomainAndPathPair, websiteDomainAndPathPairFromWebsiteUrl, websitePathAndQueryPair, websitePathFromWebsiteDomainAndPath, websitePathFromWebsiteUrl, websiteUrlDetails, websiteUrlFromPaths, wrapIndexRangeFunction, wrapLatLngPoint, wrapLngValue, wrapMapFunctionOutput, wrapNumberFunction, wrapTuples, wrapUseAsyncFunction, wrapUseFunction };
|
|
20683
|
+
export { ALL_DOUBLE_SLASHES_REGEX, ALL_SLASHES_REGEX, ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX, APPLICATION_FILE_EXTENSION_TO_MIME_TYPES_RECORD, APPLICATION_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, ASSERTION_ERROR_CODE, ASSERTION_HANDLER, AUTH_ADMIN_ROLE, AUTH_ONBOARDED_ROLE, AUTH_ROLE_CLAIMS_DEFAULT_CLAIM_VALUE, AUTH_ROLE_CLAIMS_DEFAULT_EMPTY_VALUE, AUTH_TOS_SIGNED_ROLE, AUTH_USER_ROLE, AbstractUniqueModel, Assert, AssertMax, AssertMin, AssertionError, AssertionIssueHandler, BooleanStringKeyArrayUtility, CATCH_ALL_HANDLE_RESULT_KEY, COMMA_JOINER, COMMA_STRING_SPLIT_JOIN, CSV_MIME_TYPE, CUT_VALUE_TO_ZERO_PRECISION, DASH_CHARACTER_PREFIX_INSTANCE, DATE_NOW_VALUE, DAYS_IN_YEAR, DEFAULT_CUT_STRING_END_TEXT, DEFAULT_ENCRYPTED_FIELD_PREFIX, DEFAULT_LAT_LNG_STRING_VALUE, DEFAULT_RANDOM_EMAIL_FACTORY_CONFIG, DEFAULT_RANDOM_PHONE_NUMBER_FACTORY_CONFIG, DEFAULT_READABLE_ERROR_CODE, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTERS, DEFAULT_SLASH_PATH_ILLEGAL_CHARACTER_REPLACEMENT, DEFAULT_SLASH_PATH_PATH_MATCHER_NON_MATCHING_FILL_VALUE, DEFAULT_UNKNOWN_MODEL_TYPE_STRING, DOCUMENT_FILE_EXTENSION_TO_MIME_TYPES_RECORD, DOCUMENT_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, DOCX_MIME_TYPE, DOLLAR_AMOUNT_PRECISION, DOLLAR_AMOUNT_STRING_REGEX, DataDoesNotExistError, DataIsExpiredError, Day, DestroyFunctionObject, E164PHONE_NUMBER_REGEX, E164PHONE_NUMBER_WITH_EXTENSION_REGEX, E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX, ExploreTreeVisitNodeDecision, FINAL_PAGE, FIRST_PAGE, FRACTIONAL_HOURS_PRECISION_FUNCTION, FlattenTreeAddNodeDecision, FullStorageObject, GIF_MIME_TYPE, HAS_PORT_NUMBER_REGEX, HAS_WEBSITE_DOMAIN_NAME_REGEX, HEIF_MIME_TYPE, HEX_PATTERN, HOURS_IN_DAY, HTML_MIME_TYPE, HTTP_OR_HTTPS_REGEX, HashSet, IMAGE_FILE_EXTENSION_TO_MIME_TYPES_RECORD, IMAGE_MIME_TYPES_TO_FILE_EXTENSIONS_RECORD, ISO8601_DAY_STRING_REGEX, ISO8601_DAY_STRING_START_REGEX, ISO_8601_DATE_STRING_REGEX, JPEG_MIME_TYPE, JSON_MIME_TYPE, KeyValueTypleValueFilter, LAT_LNG_PATTERN, LAT_LNG_PATTERN_MAX_PRECISION, LAT_LONG_100KM_PRECISION, LAT_LONG_100M_PRECISION, LAT_LONG_10CM_PRECISION, LAT_LONG_10KM_PRECISION, LAT_LONG_10M_PRECISION, LAT_LONG_1CM_PRECISION, LAT_LONG_1KM_PRECISION, LAT_LONG_1MM_PRECISION, LAT_LONG_1M_PRECISION, LAT_LONG_GRAINS_OF_SAND_PRECISION, LEADING_SLASHES_REGEX, MAP_IDENTITY, MARKDOWN_MIME_TYPE, MAX_BITWISE_SET_SIZE, MAX_LATITUDE_VALUE, MAX_LONGITUDE_VALUE, MINUTES_IN_DAY, MINUTES_IN_HOUR, MINUTE_OF_DAY_MAXMIMUM, MINUTE_OF_DAY_MINIUMUM, MIN_LATITUDE_VALUE, MIN_LONGITUDE_VALUE, MONTH_DAY_SLASH_DATE_STRING_REGEX, MS_IN_DAY, MS_IN_HOUR, MS_IN_MINUTE, MS_IN_SECOND, MemoryStorageInstance, ModelRelationUtility, NOOP_MODIFIER, NUMBER_STRING_DENCODER_64, NUMBER_STRING_DENCODER_64_DEFAULT_NEGATIVE_PREFIX, NUMBER_STRING_DENCODER_64_DIGITS, PDF_MIME_TYPE, PHONE_EXTENSION_NUMBER_REGEX, PNG_MIME_TYPE, PRIMATIVE_KEY_DENCODER_VALUE, PropertyDescriptorUtility, RAW_MIME_TYPE, REGEX_SPECIAL_CHARACTERS, REGEX_SPECIAL_CHARACTERS_SET, RelationChange, SECONDS_IN_HOUR, SECONDS_IN_MINUTE, SHARED_MEMORY_STORAGE, SLASH_PATH_FILE_TYPE_SEPARATOR, SLASH_PATH_SEPARATOR, SORT_VALUE_EQUAL, SORT_VALUE_GREATER_THAN, SORT_VALUE_LESS_THAN, SPACE_JOINER, SPACE_STRING_SPLIT_JOIN, SPLIT_STRING_TREE_NODE_ROOT_VALUE, SVG_MIME_TYPE, ServerErrorResponse, SetDeltaChange, SimpleStorageObject, SlashPathPathMatcherPartCode, StorageObject, StorageObjectUtility, StoredDataError, SyncState, TIFF_MIME_TYPE, TOTAL_LATITUDE_RANGE, TOTAL_LONGITUDE_RANGE, TOTAL_SPAN_OF_LONGITUDE, TRAILING_FILE_TYPE_SEPARATORS_REGEX, TRAILING_SLASHES_REGEX, TXT_MIME_TYPE, TimeAM, TimerCancelledError, TypedServiceRegistryInstance, UNLOADED_PAGE, UNSET_INDEX_NUMBER, US_STATE_CODE_STRING_REGEX, UTC_DATE_STRING_REGEX, UTC_TIMEZONE_STRING, UTF_8_START_CHARACTER, UTF_PRIVATE_USAGE_AREA_START, UnauthorizedServerErrorResponse, WEBP_MIME_TYPE, WEBSITE_TLD_DETECTION_REGEX, WEB_PROTOCOL_PREFIX_REGEX, XLSX_MIME_TYPE, XML_MIME_TYPE, YAML_MIME_TYPE, ZIP_CODE_STRING_REGEX, ZIP_FILE_MIME_TYPE, addHttpToUrl, addLatLngPoints, addMilliseconds, addModifiers, addPlusPrefixToNumber, addPrefix, addPrefixFunction, addSuffix, addSuffixFunction, addToSet, addToSetCopy, addToSplitStringTree, addTrailingSlash, allFalsyOrEmptyKeys, allIndexesInIndexRange, allKeyValueTuples, allMaybeSoKeys, allNonUndefinedKeys, allObjectsAreEqual, allValuesAreMaybeNot, allValuesAreNotMaybe, allowValueOnceFilter, applicationFileExtensionForMimeType, applyBestFit, applySplitStringTreeWithMultipleValues, applyToMultipleFields, approximateTimerEndDate, areEqualContext, areEqualPOJOValues, areEqualPOJOValuesUsingPojoFilter, arrayContainsDuplicateValue, arrayContentsDiffer, arrayDecision, arrayDecisionFunction, arrayFactory, arrayInputFactory, arrayToLowercase, arrayToMap, arrayToObject, arrayToUppercase, asArray, asDecisionFunction, asGetter, asIndexRangeCheckFunctionConfig, asIterable, asMinuteOfDay, asNonEmptyArray, asNumber, asObjectCopyFactory, asPromise, asSet, assignValuesToPOJO, assignValuesToPOJOFunction, authClaims, authRoleClaimsService, authRolesSetHasRoles, baseWebsiteUrl, batch, batchCalc, bitwiseObjectDencoder, bitwiseObjectEncoder, bitwiseObjectdecoder, bitwiseSetDecoder, bitwiseSetDencoder, booleanFactory, booleanKeyArrayUtility, boundNumber, boundNumberFunction, boundToRectangle, breadthFirstExploreTreeTraversalFactoryFunction, bufferHasValidPdfMarkings, build, cachedGetter, calculateExpirationDate, capLatValue, capitalizeFirstLetter, caseInsensitiveFilterByIndexOfDecisionFactory, caseInsensitiveString, catchAllHandlerKey, chainMapFunction, chainMapSameFunctions, characterPrefixSuffixInstance, checkAnyHaveExpired, checkAtleastOneNotExpired, coerceToEmailParticipants, combineMaps, compareEqualityWithValueFromItemsFunction, compareEqualityWithValueFromItemsFunctionFactory, compareFnOrder, compareWithMappedValuesFunction, computeNextFractionalHour, computeNextFreeIndexFunction, computeNextFreeIndexOnSortedValuesFunction, concatArrays, concatArraysUnique, containsAllStringsAnyCase, containsAllValues, containsAnyStringAnyCase, containsAnyValue, containsAnyValueFromSet, containsNoValueFromSet, containsNoneOfValue, containsStringAnyCase, convertEmailParticipantStringToParticipant, convertMaybeToArray, convertMaybeToNonEmptyArray, convertParticipantToEmailParticipantString, convertToArray, copyArray, copyField, copyLatLngBound, copyLatLngPoint, copyObject, copySetAndDo, countAllInNestedArray, countPOJOKeys, countPOJOKeysFunction, cronExpressionRepeatingEveryNMinutes, cssClassesSet, cssTokenVar, cssVariableVar, cutString, cutStringFunction, cutToPrecision, cutValueToInteger, cutValueToPrecision, cutValueToPrecisionFunction, dateFromDateOrTimeMillisecondsNumber, dateFromDateOrTimeSecondsNumber, dateFromLogicalDate, dateFromMinuteOfDay, dateOrMillisecondsToDate, dateToHoursAndMinutes, dateToMinuteOfDay, dayOfWeek, daysOfWeekArray, daysOfWeekFromEnabledDays, daysOfWeekNameFunction, daysOfWeekNameMap, decisionFunction, decodeHashedValues, decodeHashedValuesWithDecodeMap, decodeModelKeyTypePair, decodeRadix36Number, defaultFilterFromPOJOFunctionNoCopy, defaultForwardFunctionFactory, defaultLatLngPoint, defaultLatLngString, dencodeBitwiseSet, depthFirstExploreTreeTraversalFactoryFunction, diffLatLngBoundPoints, diffLatLngPoints, documentFileExtensionForMimeType, dollarAmountString, dollarAmountStringWithUnitFunction, e164PhoneNumberExtensionPair, e164PhoneNumberFromE164PhoneNumberExtensionPair, enabledDaysFromDaysOfWeek, encodeBitwiseSet, encodeModelKeyTypePair, encodeRadix36Number, errorMessageContainsString, errorMessageContainsStringFunction, escapeStringCharactersFunction, escapeStringForRegex, excludeValues, excludeValuesFromArray, excludeValuesFromSet, existsInIterable, expandArrayMapTuples, expandArrayValueTuples, expandFlattenTreeFunction, expandIndexSet, expandSlashPathPathMatcherPartToDecisionFunctions, expandTreeFunction, expandTrees, expirationDetails, exploreTreeFunction, exponentialPromiseRateLimiter, extendLatLngBound, fileExtensionForMimeType, filterAndMapFunction, filterEmptyArrayValues, filterEmptyPojoValues, filterFalsyAndEmptyValues, filterFromIterable, filterFromPOJO, filterFromPOJOFunction, filterKeyValueTupleFunction, filterKeyValueTuples, filterKeyValueTuplesFunction, filterKeyValueTuplesInputToFilter, filterKeysOnPOJOFunction, filterMaybeArrayFunction, filterMaybeArrayValues, filterNullAndUndefinedValues, filterOnlyUndefinedValues, filterTuplesOnPOJOFunction, filterUndefinedValues, filterUniqueByIndex, filterUniqueCaseInsensitiveStrings, filterUniqueFunction, filterUniqueTransform, filterUniqueValues, filterValuesByDistance, filterValuesByDistanceNoOrder, filterValuesToSet, filterValuesUsingSet, filteredPage, findAllCharacterOccurences, findAllCharacterOccurencesFunction, findBest, findBestIndexMatch, findBestIndexMatchFunction, findBestIndexSetPair, findBestSplitStringTreeChildMatch, findBestSplitStringTreeChildMatchPath, findBestSplitStringTreeMatch, findBestSplitStringTreeMatchPath, findFirstCharacterOccurence, findInIterable, findIndexOfFirstDuplicateValue, findItemsByIndex, findNext, findPOJOKeys, findPOJOKeysFunction, findStringsRegexString, findToIndexSet, findValuesFrom, firstAndLastCharacterOccurrence, firstAndLastValue, firstValue, firstValueFromIterable, fitToIndexRangeFunction, fixExtraQueryParameters, fixMultiSlashesInSlashPath, flattenArray, flattenArrayOrValueArray, flattenArrayToSet, flattenArrayUnique, flattenArrayUniqueCaseInsensitiveStrings, flattenObject, flattenTree, flattenTreeToArray, flattenTreeToArrayFunction, flattenWhitespace, forEachInIterable, forEachKeyValue, forEachKeyValueOnPOJOFunction, forEachWithArray, forwardFunction, fractionalHoursToMinutes, generateIfDoesNotExist, getArrayNextIndex, getBaseLog, getDayOffset, getDayTomorrow, getDayYesterday, getDaysOfWeekNames, getFunctionType, getNextDay, getNextPageNumber, getOverlappingRectangle, getPageNumber, getPreviousDay, getValueFromGetter, groupValues, handlerBindAccessor, handlerConfigurerFactory, handlerFactory, handlerMappedSetFunction, handlerMappedSetFunctionFactory, handlerSetFunction, hasDifferentStringsNoCase, hasDifferentValues, hasHttpPrefix, hasNonNullValue, hasPortNumber, hasSameTimezone, hasSameValues, hasValueFunction, hasValueOrNotEmpty, hasValueOrNotEmptyObject, hasWebsiteDomain, hasWebsiteTopLevelDomain, hashSetForIndexed, hourToFractionalHour, hoursAndMinutesToString, idBatchFactory, imageFileExtensionForMimeType, incrementingNumberFactory, indexDeltaGroup, indexDeltaGroupFunction, indexRange, indexRangeCheckFunction, indexRangeCheckReaderFunction, indexRangeForArray, indexRangeOverlapsIndexRange, indexRangeOverlapsIndexRangeFunction, indexRangeReaderPairFactory, indexRefMap, indexedValuesArrayAccessorFactory, insertIntoBooleanKeyArray, invertBooleanReturnFunction, invertDecision, invertFilter, invertMaybeBoolean, invertStringRecord, isAllowed, isClassLikeType, isCompleteUnitedStatesAddress, isConsideredUtcTimezoneString, isDate, isDefaultLatLngPoint, isDefaultLatLngPointValue, isDefaultReadableError, isDefinedAndNotFalse, isDollarAmountString, isE164PhoneNumber, isE164PhoneNumberWithExtension, isEmptyIterable, isEqualContext, isEqualDate, isEqualToValueDecisionFunction, isEvenNumber, isFalseBooleanKeyArray, isFinalPage, isGetter, isHex, isISO8601DateString, isISO8601DayString, isISO8601DayStringStart, isInAllowedDaysOfWeekSet, isInNumberBoundFunction, isInSetDecisionFunction, isIndexNumberInIndexRange, isIndexNumberInIndexRangeFunction, isIndexRangeInIndexRange, isIndexRangeInIndexRangeFunction, isIterable, isKnownHttpWebsiteProtocol, isLatLngBound, isLatLngBoundWithinLatLngBound, isLatLngPoint, isLatLngPointWithinLatLngBound, isLatLngString, isLogicalDateStringCode, isMapIdentityFunction, isMaybeNot, isMaybeNotOrTrue, isMaybeSo, isMinuteOfDay, isModelKey, isMonthDaySlashDate, isNonClassFunction, isNotFalse, isNotNullOrEmptyString, isNumberDivisibleBy, isObjectWithConstructor, isOddNumber, isPast, isPromise, isPromiseLike, isSameLatLngBound, isSameLatLngPoint, isSameNonNullValue, isSameVector, isSelectedDecisionFunctionFactory, isSelectedIndexDecisionFunction, isServerError, isSlashPathFile, isSlashPathFolder, isSlashPathTypedFile, isStandardInternetAccessibleWebsiteUrl, isStringOrTrue, isThrottled, isTrueBooleanKeyArray, isUTCDateString, isUnderThreshold, isUniqueKeyedFunction, isUsStateCodeString, isValidLatLngPoint, isValidLatitude, isValidLongitude, isValidNumberBound, isValidPhoneExtensionNumber, isValidSlashPath, isWebsiteUrl, isWebsiteUrlWithPrefix, isWithinLatLngBoundFunction, isolateSlashPath, isolateSlashPathFunction, isolateWebsitePathFunction, itemCountForBatchIndex, iterableToArray, iterableToMap, iterableToSet, iterablesAreSetEquivalent, iterate, iterateFilteredPages, joinHostAndPort, joinStrings, joinStringsInstance, joinStringsWithCommas, joinStringsWithSpaces, keepCharactersAfterFirstCharacterOccurence, keepCharactersAfterFirstCharacterOccurenceFunction, keepFromSetCopy, keepValuesFromArray, keepValuesFromSet, keyValueMapFactory, labeledValueMap, lastValue, latLngBound, latLngBoundCenterPoint, latLngBoundEastBound, latLngBoundFromInput, latLngBoundFullyWrapsMap, latLngBoundFunction, latLngBoundNorthBound, latLngBoundNorthEastPoint, latLngBoundNorthWestPoint, latLngBoundOverlapsLatLngBound, latLngBoundSouthBound, latLngBoundSouthEastPoint, latLngBoundSouthWestPoint, latLngBoundStrictlyWrapsMap, latLngBoundTuple, latLngBoundTupleFunction, latLngBoundWestBound, latLngBoundWrapsMap, latLngDataPointFunction, latLngPoint, latLngPointFromString, latLngPointFunction, latLngPointPrecisionFunction, latLngString, latLngStringFunction, latLngTuple, latLngTupleFunction, limitArray, lonLatTuple, lowercaseFirstLetter, mailToUrlString, makeBestFit, makeCopyModelFieldFunction, makeDateMonthForMonthOfYear, makeDefaultNonConcurrentTaskKeyFactory, makeGetter, makeHandler, makeHashDecodeMap, makeKeyPairs, makeModelConversionFieldValuesFunction, makeModelMap, makeModelMapFunctions, makeMultiModelKeyMap, makeTimer, makeValuesGroupMap, makeWithFactory, makeWithFactoryInput, mapArrayFunction, mapFunctionOutput, mapFunctionOutputPair, mapGetter, mapGetterFactory, mapIdentityFunction, mapIterable, mapKeysIntersectionObjectToArray, mapMaybeFunction, mapObjectKeysFunction, mapObjectKeysToLowercase, mapObjectMap, mapObjectMapFunction, mapObjectToTargetObject, mapPromiseOrValue, mapToObject, mapToTuples, mapValuesToSet, mappedUseAsyncFunction, mappedUseFunction, mapsHaveSameKeys, maybeMergeModelModifiers, maybeMergeModifiers, maybeModifierMapToFunction, maybeSet, mergeArrays, mergeArraysIntoArray, mergeFilterFunctions, mergeModifiers, mergeObjects, mergeObjectsFunction, mergeSlashPaths, messageFromError, millisecondsToMinutes, millisecondsToMinutesAndSeconds, mimeTypeForApplicationFileExtension, mimeTypeForDocumentFileExtension, mimeTypeForFileExtension, mimeTypeForImageFileExtension, minAndMaxFunction, minAndMaxIndex, minAndMaxIndexFunction, minAndMaxIndexItemsFunction, minAndMaxNumber, minutesToFractionalHours, minutesToHoursAndMinutes, modelFieldConversions, modelFieldMapFunction, modelFieldMapFunctions, modelTypeDataPairFactory, modifier, modifierMapToFunction, modifyModelMapFunction, modifyModelMapFunctions, monthDaySlashDateToDateString, monthOfYearFromDate, monthOfYearFromDateMonth, monthOfYearFromUTCDate, multiKeyValueMapFactory, multiValueMapBuilder, neMostLatLngPoint, nearestDivisibleValues, numberStringDencoder, numberStringDencoderDecodedNumberValueFunction, numberStringDencoderEncodedStringValueFunction, numberStringDencoderFunction, objectCopyFactory, objectDeltaArrayCompressor, objectFieldEqualityChecker, objectFlatMergeMatrix, objectHasKey, objectHasKeys, objectHasNoKeys, objectIsEmpty, objectKeyEqualityComparatorFunction, objectKeysEqualityComparatorFunction, objectMergeMatrix, objectToMap, overlapsLatLngBoundFunction, overrideInObject, overrideInObjectFunctionFactory, padStartFunction, pairGroupValues, parseISO8601DayStringToUTCDate, partialServerError, passThrough, percentNumberFromDecimal, percentNumberToDecimal, performAsyncTask, performAsyncTasks, performBatchLoop, performMakeLoop, performTaskCountLoop, performTaskLoop, performTasksFromFactoryInParallelFunction, performTasksInParallel, performTasksInParallelFunction, pickOneRandomly, poll, primativeKeyDencoder, primativeKeyDencoderMap, primativeKeyStringDencoder, primativeValuesDelta, promiseReference, protectedFactory, pushArrayItemsIntoArray, pushElementOntoArray, pushItemOrArrayItemsIntoArray, randomArrayFactory, randomArrayIndex, randomBoolean, randomEmailFactory, randomFromArrayFactory, randomLatLngFactory, randomLatLngFromCenterFactory, randomNumber, randomNumberFactory, randomPhoneNumberFactory, randomPickFactory, range, rangedIndexedValuesArrayAccessorFactory, rangedIndexedValuesArrayAccessorInfoFactory, readBooleanKeySafetyWrap, readDomainFromEmailAddress, readDomainsFromEmailAddresses, readEmailDomainFromUrlOrEmailAddress, readIndexNumber, readKeysFrom, readKeysFromFilterUniqueFunctionAdditionalKeys, readKeysFromFilterUniqueFunctionAdditionalKeysInput, readKeysFunction, readKeysSetFrom, readKeysSetFunction, readKeysToMap, readModelKey, readModelKeyFromObject, readModelKeys, readModelKeysFromObjects, readMultipleKeysToMap, readPortNumber, readUniqueModelKey, readWebsiteProtocol, readableError, readableStreamToBase64, readableStreamToBuffer, readableStreamToStringFunction, rectangleOverlapsRectangle, reduceBooleansFn, reduceBooleansWithAnd, reduceBooleansWithAndFn, reduceBooleansWithOr, reduceBooleansWithOrFn, reduceNumbers, reduceNumbersFn, reduceNumbersWithAdd, reduceNumbersWithAddFn, reduceNumbersWithMax, reduceNumbersWithMaxFn, reduceNumbersWithMin, reduceNumbersWithMinFn, removeByKeyFromBooleanKeyArray, removeCharactersAfterFirstCharacterOccurence, removeCharactersAfterFirstCharacterOccurenceFunction, removeExtensionFromPhoneNumber, removeFromBooleanKeyArray, removeFromSet, removeFromSetCopy, removeHttpFromUrl, removeModelsWithKey, removeModelsWithSameKey, removeModifiers, removeTrailingFileTypeSeparators, removeTrailingSlashes, removeValuesAtIndexesFromArrayCopy, removeWebProtocolPrefix, repeatString, replaceCharacterAtIndexIf, replaceCharacterAtIndexWith, replaceInvalidFilePathTypeSeparatorsInSlashPath, replaceInvalidFilePathTypeSeparatorsInSlashPathFunction, replaceLastCharacterIf, replaceLastCharacterIfIsFunction, replaceMultipleFilePathsInSlashPath, replaceStringsFunction, requireModelKey, resetPeriodPromiseRateLimiter, restoreOrder, restoreOrderWithValues, reverseCompareFn, roundNumberToStepFunction, roundNumberUpToStep, roundToPrecision, roundToPrecisionFunction, roundingFunction, runAsyncTaskForValue, runAsyncTasksForValues, runNamedAsyncTasks, runNamedAsyncTasksFunction, safeCompareEquality, safeEqualityComparatorFunction, safeFindBestIndexMatch, searchStringFilterFunction, secondsToMinutesAndSeconds, selectiveFieldEncryptor, separateValues, separateValuesToSets, sequentialIncrementingNumberStringModelIdFactory, serverError, setContainsAllValues, setContainsAnyValue, setContainsNoneOfValue, setDeltaChangeKeys, setDeltaFunction, setHasValueFunction, setIncludes, setIncludesFunction, setKeysOnMap, setWebProtocolPrefix, setsAreEquivalent, simpleSortValuesFunctionWithSortRef, simplifyWhitespace, slashPathDetails, slashPathDirectoryTree, slashPathFactory, slashPathFolder, slashPathFolderFactory, slashPathInvalidError, slashPathName, slashPathParts, slashPathPathMatcher, slashPathPathMatcherConfig, slashPathStartTypeFactory, slashPathSubPathMatcher, slashPathType, slashPathValidationFactory, sliceIndexRangeFunction, sliceStringFunction, sortAscendingIndexNumberRefFunction, sortByIndexAscendingCompareFunction, sortByIndexRangeAscendingCompareFunction, sortByLabelFunction, sortByNumberFunction, sortByStringFunction, sortCompareNumberFunction, sortNumbersAscendingFunction, sortValues, sortValuesFunctionOrMapIdentityWithSortRef, sortValuesFunctionWithSortRef, spaceSeparatedCssClasses, splitCommaSeparatedString, splitCommaSeparatedStringToSet, splitFront, splitJoinNameString, splitJoinRemainder, splitStringAtFirstCharacterOccurence, splitStringAtFirstCharacterOccurenceFunction, splitStringAtIndex, splitStringTreeFactory, startOfDayForSystemDateInUTC, startOfDayForUTCDateInUTC, stepsFromIndex, stepsFromIndexFunction, stringCharactersToIndexRecord, stringContains, stringFactoryFromFactory, stringFromDateFactory, stringFromTimeFactory, stringSplitJoinInstance, stringToBoolean, stringToLowercaseFunction, stringToUppercaseFunction, stringTrimFunction, sumOfIntegersBetween, swMostLatLngPoint, symmetricDifferenceArray, symmetricDifferenceArrayBetweenSets, symmetricDifferenceWithModels, takeFront, takeLast, takeValuesFromIterable, telUrlString, telUrlStringForE164PhoneNumberPair, terminatingFactoryFromArray, throwKeyIsRequired, timePeriodCounter, toAbsoluteSlashPathStartType, toCaseInsensitiveStringArray, toMinuteOfDay, toModelFieldConversions, toModelMapFunctions, toReadableError, toRelativeSlashPathStartType, toggleInSet, toggleInSetCopy, toggleTimerRunning, transformNumberFunction, transformNumberFunctionConfig, transformStringFunction, transformStringFunctionConfig, transformStrings, trimArray, trueOrFalseString, tryConvertToE164PhoneNumber, tryWithPromiseFactoriesFunction, typedServiceRegistry, unique, uniqueCaseInsensitiveStrings, uniqueCaseInsensitiveStringsSet, uniqueKeys, uniqueModels, unitedStatesAddressString, unixDateTimeSecondsNumberForNow, unixDateTimeSecondsNumberFromDate, unixDateTimeSecondsNumberFromDateOrTimeNumber, unixDateTimeSecondsNumberToDate, unixMillisecondsNumberToDate, updateMaybeValue, urlWithoutParameters, useAsync, useCallback, useContextFunction, useIterableOrValue, useModelOrKey, usePromise, useValue, validLatLngPoint, validLatLngPointFunction, valueAtIndex, valuesAreBothNullishOrEquivalent, valuesFromPOJO, valuesFromPOJOFunction, vectorMinimumSizeResizeFunction, vectorsAreEqual, waitForMs, websiteDomainAndPathPair, websiteDomainAndPathPairFromWebsiteUrl, websitePathAndQueryPair, websitePathFromWebsiteDomainAndPath, websitePathFromWebsiteUrl, websiteUrlDetails, websiteUrlFromPaths, wrapIndexRangeFunction, wrapLatLngPoint, wrapLngValue, wrapMapFunctionOutput, wrapNumberFunction, wrapTuples, wrapUseAsyncFunction, wrapUseFunction };
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ export type PhoneExtensionNumber = string;
|
|
|
24
24
|
export type E164PhoneNumber = `+${PhoneNumber}`;
|
|
25
25
|
/**
|
|
26
26
|
* Regular expression for validating E.164 phone numbers.
|
|
27
|
-
* Validates numbers that start with a + followed by
|
|
27
|
+
* Validates numbers that start with a + followed by 7-15 digits.
|
|
28
28
|
* The first digit after the + must be 1-9 (not 0).
|
|
29
29
|
*
|
|
30
30
|
* Requires the + to be provided.
|
|
@@ -50,7 +50,7 @@ export type E164PhoneNumberWithExtension = `+${PhoneNumber}#${PhoneExtensionNumb
|
|
|
50
50
|
export type E164PhoneNumberWithOptionalExtension = E164PhoneNumber | E164PhoneNumberWithExtension;
|
|
51
51
|
/**
|
|
52
52
|
* Regular expression for validating E.164 phone numbers with an optional extension.
|
|
53
|
-
* Validates numbers in the format +number or +number#extension.
|
|
53
|
+
* Validates numbers with 7-15 digits in the format +number or +number#extension.
|
|
54
54
|
* The extension part is 1-6 digits following a # character.
|
|
55
55
|
*
|
|
56
56
|
* Requires the + to be provided.
|
|
@@ -58,7 +58,7 @@ export type E164PhoneNumberWithOptionalExtension = E164PhoneNumber | E164PhoneNu
|
|
|
58
58
|
export declare const E164PHONE_NUMBER_WITH_OPTIONAL_EXTENSION_REGEX: RegExp;
|
|
59
59
|
/**
|
|
60
60
|
* Regular expression for validating E.164 phone numbers that must include an extension.
|
|
61
|
-
* Validates numbers strictly in the format +number#extension.
|
|
61
|
+
* Validates numbers with 7-15 digits strictly in the format +number#extension.
|
|
62
62
|
* The extension part is 1-6 digits following a # character.
|
|
63
63
|
*
|
|
64
64
|
* Requires the + to be provided and the extension part.
|
|
@@ -116,3 +116,24 @@ export declare function e164PhoneNumberExtensionPair(input: PhoneNumber | E164Ph
|
|
|
116
116
|
* @returns A formatted phone number string with optional extension
|
|
117
117
|
*/
|
|
118
118
|
export declare function e164PhoneNumberFromE164PhoneNumberExtensionPair(input: E164PhoneNumberExtensionPair): E164PhoneNumberWithOptionalExtension;
|
|
119
|
+
/**
|
|
120
|
+
* Attempts to convert a raw phone number string into a valid {@link E164PhoneNumber}.
|
|
121
|
+
*
|
|
122
|
+
* Strips common formatting characters (parentheses, hyphens, spaces, dots), then checks
|
|
123
|
+
* if the result is already valid E.164. If not, prepends the given country code and
|
|
124
|
+
* validates again.
|
|
125
|
+
*
|
|
126
|
+
* @param input - A raw phone number string, possibly with formatting (e.g. `'(720)6620850'`, `'720-662-0850'`)
|
|
127
|
+
* @param defaultCountryCode - The country calling code to prepend if the number lacks one (default: `'1'` for US/Canada)
|
|
128
|
+
* @returns The corrected {@link E164PhoneNumber}, or `undefined` if the input cannot be converted
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```typescript
|
|
132
|
+
* tryConvertToE164PhoneNumber('(720)6620850'); // '+17206620850'
|
|
133
|
+
* tryConvertToE164PhoneNumber('720-662-0850'); // '+17206620850'
|
|
134
|
+
* tryConvertToE164PhoneNumber('+17206620850'); // '+17206620850'
|
|
135
|
+
* tryConvertToE164PhoneNumber('7206620850', '44'); // '+447206620850'
|
|
136
|
+
* tryConvertToE164PhoneNumber('abc'); // undefined
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
export declare function tryConvertToE164PhoneNumber(input: string, defaultCountryCode?: string): Maybe<E164PhoneNumber>;
|
|
@@ -13,6 +13,9 @@ export type JsonSerializableObject = Record<PrimativeKey, any>;
|
|
|
13
13
|
* String key of an object.
|
|
14
14
|
*/
|
|
15
15
|
export type ObjectKey = string;
|
|
16
|
+
/**
|
|
17
|
+
* An object with no keys.
|
|
18
|
+
*/
|
|
16
19
|
export type EmptyObject = Record<string, never>;
|
|
17
20
|
/**
|
|
18
21
|
* Checks whether the object has no own enumerable keys.
|
package/src/lib/string/html.d.ts
CHANGED
|
@@ -5,6 +5,57 @@ import { type PrimativeValue } from '../type';
|
|
|
5
5
|
* Represents a single CSS Class
|
|
6
6
|
*/
|
|
7
7
|
export type CssClass = string;
|
|
8
|
+
/**
|
|
9
|
+
* The name portion of a CSS token, without the leading `--` prefix.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const name: CssTokenName = 'dbx-primary-color';
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export type CssTokenName = string;
|
|
17
|
+
/**
|
|
18
|
+
* Represents a CSS custom property token (CSS variable).
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const token: CssToken = '--dbx-primary-color';
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export type CssToken<T extends CssTokenName = CssTokenName> = `--${T}`;
|
|
26
|
+
/**
|
|
27
|
+
* A CSS token wrapped in a var() call.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const tokenVar: CssTokenVar = 'var(--dbx-primary-color)';
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export type CssTokenVar<T extends CssToken = CssToken> = `var(${T})`;
|
|
35
|
+
/**
|
|
36
|
+
* Converts a CSS token into a var() string.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* cssTokenVar('--dbx-primary-color'); // 'var(--dbx-primary-color)'
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @param cssToken - the CSS token to convert
|
|
44
|
+
* @returns the var() string
|
|
45
|
+
*/
|
|
46
|
+
export declare function cssTokenVar<T extends CssToken>(cssToken: T): CssTokenVar<T>;
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated Use {@link CssToken} instead.
|
|
49
|
+
*/
|
|
50
|
+
export type CssVariable = CssToken;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Use {@link CssTokenVar} instead.
|
|
53
|
+
*/
|
|
54
|
+
export type CssVariableVar<T extends CssToken = CssToken> = CssTokenVar<T>;
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated Use {@link cssTokenVar} instead.
|
|
57
|
+
*/
|
|
58
|
+
export declare const cssVariableVar: typeof cssTokenVar;
|
|
8
59
|
/**
|
|
9
60
|
* Represents a single CSS Style
|
|
10
61
|
*/
|