@zelgadis87/utils-core 4.13.0 → 4.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sorting/Sorter.d.ts +10 -11
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/esbuild/index.cjs +5 -8
- package/esbuild/index.cjs.map +2 -2
- package/esbuild/index.mjs +5 -7
- package/esbuild/index.mjs.map +2 -2
- package/package.json +1 -1
- package/src/sorting/Sorter.ts +15 -16
package/esbuild/index.mjs
CHANGED
|
@@ -2400,11 +2400,11 @@ var compareDates = (fns, transform, options = {}) => {
|
|
|
2400
2400
|
return chain(fns, compareFunction2(transform, naturalOrderComparison, { nullsFirst, direction }));
|
|
2401
2401
|
};
|
|
2402
2402
|
var compareTimeInstants = (fns, transform, options = {}) => {
|
|
2403
|
-
const { nullsFirst, direction } = { ...
|
|
2403
|
+
const { nullsFirst, direction } = { ...defaultTimeInstantComparisonOptions, ...options };
|
|
2404
2404
|
return chain(fns, compareFunction2(transform, (a, b) => a.isBefore(b) ? -1 : 1, { nullsFirst, direction }));
|
|
2405
2405
|
};
|
|
2406
2406
|
var compareTimeDurations = (fns, transform, options = {}) => {
|
|
2407
|
-
const { nullsFirst, direction } = { ...
|
|
2407
|
+
const { nullsFirst, direction } = { ...defaultTimeDurationComparisonOptions, ...options };
|
|
2408
2408
|
return chain(fns, compareFunction2(transform, (a, b) => a.isLessThan(b) ? -1 : 1, { nullsFirst, direction }));
|
|
2409
2409
|
};
|
|
2410
2410
|
var compareBooleans2 = (fns, transform, options) => {
|
|
@@ -2457,7 +2457,9 @@ var next = (fns, transform) => {
|
|
|
2457
2457
|
usingStrings: (field) => using((t) => t[field]),
|
|
2458
2458
|
usingNumbers: (field) => using((t) => t[field]),
|
|
2459
2459
|
usingBooleans: (field) => using((t) => t[field]),
|
|
2460
|
-
usingDates: (field) => using((t) => t[field])
|
|
2460
|
+
usingDates: (field) => using((t) => t[field]),
|
|
2461
|
+
usingTimeInstant: (field) => using((t) => t[field]),
|
|
2462
|
+
usingTimeDuration: (field) => using((t) => t[field])
|
|
2461
2463
|
};
|
|
2462
2464
|
const retForNumbers = {
|
|
2463
2465
|
...retAsUsing,
|
|
@@ -2596,9 +2598,6 @@ var defaultDateComparisonOptions = { ...defaultCompareFunctionOptions };
|
|
|
2596
2598
|
var defaultTimeInstantComparisonOptions = { ...defaultCompareFunctionOptions };
|
|
2597
2599
|
var defaultTimeDurationComparisonOptions = { ...defaultCompareFunctionOptions };
|
|
2598
2600
|
var defaultBooleanComparisonOptions = { ...defaultCompareValuesOptions };
|
|
2599
|
-
function createSorterFor() {
|
|
2600
|
-
return doCreateEmpty();
|
|
2601
|
-
}
|
|
2602
2601
|
var Sorter = {
|
|
2603
2602
|
createFor: () => doCreateEmpty(),
|
|
2604
2603
|
sort: (arr, builder) => builder(doCreateEmpty()).sort(arr),
|
|
@@ -2836,7 +2835,6 @@ export {
|
|
|
2836
2835
|
constantTrue,
|
|
2837
2836
|
constantUndefined,
|
|
2838
2837
|
constantZero,
|
|
2839
|
-
createSorterFor,
|
|
2840
2838
|
cssDeclarationRulesDictionaryToCss,
|
|
2841
2839
|
decrement,
|
|
2842
2840
|
decrementBy,
|