scschedule 2.0.2 → 2.1.1
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 +494 -10
- package/dist/cleanupExpiredOverridesFromSchedule.d.ts +7 -0
- package/dist/cleanupExpiredOverridesFromSchedule.js +29 -0
- package/dist/constants.d.ts +69 -0
- package/dist/constants.js +71 -0
- package/dist/getAvailableRangesFromSchedule.d.ts +7 -0
- package/dist/getAvailableRangesFromSchedule.js +38 -0
- package/dist/getNextAvailableFromSchedule.d.ts +55 -0
- package/dist/getNextAvailableFromSchedule.js +92 -0
- package/dist/getNextUnavailableFromSchedule.d.ts +44 -0
- package/dist/getNextUnavailableFromSchedule.js +112 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +11 -2
- package/dist/internal/doOverridesOverlap.d.ts +5 -0
- package/dist/internal/doOverridesOverlap.js +14 -0
- package/dist/internal/doRulesOverlap.d.ts +15 -0
- package/dist/internal/doRulesOverlap.js +35 -0
- package/dist/internal/doTimeRangesOverlap.d.ts +16 -0
- package/dist/internal/doTimeRangesOverlap.js +49 -0
- package/dist/internal/getApplicableRuleForDate.d.ts +24 -0
- package/dist/internal/getApplicableRuleForDate.js +82 -0
- package/dist/internal/getEffectiveTimesForWeekday.d.ts +12 -0
- package/dist/internal/getEffectiveTimesForWeekday.js +42 -0
- package/dist/internal/index.d.ts +19 -0
- package/dist/internal/index.js +21 -0
- package/dist/internal/isTimeInTimeRange.d.ts +7 -0
- package/dist/internal/isTimeInTimeRange.js +19 -0
- package/dist/internal/isValidTimezone.d.ts +4 -0
- package/dist/internal/isValidTimezone.js +12 -0
- package/dist/internal/normalizeScheduleForValidation.d.ts +13 -0
- package/dist/internal/normalizeScheduleForValidation.js +36 -0
- package/dist/internal/splitCrossMidnightTimeRange.d.ts +5 -0
- package/dist/internal/splitCrossMidnightTimeRange.js +22 -0
- package/dist/internal/validateNoEmptyWeekdays.d.ts +7 -0
- package/dist/internal/validateNoEmptyWeekdays.js +50 -0
- package/dist/internal/validateNoOverlappingOverrides.d.ts +5 -0
- package/dist/internal/validateNoOverlappingOverrides.js +57 -0
- package/dist/internal/validateNoOverlappingRules.d.ts +13 -0
- package/dist/internal/validateNoOverlappingRules.js +56 -0
- package/dist/internal/validateNoOverlappingTimesInRule.d.ts +5 -0
- package/dist/internal/validateNoOverlappingTimesInRule.js +54 -0
- package/dist/internal/validateNoSpilloverConflictsAtOverrideBoundaries.d.ts +11 -0
- package/dist/internal/validateNoSpilloverConflictsAtOverrideBoundaries.js +149 -0
- package/dist/internal/validateNonEmptyTimes.d.ts +5 -0
- package/dist/internal/validateNonEmptyTimes.js +35 -0
- package/dist/internal/validateOverrideDateOrder.d.ts +6 -0
- package/dist/internal/validateOverrideDateOrder.js +27 -0
- package/dist/internal/validateOverrideWeekdaysMatchDates.d.ts +10 -0
- package/dist/internal/validateOverrideWeekdaysMatchDates.js +63 -0
- package/dist/internal/validateScDateFormats.d.ts +5 -0
- package/dist/internal/validateScDateFormats.js +109 -0
- package/dist/internal/validateTimezone.d.ts +5 -0
- package/dist/internal/validateTimezone.js +16 -0
- package/dist/isScheduleAvailable.d.ts +6 -0
- package/dist/isScheduleAvailable.js +37 -0
- package/dist/types.d.ts +268 -0
- package/dist/types.js +1 -0
- package/dist/validateSchedule.d.ts +15 -0
- package/dist/validateSchedule.js +57 -0
- package/package.json +7 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import type { SDate, STime, STimestamp, SWeekdays, Weekday } from 'scdate';
|
|
2
|
+
import { RuleLocationType, ValidationIssue } from './constants.js';
|
|
3
|
+
/**
|
|
4
|
+
* String in YYYY-MM-DD format representing a date.
|
|
5
|
+
*/
|
|
6
|
+
export type SDateString = string;
|
|
7
|
+
/**
|
|
8
|
+
* String in HH:MM format representing a time.
|
|
9
|
+
*/
|
|
10
|
+
export type STimeString = string;
|
|
11
|
+
/**
|
|
12
|
+
* String in YYYY-MM-DDTHH:MM format representing a timestamp.
|
|
13
|
+
*/
|
|
14
|
+
export type STimestampString = string;
|
|
15
|
+
/**
|
|
16
|
+
* String in SMTWTFS format representing weekdays.
|
|
17
|
+
*/
|
|
18
|
+
export type SWeekdaysString = string;
|
|
19
|
+
/**
|
|
20
|
+
* Represents a time range within a day. Time ranges can cross midnight. For
|
|
21
|
+
* example, a range from 20:00 to 02:00 represents 8:00 PM to 2:00 AM the next
|
|
22
|
+
* day.
|
|
23
|
+
*/
|
|
24
|
+
export interface TimeRange {
|
|
25
|
+
/** Start time of the range (inclusive) */
|
|
26
|
+
from: STime | STimeString;
|
|
27
|
+
/** End time of the range (inclusive) */
|
|
28
|
+
to: STime | STimeString;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Defines a recurring weekly availability pattern. Specifies which days of the
|
|
32
|
+
* week are available and what time ranges apply on those days.
|
|
33
|
+
*/
|
|
34
|
+
export interface WeeklyScheduleRule {
|
|
35
|
+
/** Days of the week this rule applies to */
|
|
36
|
+
weekdays: SWeekdays | SWeekdaysString;
|
|
37
|
+
/**
|
|
38
|
+
* Time ranges when available on the specified weekdays. Empty array means
|
|
39
|
+
* unavailable on these days.
|
|
40
|
+
*/
|
|
41
|
+
times: TimeRange[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Defines a date-specific override to the weekly schedule. Overrides apply to
|
|
45
|
+
* a date range and replace the weekly schedule for those dates. If `to` is
|
|
46
|
+
* omitted, the override applies indefinitely from the `from` date forward.
|
|
47
|
+
*/
|
|
48
|
+
export interface OverrideScheduleRule {
|
|
49
|
+
/** Start date of the override (inclusive) */
|
|
50
|
+
from: SDate | SDateString;
|
|
51
|
+
/**
|
|
52
|
+
* End date of the override (inclusive). If omitted, the override applies
|
|
53
|
+
* indefinitely from the `from` date.
|
|
54
|
+
*/
|
|
55
|
+
to?: SDate | SDateString;
|
|
56
|
+
/**
|
|
57
|
+
* Weekly schedule rules that apply during this override period. Empty array
|
|
58
|
+
* means unavailable for the entire period.
|
|
59
|
+
*/
|
|
60
|
+
rules: WeeklyScheduleRule[];
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Represents a complete availability schedule. A schedule consists of a
|
|
64
|
+
* timezone for all date/time operations, base weekly recurring patterns, and
|
|
65
|
+
* optional date-specific overrides. Priority order for determining
|
|
66
|
+
* availability: 1. Specific override (with both from and to dates) 2.
|
|
67
|
+
* Indefinite override (with only from date) 3. Weekly schedule
|
|
68
|
+
*/
|
|
69
|
+
export interface Schedule {
|
|
70
|
+
/**
|
|
71
|
+
* IANA timezone identifier (e.g., 'America/New_York', 'Europe/London'). Must
|
|
72
|
+
* be in `Intl.supportedValuesOf('timeZone')`.
|
|
73
|
+
*/
|
|
74
|
+
timezone: string;
|
|
75
|
+
/** Base recurring weekly schedule patterns */
|
|
76
|
+
weekly: WeeklyScheduleRule[];
|
|
77
|
+
/**
|
|
78
|
+
* Date-specific exceptions to the weekly schedule. Overrides take precedence
|
|
79
|
+
* over weekly rules.
|
|
80
|
+
*/
|
|
81
|
+
overrides?: OverrideScheduleRule[];
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Represents a continuous period of availability.
|
|
85
|
+
*/
|
|
86
|
+
export interface AvailabilityRange {
|
|
87
|
+
/** Start of the availability period (inclusive) */
|
|
88
|
+
from: STimestamp | STimestampString;
|
|
89
|
+
/** End of the availability period (inclusive) */
|
|
90
|
+
to: STimestamp | STimestampString;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Discriminated union of all possible validation errors. Each error type
|
|
94
|
+
* includes specific metadata about what failed validation. Use the `issue`
|
|
95
|
+
* property to narrow the type and access error-specific fields.
|
|
96
|
+
*/
|
|
97
|
+
export type ValidationError = {
|
|
98
|
+
/** The timezone string is not a valid IANA timezone identifier */
|
|
99
|
+
issue: ValidationIssue.InvalidTimezone;
|
|
100
|
+
/** The invalid timezone string that was provided */
|
|
101
|
+
timezone: string;
|
|
102
|
+
} | {
|
|
103
|
+
/** Two or more specific overrides have identical date ranges */
|
|
104
|
+
issue: ValidationIssue.DuplicateOverrides;
|
|
105
|
+
/** Indexes of the two duplicate overrides */
|
|
106
|
+
overrideIndexes: [number, number];
|
|
107
|
+
} | {
|
|
108
|
+
/** Two or more specific overrides have overlapping date ranges */
|
|
109
|
+
issue: ValidationIssue.OverlappingSpecificOverrides;
|
|
110
|
+
/** Indexes of the two overlapping overrides */
|
|
111
|
+
overrideIndexes: [number, number];
|
|
112
|
+
} | {
|
|
113
|
+
/** Time ranges within a single rule overlap with each other */
|
|
114
|
+
issue: ValidationIssue.OverlappingTimesInRule;
|
|
115
|
+
/** Location of the rule containing overlapping times */
|
|
116
|
+
location: {
|
|
117
|
+
type: RuleLocationType.Weekly;
|
|
118
|
+
ruleIndex: number;
|
|
119
|
+
} | {
|
|
120
|
+
type: RuleLocationType.Override;
|
|
121
|
+
overrideIndex: number;
|
|
122
|
+
ruleIndex: number;
|
|
123
|
+
};
|
|
124
|
+
/** Indexes of the two overlapping time ranges within the rule */
|
|
125
|
+
timeRangeIndexes: [number, number];
|
|
126
|
+
} | {
|
|
127
|
+
/**
|
|
128
|
+
* A rule has an empty times array
|
|
129
|
+
* (should have at least one time range or be removed)
|
|
130
|
+
*/
|
|
131
|
+
issue: ValidationIssue.EmptyTimes;
|
|
132
|
+
/** Location of the rule with empty times */
|
|
133
|
+
location: {
|
|
134
|
+
type: RuleLocationType.Weekly;
|
|
135
|
+
ruleIndex: number;
|
|
136
|
+
} | {
|
|
137
|
+
type: RuleLocationType.Override;
|
|
138
|
+
overrideIndex: number;
|
|
139
|
+
ruleIndex: number;
|
|
140
|
+
};
|
|
141
|
+
} | {
|
|
142
|
+
/**
|
|
143
|
+
* A field contains an invalid scdate format
|
|
144
|
+
* (SDate, STime, SWeekdays, or STimestamp)
|
|
145
|
+
*/
|
|
146
|
+
issue: ValidationIssue.InvalidScDateFormat;
|
|
147
|
+
/** Path to the field with invalid format (e.g., 'weekly[0].weekdays') */
|
|
148
|
+
field: string;
|
|
149
|
+
/** The invalid value that was provided */
|
|
150
|
+
value: string;
|
|
151
|
+
/** The expected format (e.g., 'SMTWTFS', 'HH:MM', 'YYYY-MM-DD') */
|
|
152
|
+
expectedFormat: string;
|
|
153
|
+
} | {
|
|
154
|
+
/**
|
|
155
|
+
* A rule has a weekdays pattern with no days selected (e.g., '-------')
|
|
156
|
+
*/
|
|
157
|
+
issue: ValidationIssue.EmptyWeekdays;
|
|
158
|
+
/** Location of the rule with empty weekdays */
|
|
159
|
+
location: {
|
|
160
|
+
type: RuleLocationType.Weekly;
|
|
161
|
+
ruleIndex: number;
|
|
162
|
+
} | {
|
|
163
|
+
type: RuleLocationType.Override;
|
|
164
|
+
overrideIndex: number;
|
|
165
|
+
ruleIndex: number;
|
|
166
|
+
};
|
|
167
|
+
} | {
|
|
168
|
+
/**
|
|
169
|
+
* An override has weekdays that don't match any actual dates in the
|
|
170
|
+
* override's date range
|
|
171
|
+
*/
|
|
172
|
+
issue: ValidationIssue.OverrideWeekdaysMismatch;
|
|
173
|
+
/** Index of the override with the mismatch */
|
|
174
|
+
overrideIndex: number;
|
|
175
|
+
/** Index of the rule within the override */
|
|
176
|
+
ruleIndex: number;
|
|
177
|
+
/** The weekdays pattern that doesn't match */
|
|
178
|
+
weekdays: string;
|
|
179
|
+
/** The date range of the override */
|
|
180
|
+
dateRange: {
|
|
181
|
+
from: string;
|
|
182
|
+
to: string;
|
|
183
|
+
};
|
|
184
|
+
} | {
|
|
185
|
+
/**
|
|
186
|
+
* Two or more rules in the weekly schedule have overlapping weekdays and
|
|
187
|
+
* time ranges
|
|
188
|
+
*/
|
|
189
|
+
issue: ValidationIssue.OverlappingRulesInWeekly;
|
|
190
|
+
/** Indexes of the two overlapping rules */
|
|
191
|
+
ruleIndexes: [number, number];
|
|
192
|
+
/** The weekday where the overlap occurs */
|
|
193
|
+
weekday: Weekday;
|
|
194
|
+
} | {
|
|
195
|
+
/**
|
|
196
|
+
* Two or more rules within the same override have overlapping weekdays
|
|
197
|
+
* and time ranges
|
|
198
|
+
*/
|
|
199
|
+
issue: ValidationIssue.OverlappingRulesInOverride;
|
|
200
|
+
/** Index of the override containing the overlapping rules */
|
|
201
|
+
overrideIndex: number;
|
|
202
|
+
/** Indexes of the two overlapping rules within the override */
|
|
203
|
+
ruleIndexes: [number, number];
|
|
204
|
+
/** The weekday where the overlap occurs */
|
|
205
|
+
weekday: Weekday;
|
|
206
|
+
} | {
|
|
207
|
+
/**
|
|
208
|
+
* Cross-midnight spillover (from weekly rule or previous override)
|
|
209
|
+
* conflicts with override's first day time ranges
|
|
210
|
+
*/
|
|
211
|
+
issue: ValidationIssue.SpilloverConflictIntoOverrideFirstDay;
|
|
212
|
+
/** Index of the override whose first day has the conflict */
|
|
213
|
+
overrideIndex: number;
|
|
214
|
+
/** The first date of the override where conflict occurs */
|
|
215
|
+
date: string;
|
|
216
|
+
/** The override rule index being conflicted with */
|
|
217
|
+
overrideRuleIndex: number;
|
|
218
|
+
/**
|
|
219
|
+
* The source of spillover (weekly rule or previous override). If
|
|
220
|
+
* sourceOverrideIndex is undefined, it's a weekly rule.
|
|
221
|
+
*/
|
|
222
|
+
sourceWeeklyRuleIndex?: number;
|
|
223
|
+
sourceOverrideIndex?: number;
|
|
224
|
+
sourceOverrideRuleIndex?: number;
|
|
225
|
+
} | {
|
|
226
|
+
/**
|
|
227
|
+
* Cross-midnight spillover from override's last day conflicts with next
|
|
228
|
+
* day's time ranges
|
|
229
|
+
*/
|
|
230
|
+
issue: ValidationIssue.SpilloverConflictOverrideIntoNext;
|
|
231
|
+
/** Index of the override whose last day causes spillover */
|
|
232
|
+
overrideIndex: number;
|
|
233
|
+
/** The last date of the override causing spillover */
|
|
234
|
+
date: string;
|
|
235
|
+
/** The override rule index causing the spillover */
|
|
236
|
+
overrideRuleIndex: number;
|
|
237
|
+
/**
|
|
238
|
+
* The next day's rule that conflicts (weekly or another override). If
|
|
239
|
+
* nextDayOverrideIndex is undefined, it's a weekly rule.
|
|
240
|
+
*/
|
|
241
|
+
nextDayWeeklyRuleIndex?: number;
|
|
242
|
+
nextDayOverrideIndex?: number;
|
|
243
|
+
nextDayOverrideRuleIndex?: number;
|
|
244
|
+
} | {
|
|
245
|
+
/**
|
|
246
|
+
* An override has a 'to' date that is before the 'from' date
|
|
247
|
+
*/
|
|
248
|
+
issue: ValidationIssue.InvalidOverrideDateOrder;
|
|
249
|
+
/** Index of the override with invalid date order */
|
|
250
|
+
overrideIndex: number;
|
|
251
|
+
/** The from date */
|
|
252
|
+
from: string;
|
|
253
|
+
/** The to date that is before from */
|
|
254
|
+
to: string;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Result of validating a schedule. Contains a boolean flag indicating validity
|
|
258
|
+
* and an array of specific errors if validation failed.
|
|
259
|
+
*/
|
|
260
|
+
export interface ValidationResult {
|
|
261
|
+
/** True if the schedule passed all validation checks */
|
|
262
|
+
valid: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Array of validation errors. Empty if valid is true. Each error includes
|
|
265
|
+
* specific details about what failed.
|
|
266
|
+
*/
|
|
267
|
+
errors: ValidationError[];
|
|
268
|
+
}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Schedule, ValidationResult } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Validates a schedule configuration and returns all validation errors found.
|
|
4
|
+
*
|
|
5
|
+
* Validation is performed in two phases:
|
|
6
|
+
* 1. Structural validation (timezone, formats, date order, empty weekdays,
|
|
7
|
+
* non-empty times, weekday-date mismatch) - runs on original schedule
|
|
8
|
+
* 2. Semantic validation (overlaps, conflicts) - runs on normalized schedule
|
|
9
|
+
* after filtering weekdays to actual dates
|
|
10
|
+
*
|
|
11
|
+
* If structural errors are found, validation stops early and returns only
|
|
12
|
+
* those errors. This provides better user experience and avoids crashes from
|
|
13
|
+
* invalid data during normalization.
|
|
14
|
+
*/
|
|
15
|
+
export declare const validateSchedule: (schedule: Schedule) => ValidationResult;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { normalizeScheduleForValidation } from './internal/normalizeScheduleForValidation.js';
|
|
2
|
+
import { validateNoEmptyWeekdays } from './internal/validateNoEmptyWeekdays.js';
|
|
3
|
+
import { validateNoOverlappingOverrides } from './internal/validateNoOverlappingOverrides.js';
|
|
4
|
+
import { validateNoOverlappingRules } from './internal/validateNoOverlappingRules.js';
|
|
5
|
+
import { validateNoOverlappingTimesInRule } from './internal/validateNoOverlappingTimesInRule.js';
|
|
6
|
+
import { validateNoSpilloverConflictsAtOverrideBoundaries } from './internal/validateNoSpilloverConflictsAtOverrideBoundaries.js';
|
|
7
|
+
import { validateNonEmptyTimes } from './internal/validateNonEmptyTimes.js';
|
|
8
|
+
import { validateOverrideDateOrder } from './internal/validateOverrideDateOrder.js';
|
|
9
|
+
import { validateOverrideWeekdaysMatchDates } from './internal/validateOverrideWeekdaysMatchDates.js';
|
|
10
|
+
import { validateScDateFormats } from './internal/validateScDateFormats.js';
|
|
11
|
+
import { validateTimezone } from './internal/validateTimezone.js';
|
|
12
|
+
/**
|
|
13
|
+
* Validates a schedule configuration and returns all validation errors found.
|
|
14
|
+
*
|
|
15
|
+
* Validation is performed in two phases:
|
|
16
|
+
* 1. Structural validation (timezone, formats, date order, empty weekdays,
|
|
17
|
+
* non-empty times, weekday-date mismatch) - runs on original schedule
|
|
18
|
+
* 2. Semantic validation (overlaps, conflicts) - runs on normalized schedule
|
|
19
|
+
* after filtering weekdays to actual dates
|
|
20
|
+
*
|
|
21
|
+
* If structural errors are found, validation stops early and returns only
|
|
22
|
+
* those errors. This provides better user experience and avoids crashes from
|
|
23
|
+
* invalid data during normalization.
|
|
24
|
+
*/
|
|
25
|
+
export const validateSchedule = (schedule) => {
|
|
26
|
+
// Phase 1: Structural validation
|
|
27
|
+
// Note: Order matters - date formats and order must be validated before
|
|
28
|
+
// weekday matching (which calls filterWeekdaysForDates)
|
|
29
|
+
const structuralErrors = [
|
|
30
|
+
...validateTimezone(schedule),
|
|
31
|
+
...validateScDateFormats(schedule),
|
|
32
|
+
...validateOverrideDateOrder(schedule),
|
|
33
|
+
...validateNoEmptyWeekdays(schedule),
|
|
34
|
+
...validateNonEmptyTimes(schedule),
|
|
35
|
+
...validateOverrideWeekdaysMatchDates(schedule),
|
|
36
|
+
];
|
|
37
|
+
// Return immediately if structural errors exist
|
|
38
|
+
if (structuralErrors.length > 0) {
|
|
39
|
+
return {
|
|
40
|
+
valid: false,
|
|
41
|
+
errors: structuralErrors,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
// Phase 2: Normalize - filter override weekdays to actual dates in range
|
|
45
|
+
const normalizedSchedule = normalizeScheduleForValidation(schedule);
|
|
46
|
+
// Phase 3: Semantic validation on normalized schedule
|
|
47
|
+
const semanticErrors = [
|
|
48
|
+
...validateNoOverlappingOverrides(normalizedSchedule),
|
|
49
|
+
...validateNoOverlappingTimesInRule(normalizedSchedule),
|
|
50
|
+
...validateNoOverlappingRules(normalizedSchedule),
|
|
51
|
+
...validateNoSpilloverConflictsAtOverrideBoundaries(normalizedSchedule),
|
|
52
|
+
];
|
|
53
|
+
return {
|
|
54
|
+
valid: semanticErrors.length === 0,
|
|
55
|
+
errors: semanticErrors,
|
|
56
|
+
};
|
|
57
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scschedule",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"test": "vitest run"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"scdate": "2.
|
|
23
|
+
"scdate": "2.1.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@eslint/js": "^9.39.
|
|
26
|
+
"@eslint/js": "^9.39.2",
|
|
27
27
|
"@tsconfig/strictest": "^2.0.8",
|
|
28
|
-
"@types/node": "^24.10.
|
|
29
|
-
"eslint": "^9.39.
|
|
28
|
+
"@types/node": "^24.10.13",
|
|
29
|
+
"eslint": "^9.39.2",
|
|
30
30
|
"typescript": "^5.9.3",
|
|
31
|
-
"typescript-eslint": "^8.
|
|
32
|
-
"vitest": "^4.0.
|
|
31
|
+
"typescript-eslint": "^8.55.0",
|
|
32
|
+
"vitest": "^4.0.18"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,eAAe,CAAA"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAA"}
|