@zelgadis87/utils-core 4.4.3 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"fileNames":["../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/small-date@2.0.1/node_modules/small-date/index.d.ts","../src/utils/functions/constant.ts","../src/sorting/types.ts","../src/sorting/comparisonchain.ts","../src/sorting/sorter.ts","../src/sorting/index.ts","../src/utils/nulls.ts","../src/utils/arrays/groupby.ts","../src/utils/arrays/indexby.ts","../src/utils/arrays/statistics.ts","../src/utils/arrays/uniqby.ts","../src/utils/arrays.ts","../src/utils/booleans.ts","../src/utils/empties.ts","../src/utils/errors/withtrycatch.ts","../src/utils/errors.ts","../src/utils/json.ts","../src/utils/numbers/round.ts","../src/utils/numbers.ts","../src/utils/primitives.ts","../src/time/timeunit.ts","../src/time/timebase.ts","../src/time/timeduration.ts","../src/utils/promises.ts","../src/utils/random.ts","../src/utils/records/entries.ts","../src/utils/records.ts","../src/utils/strings/stringparts.ts","../src/utils/strings.ts","../src/utils/index.ts","../src/utils/functions/iff.ts","../src/utils/functions.ts","../src/async/deferred.ts","../src/time/types.ts","../src/time/timeinstantbuilder.ts","../src/time/timeinstant.ts","../src/logger.ts","../src/optional.ts","../src/async/cancelabledeferred.ts","../src/time/timefrequency.ts","../src/async/ratethrottler.ts","../src/async/semaphore.ts","../src/async/index.ts","../src/lazy/lazy.ts","../src/lazy/lazyasync.ts","../src/lazy/index.ts","../src/time/randomtimeduration.ts","../src/time/timerange.ts","../src/time/index.ts","../src/upgrade/errors.ts","../src/upgrade/types.ts","../src/upgrade/gettransitionspath.ts","../src/upgrade/dataupgrader.ts","../src/upgrade/index.ts","../src/index.ts"],"fileIdsList":[[91],[90],[91,97,99,100],[91,98,113],[91,113],[64,88,95,96,101,104,107,112],[102,103],[88],[65],[88,94],[65,90],[60,61,88],[61,62,63],[79,81,92,94,98,105,106],[79,81,83],[79],[64,79,80,88,91,94],[81,88],[59,64,79,80,81,91,92,93],[65,90,92,94],[94,107],[88,108,109,110],[88,109],[109,111],[64,65,66,67,68,69,90],[70],[73],[74,90],[60,89],[65,70,71,72,74,75,77,78,82,83,85,87,90],[74],[65,74,76,90],[81,90],[84],[65,70,86],[65,70,87]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"15c1c3d7b2e46e0025417ed6d5f03f419e57e6751f87925ca19dc88297053fe6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"c77f0c58173b1b3364632db5ee4455bac69cbf0c494b5a777bf80ca4aa8c9560","impliedFormat":1},{"version":"41a70337edbaebfb0fdd366ddf0816fefea5989c75bdffdbb9ff698256951c74","signature":"14ec40ede4588be7502237d1e7e701f90a6507417b6b98401f550bb12e2fbf55"},{"version":"d3781289f931d1fd6da732725be3a924271f3126a60a11f738dab07a9de2f7d8","signature":"4d79eeb5415637be3229c2667895b56383253c77b8b33e61549b5128daf9e37a"},{"version":"9dd6c91ad0cc61ccf6cb430400942911c9898cc5cb568f71741821e7e3b26ec6","signature":"318fa1a3aea63a60b7b66160ac98a8b207968e4969cf41bac4453d4f062fc2dc"},{"version":"f81e13545a32f0e905158afc87f5fe966a0a74efbc167ec094b07aea3d12a6ca","signature":"8acbccc69dd0aeca47b8884ba49bf54b2523749862bfe29f0b4f7f402c6f5d3c"},{"version":"1ab20f387ef7fa5cf94272900952596792f583f45bbd58d9adf2d623349d060e","signature":"ec49ec1ca3ddc1fbcdb45f1740ccd72d20fbf450036286c4373d9d13ddf2c4a2"},{"version":"0d578fa07b7e41030f7ad5176898a0a70a092fc45a264ce67498f63e544344e1","signature":"eb96292ecf52597cf826715047ec8411375f0ac8a43d0bd12f87dd3190838a04"},{"version":"de9544e159891685d316ac4161b4f01b58dda06c70c5bed9ec04c094b4ba5015","signature":"ed74ba876a20726b0452cc66a7dd09544a1cc8a72a092d2ca8b19bc269c27da3"},{"version":"e31542b0347f4025457278d7bc3ddc84529991059c1ab2b0b5bcb9b37cc33836","signature":"2f906b8d1966c352311c18c50f04d1fdf57ac78b8e7f4e0ba837253c6a02bf51"},{"version":"065815c5d2b778f409ae78a366079628d6b28c689647b358ee4cb854e92eead2","signature":"8da47ddef220dd11a8a0f431127f8d083ba95b7e2b45b266233812bcf1f13888"},{"version":"2fdcc3f88b19bda7bc74c8c6430b9e2f6eb6d252d812c508f48669a27b680d5f","signature":"e2ab4c29fa06a89dc35759aaf3354bb06cad41d3d6f1bf9e1ce482187cd1fb91"},{"version":"71a780d69055e907717a3973ff342419999c3c499d7b958679e792a8f7b870f0","signature":"2379f189c1a85684ebd0f60ced9035871baedaa449187e9217f5990a5152e53c"},{"version":"56571c3f44c6312462e8395ed75d05887dcbcb1581a0ad47dd72bcdbb898ea84","signature":"853de26cb0c4a51d7b511bf303ff4d6680bc18d36b3f2f6d7b8008c8927b58a1"},{"version":"80cfb7f027e1ed06149023ea32ba3d176db0325b675ade827d4cdf2b8cd715fc","signature":"9fc3664a9a2be65e8bf0ca4475f184a16c7a0b03e78c77cabe45e47d78bcd3db"},{"version":"051fd85ab3f9cdcc0093554c53224cc3f0a9344a8cf216e629b6682a015b5924","signature":"372e2fee214dd7cef1715d97a7c7926008b29ed71a68d02377cbbbbad4a81328"},{"version":"2009cccc1fb281cb9233e13b14adb47b87ae0c72f7c73355d4ff0a536ad012b4","signature":"e537516e7b69cd96068554445428fd261d806d54ba92343fb91cac4120ae6017"},{"version":"c8493627adf08b4e0d48ebfb2724b2d1d227d26a71625f09b9f7601f5e847459","signature":"5db98cd7b060f49da05790a11db4314bbf4e7df3459462f37257991217d300b9"},{"version":"d0f71922ce0d6ce8aecef7b85158c6726e0db4d0ef23d71f2b14b9a2e5bef9fb","signature":"a29a11ea1f06a29ebc9d88a8439d78598d2d4977115a70705902c117d2a19e76"},{"version":"f2f9f6b43791f93f0cd2f09a5cee85243eb8ae831650b55a44f8d5b0fee14940","signature":"991a327a79d8b69993ac2ae5a6136cc96fa796d98e76860417061a0133231b68"},{"version":"70a58316dfec322f94bb980c05315faafd93f6fe6c56015efc7f0a4fb87636e2","signature":"d98d28f45f2fd50c72d82ea27d9fb213df06bc2456eb0748c657c6da8e77a1d4"},{"version":"cb6e4d47248ad5cbeed78f4164cf996fb276d54a580ac52e3a7feb92c4336d77","signature":"86463269677354ddc223e39011b4b5f231cdc5d072d08fb0e4b431a915e1f6eb"},{"version":"fe78af98b38dddb04bbf42a17e0ff5d3509ad062a97cd04d08cadbea7425627c","signature":"58686fcfd1c2f6e21d3dd7f52d347e73a9879aa634acd1baafe5f2c2e4c09e9a"},{"version":"607ee1c34e1b33bf42adba23592a8fc9a8a70cf986619222584c3da9a7685543","signature":"7fb8f6ffdd1cd861e0dd217886ef074bef1d4c88356030506615dc48a8121978"},{"version":"d3816328a097970f46726b8e2f34f1e66fab2d95a2463fe0a3a3460308fc06aa","signature":"0cce1783c4c412541b1118f66a401ee1076d2b45f6de005ffa10d7a3138bdbc3"},{"version":"d605a6d77f9547cc60d5563f8e4b43826ecfe67145715e7701443e6c7000f7d8","signature":"59fd76d117c77ac4f8aa2735ac59e07dac3e7f8abf4e8b5b79d7dcb4448215c4"},{"version":"f9b7540997405acdde3ddd1bc98c2a8ff0039f7dfde4dc699445a017c2311ec3","signature":"5d629ce88038b243d9c777e9c53696b49ed3391e2175a9b88dabb31a76079a06"},{"version":"92c49c13b67f8d21faaa1070dd6c5bb51e83098a434c5ea9d732583581385e38","signature":"da2bf0861b5119eeac5446fc8ab6beddfde0618a9c511d5b82147fb373deac15"},{"version":"a12f80b0021d23f5d69f36f2d6aca668500011c39a1700fae1181998fc85b601","signature":"d0858da5bf20118f452fc36ac2e03115b274084215f8246ffb82ad278da00a7d"},{"version":"63503ae1454fa3f0ff0599f7dcf96e8b2298dca467b1e58d337c8e6494b13227","signature":"0dcb1ef04257f5f5ea519209512f35595f95cfae096947229c1b251a5fa67a14"},{"version":"33d19b3cb7117da8dc04e821cd39a8c3e796376139e6aa05bfd822dfa554bfae","signature":"d395782613b270de87b13d6331a397013e9753fc4428b00f2e294cc29e3e8d76"},{"version":"409daaf670e0781555140c48d214d855775841d1a74d74057a2f9c9b23a8ea93","signature":"cd6b7bbe6bdee5e60c4fbee6907d334808ea07a247374df93136231d359b4795"},{"version":"9c31a5ebfe9e723bbb7df1c8a0459464f21f87a09520852dc14cd4778dea5d7c","signature":"e5ae5532b494b21e447ea0a55622caa1f519012c02472145780b57356ed9c3d2"},{"version":"d6859319cfab28518e99dba48a2dbb9392e2e112f2dac7911b055a003189b920","signature":"1f0e09320cb86d4f4f26386d828d9b66da11620d331f79073615026f5dbf6978"},{"version":"c3595b97fd7a5a98a6af20b81f87bdea93d963f1c39337739e605281aa964c4a","signature":"d3b1a67f87d6e77f7772bfc777e04387a6bf3d84eb2f18b454f9bd9cefa86afb"},{"version":"3c2ca70abf1d8db31f40785c88b68b356b5fecc93edf626cc31e0c38225f8a4d","signature":"626afa709798521c427847bb617e1379d22b90d6098118ce08e137383dab2965"},{"version":"8a36f4d8f34cebcde784d513a5bc6b6a020cb5f5a78297b2ea92ff5f7f59b183","signature":"9ce8acadf39f2eff3011fb1241b111299e9a3ac144202b12fee6200e6d781027"},{"version":"c4f88d5f3c6e0d1b87efd8d336d6cd4ef457db83c952de20b90d4808187c8450","signature":"ff1690eb4407b18a88ddc918e4311923bc1f787a8a8f678d5b03fe8922048177"},{"version":"f46c11b34a70c1196da95cf77b957469dbd6ec94e00e5074041392626c35fa76","signature":"15884642f06d3093d656d698d814e95599a96ee629468206791b359b5e4d137d"},{"version":"963e90bd6a94bd500329447e92ecb2be1efaab48d53d81e6f143dc63cb2aa76f","signature":"c6eff6bde8066f2980b221de77dc801f3a2a27525a9c3879d37426941b7a413c"},{"version":"1746aab5d9264c85832305e5ac252401199168629595ec2d65daccbb4e1778bd","signature":"655ff771dbe8906922d5081fd4ecffc1b2fe97521c9c400cc4f506b81f048645"},{"version":"141dac9588bca23bfc8a13b99560bae0cf818733218861bba342a5418e55d86f","signature":"3d58a3363bb571062abeb1fdc96e174e8a6a61bcdd3e7491c2bf65dbb5a17750"},{"version":"462708b3fc0067a69af6f9df70229485d8ebccbac2a472314a8306a4ef56779f","signature":"3f2b9bd0340a9cbcdbbfdbd7bf828a49c477dddd3473ed7816310700becf5961"},{"version":"0c244f63637cdd383fd0ba6912244f8146a9169eeaf885b2ef136e4d1baedd01","signature":"86122f878833e22a38a54656b9fe61736ba6c103b6a2fa01dae70458aec4353d"},{"version":"ba7ad8169c4e0cfeab946431d3e9a2def0f86c928580fcd767d0afb09b5c03f5","signature":"1a3a6cd1cc20eddc55d13ce8a54fabc0bebe0069b2d75d2c738e7d8aa94741bc"},{"version":"5253453362b3bb0b2d215c3ae66b850edb6f65bce45daaf4f2530b5292ab905b","signature":"9e7fcd385ecfdfa65958f8c734a2a73bbfd1ffca8f5ab0240629464e94f332a0"},{"version":"776155d42bfa1737a147a7f9ab63f0068b0f12279f86757347d605d8550eae16","signature":"0428da86bb5e41a6da4aedec6af5fb004a74731c9d56bcbe2b6348f1bf44744a"},{"version":"c3d59784aa9468ae61f7f99359eea4b3a9ccc6aec1bb46869aea049c0a0b8812","signature":"975d013c31f48ecb26867d0f98f13d2eaebb4af2bfbe6b5fd9a4d38fdccd5656"},{"version":"f5cb5ee6dfc305bbad84b2990954ce9557db25146764b81e91a22f22b4c650dd","signature":"5022494c36b44f458140adf6060c2f14e107b8984de8596eee5dbcb70cdb9f6b"},{"version":"6f4a74e34595aa6420c4a1df1ff788d1686f7bdfc7259de90d0102f4cf83555f","signature":"12cf7f6e0e2bf8d8e9b8a79d1adae5f8706736dee1e5d25279785ce45c7b0b27"},{"version":"5b2927131599d55e0ee730c7a2afc764ff39199a5d186b510fc3eca82f4ef1ff","signature":"d6fc507f1c2ecd14c0882a0e00a1ba2a580c6e45550a3a5e868d7bee4b1922b6"},{"version":"1beb76f20b97f76d5ac48caa921161255c72c59e93a8571871b069b8dff2bed2","signature":"340b2a38ab87e8aa617f4021a1e4c916453f80cc27d908ab084a1798be18b5c0"},{"version":"2ebd1a1e8ba106bea54bf6cf59f2909a27864c7b35ff1b828d8c7634a6a62179","signature":"f0561579997f9cfd97a6e991d806999dd3b48b6476b03e7d33ca6ea06297b21c"},{"version":"74dc5d77ab2d43e26ae180d7bef1780d7fa0209ef643827ac601c2fdda759321","signature":"c78dfc67b95896fccbc0e65345294a53877ed8e6424c5b8a763c709b68a1c645"},{"version":"22577c900676846354224462f8a6b3e0e5033cd14a501ea46107e67a4ab7863f","signature":"70fd81e903686acf6e994565edb1588cc619b816646ea1a89ac9a47b45d25737"},{"version":"569c58f09117e840594ae628aec2ca65eaa02f3322e8c70cbf5ba8f1115a04b2","signature":"a4321a18e9f87f996672902385e77ad1fd93f251f4e665f849fbdc32bbfb1cdc"}],"root":[[60,113]],"options":{"allowImportingTsExtensions":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":7,"noFallthroughCasesInSwitch":true,"noImplicitAny":false,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"strictBindCallApply":true,"strictFunctionTypes":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":9,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"referencedMap":[[97,1],[91,2],[101,3],[99,4],[100,5],[113,6],[104,7],[102,8],[103,9],[95,10],[96,11],[62,12],[64,13],[63,12],[61,2],[107,14],[105,15],[80,16],[81,17],[98,18],[94,19],[93,20],[106,21],[92,8],[111,22],[110,23],[112,24],[109,8],[70,25],[66,8],[67,8],[68,26],[69,2],[74,27],[73,28],[90,29],[89,8],[88,30],[75,31],[65,2],[77,32],[82,33],[85,34],[84,8],[87,35],[86,36]],"latestChangedDtsFile":"./utils/numbers.d.ts","version":"5.6.3"}
1
+ {"fileNames":["../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/small-date@2.0.1/node_modules/small-date/index.d.ts","../src/utils/functions/constant.ts","../src/sorting/types.ts","../src/sorting/comparisonchain.ts","../src/sorting/sorter.ts","../src/sorting/index.ts","../src/utils/nulls.ts","../src/utils/arrays/groupby.ts","../src/utils/arrays/indexby.ts","../src/utils/arrays/statistics.ts","../src/utils/arrays/uniqby.ts","../src/utils/arrays.ts","../src/utils/booleans.ts","../src/utils/empties.ts","../src/utils/errors/withtrycatch.ts","../src/utils/errors.ts","../src/utils/json.ts","../src/utils/numbers/round.ts","../src/utils/numbers.ts","../src/utils/primitives.ts","../src/time/timeunit.ts","../src/time/timebase.ts","../src/time/timeduration.ts","../src/utils/promises.ts","../src/utils/random.ts","../src/utils/records/entries.ts","../src/utils/records.ts","../src/utils/strings/stringparts.ts","../src/utils/strings.ts","../src/utils/index.ts","../src/utils/functions/iff.ts","../src/utils/functions.ts","../src/async/deferred.ts","../src/time/types.ts","../src/time/timeinstantbuilder.ts","../src/time/timeinstant.ts","../src/logger.ts","../src/optional.ts","../src/async/cancelabledeferred.ts","../src/time/timefrequency.ts","../src/async/ratethrottler.ts","../src/async/semaphore.ts","../src/async/index.ts","../src/lazy/lazy.ts","../src/lazy/lazyasync.ts","../src/lazy/index.ts","../src/time/randomtimeduration.ts","../src/time/timerange.ts","../src/time/index.ts","../src/upgrade/errors.ts","../src/upgrade/types.ts","../src/upgrade/gettransitionspath.ts","../src/upgrade/dataupgrader.ts","../src/upgrade/index.ts","../src/index.ts"],"fileIdsList":[[91],[90],[91,97,99,100],[91,98,113],[91,113],[64,88,95,96,101,104,107,112],[102,103],[88],[65],[88,94],[65,90],[60,61,88],[61,62,63],[79,81,92,94,98,105,106],[79,81,83],[79],[64,79,80,88,91,94],[81,88],[59,64,79,80,81,91,92,93],[65,90,92,94],[94,107],[88,108,109,110],[88,109],[109,111],[64,65,66,67,68,69,90],[70],[73],[74,90],[60,89,90],[65,70,71,72,74,75,77,78,82,83,85,87,90],[74],[65,74,76,90],[81,90],[84],[65,70,86],[65,70,87]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"15c1c3d7b2e46e0025417ed6d5f03f419e57e6751f87925ca19dc88297053fe6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"c77f0c58173b1b3364632db5ee4455bac69cbf0c494b5a777bf80ca4aa8c9560","impliedFormat":1},{"version":"2ad39d7999802d47e85e77152fc7b2819f9127b551102ec179b1f78cce242954","signature":"970715547588fa6a8217b5ae2eb62e3960370009390d013270ee5eea694e5c70"},{"version":"d3781289f931d1fd6da732725be3a924271f3126a60a11f738dab07a9de2f7d8","signature":"4d79eeb5415637be3229c2667895b56383253c77b8b33e61549b5128daf9e37a"},{"version":"9dd6c91ad0cc61ccf6cb430400942911c9898cc5cb568f71741821e7e3b26ec6","signature":"318fa1a3aea63a60b7b66160ac98a8b207968e4969cf41bac4453d4f062fc2dc"},{"version":"f81e13545a32f0e905158afc87f5fe966a0a74efbc167ec094b07aea3d12a6ca","signature":"8acbccc69dd0aeca47b8884ba49bf54b2523749862bfe29f0b4f7f402c6f5d3c"},{"version":"1ab20f387ef7fa5cf94272900952596792f583f45bbd58d9adf2d623349d060e","signature":"ec49ec1ca3ddc1fbcdb45f1740ccd72d20fbf450036286c4373d9d13ddf2c4a2"},{"version":"0d578fa07b7e41030f7ad5176898a0a70a092fc45a264ce67498f63e544344e1","signature":"eb96292ecf52597cf826715047ec8411375f0ac8a43d0bd12f87dd3190838a04"},{"version":"de9544e159891685d316ac4161b4f01b58dda06c70c5bed9ec04c094b4ba5015","signature":"ed74ba876a20726b0452cc66a7dd09544a1cc8a72a092d2ca8b19bc269c27da3"},{"version":"e31542b0347f4025457278d7bc3ddc84529991059c1ab2b0b5bcb9b37cc33836","signature":"2f906b8d1966c352311c18c50f04d1fdf57ac78b8e7f4e0ba837253c6a02bf51"},{"version":"065815c5d2b778f409ae78a366079628d6b28c689647b358ee4cb854e92eead2","signature":"8da47ddef220dd11a8a0f431127f8d083ba95b7e2b45b266233812bcf1f13888"},{"version":"2fdcc3f88b19bda7bc74c8c6430b9e2f6eb6d252d812c508f48669a27b680d5f","signature":"e2ab4c29fa06a89dc35759aaf3354bb06cad41d3d6f1bf9e1ce482187cd1fb91"},{"version":"334fbcc8d8c79c7e87a57579cadde8d9b73b4fe6bf35cab40394600353c0bb7d","signature":"283bb26d51b9d0769247b89c21d91503cb3823fdcfda75cabf3a7fcc4d55e270"},{"version":"56571c3f44c6312462e8395ed75d05887dcbcb1581a0ad47dd72bcdbb898ea84","signature":"853de26cb0c4a51d7b511bf303ff4d6680bc18d36b3f2f6d7b8008c8927b58a1"},{"version":"80cfb7f027e1ed06149023ea32ba3d176db0325b675ade827d4cdf2b8cd715fc","signature":"9fc3664a9a2be65e8bf0ca4475f184a16c7a0b03e78c77cabe45e47d78bcd3db"},{"version":"1dddda79911dbd7ebfe881c7978fb4761be7a4d18f4367d2232fee867f1886d1","signature":"0992957d4775ed8a31ed20acbff806cc8f5eb4edd28e3071d36c2f16e6fa277f"},{"version":"2009cccc1fb281cb9233e13b14adb47b87ae0c72f7c73355d4ff0a536ad012b4","signature":"e537516e7b69cd96068554445428fd261d806d54ba92343fb91cac4120ae6017"},{"version":"c8493627adf08b4e0d48ebfb2724b2d1d227d26a71625f09b9f7601f5e847459","signature":"5db98cd7b060f49da05790a11db4314bbf4e7df3459462f37257991217d300b9"},{"version":"d0f71922ce0d6ce8aecef7b85158c6726e0db4d0ef23d71f2b14b9a2e5bef9fb","signature":"a29a11ea1f06a29ebc9d88a8439d78598d2d4977115a70705902c117d2a19e76"},{"version":"f2f9f6b43791f93f0cd2f09a5cee85243eb8ae831650b55a44f8d5b0fee14940","signature":"991a327a79d8b69993ac2ae5a6136cc96fa796d98e76860417061a0133231b68"},{"version":"70a58316dfec322f94bb980c05315faafd93f6fe6c56015efc7f0a4fb87636e2","signature":"d98d28f45f2fd50c72d82ea27d9fb213df06bc2456eb0748c657c6da8e77a1d4"},{"version":"cb6e4d47248ad5cbeed78f4164cf996fb276d54a580ac52e3a7feb92c4336d77","signature":"86463269677354ddc223e39011b4b5f231cdc5d072d08fb0e4b431a915e1f6eb"},{"version":"fe78af98b38dddb04bbf42a17e0ff5d3509ad062a97cd04d08cadbea7425627c","signature":"58686fcfd1c2f6e21d3dd7f52d347e73a9879aa634acd1baafe5f2c2e4c09e9a"},{"version":"607ee1c34e1b33bf42adba23592a8fc9a8a70cf986619222584c3da9a7685543","signature":"7fb8f6ffdd1cd861e0dd217886ef074bef1d4c88356030506615dc48a8121978"},{"version":"d3816328a097970f46726b8e2f34f1e66fab2d95a2463fe0a3a3460308fc06aa","signature":"0cce1783c4c412541b1118f66a401ee1076d2b45f6de005ffa10d7a3138bdbc3"},{"version":"d605a6d77f9547cc60d5563f8e4b43826ecfe67145715e7701443e6c7000f7d8","signature":"59fd76d117c77ac4f8aa2735ac59e07dac3e7f8abf4e8b5b79d7dcb4448215c4"},{"version":"f9b7540997405acdde3ddd1bc98c2a8ff0039f7dfde4dc699445a017c2311ec3","signature":"5d629ce88038b243d9c777e9c53696b49ed3391e2175a9b88dabb31a76079a06"},{"version":"92c49c13b67f8d21faaa1070dd6c5bb51e83098a434c5ea9d732583581385e38","signature":"da2bf0861b5119eeac5446fc8ab6beddfde0618a9c511d5b82147fb373deac15"},{"version":"a12f80b0021d23f5d69f36f2d6aca668500011c39a1700fae1181998fc85b601","signature":"d0858da5bf20118f452fc36ac2e03115b274084215f8246ffb82ad278da00a7d"},{"version":"b1bed90df58555cf322c8db9c2385cde43cb4f51da32ca8ab27e5d9865b59a7d","signature":"cd8c66d55b062af0df39c84f41185885b993048e5c109982e3a315d1789a5f3f"},{"version":"33d19b3cb7117da8dc04e821cd39a8c3e796376139e6aa05bfd822dfa554bfae","signature":"d395782613b270de87b13d6331a397013e9753fc4428b00f2e294cc29e3e8d76"},{"version":"409daaf670e0781555140c48d214d855775841d1a74d74057a2f9c9b23a8ea93","signature":"cd6b7bbe6bdee5e60c4fbee6907d334808ea07a247374df93136231d359b4795"},{"version":"9f7954a3bc4fd40f8b65b54655a3c2e30871499cd2d151ec7e47f40d80035ecc","signature":"65cc505b6d6e6b6f058b49a2c81fde6a1ec806e49261ce71bd4ad8a671712483"},{"version":"d6859319cfab28518e99dba48a2dbb9392e2e112f2dac7911b055a003189b920","signature":"1f0e09320cb86d4f4f26386d828d9b66da11620d331f79073615026f5dbf6978"},{"version":"c3595b97fd7a5a98a6af20b81f87bdea93d963f1c39337739e605281aa964c4a","signature":"d3b1a67f87d6e77f7772bfc777e04387a6bf3d84eb2f18b454f9bd9cefa86afb"},{"version":"3c2ca70abf1d8db31f40785c88b68b356b5fecc93edf626cc31e0c38225f8a4d","signature":"626afa709798521c427847bb617e1379d22b90d6098118ce08e137383dab2965"},{"version":"8a36f4d8f34cebcde784d513a5bc6b6a020cb5f5a78297b2ea92ff5f7f59b183","signature":"9ce8acadf39f2eff3011fb1241b111299e9a3ac144202b12fee6200e6d781027"},{"version":"c4f88d5f3c6e0d1b87efd8d336d6cd4ef457db83c952de20b90d4808187c8450","signature":"ff1690eb4407b18a88ddc918e4311923bc1f787a8a8f678d5b03fe8922048177"},{"version":"f46c11b34a70c1196da95cf77b957469dbd6ec94e00e5074041392626c35fa76","signature":"15884642f06d3093d656d698d814e95599a96ee629468206791b359b5e4d137d"},{"version":"963e90bd6a94bd500329447e92ecb2be1efaab48d53d81e6f143dc63cb2aa76f","signature":"c6eff6bde8066f2980b221de77dc801f3a2a27525a9c3879d37426941b7a413c"},{"version":"1746aab5d9264c85832305e5ac252401199168629595ec2d65daccbb4e1778bd","signature":"655ff771dbe8906922d5081fd4ecffc1b2fe97521c9c400cc4f506b81f048645"},{"version":"141dac9588bca23bfc8a13b99560bae0cf818733218861bba342a5418e55d86f","signature":"3d58a3363bb571062abeb1fdc96e174e8a6a61bcdd3e7491c2bf65dbb5a17750"},{"version":"462708b3fc0067a69af6f9df70229485d8ebccbac2a472314a8306a4ef56779f","signature":"3f2b9bd0340a9cbcdbbfdbd7bf828a49c477dddd3473ed7816310700becf5961"},{"version":"0c244f63637cdd383fd0ba6912244f8146a9169eeaf885b2ef136e4d1baedd01","signature":"86122f878833e22a38a54656b9fe61736ba6c103b6a2fa01dae70458aec4353d"},{"version":"ba7ad8169c4e0cfeab946431d3e9a2def0f86c928580fcd767d0afb09b5c03f5","signature":"1a3a6cd1cc20eddc55d13ce8a54fabc0bebe0069b2d75d2c738e7d8aa94741bc"},{"version":"5253453362b3bb0b2d215c3ae66b850edb6f65bce45daaf4f2530b5292ab905b","signature":"9e7fcd385ecfdfa65958f8c734a2a73bbfd1ffca8f5ab0240629464e94f332a0"},{"version":"776155d42bfa1737a147a7f9ab63f0068b0f12279f86757347d605d8550eae16","signature":"0428da86bb5e41a6da4aedec6af5fb004a74731c9d56bcbe2b6348f1bf44744a"},{"version":"c3d59784aa9468ae61f7f99359eea4b3a9ccc6aec1bb46869aea049c0a0b8812","signature":"975d013c31f48ecb26867d0f98f13d2eaebb4af2bfbe6b5fd9a4d38fdccd5656"},{"version":"f5cb5ee6dfc305bbad84b2990954ce9557db25146764b81e91a22f22b4c650dd","signature":"5022494c36b44f458140adf6060c2f14e107b8984de8596eee5dbcb70cdb9f6b"},{"version":"6f4a74e34595aa6420c4a1df1ff788d1686f7bdfc7259de90d0102f4cf83555f","signature":"12cf7f6e0e2bf8d8e9b8a79d1adae5f8706736dee1e5d25279785ce45c7b0b27"},{"version":"5b2927131599d55e0ee730c7a2afc764ff39199a5d186b510fc3eca82f4ef1ff","signature":"d6fc507f1c2ecd14c0882a0e00a1ba2a580c6e45550a3a5e868d7bee4b1922b6"},{"version":"1beb76f20b97f76d5ac48caa921161255c72c59e93a8571871b069b8dff2bed2","signature":"340b2a38ab87e8aa617f4021a1e4c916453f80cc27d908ab084a1798be18b5c0"},{"version":"2ebd1a1e8ba106bea54bf6cf59f2909a27864c7b35ff1b828d8c7634a6a62179","signature":"f0561579997f9cfd97a6e991d806999dd3b48b6476b03e7d33ca6ea06297b21c"},{"version":"74dc5d77ab2d43e26ae180d7bef1780d7fa0209ef643827ac601c2fdda759321","signature":"c78dfc67b95896fccbc0e65345294a53877ed8e6424c5b8a763c709b68a1c645"},{"version":"22577c900676846354224462f8a6b3e0e5033cd14a501ea46107e67a4ab7863f","signature":"70fd81e903686acf6e994565edb1588cc619b816646ea1a89ac9a47b45d25737"},{"version":"569c58f09117e840594ae628aec2ca65eaa02f3322e8c70cbf5ba8f1115a04b2","signature":"a4321a18e9f87f996672902385e77ad1fd93f251f4e665f849fbdc32bbfb1cdc"}],"root":[[60,113]],"options":{"allowImportingTsExtensions":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":7,"noFallthroughCasesInSwitch":true,"noImplicitAny":false,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"strictBindCallApply":true,"strictFunctionTypes":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":9,"tsBuildInfoFile":"./tsconfig.tsbuildinfo"},"referencedMap":[[97,1],[91,2],[101,3],[99,4],[100,5],[113,6],[104,7],[102,8],[103,9],[95,10],[96,11],[62,12],[64,13],[63,12],[61,2],[107,14],[105,15],[80,16],[81,17],[98,18],[94,19],[93,20],[106,21],[92,8],[111,22],[110,23],[112,24],[109,8],[70,25],[66,8],[67,8],[68,26],[69,2],[74,27],[73,28],[90,29],[89,8],[88,30],[75,31],[65,2],[77,32],[82,33],[85,34],[84,8],[87,35],[86,36]],"latestChangedDtsFile":"./utils/arrays.d.ts","version":"5.6.3"}
@@ -1,6 +1,6 @@
1
1
  import type { TComparisonFunction } from "../sorting/index.js";
2
2
  import type { TAccumulator, TBiPredicate, TPredicate, TTransformer } from "./functions.js";
3
- import type { TMaybe } from "./nulls.js";
3
+ import { type TMaybe } from "./nulls.js";
4
4
  export * from './arrays/groupBy.js';
5
5
  export * from './arrays/indexBy.js';
6
6
  export * from './arrays/statistics.js';
@@ -8,8 +8,8 @@ export * from './arrays/uniqBy.js';
8
8
  export type TReadableArray<T> = Array<T> | ReadonlyArray<T>;
9
9
  export type TArrayable<T> = T | T[];
10
10
  export type TEmptyArray = [];
11
- export declare function ensureArray<const T>(t: T | Array<T>): Array<T>;
12
- export declare function ensureReadableArray<const T>(t: T | Array<T> | ReadonlyArray<T>): TReadableArray<T>;
11
+ export declare function ensureArray<const T>(t: T | Array<T> | null | undefined): Array<T>;
12
+ export declare function ensureReadableArray<const T>(t: T | Array<T> | ReadonlyArray<T> | null | undefined): TReadableArray<T>;
13
13
  export declare function isArray<const T>(t: unknown): t is Array<T>;
14
14
  /**
15
15
  * Generate a new copy of an array with:
@@ -54,3 +54,4 @@ export declare function partition<T>(arr: T[], predicate: TPredicate<T>): [T[],
54
54
  * @returns The first truthy value returned by the mapping function, or null if no truthy value is found.
55
55
  */
56
56
  export declare function mapFirstTruthy<T, R>(arr: T[], mapFn: TTransformer<T, R>): R | null;
57
+ export declare function makeArrayEmpty(arr: unknown[]): void;
@@ -1,3 +1,3 @@
1
- import type { TFunction } from "../functions.js";
2
- export declare function withTryCatch<R>(fn: TFunction<void, R>): [R, undefined] | [undefined, Error];
3
- export declare function withTryCatchAsync<R>(fn: TFunction<void, Promise<R>>): Promise<[R, undefined] | [undefined, Error]>;
1
+ import { type TFunction, type TTransformer } from "../functions.js";
2
+ export declare function withTryCatch<R>(fn: TFunction<void, R>, errMapFn?: TTransformer<Error, Error>): [R, undefined] | [undefined, Error];
3
+ export declare function withTryCatchAsync<R>(fn: TFunction<void, Promise<R>>, errMapFn: TTransformer<Error, Error>): Promise<[R, undefined] | [undefined, Error]>;
@@ -4,5 +4,7 @@ export default constant;
4
4
  export declare const constantNull: () => null;
5
5
  export declare const constantTrue: () => boolean;
6
6
  export declare const constantFalse: () => boolean;
7
+ export declare const alwaysTrue: () => boolean;
8
+ export declare const alwaysFalse: () => boolean;
7
9
  export declare const constantZero: () => number;
8
10
  export declare const constantOne: () => number;
@@ -25,3 +25,7 @@ export type TAsyncAnyFunction<R> = (...args: unknown[]) => Promise<R>;
25
25
  export declare function isFunction(t: unknown): t is Function;
26
26
  export declare function noop(): void;
27
27
  export declare function filterWithTypePredicate<T, R extends T>(filter: TPredicate<T>): TTypePredicate<T, R>;
28
+ export declare function not<T>(predicate: TPredicate<T>): TPredicate<T>;
29
+ export declare function and<T>(a: TPredicate<T>, b: TPredicate<T>): TPredicate<T>;
30
+ export declare function or<T>(a: TPredicate<T>, b: TPredicate<T>): TPredicate<T>;
31
+ export declare function xor<T>(a: TPredicate<T>, b: TPredicate<T>): TPredicate<T>;
@@ -10,7 +10,7 @@ export declare function stringToNumber(s: string | null | undefined): number | n
10
10
  export declare function pad(str: string, n: number, char: string, where?: 'left' | 'right'): string;
11
11
  export declare function padLeft(str: string, n: number, char: string): string;
12
12
  export declare function padRight(str: string, n: number, char: string): string;
13
- export declare function ellipsis(str: string, maxLength: number, padChar: string, padWhere?: 'left' | 'right'): string;
13
+ export declare function ellipsis(str: string, maxLength: number): string;
14
14
  export declare function pluralize(n: number, singular: string, plural?: string): string;
15
15
  export declare function wrapWithString(str: string, delimiter: string): string;
16
16
  /** @deprecated[2024-12-23]: Use {@link wrapWithString} instead. */
package/esbuild/index.cjs CHANGED
@@ -193,6 +193,9 @@ __export(src_exports, {
193
193
  TimeInstant: () => TimeInstant,
194
194
  TimeRange: () => TimeRange,
195
195
  TimeUnit: () => TimeUnit,
196
+ alwaysFalse: () => alwaysFalse,
197
+ alwaysTrue: () => alwaysTrue,
198
+ and: () => and,
196
199
  asError: () => asError,
197
200
  asPromise: () => asPromise,
198
201
  average: () => average,
@@ -267,6 +270,7 @@ __export(src_exports, {
267
270
  isZero: () => isZero,
268
271
  jsonCloneDeep: () => jsonCloneDeep,
269
272
  last: () => last,
273
+ makeArrayEmpty: () => makeArrayEmpty,
270
274
  mapDefined: () => mapDefined,
271
275
  mapEntries: () => mapEntries,
272
276
  mapFirstTruthy: () => mapFirstTruthy,
@@ -277,8 +281,10 @@ __export(src_exports, {
277
281
  minBy: () => minBy,
278
282
  multiplyBy: () => multiplyBy,
279
283
  noop: () => noop,
284
+ not: () => not,
280
285
  omit: () => omit,
281
286
  omitFromJsonObject: () => omitFromJsonObject,
287
+ or: () => or,
282
288
  pad: () => pad,
283
289
  padLeft: () => padLeft,
284
290
  padRight: () => padRight,
@@ -313,7 +319,8 @@ __export(src_exports, {
313
319
  withTryCatch: () => withTryCatch,
314
320
  withTryCatchAsync: () => withTryCatchAsync,
315
321
  wrap: () => wrap,
316
- wrapWithString: () => wrapWithString
322
+ wrapWithString: () => wrapWithString,
323
+ xor: () => xor
317
324
  });
318
325
  module.exports = __toCommonJS(src_exports);
319
326
 
@@ -485,6 +492,32 @@ var Semaphore = class {
485
492
  }
486
493
  };
487
494
 
495
+ // src/utils/nulls.ts
496
+ function ensureDefined(v, name = "value") {
497
+ if (isDefined(v))
498
+ return v;
499
+ throw new Error("Expected " + name + " to be defined, got: " + v);
500
+ }
501
+ function isDefined(x) {
502
+ return x !== null && x !== void 0;
503
+ }
504
+ function isNullOrUndefined(x) {
505
+ return x === null || x === void 0;
506
+ }
507
+ function ifDefined(source, callback) {
508
+ if (isDefined(source))
509
+ callback(source);
510
+ }
511
+ function mapDefined(source, mapper) {
512
+ if (isDefined(source))
513
+ return mapper(source);
514
+ return null;
515
+ }
516
+ function ifNullOrUndefined(source, callback) {
517
+ if (isNullOrUndefined(source))
518
+ callback();
519
+ }
520
+
488
521
  // src/utils/arrays/groupBy.ts
489
522
  function groupByString(arr, field) {
490
523
  return groupByStringWith(arr, (t) => t[field]);
@@ -586,6 +619,8 @@ function identity(t) {
586
619
  var constantNull = constant(null);
587
620
  var constantTrue = constant(true);
588
621
  var constantFalse = constant(false);
622
+ var alwaysTrue = constantTrue;
623
+ var alwaysFalse = constantFalse;
589
624
  var constantZero = constant(0);
590
625
  var constantOne = constant(1);
591
626
 
@@ -615,6 +650,22 @@ function noop() {
615
650
  function filterWithTypePredicate(filter) {
616
651
  return (t) => filter(t);
617
652
  }
653
+ function not(predicate) {
654
+ return (t) => !predicate(t);
655
+ }
656
+ function and(...predicates) {
657
+ if (predicates.length === 0) return constantTrue;
658
+ else if (predicates.length === 1) return predicates[0];
659
+ return (t) => predicates.reduce((prev, cur) => prev ? cur(t) : false, true);
660
+ }
661
+ function or(...predicates) {
662
+ if (predicates.length === 0) return constantTrue;
663
+ else if (predicates.length === 1) return predicates[0];
664
+ return (t) => predicates.reduce((prev, cur) => prev ? true : cur(t), false);
665
+ }
666
+ function xor(a, b) {
667
+ return (t) => a(t) !== b(t);
668
+ }
618
669
 
619
670
  // src/utils/arrays/uniqBy.ts
620
671
  function uniq(arr) {
@@ -639,9 +690,11 @@ function uniqByKey(arr, key) {
639
690
 
640
691
  // src/utils/arrays.ts
641
692
  function ensureArray(t) {
693
+ if (isNullOrUndefined(t)) return [];
642
694
  return t instanceof Array ? t : [t];
643
695
  }
644
696
  function ensureReadableArray(t) {
697
+ if (isNullOrUndefined(t)) return [];
645
698
  return t instanceof Array ? t : [t];
646
699
  }
647
700
  function isArray(t) {
@@ -723,6 +776,9 @@ function mapFirstTruthy(arr, mapFn) {
723
776
  }
724
777
  return null;
725
778
  }
779
+ function makeArrayEmpty(arr) {
780
+ arr.splice(0, arr.length);
781
+ }
726
782
 
727
783
  // src/utils/booleans.ts
728
784
  function isTrue(x) {
@@ -733,15 +789,15 @@ function isFalse(x) {
733
789
  }
734
790
 
735
791
  // src/utils/errors/withTryCatch.ts
736
- function withTryCatch(fn) {
792
+ function withTryCatch(fn, errMapFn) {
737
793
  try {
738
794
  return [fn(), void 0];
739
795
  } catch (e) {
740
- return [void 0, asError(e)];
796
+ return [void 0, (errMapFn ?? identity)(asError(e))];
741
797
  }
742
798
  }
743
- async function withTryCatchAsync(fn) {
744
- return fn().then((value) => [value, void 0], (e) => [void 0, asError(e)]);
799
+ async function withTryCatchAsync(fn, errMapFn) {
800
+ return fn().then((value) => [value, void 0], (e) => [void 0, (errMapFn ?? identity)(asError(e))]);
745
801
  }
746
802
 
747
803
  // src/utils/errors.ts
@@ -792,32 +848,6 @@ function omitFromJsonObject(o, ...keys) {
792
848
  }
793
849
  var omit = omitFromJsonObject;
794
850
 
795
- // src/utils/nulls.ts
796
- function ensureDefined(v, name = "value") {
797
- if (isDefined(v))
798
- return v;
799
- throw new Error("Expected " + name + " to be defined, got: " + v);
800
- }
801
- function isDefined(x) {
802
- return x !== null && x !== void 0;
803
- }
804
- function isNullOrUndefined(x) {
805
- return x === null || x === void 0;
806
- }
807
- function ifDefined(source, callback) {
808
- if (isDefined(source))
809
- callback(source);
810
- }
811
- function mapDefined(source, mapper) {
812
- if (isDefined(source))
813
- return mapper(source);
814
- return null;
815
- }
816
- function ifNullOrUndefined(source, callback) {
817
- if (isNullOrUndefined(source))
818
- callback();
819
- }
820
-
821
851
  // src/utils/numbers/round.ts
822
852
  var roundModes = {
823
853
  "toNearest": Math.round,
@@ -1072,11 +1102,11 @@ function padLeft(str, n, char) {
1072
1102
  function padRight(str, n, char) {
1073
1103
  return pad(str, n, char, "right");
1074
1104
  }
1075
- function ellipsis(str, maxLength, padChar, padWhere = "left") {
1105
+ function ellipsis(str, maxLength) {
1076
1106
  if (maxLength < 4)
1077
1107
  throw new Error("Invalid argument maxLength");
1078
1108
  if (str.length <= maxLength) {
1079
- return pad(str, maxLength, padChar, padWhere);
1109
+ return str;
1080
1110
  } else {
1081
1111
  return str.substring(0, maxLength - 3) + "...";
1082
1112
  }
@@ -2775,6 +2805,9 @@ function isUpgradable(obj) {
2775
2805
  TimeInstant,
2776
2806
  TimeRange,
2777
2807
  TimeUnit,
2808
+ alwaysFalse,
2809
+ alwaysTrue,
2810
+ and,
2778
2811
  asError,
2779
2812
  asPromise,
2780
2813
  average,
@@ -2849,6 +2882,7 @@ function isUpgradable(obj) {
2849
2882
  isZero,
2850
2883
  jsonCloneDeep,
2851
2884
  last,
2885
+ makeArrayEmpty,
2852
2886
  mapDefined,
2853
2887
  mapEntries,
2854
2888
  mapFirstTruthy,
@@ -2859,8 +2893,10 @@ function isUpgradable(obj) {
2859
2893
  minBy,
2860
2894
  multiplyBy,
2861
2895
  noop,
2896
+ not,
2862
2897
  omit,
2863
2898
  omitFromJsonObject,
2899
+ or,
2864
2900
  pad,
2865
2901
  padLeft,
2866
2902
  padRight,
@@ -2895,5 +2931,6 @@ function isUpgradable(obj) {
2895
2931
  withTryCatch,
2896
2932
  withTryCatchAsync,
2897
2933
  wrap,
2898
- wrapWithString
2934
+ wrapWithString,
2935
+ xor
2899
2936
  });
package/esbuild/index.mjs CHANGED
@@ -330,6 +330,32 @@ var Semaphore = class {
330
330
  }
331
331
  };
332
332
 
333
+ // src/utils/nulls.ts
334
+ function ensureDefined(v, name = "value") {
335
+ if (isDefined(v))
336
+ return v;
337
+ throw new Error("Expected " + name + " to be defined, got: " + v);
338
+ }
339
+ function isDefined(x) {
340
+ return x !== null && x !== void 0;
341
+ }
342
+ function isNullOrUndefined(x) {
343
+ return x === null || x === void 0;
344
+ }
345
+ function ifDefined(source, callback) {
346
+ if (isDefined(source))
347
+ callback(source);
348
+ }
349
+ function mapDefined(source, mapper) {
350
+ if (isDefined(source))
351
+ return mapper(source);
352
+ return null;
353
+ }
354
+ function ifNullOrUndefined(source, callback) {
355
+ if (isNullOrUndefined(source))
356
+ callback();
357
+ }
358
+
333
359
  // src/utils/arrays/groupBy.ts
334
360
  function groupByString(arr, field) {
335
361
  return groupByStringWith(arr, (t) => t[field]);
@@ -431,6 +457,8 @@ function identity(t) {
431
457
  var constantNull = constant(null);
432
458
  var constantTrue = constant(true);
433
459
  var constantFalse = constant(false);
460
+ var alwaysTrue = constantTrue;
461
+ var alwaysFalse = constantFalse;
434
462
  var constantZero = constant(0);
435
463
  var constantOne = constant(1);
436
464
 
@@ -460,6 +488,22 @@ function noop() {
460
488
  function filterWithTypePredicate(filter) {
461
489
  return (t) => filter(t);
462
490
  }
491
+ function not(predicate) {
492
+ return (t) => !predicate(t);
493
+ }
494
+ function and(...predicates) {
495
+ if (predicates.length === 0) return constantTrue;
496
+ else if (predicates.length === 1) return predicates[0];
497
+ return (t) => predicates.reduce((prev, cur) => prev ? cur(t) : false, true);
498
+ }
499
+ function or(...predicates) {
500
+ if (predicates.length === 0) return constantTrue;
501
+ else if (predicates.length === 1) return predicates[0];
502
+ return (t) => predicates.reduce((prev, cur) => prev ? true : cur(t), false);
503
+ }
504
+ function xor(a, b) {
505
+ return (t) => a(t) !== b(t);
506
+ }
463
507
 
464
508
  // src/utils/arrays/uniqBy.ts
465
509
  function uniq(arr) {
@@ -484,9 +528,11 @@ function uniqByKey(arr, key) {
484
528
 
485
529
  // src/utils/arrays.ts
486
530
  function ensureArray(t) {
531
+ if (isNullOrUndefined(t)) return [];
487
532
  return t instanceof Array ? t : [t];
488
533
  }
489
534
  function ensureReadableArray(t) {
535
+ if (isNullOrUndefined(t)) return [];
490
536
  return t instanceof Array ? t : [t];
491
537
  }
492
538
  function isArray(t) {
@@ -568,6 +614,9 @@ function mapFirstTruthy(arr, mapFn) {
568
614
  }
569
615
  return null;
570
616
  }
617
+ function makeArrayEmpty(arr) {
618
+ arr.splice(0, arr.length);
619
+ }
571
620
 
572
621
  // src/utils/booleans.ts
573
622
  function isTrue(x) {
@@ -578,15 +627,15 @@ function isFalse(x) {
578
627
  }
579
628
 
580
629
  // src/utils/errors/withTryCatch.ts
581
- function withTryCatch(fn) {
630
+ function withTryCatch(fn, errMapFn) {
582
631
  try {
583
632
  return [fn(), void 0];
584
633
  } catch (e) {
585
- return [void 0, asError(e)];
634
+ return [void 0, (errMapFn ?? identity)(asError(e))];
586
635
  }
587
636
  }
588
- async function withTryCatchAsync(fn) {
589
- return fn().then((value) => [value, void 0], (e) => [void 0, asError(e)]);
637
+ async function withTryCatchAsync(fn, errMapFn) {
638
+ return fn().then((value) => [value, void 0], (e) => [void 0, (errMapFn ?? identity)(asError(e))]);
590
639
  }
591
640
 
592
641
  // src/utils/errors.ts
@@ -637,32 +686,6 @@ function omitFromJsonObject(o, ...keys) {
637
686
  }
638
687
  var omit = omitFromJsonObject;
639
688
 
640
- // src/utils/nulls.ts
641
- function ensureDefined(v, name = "value") {
642
- if (isDefined(v))
643
- return v;
644
- throw new Error("Expected " + name + " to be defined, got: " + v);
645
- }
646
- function isDefined(x) {
647
- return x !== null && x !== void 0;
648
- }
649
- function isNullOrUndefined(x) {
650
- return x === null || x === void 0;
651
- }
652
- function ifDefined(source, callback) {
653
- if (isDefined(source))
654
- callback(source);
655
- }
656
- function mapDefined(source, mapper) {
657
- if (isDefined(source))
658
- return mapper(source);
659
- return null;
660
- }
661
- function ifNullOrUndefined(source, callback) {
662
- if (isNullOrUndefined(source))
663
- callback();
664
- }
665
-
666
689
  // src/utils/numbers/round.ts
667
690
  var roundModes = {
668
691
  "toNearest": Math.round,
@@ -917,11 +940,11 @@ function padLeft(str, n, char) {
917
940
  function padRight(str, n, char) {
918
941
  return pad(str, n, char, "right");
919
942
  }
920
- function ellipsis(str, maxLength, padChar, padWhere = "left") {
943
+ function ellipsis(str, maxLength) {
921
944
  if (maxLength < 4)
922
945
  throw new Error("Invalid argument maxLength");
923
946
  if (str.length <= maxLength) {
924
- return pad(str, maxLength, padChar, padWhere);
947
+ return str;
925
948
  } else {
926
949
  return str.substring(0, maxLength - 3) + "...";
927
950
  }
@@ -2619,6 +2642,9 @@ export {
2619
2642
  TimeInstant,
2620
2643
  TimeRange,
2621
2644
  TimeUnit,
2645
+ alwaysFalse,
2646
+ alwaysTrue,
2647
+ and,
2622
2648
  asError,
2623
2649
  asPromise,
2624
2650
  average,
@@ -2693,6 +2719,7 @@ export {
2693
2719
  isZero,
2694
2720
  jsonCloneDeep,
2695
2721
  last,
2722
+ makeArrayEmpty,
2696
2723
  mapDefined,
2697
2724
  mapEntries,
2698
2725
  mapFirstTruthy,
@@ -2703,8 +2730,10 @@ export {
2703
2730
  minBy,
2704
2731
  multiplyBy,
2705
2732
  noop,
2733
+ not,
2706
2734
  omit,
2707
2735
  omitFromJsonObject,
2736
+ or,
2708
2737
  pad,
2709
2738
  padLeft,
2710
2739
  padRight,
@@ -2739,5 +2768,6 @@ export {
2739
2768
  withTryCatch,
2740
2769
  withTryCatchAsync,
2741
2770
  wrap,
2742
- wrapWithString
2771
+ wrapWithString,
2772
+ xor
2743
2773
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@zelgadis87/utils-core",
4
- "version": "4.4.3",
4
+ "version": "4.5.0",
5
5
  "author": "Zelgadis87",
6
6
  "license": "ISC",
7
7
  "private": false,
@@ -1,6 +1,6 @@
1
1
  import type { TComparisonFunction } from "../sorting/index.js";
2
2
  import type { TAccumulator, TBiPredicate, TPredicate, TTransformer } from "./functions.js";
3
- import type { TMaybe } from "./nulls.js";
3
+ import { isNullOrUndefined, type TMaybe } from "./nulls.js";
4
4
 
5
5
  export * from './arrays/groupBy.js';
6
6
  export * from './arrays/indexBy.js';
@@ -11,10 +11,12 @@ export type TReadableArray<T> = Array<T> | ReadonlyArray<T>;
11
11
  export type TArrayable<T> = T | T[];
12
12
  export type TEmptyArray = [];
13
13
 
14
- export function ensureArray<const T>( t: T | Array<T> ): Array<T> {
14
+ export function ensureArray<const T>( t: T | Array<T> | null | undefined ): Array<T> {
15
+ if ( isNullOrUndefined( t ) ) return [];
15
16
  return t instanceof Array ? t : [ t ];
16
17
  }
17
- export function ensureReadableArray<const T>( t: T | Array<T> | ReadonlyArray<T> ): TReadableArray<T> {
18
+ export function ensureReadableArray<const T>( t: T | Array<T> | ReadonlyArray<T> | null | undefined ): TReadableArray<T> {
19
+ if ( isNullOrUndefined( t ) ) return [];
18
20
  return t instanceof Array ? t : [ t ];
19
21
  }
20
22
 
@@ -138,3 +140,7 @@ export function mapFirstTruthy<T, R>(arr: T[], mapFn: TTransformer<T, R>): R | n
138
140
  }
139
141
  return null;
140
142
  }
143
+
144
+ export function makeArrayEmpty( arr: unknown[] ): void {
145
+ arr.splice( 0, arr.length );
146
+ }
@@ -1,15 +1,15 @@
1
1
 
2
2
  import { asError } from "../errors.js";
3
- import type { TFunction } from "../functions.js";
3
+ import { identity, type TFunction, type TTransformer } from "../functions.js";
4
4
 
5
- export function withTryCatch<R>( fn: TFunction<void, R> ): [ R, undefined ] | [ undefined, Error ] {
5
+ export function withTryCatch<R>( fn: TFunction<void, R>, errMapFn?: TTransformer<Error, Error> ): [ R, undefined ] | [ undefined, Error ] {
6
6
  try {
7
7
  return [ fn(), void 0 ] as const;
8
8
  } catch ( e: unknown ) {
9
- return [ void 0, asError( e ) ] as const;
9
+ return [ void 0, ( errMapFn ?? identity )( asError( e ) ) ] as const;
10
10
  }
11
11
  }
12
12
 
13
- export async function withTryCatchAsync<R>( fn: TFunction<void, Promise<R>> ): Promise<[ R, undefined ] | [ undefined, Error ]> {
14
- return fn().then( ( value: R ) => [ value, void 0 ] as const, ( e: unknown ) => [ void 0, asError( e ) ] as const );
13
+ export async function withTryCatchAsync<R>( fn: TFunction<void, Promise<R>>, errMapFn: TTransformer<Error, Error> ): Promise<[ R, undefined ] | [ undefined, Error ]> {
14
+ return fn().then( ( value: R ) => [ value, void 0 ] as const, ( e: unknown ) => [ void 0, ( errMapFn ?? identity )( asError( e ) ) ] as const );
15
15
  }
@@ -5,5 +5,7 @@ export default constant;
5
5
  export const constantNull = constant( null );
6
6
  export const constantTrue = constant( true );
7
7
  export const constantFalse = constant( false );
8
+ export const alwaysTrue = constantTrue;
9
+ export const alwaysFalse = constantFalse;
8
10
  export const constantZero = constant( 0 );
9
11
  export const constantOne = constant( 1 );
@@ -1,3 +1,4 @@
1
+ import { constantTrue } from './functions.js';
1
2
 
2
3
  export * from './functions/constant.js';
3
4
  export * from './functions/iff.js';
@@ -38,4 +39,26 @@ export function filterWithTypePredicate<T, R extends T>( filter: TPredicate<T> )
38
39
  return ( t: T ): t is R => filter( t );
39
40
  }
40
41
 
42
+ export function not<T>( predicate: TPredicate<T> ): TPredicate<T> {
43
+ return ( t: T ) => !predicate( t );
44
+ }
45
+
46
+ export function and<T>( a: TPredicate<T>, b: TPredicate<T> ): TPredicate<T>;
47
+ export function and<T>( ...predicates: Array<TPredicate<T>> ): TPredicate<T> {
48
+ if ( predicates.length === 0 ) return constantTrue;
49
+ else if ( predicates.length === 1 ) return predicates[ 0 ];
50
+ return ( t: T ) => predicates.reduce( ( prev, cur ) => prev ? cur( t ) : false, true );
51
+ }
52
+
53
+ export function or<T>( a: TPredicate<T>, b: TPredicate<T> ): TPredicate<T>;
54
+ export function or<T>( ...predicates: Array<TPredicate<T>> ): TPredicate<T> {
55
+ if ( predicates.length === 0 ) return constantTrue;
56
+ else if ( predicates.length === 1 ) return predicates[ 0 ];
57
+ return ( t: T ) => predicates.reduce( ( prev, cur ) => prev ? true : cur( t ), false );
58
+ }
59
+
60
+ export function xor<T>( a: TPredicate<T>, b: TPredicate<T> ): TPredicate<T> {
61
+ return ( t: T ) => a( t ) !== b( t );
62
+ }
63
+
41
64
 
@@ -51,11 +51,11 @@ export function padRight( str: string, n: number, char: string ): string {
51
51
  return pad( str, n, char, 'right' );
52
52
  }
53
53
 
54
- export function ellipsis( str: string, maxLength: number, padChar: string, padWhere: 'left' | 'right' = 'left' ): string {
54
+ export function ellipsis( str: string, maxLength: number ): string {
55
55
  if ( maxLength < 4 )
56
56
  throw new Error( 'Invalid argument maxLength' );
57
57
  if ( str.length <= maxLength ) {
58
- return pad( str, maxLength, padChar, padWhere );
58
+ return str;
59
59
  } else {
60
60
  return str.substring( 0, maxLength - 3 ) + '...';
61
61
  }