@utiliread/primitives 1.0.0-117 → 1.0.0-119
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/index.d.ts +109 -871
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -7
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/luxon-local.d.ts +2 -0
- package/dist/types/step.d.ts +2 -1
- package/package.json +2 -2
- package/src/index.ts +7 -0
- package/src/luxon-local.ts +3 -0
- package/src/step.ts +2 -1
- package/tsconfig.json +1 -0
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Duration as $
|
|
1
|
+
import {Duration as $861601f61ea664fa$re_export$Duration, DateTime as $hgUW1$DateTime} from "luxon";
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
function $parcel$exportWildcard(dest, source) {
|
|
@@ -2697,6 +2697,7 @@ $parcel$exportWildcard($17f47e47f066a5d7$exports, $3dd897fc2e7e7aaa$exports);
|
|
|
2697
2697
|
|
|
2698
2698
|
|
|
2699
2699
|
|
|
2700
|
+
|
|
2700
2701
|
var $3742b95f8d2fe1ca$export$7ed5ca4f8b987938;
|
|
2701
2702
|
(function(DayOfWeek) {
|
|
2702
2703
|
DayOfWeek[DayOfWeek["Monday"] = 1] = "Monday";
|
|
@@ -2723,23 +2724,23 @@ var $3742b95f8d2fe1ca$export$fd55ce593607084a;
|
|
|
2723
2724
|
function asDuration(step, amount = 1) {
|
|
2724
2725
|
switch(step){
|
|
2725
2726
|
case "hour":
|
|
2726
|
-
return (0, $
|
|
2727
|
+
return (0, $861601f61ea664fa$re_export$Duration).fromObject({
|
|
2727
2728
|
hours: amount
|
|
2728
2729
|
});
|
|
2729
2730
|
case "day":
|
|
2730
|
-
return (0, $
|
|
2731
|
+
return (0, $861601f61ea664fa$re_export$Duration).fromObject({
|
|
2731
2732
|
days: amount
|
|
2732
2733
|
});
|
|
2733
2734
|
case "week":
|
|
2734
|
-
return (0, $
|
|
2735
|
+
return (0, $861601f61ea664fa$re_export$Duration).fromObject({
|
|
2735
2736
|
days: 7 * amount
|
|
2736
2737
|
});
|
|
2737
2738
|
case "month":
|
|
2738
|
-
return (0, $
|
|
2739
|
+
return (0, $861601f61ea664fa$re_export$Duration).fromObject({
|
|
2739
2740
|
months: amount
|
|
2740
2741
|
});
|
|
2741
2742
|
case "year":
|
|
2742
|
-
return (0, $
|
|
2743
|
+
return (0, $861601f61ea664fa$re_export$Duration).fromObject({
|
|
2743
2744
|
years: amount
|
|
2744
2745
|
});
|
|
2745
2746
|
}
|
|
@@ -2887,6 +2888,7 @@ function $946bd2ae5d426d5a$export$d80dad7287a3f49(...params) {
|
|
|
2887
2888
|
|
|
2888
2889
|
|
|
2889
2890
|
|
|
2891
|
+
|
|
2890
2892
|
class $47133f938ce44539$export$60b023dc4cb7008e {
|
|
2891
2893
|
constructor(value, precision){
|
|
2892
2894
|
this.value = value;
|
|
@@ -3058,5 +3060,5 @@ const $2bc946b609f83430$export$472902705794cfbb = new $2bc946b609f83430$var$Libr
|
|
|
3058
3060
|
|
|
3059
3061
|
|
|
3060
3062
|
|
|
3061
|
-
export {$946bd2ae5d426d5a$export$d80dad7287a3f49 as BreakdownRule, $3742b95f8d2fe1ca$export$7ed5ca4f8b987938 as DayOfWeek, $a27da276f4185ebf$export$18a249acfd29a1c5 as invariantDecimalSeparator, $a27da276f4185ebf$export$c146a453a9d3226d as localeDecimalSeparator, $a27da276f4185ebf$export$cc77c4ff7e8673c5 as NumberFormatter, $47133f938ce44539$export$60b023dc4cb7008e as PrecisionNumber, $e341043498f0791b$export$8cc0a4f27499ddb4 as RegisterConvention, $2bc946b609f83430$export$472902705794cfbb as RegisterLibrary, $f5b26f75dc394ede$export$b340a19a1bcc0afd as Repository, $3742b95f8d2fe1ca$export$fd55ce593607084a as Step, $a9d41af0df0fca9e$export$35b5ee117d2b7df0 as TimeOrRule};
|
|
3063
|
+
export {$946bd2ae5d426d5a$export$d80dad7287a3f49 as BreakdownRule, $3742b95f8d2fe1ca$export$7ed5ca4f8b987938 as DayOfWeek, $a27da276f4185ebf$export$18a249acfd29a1c5 as invariantDecimalSeparator, $a27da276f4185ebf$export$c146a453a9d3226d as localeDecimalSeparator, $a27da276f4185ebf$export$cc77c4ff7e8673c5 as NumberFormatter, $47133f938ce44539$export$60b023dc4cb7008e as PrecisionNumber, $e341043498f0791b$export$8cc0a4f27499ddb4 as RegisterConvention, $2bc946b609f83430$export$472902705794cfbb as RegisterLibrary, $f5b26f75dc394ede$export$b340a19a1bcc0afd as Repository, $3742b95f8d2fe1ca$export$fd55ce593607084a as Step, $a9d41af0df0fca9e$export$35b5ee117d2b7df0 as TimeOrRule, $861601f61ea664fa$re_export$Duration as __Duration};
|
|
3062
3064
|
//# sourceMappingURL=index.mjs.map
|