rrule-temporal 1.1.12 → 1.2.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.
- package/README.md +83 -10
- package/dist/{chunk-AVHF452E.js → chunk-PDW5N23H.js} +562 -19
- package/dist/index.cjs +562 -19
- package/dist/index.d.cts +31 -2
- package/dist/index.d.ts +31 -2
- package/dist/index.js +1 -1
- package/dist/totext.cjs +567 -19
- package/dist/totext.js +6 -1
- package/package.json +1 -1
package/dist/totext.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RRuleTemporal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PDW5N23H.js";
|
|
4
4
|
|
|
5
5
|
// src/totext.ts
|
|
6
6
|
var en = {
|
|
@@ -584,6 +584,11 @@ function toText(input, locale) {
|
|
|
584
584
|
if (exDate && exDate.length) {
|
|
585
585
|
parts.push(data.words.excluding, `${exDate.length}`, exDate.length === 1 ? data.words.date : data.words.dates);
|
|
586
586
|
}
|
|
587
|
+
if (opts.rscale) {
|
|
588
|
+
const rscale = opts.rscale;
|
|
589
|
+
const skip = opts.skip;
|
|
590
|
+
parts.push(`(RSCALE=${rscale}${skip ? `;SKIP=${skip}` : ""})`);
|
|
591
|
+
}
|
|
587
592
|
return parts.join(" ");
|
|
588
593
|
}
|
|
589
594
|
export {
|