chronos-date 1.2.0 → 1.3.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 +104 -5
- package/dist/{convert-mMaI4YP0.mjs → convert-BY-uEIvg.mjs} +3 -3
- package/dist/{convert-DbgntRVW.cjs → convert-z8FAUOuh.cjs} +3 -3
- package/dist/{greet-D07t2_e6.mjs → greet-D89spydp.mjs} +1 -1
- package/dist/{greet-hjVsd2dt.cjs → greet-ok0_Wai_.cjs} +1 -1
- package/dist/guards.cjs +3 -3
- package/dist/guards.d.cts +1 -1
- package/dist/guards.d.mts +1 -1
- package/dist/guards.mjs +3 -3
- package/dist/{helpers-CQzi908i.cjs → helpers-D8yAKOsC.cjs} +3 -3
- package/dist/{helpers-DEf4sevD.mjs → helpers-eVQCueAC.mjs} +3 -3
- package/dist/index.cjs +22 -22
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +22 -22
- package/dist/{non-primitives-DBtomDty.mjs → non-primitives-B38XfU4A.mjs} +1 -1
- package/dist/{non-primitives-D9zxCwX8.cjs → non-primitives-Dj558axv.cjs} +1 -1
- package/dist/plugins/banglaPlugin.cjs +4 -4
- package/dist/plugins/banglaPlugin.d.cts +2 -2
- package/dist/plugins/banglaPlugin.d.mts +2 -2
- package/dist/plugins/banglaPlugin.mjs +4 -4
- package/dist/plugins/businessPlugin.cjs +2 -2
- package/dist/plugins/businessPlugin.d.cts +10 -10
- package/dist/plugins/businessPlugin.d.mts +10 -10
- package/dist/plugins/businessPlugin.mjs +2 -2
- package/dist/plugins/dateRangePlugin.cjs +2 -2
- package/dist/plugins/dateRangePlugin.d.cts +2 -2
- package/dist/plugins/dateRangePlugin.d.mts +2 -2
- package/dist/plugins/dateRangePlugin.mjs +2 -2
- package/dist/plugins/dayPartPlugin.cjs +1 -1
- package/dist/plugins/dayPartPlugin.d.cts +2 -2
- package/dist/plugins/dayPartPlugin.d.mts +2 -2
- package/dist/plugins/dayPartPlugin.mjs +1 -1
- package/dist/plugins/durationPlugin.d.cts +2 -2
- package/dist/plugins/durationPlugin.d.mts +2 -2
- package/dist/plugins/fromNowPlugin.cjs +1 -1
- package/dist/plugins/fromNowPlugin.d.cts +2 -2
- package/dist/plugins/fromNowPlugin.d.mts +2 -2
- package/dist/plugins/fromNowPlugin.mjs +1 -1
- package/dist/plugins/greetingPlugin.cjs +1 -1
- package/dist/plugins/greetingPlugin.d.cts +2 -2
- package/dist/plugins/greetingPlugin.d.mts +2 -2
- package/dist/plugins/greetingPlugin.mjs +1 -1
- package/dist/plugins/palindromePlugin.cjs +2 -2
- package/dist/plugins/palindromePlugin.d.cts +2 -2
- package/dist/plugins/palindromePlugin.d.mts +2 -2
- package/dist/plugins/palindromePlugin.mjs +2 -2
- package/dist/plugins/relativeTimePlugin.d.cts +2 -2
- package/dist/plugins/relativeTimePlugin.d.mts +2 -2
- package/dist/plugins/roundPlugin.cjs +1 -1
- package/dist/plugins/roundPlugin.d.cts +3 -3
- package/dist/plugins/roundPlugin.d.mts +3 -3
- package/dist/plugins/roundPlugin.mjs +1 -1
- package/dist/plugins/seasonPlugin.d.cts +2 -2
- package/dist/plugins/seasonPlugin.d.mts +2 -2
- package/dist/plugins/timeZonePlugin.cjs +6 -6
- package/dist/plugins/timeZonePlugin.d.cts +6 -6
- package/dist/plugins/timeZonePlugin.d.mts +6 -6
- package/dist/plugins/timeZonePlugin.mjs +6 -6
- package/dist/plugins/zodiacPlugin.cjs +1 -1
- package/dist/plugins/zodiacPlugin.d.cts +2 -2
- package/dist/plugins/zodiacPlugin.d.mts +2 -2
- package/dist/plugins/zodiacPlugin.mjs +1 -1
- package/dist/{primitives-dXzXlzJw.mjs → primitives-DpMa2dS2.mjs} +1 -1
- package/dist/{primitives-CtuSNmV7.cjs → primitives-DutXlR0D.cjs} +1 -1
- package/dist/{types-CaVuY1_4.d.cts → types-DgRC-2cA.d.cts} +63 -48
- package/dist/{types-Bs_rfkka.d.mts → types-Nd89nk1B.d.mts} +63 -48
- package/dist/types.d.cts +2 -2
- package/dist/types.d.mts +2 -2
- package/dist/{utilities-BKtVo78T.mjs → utilities-BfGFB7aw.mjs} +4 -4
- package/dist/{utilities-D47SN9EZ.cjs → utilities-CZTvwfjY.cjs} +4 -4
- package/dist/{utilities-BGX8dviZ.mjs → utilities-C_cYlUNI.mjs} +4 -4
- package/dist/{utilities-CpF3uys3.cjs → utilities-CkQA3Fkh.cjs} +4 -4
- package/dist/utils.cjs +4 -4
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/utils.mjs +4 -4
- package/package.json +4 -4
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { D as ChronosInput, Dn as RangeTuple, Tn as NumberRange, Tt as Quarter, a as BusinessOptionsWeekends, i as BusinessOptionsBasic, o as ChronosPlugin, r as AcademicYear, wn as Enumerate } from "../types-DgRC-2cA.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/businessPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -116,7 +116,7 @@ declare module 'chronos-date' {
|
|
|
116
116
|
* // Custom 3-day weekend (Fri, Sat, Sun)
|
|
117
117
|
* new Chronos().nextWorkday(1, 3);
|
|
118
118
|
*/
|
|
119
|
-
nextWorkday(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>):
|
|
119
|
+
nextWorkday(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>): this;
|
|
120
120
|
/**
|
|
121
121
|
* @instance Returns the next business day (workday) after the current date using custom weekend day indices.
|
|
122
122
|
*
|
|
@@ -135,7 +135,7 @@ declare module 'chronos-date' {
|
|
|
135
135
|
* // Custom weekend days (Friday, Saturday, Sunday)
|
|
136
136
|
* new Chronos().nextWorkday([5, 6, 0]);
|
|
137
137
|
*/
|
|
138
|
-
nextWorkday(weekendDays: RangeTuple<Enumerate<7>, 1, 4>):
|
|
138
|
+
nextWorkday(weekendDays: RangeTuple<Enumerate<7>, 1, 4>): this;
|
|
139
139
|
/**
|
|
140
140
|
* @instance Returns the next weekend day after the current date using week start day and weekend length.
|
|
141
141
|
*
|
|
@@ -161,7 +161,7 @@ declare module 'chronos-date' {
|
|
|
161
161
|
* // Custom 3-day weekend (Fri, Sat, Sun)
|
|
162
162
|
* new Chronos().nextWeekend(1, 3);
|
|
163
163
|
*/
|
|
164
|
-
nextWeekend(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>):
|
|
164
|
+
nextWeekend(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>): this;
|
|
165
165
|
/**
|
|
166
166
|
* @instance Returns the next weekend day after the current date using custom weekend day indices.
|
|
167
167
|
*
|
|
@@ -180,7 +180,7 @@ declare module 'chronos-date' {
|
|
|
180
180
|
* // Custom weekend days (Sunday, Friday, Saturday)
|
|
181
181
|
* new Chronos().nextWeekend([0, 5, 6]);
|
|
182
182
|
*/
|
|
183
|
-
nextWeekend(weekendDays: RangeTuple<Enumerate<7>, 1, 4>):
|
|
183
|
+
nextWeekend(weekendDays: RangeTuple<Enumerate<7>, 1, 4>): this;
|
|
184
184
|
/**
|
|
185
185
|
* @instance Returns the previous workday before the current date using week start day and weekend length.
|
|
186
186
|
*
|
|
@@ -206,7 +206,7 @@ declare module 'chronos-date' {
|
|
|
206
206
|
* // Custom 3-day weekend (Fri, Sat, Sun)
|
|
207
207
|
* new Chronos().previousWorkday(1, 3);
|
|
208
208
|
*/
|
|
209
|
-
previousWorkday(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>):
|
|
209
|
+
previousWorkday(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>): this;
|
|
210
210
|
/**
|
|
211
211
|
* @instance Returns the previous workday before the current date using custom weekend day indices.
|
|
212
212
|
*
|
|
@@ -225,7 +225,7 @@ declare module 'chronos-date' {
|
|
|
225
225
|
* // Custom weekend days (Friday, Saturday, Sunday)
|
|
226
226
|
* new Chronos().previousWorkday([5, 6, 0]);
|
|
227
227
|
*/
|
|
228
|
-
previousWorkday(weekendDays: RangeTuple<Enumerate<7>, 1, 4>):
|
|
228
|
+
previousWorkday(weekendDays: RangeTuple<Enumerate<7>, 1, 4>): this;
|
|
229
229
|
/**
|
|
230
230
|
* @instance Returns the previous weekend day before the current date using week start day and weekend length.
|
|
231
231
|
*
|
|
@@ -251,7 +251,7 @@ declare module 'chronos-date' {
|
|
|
251
251
|
* // Custom 3-day weekend (Fri, Sat, Sun)
|
|
252
252
|
* new Chronos().previousWeekend(1, 3);
|
|
253
253
|
*/
|
|
254
|
-
previousWeekend(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>):
|
|
254
|
+
previousWeekend(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>): this;
|
|
255
255
|
/**
|
|
256
256
|
* @instance Returns the previous weekend day before the current date using custom weekend day indices.
|
|
257
257
|
*
|
|
@@ -270,7 +270,7 @@ declare module 'chronos-date' {
|
|
|
270
270
|
* // Custom weekend days (Sunday, Friday, Saturday)
|
|
271
271
|
* new Chronos().previousWeekend([0, 5, 6]);
|
|
272
272
|
*/
|
|
273
|
-
previousWeekend(weekendDays: RangeTuple<Enumerate<7>, 1, 4>):
|
|
273
|
+
previousWeekend(weekendDays: RangeTuple<Enumerate<7>, 1, 4>): this;
|
|
274
274
|
/**
|
|
275
275
|
* @instance Calculates the number of workdays between the current date and another using week start day and weekend length.
|
|
276
276
|
*
|
|
@@ -457,6 +457,6 @@ declare module 'chronos-date' {
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
/** * Plugin to inject `business` related methods */
|
|
460
|
-
declare const businessPlugin:
|
|
460
|
+
declare const businessPlugin: ChronosPlugin;
|
|
461
461
|
//#endregion
|
|
462
462
|
export { businessPlugin };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { D as ChronosInput, Dn as RangeTuple, Tn as NumberRange, Tt as Quarter, a as BusinessOptionsWeekends, i as BusinessOptionsBasic, o as ChronosPlugin, r as AcademicYear, wn as Enumerate } from "../types-Nd89nk1B.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/businessPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -116,7 +116,7 @@ declare module 'chronos-date' {
|
|
|
116
116
|
* // Custom 3-day weekend (Fri, Sat, Sun)
|
|
117
117
|
* new Chronos().nextWorkday(1, 3);
|
|
118
118
|
*/
|
|
119
|
-
nextWorkday(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>):
|
|
119
|
+
nextWorkday(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>): this;
|
|
120
120
|
/**
|
|
121
121
|
* @instance Returns the next business day (workday) after the current date using custom weekend day indices.
|
|
122
122
|
*
|
|
@@ -135,7 +135,7 @@ declare module 'chronos-date' {
|
|
|
135
135
|
* // Custom weekend days (Friday, Saturday, Sunday)
|
|
136
136
|
* new Chronos().nextWorkday([5, 6, 0]);
|
|
137
137
|
*/
|
|
138
|
-
nextWorkday(weekendDays: RangeTuple<Enumerate<7>, 1, 4>):
|
|
138
|
+
nextWorkday(weekendDays: RangeTuple<Enumerate<7>, 1, 4>): this;
|
|
139
139
|
/**
|
|
140
140
|
* @instance Returns the next weekend day after the current date using week start day and weekend length.
|
|
141
141
|
*
|
|
@@ -161,7 +161,7 @@ declare module 'chronos-date' {
|
|
|
161
161
|
* // Custom 3-day weekend (Fri, Sat, Sun)
|
|
162
162
|
* new Chronos().nextWeekend(1, 3);
|
|
163
163
|
*/
|
|
164
|
-
nextWeekend(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>):
|
|
164
|
+
nextWeekend(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>): this;
|
|
165
165
|
/**
|
|
166
166
|
* @instance Returns the next weekend day after the current date using custom weekend day indices.
|
|
167
167
|
*
|
|
@@ -180,7 +180,7 @@ declare module 'chronos-date' {
|
|
|
180
180
|
* // Custom weekend days (Sunday, Friday, Saturday)
|
|
181
181
|
* new Chronos().nextWeekend([0, 5, 6]);
|
|
182
182
|
*/
|
|
183
|
-
nextWeekend(weekendDays: RangeTuple<Enumerate<7>, 1, 4>):
|
|
183
|
+
nextWeekend(weekendDays: RangeTuple<Enumerate<7>, 1, 4>): this;
|
|
184
184
|
/**
|
|
185
185
|
* @instance Returns the previous workday before the current date using week start day and weekend length.
|
|
186
186
|
*
|
|
@@ -206,7 +206,7 @@ declare module 'chronos-date' {
|
|
|
206
206
|
* // Custom 3-day weekend (Fri, Sat, Sun)
|
|
207
207
|
* new Chronos().previousWorkday(1, 3);
|
|
208
208
|
*/
|
|
209
|
-
previousWorkday(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>):
|
|
209
|
+
previousWorkday(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>): this;
|
|
210
210
|
/**
|
|
211
211
|
* @instance Returns the previous workday before the current date using custom weekend day indices.
|
|
212
212
|
*
|
|
@@ -225,7 +225,7 @@ declare module 'chronos-date' {
|
|
|
225
225
|
* // Custom weekend days (Friday, Saturday, Sunday)
|
|
226
226
|
* new Chronos().previousWorkday([5, 6, 0]);
|
|
227
227
|
*/
|
|
228
|
-
previousWorkday(weekendDays: RangeTuple<Enumerate<7>, 1, 4>):
|
|
228
|
+
previousWorkday(weekendDays: RangeTuple<Enumerate<7>, 1, 4>): this;
|
|
229
229
|
/**
|
|
230
230
|
* @instance Returns the previous weekend day before the current date using week start day and weekend length.
|
|
231
231
|
*
|
|
@@ -251,7 +251,7 @@ declare module 'chronos-date' {
|
|
|
251
251
|
* // Custom 3-day weekend (Fri, Sat, Sun)
|
|
252
252
|
* new Chronos().previousWeekend(1, 3);
|
|
253
253
|
*/
|
|
254
|
-
previousWeekend(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>):
|
|
254
|
+
previousWeekend(weekStartsOn?: Enumerate<7>, weekendLength?: NumberRange<1, 4>): this;
|
|
255
255
|
/**
|
|
256
256
|
* @instance Returns the previous weekend day before the current date using custom weekend day indices.
|
|
257
257
|
*
|
|
@@ -270,7 +270,7 @@ declare module 'chronos-date' {
|
|
|
270
270
|
* // Custom weekend days (Sunday, Friday, Saturday)
|
|
271
271
|
* new Chronos().previousWeekend([0, 5, 6]);
|
|
272
272
|
*/
|
|
273
|
-
previousWeekend(weekendDays: RangeTuple<Enumerate<7>, 1, 4>):
|
|
273
|
+
previousWeekend(weekendDays: RangeTuple<Enumerate<7>, 1, 4>): this;
|
|
274
274
|
/**
|
|
275
275
|
* @instance Calculates the number of workdays between the current date and another using week start day and weekend length.
|
|
276
276
|
*
|
|
@@ -457,6 +457,6 @@ declare module 'chronos-date' {
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
/** * Plugin to inject `business` related methods */
|
|
460
|
-
declare const businessPlugin:
|
|
460
|
+
declare const businessPlugin: ChronosPlugin;
|
|
461
461
|
//#endregion
|
|
462
462
|
export { businessPlugin };
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { s as INTERNALS } from "../basic-DqKyujoj.mjs";
|
|
18
|
-
import { a as isUndefined } from "../primitives-
|
|
19
|
-
import { a as isValidArray } from "../non-primitives-
|
|
18
|
+
import { a as isUndefined } from "../primitives-DpMa2dS2.mjs";
|
|
19
|
+
import { a as isValidArray } from "../non-primitives-B38XfU4A.mjs";
|
|
20
20
|
|
|
21
21
|
//#region src/plugins/businessPlugin.ts
|
|
22
22
|
/** * Plugin to inject `business` related methods */
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
18
|
const require_basic = require('../basic-DsQqC5nZ.cjs');
|
|
19
|
-
const require_primitives = require('../primitives-
|
|
20
|
-
const require_non_primitives = require('../non-primitives-
|
|
19
|
+
const require_primitives = require('../primitives-DutXlR0D.cjs');
|
|
20
|
+
const require_non_primitives = require('../non-primitives-Dj558axv.cjs');
|
|
21
21
|
|
|
22
22
|
//#region src/plugins/dateRangePlugin.ts
|
|
23
23
|
/** * Plugin to inject `getDatesInRange` related method */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { L as RangeWithDates, R as RelativeDateRange, ht as ISODateTimeString, o as ChronosPlugin } from "../types-DgRC-2cA.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/dateRangePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -82,6 +82,6 @@ declare module 'chronos-date' {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
/** * Plugin to inject `getDatesInRange` related method */
|
|
85
|
-
declare const dateRangePlugin:
|
|
85
|
+
declare const dateRangePlugin: ChronosPlugin;
|
|
86
86
|
//#endregion
|
|
87
87
|
export { dateRangePlugin };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { L as RangeWithDates, R as RelativeDateRange, ht as ISODateTimeString, o as ChronosPlugin } from "../types-Nd89nk1B.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/dateRangePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -82,6 +82,6 @@ declare module 'chronos-date' {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
/** * Plugin to inject `getDatesInRange` related method */
|
|
85
|
-
declare const dateRangePlugin:
|
|
85
|
+
declare const dateRangePlugin: ChronosPlugin;
|
|
86
86
|
//#endregion
|
|
87
87
|
export { dateRangePlugin };
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { o as DAYS, s as INTERNALS, u as MS_PER_DAY } from "../basic-DqKyujoj.mjs";
|
|
18
|
-
import { r as isNumber } from "../primitives-
|
|
19
|
-
import { a as isValidArray } from "../non-primitives-
|
|
18
|
+
import { r as isNumber } from "../primitives-DpMa2dS2.mjs";
|
|
19
|
+
import { a as isValidArray } from "../non-primitives-B38XfU4A.mjs";
|
|
20
20
|
|
|
21
21
|
//#region src/plugins/dateRangePlugin.ts
|
|
22
22
|
/** * Plugin to inject `getDatesInRange` related method */
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
18
|
const require_basic = require('../basic-DsQqC5nZ.cjs');
|
|
19
|
-
const require_non_primitives = require('../non-primitives-
|
|
19
|
+
const require_non_primitives = require('../non-primitives-Dj558axv.cjs');
|
|
20
20
|
|
|
21
21
|
//#region src/plugins/dayPartPlugin.ts
|
|
22
22
|
/** * Plugin to inject `getPartOfDay` method */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { c as DayPart, l as DayPartConfig, o as ChronosPlugin } from "../types-DgRC-2cA.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/dayPartPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -56,6 +56,6 @@ declare module 'chronos-date' {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
/** * Plugin to inject `getPartOfDay` method */
|
|
59
|
-
declare const dayPartPlugin:
|
|
59
|
+
declare const dayPartPlugin: ChronosPlugin;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { dayPartPlugin };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { c as DayPart, l as DayPartConfig, o as ChronosPlugin } from "../types-Nd89nk1B.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/dayPartPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -56,6 +56,6 @@ declare module 'chronos-date' {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
/** * Plugin to inject `getPartOfDay` method */
|
|
59
|
-
declare const dayPartPlugin:
|
|
59
|
+
declare const dayPartPlugin: ChronosPlugin;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { dayPartPlugin };
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { a as DATE_PART_RANGES } from "../basic-DqKyujoj.mjs";
|
|
18
|
-
import { n as isNotEmptyObject } from "../non-primitives-
|
|
18
|
+
import { n as isNotEmptyObject } from "../non-primitives-B38XfU4A.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/plugins/dayPartPlugin.ts
|
|
21
21
|
/** * Plugin to inject `getPartOfDay` method */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { D as ChronosInput, d as DurationOptions, g as TimeDuration, o as ChronosPlugin } from "../types-DgRC-2cA.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/durationPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -41,6 +41,6 @@ declare module 'chronos-date' {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
/** * Plugin to inject `duration` related methods */
|
|
44
|
-
declare const durationPlugin:
|
|
44
|
+
declare const durationPlugin: ChronosPlugin;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { durationPlugin };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { D as ChronosInput, d as DurationOptions, g as TimeDuration, o as ChronosPlugin } from "../types-Nd89nk1B.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/durationPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -41,6 +41,6 @@ declare module 'chronos-date' {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
/** * Plugin to inject `duration` related methods */
|
|
44
|
-
declare const durationPlugin:
|
|
44
|
+
declare const durationPlugin: ChronosPlugin;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { durationPlugin };
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
18
|
const require_basic = require('../basic-DsQqC5nZ.cjs');
|
|
19
|
-
const require_convert = require('../convert-
|
|
19
|
+
const require_convert = require('../convert-z8FAUOuh.cjs');
|
|
20
20
|
|
|
21
21
|
//#region src/plugins/fromNowPlugin.ts
|
|
22
22
|
/** * Plugin to inject `fromNow` method */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { D as ChronosInput, dt as FromNowUnit, o as ChronosPlugin } from "../types-DgRC-2cA.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/fromNowPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -35,6 +35,6 @@ declare module 'chronos-date' {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
/** * Plugin to inject `fromNow` method */
|
|
38
|
-
declare const fromNowPlugin:
|
|
38
|
+
declare const fromNowPlugin: ChronosPlugin;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { fromNowPlugin };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { D as ChronosInput, dt as FromNowUnit, o as ChronosPlugin } from "../types-Nd89nk1B.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/fromNowPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -35,6 +35,6 @@ declare module 'chronos-date' {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
/** * Plugin to inject `fromNow` method */
|
|
38
|
-
declare const fromNowPlugin:
|
|
38
|
+
declare const fromNowPlugin: ChronosPlugin;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { fromNowPlugin };
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { s as INTERNALS } from "../basic-DqKyujoj.mjs";
|
|
18
|
-
import { t as formatUnitWithPlural } from "../convert-
|
|
18
|
+
import { t as formatUnitWithPlural } from "../convert-BY-uEIvg.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/plugins/fromNowPlugin.ts
|
|
21
21
|
/** * Plugin to inject `fromNow` method */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
|
-
const require_greet = require('../greet-
|
|
18
|
+
const require_greet = require('../greet-ok0_Wai_.cjs');
|
|
19
19
|
|
|
20
20
|
//#region src/plugins/greetingPlugin.ts
|
|
21
21
|
/** * Plugin to inject `getGreeting`/`greet` method */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { ft as GreetingConfigs, o as ChronosPlugin } from "../types-DgRC-2cA.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/greetingPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -40,6 +40,6 @@ declare module 'chronos-date' {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
/** * Plugin to inject `getGreeting`/`greet` method */
|
|
43
|
-
declare const greetingPlugin:
|
|
43
|
+
declare const greetingPlugin: ChronosPlugin;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { greetingPlugin };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { ft as GreetingConfigs, o as ChronosPlugin } from "../types-Nd89nk1B.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/greetingPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -40,6 +40,6 @@ declare module 'chronos-date' {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
/** * Plugin to inject `getGreeting`/`greet` method */
|
|
43
|
-
declare const greetingPlugin:
|
|
43
|
+
declare const greetingPlugin: ChronosPlugin;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { greetingPlugin };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { t as getGreeting } from "../greet-
|
|
17
|
+
import { t as getGreeting } from "../greet-D89spydp.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/greetingPlugin.ts
|
|
20
20
|
/** * Plugin to inject `getGreeting`/`greet` method */
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
|
-
const require_convert = require('../convert-
|
|
18
|
+
const require_convert = require('../convert-z8FAUOuh.cjs');
|
|
19
19
|
|
|
20
|
-
//#region node_modules/.pnpm/nhb-toolbox@4.30.
|
|
20
|
+
//#region node_modules/.pnpm/nhb-toolbox@4.30.10/node_modules/nhb-toolbox/dist/esm/string/guards.js
|
|
21
21
|
const isPalindrome = (input) => {
|
|
22
22
|
const normalized = input.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
23
23
|
return normalized === require_convert.reverseString(normalized);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { o as ChronosPlugin } from "../types-DgRC-2cA.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/palindromePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -49,6 +49,6 @@ declare module 'chronos-date' {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
/** * Plugin to inject `isPalindromeDate` method */
|
|
52
|
-
declare const palindromePlugin:
|
|
52
|
+
declare const palindromePlugin: ChronosPlugin;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { palindromePlugin };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { o as ChronosPlugin } from "../types-Nd89nk1B.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/palindromePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -49,6 +49,6 @@ declare module 'chronos-date' {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
/** * Plugin to inject `isPalindromeDate` method */
|
|
52
|
-
declare const palindromePlugin:
|
|
52
|
+
declare const palindromePlugin: ChronosPlugin;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { palindromePlugin };
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { n as reverseString } from "../convert-
|
|
17
|
+
import { n as reverseString } from "../convert-BY-uEIvg.mjs";
|
|
18
18
|
|
|
19
|
-
//#region node_modules/.pnpm/nhb-toolbox@4.30.
|
|
19
|
+
//#region node_modules/.pnpm/nhb-toolbox@4.30.10/node_modules/nhb-toolbox/dist/esm/string/guards.js
|
|
20
20
|
const isPalindrome = (input) => {
|
|
21
21
|
const normalized = input.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
22
22
|
return normalized === reverseString(normalized);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { D as ChronosInput, Et as TimeUnit, o as ChronosPlugin } from "../types-DgRC-2cA.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/relativeTimePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -93,6 +93,6 @@ declare module 'chronos-date' {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
/** * Plugin to inject `relative time` related methods */
|
|
96
|
-
declare const relativeTimePlugin:
|
|
96
|
+
declare const relativeTimePlugin: ChronosPlugin;
|
|
97
97
|
//#endregion
|
|
98
98
|
export { relativeTimePlugin };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { D as ChronosInput, Et as TimeUnit, o as ChronosPlugin } from "../types-Nd89nk1B.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/relativeTimePlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -93,6 +93,6 @@ declare module 'chronos-date' {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
/** * Plugin to inject `relative time` related methods */
|
|
96
|
-
declare const relativeTimePlugin:
|
|
96
|
+
declare const relativeTimePlugin: ChronosPlugin;
|
|
97
97
|
//#endregion
|
|
98
98
|
export { relativeTimePlugin };
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
18
18
|
const require_basic = require('../basic-DsQqC5nZ.cjs');
|
|
19
|
-
const require_utilities = require('../utilities-
|
|
19
|
+
const require_utilities = require('../utilities-CkQA3Fkh.cjs');
|
|
20
20
|
|
|
21
21
|
//#region src/plugins/roundPlugin.ts
|
|
22
22
|
/** * Plugin to inject `round` method */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { Et as TimeUnit, o as ChronosPlugin } from "../types-DgRC-2cA.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/roundPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -36,10 +36,10 @@ declare module 'chronos-date' {
|
|
|
36
36
|
* - For `'week'` unit, rounding is performed by comparing proximity to the start and end of the ISO week (Monday to Sunday).
|
|
37
37
|
* - If the date is closer to the next Monday, it rounds forward; otherwise, it rounds back to the previous Monday.
|
|
38
38
|
*/
|
|
39
|
-
round(unit: TimeUnit, nearest?: number):
|
|
39
|
+
round(unit: TimeUnit, nearest?: number): this;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
/** * Plugin to inject `round` method */
|
|
43
|
-
declare const roundPlugin:
|
|
43
|
+
declare const roundPlugin: ChronosPlugin;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { roundPlugin };
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { Et as TimeUnit, o as ChronosPlugin } from "../types-Nd89nk1B.mjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/roundPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -36,10 +36,10 @@ declare module 'chronos-date' {
|
|
|
36
36
|
* - For `'week'` unit, rounding is performed by comparing proximity to the start and end of the ISO week (Monday to Sunday).
|
|
37
37
|
* - If the date is closer to the next Monday, it rounds forward; otherwise, it rounds back to the previous Monday.
|
|
38
38
|
*/
|
|
39
|
-
round(unit: TimeUnit, nearest?: number):
|
|
39
|
+
round(unit: TimeUnit, nearest?: number): this;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
/** * Plugin to inject `round` method */
|
|
43
|
-
declare const roundPlugin:
|
|
43
|
+
declare const roundPlugin: ChronosPlugin;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { roundPlugin };
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { s as INTERNALS, u as MS_PER_DAY } from "../basic-DqKyujoj.mjs";
|
|
18
|
-
import { r as roundToNearest } from "../utilities-
|
|
18
|
+
import { r as roundToNearest } from "../utilities-BfGFB7aw.mjs";
|
|
19
19
|
|
|
20
20
|
//#region src/plugins/roundPlugin.ts
|
|
21
21
|
/** * Plugin to inject `round` method */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
17
|
+
import { m as SeasonOptions, o as ChronosPlugin } from "../types-DgRC-2cA.cjs";
|
|
18
18
|
|
|
19
19
|
//#region src/plugins/seasonPlugin.d.ts
|
|
20
20
|
declare module 'chronos-date' {
|
|
@@ -37,6 +37,6 @@ declare module 'chronos-date' {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
/** * Plugin to inject `season`/`getSeasonName` method */
|
|
40
|
-
declare const seasonPlugin:
|
|
40
|
+
declare const seasonPlugin: ChronosPlugin;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { seasonPlugin };
|