@dereekb/util 13.3.0 → 13.4.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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dereekb/util/fetch",
3
- "version": "13.3.0",
3
+ "version": "13.4.0",
4
4
  "peerDependencies": {
5
- "@dereekb/util": "13.3.0",
5
+ "@dereekb/util": "13.4.0",
6
6
  "make-error": "^1.3.0",
7
7
  "fast-content-type-parse": "^3.0.0"
8
8
  },
package/index.cjs.js CHANGED
@@ -1412,7 +1412,7 @@ function objectHasKeys(obj, keys, mode) {
1412
1412
  return _object_spread$f({}, input);
1413
1413
  }
1414
1414
 
1415
- function _type_of$k(obj) {
1415
+ function _type_of$l(obj) {
1416
1416
  "@swc/helpers - typeof";
1417
1417
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1418
1418
  }
@@ -1453,7 +1453,7 @@ function _type_of$k(obj) {
1453
1453
  if (isIterable(value, true)) {
1454
1454
  return !isEmptyIterable(value);
1455
1455
  } else if (isNotNullOrEmptyString(value)) {
1456
- return (typeof value === "undefined" ? "undefined" : _type_of$k(value)) === 'object' ? !objectHasNoKeys(value) : true;
1456
+ return (typeof value === "undefined" ? "undefined" : _type_of$l(value)) === 'object' ? !objectHasNoKeys(value) : true;
1457
1457
  } else {
1458
1458
  return false;
1459
1459
  }
@@ -1935,7 +1935,7 @@ function _define_property$l(obj, key, value) {
1935
1935
  }
1936
1936
  return obj;
1937
1937
  }
1938
- function _type_of$j(obj) {
1938
+ function _type_of$k(obj) {
1939
1939
  "@swc/helpers - typeof";
1940
1940
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1941
1941
  }
@@ -2083,7 +2083,7 @@ function makeModelMap(input, read) {
2083
2083
  function readModelKey(input) {
2084
2084
  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;
2085
2085
  var key;
2086
- switch(typeof input === "undefined" ? "undefined" : _type_of$j(input)){
2086
+ switch(typeof input === "undefined" ? "undefined" : _type_of$k(input)){
2087
2087
  case 'string':
2088
2088
  key = input;
2089
2089
  break;
@@ -2120,7 +2120,7 @@ function readModelKey(input) {
2120
2120
  * @param input - A model object or a key string
2121
2121
  * @returns `true` if the input is a string key
2122
2122
  */ function isModelKey(input) {
2123
- switch(typeof input === "undefined" ? "undefined" : _type_of$j(input)){
2123
+ switch(typeof input === "undefined" ? "undefined" : _type_of$k(input)){
2124
2124
  case 'string':
2125
2125
  return true;
2126
2126
  default:
@@ -3397,7 +3397,7 @@ function isNonClassFunction(x) {
3397
3397
  return type != null && type !== 'class';
3398
3398
  }
3399
3399
 
3400
- function _type_of$i(obj) {
3400
+ function _type_of$j(obj) {
3401
3401
  "@swc/helpers - typeof";
3402
3402
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
3403
3403
  }
@@ -3450,7 +3450,7 @@ function getValueFromGetter(input, args) {
3450
3450
  * @param copyFunction - Optional custom copy function
3451
3451
  * @returns An ObjectCopyFactory for the input
3452
3452
  */ function asObjectCopyFactory(input, copyFunction) {
3453
- if ((typeof input === "undefined" ? "undefined" : _type_of$i(input)) === 'object') {
3453
+ if ((typeof input === "undefined" ? "undefined" : _type_of$j(input)) === 'object') {
3454
3454
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3455
3455
  return objectCopyFactory(input, copyFunction);
3456
3456
  } else {
@@ -3598,7 +3598,7 @@ function makeWithFactoryInput(factory, input) {
3598
3598
  return Math.max(Math.min(input, max), min);
3599
3599
  }
3600
3600
 
3601
- function _type_of$h(obj) {
3601
+ function _type_of$i(obj) {
3602
3602
  "@swc/helpers - typeof";
3603
3603
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
3604
3604
  }
@@ -3631,7 +3631,7 @@ function _type_of$h(obj) {
3631
3631
  * @returns The numeric value, or 0 for null/undefined
3632
3632
  */ function asNumber(input) {
3633
3633
  var value;
3634
- switch(typeof input === "undefined" ? "undefined" : _type_of$h(input)){
3634
+ switch(typeof input === "undefined" ? "undefined" : _type_of$i(input)){
3635
3635
  case 'number':
3636
3636
  value = input;
3637
3637
  break;
@@ -3734,7 +3734,7 @@ function _type_of$h(obj) {
3734
3734
  return Math.log(y) / Math.log(x);
3735
3735
  }
3736
3736
 
3737
- function _type_of$g(obj) {
3737
+ function _type_of$h(obj) {
3738
3738
  "@swc/helpers - typeof";
3739
3739
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
3740
3740
  }
@@ -3872,7 +3872,7 @@ function _type_of$g(obj) {
3872
3872
  }
3873
3873
  var fn = function fn(input) {
3874
3874
  var value;
3875
- switch(typeof input === "undefined" ? "undefined" : _type_of$g(input)){
3875
+ switch(typeof input === "undefined" ? "undefined" : _type_of$h(input)){
3876
3876
  case 'number':
3877
3877
  value = input;
3878
3878
  break;
@@ -5980,7 +5980,7 @@ function _inherits$4(subClass, superClass) {
5980
5980
  if (superClass) _set_prototype_of$4(subClass, superClass);
5981
5981
  }
5982
5982
  function _possible_constructor_return$4(self, call) {
5983
- if (call && (_type_of$f(call) === "object" || typeof call === "function")) {
5983
+ if (call && (_type_of$g(call) === "object" || typeof call === "function")) {
5984
5984
  return call;
5985
5985
  }
5986
5986
  return _assert_this_initialized$4(self);
@@ -5992,7 +5992,7 @@ function _set_prototype_of$4(o, p) {
5992
5992
  };
5993
5993
  return _set_prototype_of$4(o, p);
5994
5994
  }
5995
- function _type_of$f(obj) {
5995
+ function _type_of$g(obj) {
5996
5996
  "@swc/helpers - typeof";
5997
5997
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5998
5998
  }
@@ -6361,7 +6361,7 @@ function _non_iterable_rest$h() {
6361
6361
  function _sliced_to_array$h(arr, i) {
6362
6362
  return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$k(arr, i) || _non_iterable_rest$h();
6363
6363
  }
6364
- function _type_of$e(obj) {
6364
+ function _type_of$f(obj) {
6365
6365
  "@swc/helpers - typeof";
6366
6366
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
6367
6367
  }
@@ -6483,7 +6483,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
6483
6483
  * @param input - Enum value or filter object
6484
6484
  * @returns Normalized filter object
6485
6485
  */ function filterKeyValueTuplesInputToFilter(input) {
6486
- if ((typeof input === "undefined" ? "undefined" : _type_of$e(input)) === 'object') {
6486
+ if ((typeof input === "undefined" ? "undefined" : _type_of$f(input)) === 'object') {
6487
6487
  return input;
6488
6488
  } else {
6489
6489
  return {
@@ -6702,7 +6702,7 @@ function _object_spread$d(target) {
6702
6702
  function _sliced_to_array$g(arr, i) {
6703
6703
  return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$j(arr, i) || _non_iterable_rest$g();
6704
6704
  }
6705
- function _type_of$d(obj) {
6705
+ function _type_of$e(obj) {
6706
6706
  "@swc/helpers - typeof";
6707
6707
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
6708
6708
  }
@@ -7195,7 +7195,7 @@ function _unsupported_iterable_to_array$j(o, minLen) {
7195
7195
  var input = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : exports.KeyValueTypleValueFilter.UNDEFINED;
7196
7196
  var _ref;
7197
7197
  var filter = input;
7198
- var copy = (_ref = (typeof input === "undefined" ? "undefined" : _type_of$d(input)) === 'object' ? input.copy : true) !== null && _ref !== void 0 ? _ref : true;
7198
+ var copy = (_ref = (typeof input === "undefined" ? "undefined" : _type_of$e(input)) === 'object' ? input.copy : true) !== null && _ref !== void 0 ? _ref : true;
7199
7199
  var assignEachValueToTarget = forEachKeyValueOnPOJOFunction({
7200
7200
  filter: filter,
7201
7201
  forEach: function forEach(param, i, object, target) {
@@ -7538,7 +7538,7 @@ function _non_iterable_rest$f() {
7538
7538
  function _sliced_to_array$f(arr, i) {
7539
7539
  return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$f();
7540
7540
  }
7541
- function _type_of$c(obj) {
7541
+ function _type_of$d(obj) {
7542
7542
  "@swc/helpers - typeof";
7543
7543
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
7544
7544
  }
@@ -7585,7 +7585,7 @@ var AUTH_ROLE_CLAIMS_DEFAULT_EMPTY_VALUE = null;
7585
7585
  var inverse = (_inputEntry_inverse = inputEntry.inverse) !== null && _inputEntry_inverse !== void 0 ? _inputEntry_inverse : false;
7586
7586
  // since checking uses equivalence, the objects will never match equivalence via the === properly.
7587
7587
  // AuthRoleClaimsFactoryConfigEntryEncodeOptions is likely to be used for these cases unknownways, but this will help avoid unexpected errors.
7588
- if ((typeof expectedValue === "undefined" ? "undefined" : _type_of$c(expectedValue)) === 'object') {
7588
+ if ((typeof expectedValue === "undefined" ? "undefined" : _type_of$d(expectedValue)) === 'object') {
7589
7589
  throw new Error("failed decoding claims. Expected value to be a string or number. Object isn't supported with simple claims.");
7590
7590
  }
7591
7591
  if (inverse) {
@@ -8325,7 +8325,7 @@ function _object_spread$c(target) {
8325
8325
  function _sliced_to_array$d(arr, i) {
8326
8326
  return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$d();
8327
8327
  }
8328
- function _type_of$b(obj) {
8328
+ function _type_of$c(obj) {
8329
8329
  "@swc/helpers - typeof";
8330
8330
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
8331
8331
  }
@@ -8806,7 +8806,7 @@ var ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX = /\.+/g;
8806
8806
  var targetPathPartsInput = asArray(path);
8807
8807
  var indexMatchingDecisionFunctions = [];
8808
8808
  targetPathPartsInput.forEach(function(part, index) {
8809
- switch(typeof part === "undefined" ? "undefined" : _type_of$b(part)){
8809
+ switch(typeof part === "undefined" ? "undefined" : _type_of$c(part)){
8810
8810
  case 'number':
8811
8811
  var matchPartFunction;
8812
8812
  switch(part){
@@ -8855,7 +8855,7 @@ var ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX = /\.+/g;
8855
8855
  targetPath: input
8856
8856
  };
8857
8857
  } else {
8858
- switch(typeof input === "undefined" ? "undefined" : _type_of$b(input)){
8858
+ switch(typeof input === "undefined" ? "undefined" : _type_of$c(input)){
8859
8859
  case 'string':
8860
8860
  pathMatcherConfig = {
8861
8861
  targetPath: [
@@ -9646,7 +9646,7 @@ function _object_spread_props$6(target, source) {
9646
9646
  return target;
9647
9647
  }
9648
9648
  function _possible_constructor_return$3(self, call) {
9649
- if (call && (_type_of$a(call) === "object" || typeof call === "function")) {
9649
+ if (call && (_type_of$b(call) === "object" || typeof call === "function")) {
9650
9650
  return call;
9651
9651
  }
9652
9652
  return _assert_this_initialized$3(self);
@@ -9658,7 +9658,7 @@ function _set_prototype_of$3(o, p) {
9658
9658
  };
9659
9659
  return _set_prototype_of$3(o, p);
9660
9660
  }
9661
- function _type_of$a(obj) {
9661
+ function _type_of$b(obj) {
9662
9662
  "@swc/helpers - typeof";
9663
9663
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
9664
9664
  }
@@ -9676,7 +9676,7 @@ function _is_native_reflect_construct$3() {
9676
9676
  * @param input - The value to check
9677
9677
  * @returns True if the input is a ServerError
9678
9678
  */ function isServerError(input) {
9679
- return input != null && (typeof input === "undefined" ? "undefined" : _type_of$a(input)) === 'object' && input.status != null && input.code != null;
9679
+ return input != null && (typeof input === "undefined" ? "undefined" : _type_of$b(input)) === 'object' && input.status != null && input.code != null;
9680
9680
  }
9681
9681
  function partialServerError(messageOrError) {
9682
9682
  var serverError;
@@ -9768,7 +9768,7 @@ function _object_spread$a(target) {
9768
9768
  }
9769
9769
  return target;
9770
9770
  }
9771
- function _type_of$9(obj) {
9771
+ function _type_of$a(obj) {
9772
9772
  "@swc/helpers - typeof";
9773
9773
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
9774
9774
  }
@@ -9781,7 +9781,7 @@ function _type_of$9(obj) {
9781
9781
  * @param error - A ReadableError or error code string to check
9782
9782
  * @returns True if the error uses the default code or has no code
9783
9783
  */ function isDefaultReadableError(error) {
9784
- var code = (typeof error === "undefined" ? "undefined" : _type_of$9(error)) === 'object' ? error === null || error === void 0 ? void 0 : error.code : error;
9784
+ var code = (typeof error === "undefined" ? "undefined" : _type_of$a(error)) === 'object' ? error === null || error === void 0 ? void 0 : error.code : error;
9785
9785
  return !code || code === DEFAULT_READABLE_ERROR_CODE;
9786
9786
  }
9787
9787
  /**
@@ -9848,7 +9848,7 @@ function toReadableError(inputError) {
9848
9848
  * @param input - The error or string to extract a message from
9849
9849
  * @returns The error message string, or null/undefined if not available
9850
9850
  */ function messageFromError(input) {
9851
- return ((typeof input === "undefined" ? "undefined" : _type_of$9(input)) === 'object' ? input.message : input) || input;
9851
+ return ((typeof input === "undefined" ? "undefined" : _type_of$a(input)) === 'object' ? input.message : input) || input;
9852
9852
  }
9853
9853
 
9854
9854
  /**
@@ -11045,7 +11045,7 @@ function _object_spread_props$4(target, source) {
11045
11045
  function _sliced_to_array$a(arr, i) {
11046
11046
  return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$a();
11047
11047
  }
11048
- function _type_of$8(obj) {
11048
+ function _type_of$9(obj) {
11049
11049
  "@swc/helpers - typeof";
11050
11050
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
11051
11051
  }
@@ -11078,7 +11078,7 @@ function _unsupported_iterable_to_array$c(o, minLen) {
11078
11078
  /**
11079
11079
  * Type guard that checks whether the input is a {@link LatLngPoint} by testing for `lat` and `lng` properties.
11080
11080
  */ function isLatLngPoint(input) {
11081
- return (typeof input === "undefined" ? "undefined" : _type_of$8(input)) === 'object' && input.lat != null && input.lng != null;
11081
+ return (typeof input === "undefined" ? "undefined" : _type_of$9(input)) === 'object' && input.lat != null && input.lng != null;
11082
11082
  }
11083
11083
  /**
11084
11084
  * Creates a shallow copy of the point so that mutations to the copy do not affect the original.
@@ -11411,7 +11411,7 @@ function latLngString(lat, lng) {
11411
11411
  ]);
11412
11412
  return function(lat, lng) {
11413
11413
  var latLng;
11414
- var latType = typeof lat === "undefined" ? "undefined" : _type_of$8(lat);
11414
+ var latType = typeof lat === "undefined" ? "undefined" : _type_of$9(lat);
11415
11415
  if (latType === 'string') {
11416
11416
  latLng = latLngPointFromString(lat);
11417
11417
  } else if (Array.isArray(lat)) {
@@ -11600,7 +11600,7 @@ function _sliced_to_array$9(arr, i) {
11600
11600
  function _to_consumable_array$4(arr) {
11601
11601
  return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$4();
11602
11602
  }
11603
- function _type_of$7(obj) {
11603
+ function _type_of$8(obj) {
11604
11604
  "@swc/helpers - typeof";
11605
11605
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
11606
11606
  }
@@ -11615,7 +11615,7 @@ function _unsupported_iterable_to_array$b(o, minLen) {
11615
11615
  /**
11616
11616
  * Type guard that checks whether the input is a {@link LatLngBound} by testing for the presence of `sw` and `ne` properties.
11617
11617
  */ function isLatLngBound(input) {
11618
- return (typeof input === "undefined" ? "undefined" : _type_of$7(input)) === 'object' && input.sw != null && input.ne != null;
11618
+ return (typeof input === "undefined" ? "undefined" : _type_of$8(input)) === 'object' && input.sw != null && input.ne != null;
11619
11619
  }
11620
11620
  /**
11621
11621
  * Creates a deep copy of the bound so that mutations to the copy do not affect the original.
@@ -12195,7 +12195,7 @@ function _non_iterable_rest$8() {
12195
12195
  function _sliced_to_array$8(arr, i) {
12196
12196
  return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$8();
12197
12197
  }
12198
- function _type_of$6(obj) {
12198
+ function _type_of$7(obj) {
12199
12199
  "@swc/helpers - typeof";
12200
12200
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
12201
12201
  }
@@ -12438,7 +12438,7 @@ function dateFromDateOrTimeMillisecondsNumber(input) {
12438
12438
  * @param value - The value to check
12439
12439
  * @returns True if the value is a Date object
12440
12440
  */ function isDate(value) {
12441
- return _instanceof$1(value, Date) || (typeof value === "undefined" ? "undefined" : _type_of$6(value)) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
12441
+ return _instanceof$1(value, Date) || (typeof value === "undefined" ? "undefined" : _type_of$7(value)) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
12442
12442
  }
12443
12443
  /**
12444
12444
  * Returns true if the two input dates represent the same point in time.
@@ -13438,7 +13438,7 @@ function _object_spread$7(target) {
13438
13438
  }
13439
13439
  }
13440
13440
 
13441
- function _type_of$5(obj) {
13441
+ function _type_of$6(obj) {
13442
13442
  "@swc/helpers - typeof";
13443
13443
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
13444
13444
  }
@@ -13449,13 +13449,13 @@ function _type_of$5(obj) {
13449
13449
  * @param obj - Object to check
13450
13450
  * @returns `true` if the object is considered empty
13451
13451
  */ function objectIsEmpty(obj) {
13452
- if (obj != null && (typeof obj === "undefined" ? "undefined" : _type_of$5(obj)) === 'object') {
13452
+ if (obj != null && (typeof obj === "undefined" ? "undefined" : _type_of$6(obj)) === 'object') {
13453
13453
  var keys = Object.keys(obj);
13454
13454
  if (keys.length > 0) {
13455
13455
  for(var i = 0; i < keys.length; i += 1){
13456
13456
  var key = keys[i];
13457
13457
  var value = obj[key];
13458
- var isEmpty = (typeof value === "undefined" ? "undefined" : _type_of$5(value)) === 'object' ? objectIsEmpty(value) : !hasValueOrNotEmpty(value);
13458
+ var isEmpty = (typeof value === "undefined" ? "undefined" : _type_of$6(value)) === 'object' ? objectIsEmpty(value) : !hasValueOrNotEmpty(value);
13459
13459
  if (!isEmpty) {
13460
13460
  return false;
13461
13461
  }
@@ -14068,7 +14068,7 @@ function _ts_generator$6(thisArg, body) {
14068
14068
  })();
14069
14069
  }
14070
14070
 
14071
- function _type_of$4(obj) {
14071
+ function _type_of$5(obj) {
14072
14072
  "@swc/helpers - typeof";
14073
14073
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
14074
14074
  }
@@ -14079,7 +14079,7 @@ function _type_of$4(obj) {
14079
14079
  * @returns `true` if the value is a Promise, `false` otherwise.
14080
14080
  */ function isPromise(obj) {
14081
14081
  // https://github.com/then/is-promise
14082
- return !!obj && ((typeof obj === "undefined" ? "undefined" : _type_of$4(obj)) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
14082
+ return !!obj && ((typeof obj === "undefined" ? "undefined" : _type_of$5(obj)) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
14083
14083
  }
14084
14084
  /**
14085
14085
  * Checks whether the input value is PromiseLike (i.e., has a `.then` method), which
@@ -14089,7 +14089,7 @@ function _type_of$4(obj) {
14089
14089
  * @returns `true` if the value is PromiseLike, `false` otherwise.
14090
14090
  */ function isPromiseLike(obj) {
14091
14091
  // https://github.com/then/is-promise
14092
- return !!obj && ((typeof obj === "undefined" ? "undefined" : _type_of$4(obj)) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
14092
+ return !!obj && ((typeof obj === "undefined" ? "undefined" : _type_of$5(obj)) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
14093
14093
  }
14094
14094
 
14095
14095
  function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
@@ -16114,7 +16114,7 @@ function _inherits$2(subClass, superClass) {
16114
16114
  if (superClass) _set_prototype_of$2(subClass, superClass);
16115
16115
  }
16116
16116
  function _possible_constructor_return$2(self, call) {
16117
- if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
16117
+ if (call && (_type_of$4(call) === "object" || typeof call === "function")) {
16118
16118
  return call;
16119
16119
  }
16120
16120
  return _assert_this_initialized$2(self);
@@ -16126,7 +16126,7 @@ function _set_prototype_of$2(o, p) {
16126
16126
  };
16127
16127
  return _set_prototype_of$2(o, p);
16128
16128
  }
16129
- function _type_of$3(obj) {
16129
+ function _type_of$4(obj) {
16130
16130
  "@swc/helpers - typeof";
16131
16131
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
16132
16132
  }
@@ -16405,7 +16405,7 @@ function _non_iterable_rest$5() {
16405
16405
  function _sliced_to_array$5(arr, i) {
16406
16406
  return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$5();
16407
16407
  }
16408
- function _type_of$2(obj) {
16408
+ function _type_of$3(obj) {
16409
16409
  "@swc/helpers - typeof";
16410
16410
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
16411
16411
  }
@@ -16450,7 +16450,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
16450
16450
  return false;
16451
16451
  }
16452
16452
  // object check
16453
- if ((typeof a === "undefined" ? "undefined" : _type_of$2(a)) === 'object') {
16453
+ if ((typeof a === "undefined" ? "undefined" : _type_of$3(a)) === 'object') {
16454
16454
  // check if they are arrays
16455
16455
  if (isIterable(a, false)) {
16456
16456
  if (Array.isArray(a)) {
@@ -16476,7 +16476,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
16476
16476
  });
16477
16477
  return firstInequalityIndex1 === -1;
16478
16478
  }
16479
- } else if ((typeof b === "undefined" ? "undefined" : _type_of$2(b)) === 'object') {
16479
+ } else if ((typeof b === "undefined" ? "undefined" : _type_of$3(b)) === 'object') {
16480
16480
  // check contructors/types
16481
16481
  var firstType = a === null || a === void 0 ? void 0 : a.constructor.name;
16482
16482
  var secondType = b === null || b === void 0 ? void 0 : b.constructor.name;
@@ -16522,7 +16522,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
16522
16522
  var _fields = new Map();
16523
16523
  fields.forEach(function(input) {
16524
16524
  var field;
16525
- if ((typeof input === "undefined" ? "undefined" : _type_of$2(input)) === 'object') {
16525
+ if ((typeof input === "undefined" ? "undefined" : _type_of$3(input)) === 'object') {
16526
16526
  field = input;
16527
16527
  } else {
16528
16528
  field = {
@@ -16709,6 +16709,85 @@ function _unsupported_iterable_to_array$5(o, minLen) {
16709
16709
  return nextKey;
16710
16710
  });
16711
16711
 
16712
+ function _type_of$2(obj) {
16713
+ "@swc/helpers - typeof";
16714
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
16715
+ }
16716
+ /**
16717
+ * Flattens a nested object into a single-level object with concatenated keys.
16718
+ *
16719
+ * Recursively traverses plain objects and joins nested keys with a separator (default `'.'`).
16720
+ * Non-plain-object values (arrays, Dates, null, functions, etc.) are treated as leaf values and kept as-is.
16721
+ * Empty nested objects are omitted from the result (they produce no keys).
16722
+ * Circular references are detected and treated as leaf values to avoid infinite recursion.
16723
+ *
16724
+ * @example
16725
+ * ```ts
16726
+ * flattenObject({ a: 1, b: { c: 2, d: { e: 3 } } });
16727
+ * // { a: 1, 'b.c': 2, 'b.d.e': 3 }
16728
+ *
16729
+ * flattenObject({ a: { b: 1 } }, { separator: '_' });
16730
+ * // { a_b: 1 }
16731
+ *
16732
+ * flattenObject({ a: { b: { c: 1 } } }, { maxDepth: 1 });
16733
+ * // { 'a.b': { c: 1 } }
16734
+ * ```
16735
+ *
16736
+ * @param input - The object to flatten. If nullish, returns an empty object.
16737
+ * @param config - Optional configuration for separator and max depth.
16738
+ * @returns A new flat object with concatenated key paths.
16739
+ */ function flattenObject(input, config) {
16740
+ var result = {};
16741
+ if (input != null) {
16742
+ var _ref, _ref1;
16743
+ var separator = (_ref = config === null || config === void 0 ? void 0 : config.separator) !== null && _ref !== void 0 ? _ref : '.';
16744
+ var maxDepth = (_ref1 = config === null || config === void 0 ? void 0 : config.maxDepth) !== null && _ref1 !== void 0 ? _ref1 : Infinity;
16745
+ var seen = new Set();
16746
+ var recurse = function recurse1(obj, prefix, currentDepth) {
16747
+ seen.add(obj);
16748
+ var keys = Object.keys(obj);
16749
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
16750
+ try {
16751
+ for(var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
16752
+ var key = _step.value;
16753
+ var value = obj[key];
16754
+ var fullKey = prefix ? "".concat(prefix).concat(separator).concat(key) : key;
16755
+ if (_isPlainObject(value) && currentDepth < maxDepth && !seen.has(value)) {
16756
+ recurse(value, fullKey, currentDepth + 1);
16757
+ } else {
16758
+ result[fullKey] = value;
16759
+ }
16760
+ }
16761
+ } catch (err) {
16762
+ _didIteratorError = true;
16763
+ _iteratorError = err;
16764
+ } finally{
16765
+ try {
16766
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
16767
+ _iterator.return();
16768
+ }
16769
+ } finally{
16770
+ if (_didIteratorError) {
16771
+ throw _iteratorError;
16772
+ }
16773
+ }
16774
+ }
16775
+ };
16776
+ recurse(input, '', 0);
16777
+ }
16778
+ return result;
16779
+ }
16780
+ /**
16781
+ * Returns true if the value is a plain object (not an array, Date, RegExp, null, etc.).
16782
+ */ function _isPlainObject(value) {
16783
+ var result = false;
16784
+ if (value != null && (typeof value === "undefined" ? "undefined" : _type_of$2(value)) === 'object') {
16785
+ var proto = Object.getPrototypeOf(value);
16786
+ result = proto === Object.prototype || proto === null;
16787
+ }
16788
+ return result;
16789
+ }
16790
+
16712
16791
  /**
16713
16792
  * Creates a function that copies a single field from a partial source object to a partial target object.
16714
16793
  *
@@ -20307,6 +20386,7 @@ exports.flattenArrayOrValueArray = flattenArrayOrValueArray;
20307
20386
  exports.flattenArrayToSet = flattenArrayToSet;
20308
20387
  exports.flattenArrayUnique = flattenArrayUnique;
20309
20388
  exports.flattenArrayUniqueCaseInsensitiveStrings = flattenArrayUniqueCaseInsensitiveStrings;
20389
+ exports.flattenObject = flattenObject;
20310
20390
  exports.flattenTree = flattenTree;
20311
20391
  exports.flattenTreeToArray = flattenTreeToArray;
20312
20392
  exports.flattenTreeToArrayFunction = flattenTreeToArrayFunction;
package/index.esm.js CHANGED
@@ -1410,7 +1410,7 @@ function objectHasKeys(obj, keys, mode) {
1410
1410
  return _object_spread$f({}, input);
1411
1411
  }
1412
1412
 
1413
- function _type_of$k(obj) {
1413
+ function _type_of$l(obj) {
1414
1414
  "@swc/helpers - typeof";
1415
1415
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1416
1416
  }
@@ -1451,7 +1451,7 @@ function _type_of$k(obj) {
1451
1451
  if (isIterable(value, true)) {
1452
1452
  return !isEmptyIterable(value);
1453
1453
  } else if (isNotNullOrEmptyString(value)) {
1454
- return (typeof value === "undefined" ? "undefined" : _type_of$k(value)) === 'object' ? !objectHasNoKeys(value) : true;
1454
+ return (typeof value === "undefined" ? "undefined" : _type_of$l(value)) === 'object' ? !objectHasNoKeys(value) : true;
1455
1455
  } else {
1456
1456
  return false;
1457
1457
  }
@@ -1933,7 +1933,7 @@ function _define_property$l(obj, key, value) {
1933
1933
  }
1934
1934
  return obj;
1935
1935
  }
1936
- function _type_of$j(obj) {
1936
+ function _type_of$k(obj) {
1937
1937
  "@swc/helpers - typeof";
1938
1938
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1939
1939
  }
@@ -2081,7 +2081,7 @@ function makeModelMap(input, read) {
2081
2081
  function readModelKey(input) {
2082
2082
  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;
2083
2083
  var key;
2084
- switch(typeof input === "undefined" ? "undefined" : _type_of$j(input)){
2084
+ switch(typeof input === "undefined" ? "undefined" : _type_of$k(input)){
2085
2085
  case 'string':
2086
2086
  key = input;
2087
2087
  break;
@@ -2118,7 +2118,7 @@ function readModelKey(input) {
2118
2118
  * @param input - A model object or a key string
2119
2119
  * @returns `true` if the input is a string key
2120
2120
  */ function isModelKey(input) {
2121
- switch(typeof input === "undefined" ? "undefined" : _type_of$j(input)){
2121
+ switch(typeof input === "undefined" ? "undefined" : _type_of$k(input)){
2122
2122
  case 'string':
2123
2123
  return true;
2124
2124
  default:
@@ -3395,7 +3395,7 @@ function isNonClassFunction(x) {
3395
3395
  return type != null && type !== 'class';
3396
3396
  }
3397
3397
 
3398
- function _type_of$i(obj) {
3398
+ function _type_of$j(obj) {
3399
3399
  "@swc/helpers - typeof";
3400
3400
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
3401
3401
  }
@@ -3448,7 +3448,7 @@ function getValueFromGetter(input, args) {
3448
3448
  * @param copyFunction - Optional custom copy function
3449
3449
  * @returns An ObjectCopyFactory for the input
3450
3450
  */ function asObjectCopyFactory(input, copyFunction) {
3451
- if ((typeof input === "undefined" ? "undefined" : _type_of$i(input)) === 'object') {
3451
+ if ((typeof input === "undefined" ? "undefined" : _type_of$j(input)) === 'object') {
3452
3452
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3453
3453
  return objectCopyFactory(input, copyFunction);
3454
3454
  } else {
@@ -3596,7 +3596,7 @@ function makeWithFactoryInput(factory, input) {
3596
3596
  return Math.max(Math.min(input, max), min);
3597
3597
  }
3598
3598
 
3599
- function _type_of$h(obj) {
3599
+ function _type_of$i(obj) {
3600
3600
  "@swc/helpers - typeof";
3601
3601
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
3602
3602
  }
@@ -3629,7 +3629,7 @@ function _type_of$h(obj) {
3629
3629
  * @returns The numeric value, or 0 for null/undefined
3630
3630
  */ function asNumber(input) {
3631
3631
  var value;
3632
- switch(typeof input === "undefined" ? "undefined" : _type_of$h(input)){
3632
+ switch(typeof input === "undefined" ? "undefined" : _type_of$i(input)){
3633
3633
  case 'number':
3634
3634
  value = input;
3635
3635
  break;
@@ -3732,7 +3732,7 @@ function _type_of$h(obj) {
3732
3732
  return Math.log(y) / Math.log(x);
3733
3733
  }
3734
3734
 
3735
- function _type_of$g(obj) {
3735
+ function _type_of$h(obj) {
3736
3736
  "@swc/helpers - typeof";
3737
3737
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
3738
3738
  }
@@ -3870,7 +3870,7 @@ function _type_of$g(obj) {
3870
3870
  }
3871
3871
  var fn = function fn(input) {
3872
3872
  var value;
3873
- switch(typeof input === "undefined" ? "undefined" : _type_of$g(input)){
3873
+ switch(typeof input === "undefined" ? "undefined" : _type_of$h(input)){
3874
3874
  case 'number':
3875
3875
  value = input;
3876
3876
  break;
@@ -5978,7 +5978,7 @@ function _inherits$4(subClass, superClass) {
5978
5978
  if (superClass) _set_prototype_of$4(subClass, superClass);
5979
5979
  }
5980
5980
  function _possible_constructor_return$4(self, call) {
5981
- if (call && (_type_of$f(call) === "object" || typeof call === "function")) {
5981
+ if (call && (_type_of$g(call) === "object" || typeof call === "function")) {
5982
5982
  return call;
5983
5983
  }
5984
5984
  return _assert_this_initialized$4(self);
@@ -5990,7 +5990,7 @@ function _set_prototype_of$4(o, p) {
5990
5990
  };
5991
5991
  return _set_prototype_of$4(o, p);
5992
5992
  }
5993
- function _type_of$f(obj) {
5993
+ function _type_of$g(obj) {
5994
5994
  "@swc/helpers - typeof";
5995
5995
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
5996
5996
  }
@@ -6359,7 +6359,7 @@ function _non_iterable_rest$h() {
6359
6359
  function _sliced_to_array$h(arr, i) {
6360
6360
  return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$k(arr, i) || _non_iterable_rest$h();
6361
6361
  }
6362
- function _type_of$e(obj) {
6362
+ function _type_of$f(obj) {
6363
6363
  "@swc/helpers - typeof";
6364
6364
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
6365
6365
  }
@@ -6481,7 +6481,7 @@ function _unsupported_iterable_to_array$k(o, minLen) {
6481
6481
  * @param input - Enum value or filter object
6482
6482
  * @returns Normalized filter object
6483
6483
  */ function filterKeyValueTuplesInputToFilter(input) {
6484
- if ((typeof input === "undefined" ? "undefined" : _type_of$e(input)) === 'object') {
6484
+ if ((typeof input === "undefined" ? "undefined" : _type_of$f(input)) === 'object') {
6485
6485
  return input;
6486
6486
  } else {
6487
6487
  return {
@@ -6700,7 +6700,7 @@ function _object_spread$d(target) {
6700
6700
  function _sliced_to_array$g(arr, i) {
6701
6701
  return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$j(arr, i) || _non_iterable_rest$g();
6702
6702
  }
6703
- function _type_of$d(obj) {
6703
+ function _type_of$e(obj) {
6704
6704
  "@swc/helpers - typeof";
6705
6705
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
6706
6706
  }
@@ -7193,7 +7193,7 @@ function _unsupported_iterable_to_array$j(o, minLen) {
7193
7193
  var input = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : KeyValueTypleValueFilter.UNDEFINED;
7194
7194
  var _ref;
7195
7195
  var filter = input;
7196
- var copy = (_ref = (typeof input === "undefined" ? "undefined" : _type_of$d(input)) === 'object' ? input.copy : true) !== null && _ref !== void 0 ? _ref : true;
7196
+ var copy = (_ref = (typeof input === "undefined" ? "undefined" : _type_of$e(input)) === 'object' ? input.copy : true) !== null && _ref !== void 0 ? _ref : true;
7197
7197
  var assignEachValueToTarget = forEachKeyValueOnPOJOFunction({
7198
7198
  filter: filter,
7199
7199
  forEach: function forEach(param, i, object, target) {
@@ -7536,7 +7536,7 @@ function _non_iterable_rest$f() {
7536
7536
  function _sliced_to_array$f(arr, i) {
7537
7537
  return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$f();
7538
7538
  }
7539
- function _type_of$c(obj) {
7539
+ function _type_of$d(obj) {
7540
7540
  "@swc/helpers - typeof";
7541
7541
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
7542
7542
  }
@@ -7583,7 +7583,7 @@ var AUTH_ROLE_CLAIMS_DEFAULT_EMPTY_VALUE = null;
7583
7583
  var inverse = (_inputEntry_inverse = inputEntry.inverse) !== null && _inputEntry_inverse !== void 0 ? _inputEntry_inverse : false;
7584
7584
  // since checking uses equivalence, the objects will never match equivalence via the === properly.
7585
7585
  // AuthRoleClaimsFactoryConfigEntryEncodeOptions is likely to be used for these cases unknownways, but this will help avoid unexpected errors.
7586
- if ((typeof expectedValue === "undefined" ? "undefined" : _type_of$c(expectedValue)) === 'object') {
7586
+ if ((typeof expectedValue === "undefined" ? "undefined" : _type_of$d(expectedValue)) === 'object') {
7587
7587
  throw new Error("failed decoding claims. Expected value to be a string or number. Object isn't supported with simple claims.");
7588
7588
  }
7589
7589
  if (inverse) {
@@ -8323,7 +8323,7 @@ function _object_spread$c(target) {
8323
8323
  function _sliced_to_array$d(arr, i) {
8324
8324
  return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$d();
8325
8325
  }
8326
- function _type_of$b(obj) {
8326
+ function _type_of$c(obj) {
8327
8327
  "@swc/helpers - typeof";
8328
8328
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
8329
8329
  }
@@ -8804,7 +8804,7 @@ var ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX = /\.+/g;
8804
8804
  var targetPathPartsInput = asArray(path);
8805
8805
  var indexMatchingDecisionFunctions = [];
8806
8806
  targetPathPartsInput.forEach(function(part, index) {
8807
- switch(typeof part === "undefined" ? "undefined" : _type_of$b(part)){
8807
+ switch(typeof part === "undefined" ? "undefined" : _type_of$c(part)){
8808
8808
  case 'number':
8809
8809
  var matchPartFunction;
8810
8810
  switch(part){
@@ -8853,7 +8853,7 @@ var ALL_SLASH_PATH_FILE_TYPE_SEPARATORS_REGEX = /\.+/g;
8853
8853
  targetPath: input
8854
8854
  };
8855
8855
  } else {
8856
- switch(typeof input === "undefined" ? "undefined" : _type_of$b(input)){
8856
+ switch(typeof input === "undefined" ? "undefined" : _type_of$c(input)){
8857
8857
  case 'string':
8858
8858
  pathMatcherConfig = {
8859
8859
  targetPath: [
@@ -9644,7 +9644,7 @@ function _object_spread_props$6(target, source) {
9644
9644
  return target;
9645
9645
  }
9646
9646
  function _possible_constructor_return$3(self, call) {
9647
- if (call && (_type_of$a(call) === "object" || typeof call === "function")) {
9647
+ if (call && (_type_of$b(call) === "object" || typeof call === "function")) {
9648
9648
  return call;
9649
9649
  }
9650
9650
  return _assert_this_initialized$3(self);
@@ -9656,7 +9656,7 @@ function _set_prototype_of$3(o, p) {
9656
9656
  };
9657
9657
  return _set_prototype_of$3(o, p);
9658
9658
  }
9659
- function _type_of$a(obj) {
9659
+ function _type_of$b(obj) {
9660
9660
  "@swc/helpers - typeof";
9661
9661
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
9662
9662
  }
@@ -9674,7 +9674,7 @@ function _is_native_reflect_construct$3() {
9674
9674
  * @param input - The value to check
9675
9675
  * @returns True if the input is a ServerError
9676
9676
  */ function isServerError(input) {
9677
- return input != null && (typeof input === "undefined" ? "undefined" : _type_of$a(input)) === 'object' && input.status != null && input.code != null;
9677
+ return input != null && (typeof input === "undefined" ? "undefined" : _type_of$b(input)) === 'object' && input.status != null && input.code != null;
9678
9678
  }
9679
9679
  function partialServerError(messageOrError) {
9680
9680
  var serverError;
@@ -9766,7 +9766,7 @@ function _object_spread$a(target) {
9766
9766
  }
9767
9767
  return target;
9768
9768
  }
9769
- function _type_of$9(obj) {
9769
+ function _type_of$a(obj) {
9770
9770
  "@swc/helpers - typeof";
9771
9771
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
9772
9772
  }
@@ -9779,7 +9779,7 @@ function _type_of$9(obj) {
9779
9779
  * @param error - A ReadableError or error code string to check
9780
9780
  * @returns True if the error uses the default code or has no code
9781
9781
  */ function isDefaultReadableError(error) {
9782
- var code = (typeof error === "undefined" ? "undefined" : _type_of$9(error)) === 'object' ? error === null || error === void 0 ? void 0 : error.code : error;
9782
+ var code = (typeof error === "undefined" ? "undefined" : _type_of$a(error)) === 'object' ? error === null || error === void 0 ? void 0 : error.code : error;
9783
9783
  return !code || code === DEFAULT_READABLE_ERROR_CODE;
9784
9784
  }
9785
9785
  /**
@@ -9846,7 +9846,7 @@ function toReadableError(inputError) {
9846
9846
  * @param input - The error or string to extract a message from
9847
9847
  * @returns The error message string, or null/undefined if not available
9848
9848
  */ function messageFromError(input) {
9849
- return ((typeof input === "undefined" ? "undefined" : _type_of$9(input)) === 'object' ? input.message : input) || input;
9849
+ return ((typeof input === "undefined" ? "undefined" : _type_of$a(input)) === 'object' ? input.message : input) || input;
9850
9850
  }
9851
9851
 
9852
9852
  /**
@@ -11043,7 +11043,7 @@ function _object_spread_props$4(target, source) {
11043
11043
  function _sliced_to_array$a(arr, i) {
11044
11044
  return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$a();
11045
11045
  }
11046
- function _type_of$8(obj) {
11046
+ function _type_of$9(obj) {
11047
11047
  "@swc/helpers - typeof";
11048
11048
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
11049
11049
  }
@@ -11076,7 +11076,7 @@ function _unsupported_iterable_to_array$c(o, minLen) {
11076
11076
  /**
11077
11077
  * Type guard that checks whether the input is a {@link LatLngPoint} by testing for `lat` and `lng` properties.
11078
11078
  */ function isLatLngPoint(input) {
11079
- return (typeof input === "undefined" ? "undefined" : _type_of$8(input)) === 'object' && input.lat != null && input.lng != null;
11079
+ return (typeof input === "undefined" ? "undefined" : _type_of$9(input)) === 'object' && input.lat != null && input.lng != null;
11080
11080
  }
11081
11081
  /**
11082
11082
  * Creates a shallow copy of the point so that mutations to the copy do not affect the original.
@@ -11409,7 +11409,7 @@ function latLngString(lat, lng) {
11409
11409
  ]);
11410
11410
  return function(lat, lng) {
11411
11411
  var latLng;
11412
- var latType = typeof lat === "undefined" ? "undefined" : _type_of$8(lat);
11412
+ var latType = typeof lat === "undefined" ? "undefined" : _type_of$9(lat);
11413
11413
  if (latType === 'string') {
11414
11414
  latLng = latLngPointFromString(lat);
11415
11415
  } else if (Array.isArray(lat)) {
@@ -11598,7 +11598,7 @@ function _sliced_to_array$9(arr, i) {
11598
11598
  function _to_consumable_array$4(arr) {
11599
11599
  return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$4();
11600
11600
  }
11601
- function _type_of$7(obj) {
11601
+ function _type_of$8(obj) {
11602
11602
  "@swc/helpers - typeof";
11603
11603
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
11604
11604
  }
@@ -11613,7 +11613,7 @@ function _unsupported_iterable_to_array$b(o, minLen) {
11613
11613
  /**
11614
11614
  * Type guard that checks whether the input is a {@link LatLngBound} by testing for the presence of `sw` and `ne` properties.
11615
11615
  */ function isLatLngBound(input) {
11616
- return (typeof input === "undefined" ? "undefined" : _type_of$7(input)) === 'object' && input.sw != null && input.ne != null;
11616
+ return (typeof input === "undefined" ? "undefined" : _type_of$8(input)) === 'object' && input.sw != null && input.ne != null;
11617
11617
  }
11618
11618
  /**
11619
11619
  * Creates a deep copy of the bound so that mutations to the copy do not affect the original.
@@ -12193,7 +12193,7 @@ function _non_iterable_rest$8() {
12193
12193
  function _sliced_to_array$8(arr, i) {
12194
12194
  return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$8();
12195
12195
  }
12196
- function _type_of$6(obj) {
12196
+ function _type_of$7(obj) {
12197
12197
  "@swc/helpers - typeof";
12198
12198
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
12199
12199
  }
@@ -12436,7 +12436,7 @@ function dateFromDateOrTimeMillisecondsNumber(input) {
12436
12436
  * @param value - The value to check
12437
12437
  * @returns True if the value is a Date object
12438
12438
  */ function isDate(value) {
12439
- return _instanceof$1(value, Date) || (typeof value === "undefined" ? "undefined" : _type_of$6(value)) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
12439
+ return _instanceof$1(value, Date) || (typeof value === "undefined" ? "undefined" : _type_of$7(value)) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
12440
12440
  }
12441
12441
  /**
12442
12442
  * Returns true if the two input dates represent the same point in time.
@@ -13436,7 +13436,7 @@ function _object_spread$7(target) {
13436
13436
  }
13437
13437
  }
13438
13438
 
13439
- function _type_of$5(obj) {
13439
+ function _type_of$6(obj) {
13440
13440
  "@swc/helpers - typeof";
13441
13441
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
13442
13442
  }
@@ -13447,13 +13447,13 @@ function _type_of$5(obj) {
13447
13447
  * @param obj - Object to check
13448
13448
  * @returns `true` if the object is considered empty
13449
13449
  */ function objectIsEmpty(obj) {
13450
- if (obj != null && (typeof obj === "undefined" ? "undefined" : _type_of$5(obj)) === 'object') {
13450
+ if (obj != null && (typeof obj === "undefined" ? "undefined" : _type_of$6(obj)) === 'object') {
13451
13451
  var keys = Object.keys(obj);
13452
13452
  if (keys.length > 0) {
13453
13453
  for(var i = 0; i < keys.length; i += 1){
13454
13454
  var key = keys[i];
13455
13455
  var value = obj[key];
13456
- var isEmpty = (typeof value === "undefined" ? "undefined" : _type_of$5(value)) === 'object' ? objectIsEmpty(value) : !hasValueOrNotEmpty(value);
13456
+ var isEmpty = (typeof value === "undefined" ? "undefined" : _type_of$6(value)) === 'object' ? objectIsEmpty(value) : !hasValueOrNotEmpty(value);
13457
13457
  if (!isEmpty) {
13458
13458
  return false;
13459
13459
  }
@@ -14066,7 +14066,7 @@ function _ts_generator$6(thisArg, body) {
14066
14066
  })();
14067
14067
  }
14068
14068
 
14069
- function _type_of$4(obj) {
14069
+ function _type_of$5(obj) {
14070
14070
  "@swc/helpers - typeof";
14071
14071
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
14072
14072
  }
@@ -14077,7 +14077,7 @@ function _type_of$4(obj) {
14077
14077
  * @returns `true` if the value is a Promise, `false` otherwise.
14078
14078
  */ function isPromise(obj) {
14079
14079
  // https://github.com/then/is-promise
14080
- return !!obj && ((typeof obj === "undefined" ? "undefined" : _type_of$4(obj)) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
14080
+ return !!obj && ((typeof obj === "undefined" ? "undefined" : _type_of$5(obj)) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
14081
14081
  }
14082
14082
  /**
14083
14083
  * Checks whether the input value is PromiseLike (i.e., has a `.then` method), which
@@ -14087,7 +14087,7 @@ function _type_of$4(obj) {
14087
14087
  * @returns `true` if the value is PromiseLike, `false` otherwise.
14088
14088
  */ function isPromiseLike(obj) {
14089
14089
  // https://github.com/then/is-promise
14090
- return !!obj && ((typeof obj === "undefined" ? "undefined" : _type_of$4(obj)) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
14090
+ return !!obj && ((typeof obj === "undefined" ? "undefined" : _type_of$5(obj)) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
14091
14091
  }
14092
14092
 
14093
14093
  function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
@@ -16112,7 +16112,7 @@ function _inherits$2(subClass, superClass) {
16112
16112
  if (superClass) _set_prototype_of$2(subClass, superClass);
16113
16113
  }
16114
16114
  function _possible_constructor_return$2(self, call) {
16115
- if (call && (_type_of$3(call) === "object" || typeof call === "function")) {
16115
+ if (call && (_type_of$4(call) === "object" || typeof call === "function")) {
16116
16116
  return call;
16117
16117
  }
16118
16118
  return _assert_this_initialized$2(self);
@@ -16124,7 +16124,7 @@ function _set_prototype_of$2(o, p) {
16124
16124
  };
16125
16125
  return _set_prototype_of$2(o, p);
16126
16126
  }
16127
- function _type_of$3(obj) {
16127
+ function _type_of$4(obj) {
16128
16128
  "@swc/helpers - typeof";
16129
16129
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
16130
16130
  }
@@ -16403,7 +16403,7 @@ function _non_iterable_rest$5() {
16403
16403
  function _sliced_to_array$5(arr, i) {
16404
16404
  return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$5();
16405
16405
  }
16406
- function _type_of$2(obj) {
16406
+ function _type_of$3(obj) {
16407
16407
  "@swc/helpers - typeof";
16408
16408
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
16409
16409
  }
@@ -16448,7 +16448,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
16448
16448
  return false;
16449
16449
  }
16450
16450
  // object check
16451
- if ((typeof a === "undefined" ? "undefined" : _type_of$2(a)) === 'object') {
16451
+ if ((typeof a === "undefined" ? "undefined" : _type_of$3(a)) === 'object') {
16452
16452
  // check if they are arrays
16453
16453
  if (isIterable(a, false)) {
16454
16454
  if (Array.isArray(a)) {
@@ -16474,7 +16474,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
16474
16474
  });
16475
16475
  return firstInequalityIndex1 === -1;
16476
16476
  }
16477
- } else if ((typeof b === "undefined" ? "undefined" : _type_of$2(b)) === 'object') {
16477
+ } else if ((typeof b === "undefined" ? "undefined" : _type_of$3(b)) === 'object') {
16478
16478
  // check contructors/types
16479
16479
  var firstType = a === null || a === void 0 ? void 0 : a.constructor.name;
16480
16480
  var secondType = b === null || b === void 0 ? void 0 : b.constructor.name;
@@ -16520,7 +16520,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
16520
16520
  var _fields = new Map();
16521
16521
  fields.forEach(function(input) {
16522
16522
  var field;
16523
- if ((typeof input === "undefined" ? "undefined" : _type_of$2(input)) === 'object') {
16523
+ if ((typeof input === "undefined" ? "undefined" : _type_of$3(input)) === 'object') {
16524
16524
  field = input;
16525
16525
  } else {
16526
16526
  field = {
@@ -16707,6 +16707,85 @@ function _unsupported_iterable_to_array$5(o, minLen) {
16707
16707
  return nextKey;
16708
16708
  });
16709
16709
 
16710
+ function _type_of$2(obj) {
16711
+ "@swc/helpers - typeof";
16712
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
16713
+ }
16714
+ /**
16715
+ * Flattens a nested object into a single-level object with concatenated keys.
16716
+ *
16717
+ * Recursively traverses plain objects and joins nested keys with a separator (default `'.'`).
16718
+ * Non-plain-object values (arrays, Dates, null, functions, etc.) are treated as leaf values and kept as-is.
16719
+ * Empty nested objects are omitted from the result (they produce no keys).
16720
+ * Circular references are detected and treated as leaf values to avoid infinite recursion.
16721
+ *
16722
+ * @example
16723
+ * ```ts
16724
+ * flattenObject({ a: 1, b: { c: 2, d: { e: 3 } } });
16725
+ * // { a: 1, 'b.c': 2, 'b.d.e': 3 }
16726
+ *
16727
+ * flattenObject({ a: { b: 1 } }, { separator: '_' });
16728
+ * // { a_b: 1 }
16729
+ *
16730
+ * flattenObject({ a: { b: { c: 1 } } }, { maxDepth: 1 });
16731
+ * // { 'a.b': { c: 1 } }
16732
+ * ```
16733
+ *
16734
+ * @param input - The object to flatten. If nullish, returns an empty object.
16735
+ * @param config - Optional configuration for separator and max depth.
16736
+ * @returns A new flat object with concatenated key paths.
16737
+ */ function flattenObject(input, config) {
16738
+ var result = {};
16739
+ if (input != null) {
16740
+ var _ref, _ref1;
16741
+ var separator = (_ref = config === null || config === void 0 ? void 0 : config.separator) !== null && _ref !== void 0 ? _ref : '.';
16742
+ var maxDepth = (_ref1 = config === null || config === void 0 ? void 0 : config.maxDepth) !== null && _ref1 !== void 0 ? _ref1 : Infinity;
16743
+ var seen = new Set();
16744
+ var recurse = function recurse1(obj, prefix, currentDepth) {
16745
+ seen.add(obj);
16746
+ var keys = Object.keys(obj);
16747
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
16748
+ try {
16749
+ for(var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
16750
+ var key = _step.value;
16751
+ var value = obj[key];
16752
+ var fullKey = prefix ? "".concat(prefix).concat(separator).concat(key) : key;
16753
+ if (_isPlainObject(value) && currentDepth < maxDepth && !seen.has(value)) {
16754
+ recurse(value, fullKey, currentDepth + 1);
16755
+ } else {
16756
+ result[fullKey] = value;
16757
+ }
16758
+ }
16759
+ } catch (err) {
16760
+ _didIteratorError = true;
16761
+ _iteratorError = err;
16762
+ } finally{
16763
+ try {
16764
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
16765
+ _iterator.return();
16766
+ }
16767
+ } finally{
16768
+ if (_didIteratorError) {
16769
+ throw _iteratorError;
16770
+ }
16771
+ }
16772
+ }
16773
+ };
16774
+ recurse(input, '', 0);
16775
+ }
16776
+ return result;
16777
+ }
16778
+ /**
16779
+ * Returns true if the value is a plain object (not an array, Date, RegExp, null, etc.).
16780
+ */ function _isPlainObject(value) {
16781
+ var result = false;
16782
+ if (value != null && (typeof value === "undefined" ? "undefined" : _type_of$2(value)) === 'object') {
16783
+ var proto = Object.getPrototypeOf(value);
16784
+ result = proto === Object.prototype || proto === null;
16785
+ }
16786
+ return result;
16787
+ }
16788
+
16710
16789
  /**
16711
16790
  * Creates a function that copies a single field from a partial source object to a partial target object.
16712
16791
  *
@@ -19909,4 +19988,4 @@ function _ts_generator(thisArg, body) {
19909
19988
  return result;
19910
19989
  }
19911
19990
 
19912
- 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, 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, 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 };
19991
+ 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, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "13.3.0",
3
+ "version": "13.4.0",
4
4
  "exports": {
5
5
  "./test": {
6
6
  "module": "./test/index.esm.js",
@@ -5,5 +5,6 @@ export * from './object.equal';
5
5
  export * from './object.key';
6
6
  export * from './object.map';
7
7
  export * from './object';
8
+ export * from './object.flatten';
8
9
  export * from './object.filter.tuple';
9
10
  export * from './object.filter.pojo';
@@ -0,0 +1,43 @@
1
+ import { type Maybe } from '../value/maybe.type';
2
+ /**
3
+ * Configuration for {@link flattenObject}.
4
+ */
5
+ export interface FlattenObjectConfig {
6
+ /**
7
+ * Separator between key segments.
8
+ *
9
+ * @defaultValue '.'
10
+ */
11
+ readonly separator?: string;
12
+ /**
13
+ * Maximum nesting depth to flatten. A depth of 1 means only the first level of nested objects is flattened.
14
+ *
15
+ * @defaultValue Infinity (unlimited)
16
+ */
17
+ readonly maxDepth?: number;
18
+ }
19
+ /**
20
+ * Flattens a nested object into a single-level object with concatenated keys.
21
+ *
22
+ * Recursively traverses plain objects and joins nested keys with a separator (default `'.'`).
23
+ * Non-plain-object values (arrays, Dates, null, functions, etc.) are treated as leaf values and kept as-is.
24
+ * Empty nested objects are omitted from the result (they produce no keys).
25
+ * Circular references are detected and treated as leaf values to avoid infinite recursion.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * flattenObject({ a: 1, b: { c: 2, d: { e: 3 } } });
30
+ * // { a: 1, 'b.c': 2, 'b.d.e': 3 }
31
+ *
32
+ * flattenObject({ a: { b: 1 } }, { separator: '_' });
33
+ * // { a_b: 1 }
34
+ *
35
+ * flattenObject({ a: { b: { c: 1 } } }, { maxDepth: 1 });
36
+ * // { 'a.b': { c: 1 } }
37
+ * ```
38
+ *
39
+ * @param input - The object to flatten. If nullish, returns an empty object.
40
+ * @param config - Optional configuration for separator and max depth.
41
+ * @returns A new flat object with concatenated key paths.
42
+ */
43
+ export declare function flattenObject(input: Maybe<Record<string, unknown>>, config?: FlattenObjectConfig): Record<string, unknown>;
package/test/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dereekb/util/test",
3
- "version": "13.3.0",
3
+ "version": "13.4.0",
4
4
  "peerDependencies": {
5
- "@dereekb/util": "13.3.0",
5
+ "@dereekb/util": "13.4.0",
6
6
  "make-error": "^1.3.0"
7
7
  },
8
8
  "exports": {