@utiliread/primitives 1.0.0-117 → 1.0.0-118
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 +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/parcel-workaround.d.ts +1 -0
- package/dist/types/step.d.ts +1 -0
- package/package.json +2 -2
- package/src/index.ts +5 -0
- package/src/step.ts +2 -0
- package/tsconfig.json +1 -0
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Duration as $
|
|
1
|
+
import {Duration as $149c1bd638913645$re_export$__Duration, DateTime as $hgUW1$DateTime} from "luxon";
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
function $parcel$exportWildcard(dest, source) {
|
|
@@ -2723,23 +2723,23 @@ var $3742b95f8d2fe1ca$export$fd55ce593607084a;
|
|
|
2723
2723
|
function asDuration(step, amount = 1) {
|
|
2724
2724
|
switch(step){
|
|
2725
2725
|
case "hour":
|
|
2726
|
-
return (0, $
|
|
2726
|
+
return (0, $149c1bd638913645$re_export$__Duration).fromObject({
|
|
2727
2727
|
hours: amount
|
|
2728
2728
|
});
|
|
2729
2729
|
case "day":
|
|
2730
|
-
return (0, $
|
|
2730
|
+
return (0, $149c1bd638913645$re_export$__Duration).fromObject({
|
|
2731
2731
|
days: amount
|
|
2732
2732
|
});
|
|
2733
2733
|
case "week":
|
|
2734
|
-
return (0, $
|
|
2734
|
+
return (0, $149c1bd638913645$re_export$__Duration).fromObject({
|
|
2735
2735
|
days: 7 * amount
|
|
2736
2736
|
});
|
|
2737
2737
|
case "month":
|
|
2738
|
-
return (0, $
|
|
2738
|
+
return (0, $149c1bd638913645$re_export$__Duration).fromObject({
|
|
2739
2739
|
months: amount
|
|
2740
2740
|
});
|
|
2741
2741
|
case "year":
|
|
2742
|
-
return (0, $
|
|
2742
|
+
return (0, $149c1bd638913645$re_export$__Duration).fromObject({
|
|
2743
2743
|
years: amount
|
|
2744
2744
|
});
|
|
2745
2745
|
}
|
|
@@ -2887,6 +2887,7 @@ function $946bd2ae5d426d5a$export$d80dad7287a3f49(...params) {
|
|
|
2887
2887
|
|
|
2888
2888
|
|
|
2889
2889
|
|
|
2890
|
+
|
|
2890
2891
|
class $47133f938ce44539$export$60b023dc4cb7008e {
|
|
2891
2892
|
constructor(value, precision){
|
|
2892
2893
|
this.value = value;
|
|
@@ -3058,5 +3059,5 @@ const $2bc946b609f83430$export$472902705794cfbb = new $2bc946b609f83430$var$Libr
|
|
|
3058
3059
|
|
|
3059
3060
|
|
|
3060
3061
|
|
|
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};
|
|
3062
|
+
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, $149c1bd638913645$re_export$__Duration as __Duration};
|
|
3062
3063
|
//# sourceMappingURL=index.mjs.map
|