node-cron-expression
Advanced tools
Comparing version 1.2.0 to 1.3.0
import { DayOfTheMonthExpression, DayOfTheWeekExpression } from './expression'; | ||
/** | ||
* In specific day of the month | ||
* | ||
* ``` | ||
* onDayOfTheMonth(3); // * * 3 * * | ||
* onDayOfTheMonth([3,5]); // * * 3,5 * * | ||
* ``` | ||
* | ||
*/ | ||
export declare const onDayOfTheMonth: (dayOfTheMonth: DayOfTheMonth | DayOfTheMonth[]) => DayOfTheMonthExpression; | ||
export declare const onDayOfTheWeek: (dayOfTheWeek: DayOfTheWeek | DayOfTheWeek[]) => DayOfTheWeekExpression; | ||
/** | ||
* In specific day of the week | ||
* | ||
* ``` | ||
* onDayOfTheWeek(3); // 0 0 * * 3 | ||
* onDayOfTheWeek([3,5]); // 0 0 * * 3,5 | ||
* | ||
* onDayOfTheWeek('Monday'); // 0 0 * * 1 | ||
* onDayOfTheWeek(['Sunday', 'Thursday']); // 0 0 * * 0,4 | ||
* ``` | ||
*/ | ||
export declare const onDayOfTheWeek: (dayOfTheWeek: DayOfTheWeek | DayOfTheWeek[] | DayOfTheWeekLiteral | DayOfTheWeekLiteral[]) => DayOfTheWeekExpression; |
@@ -5,2 +5,11 @@ "use strict"; | ||
const expression_1 = require("./expression"); | ||
/** | ||
* In specific day of the month | ||
* | ||
* ``` | ||
* onDayOfTheMonth(3); // * * 3 * * | ||
* onDayOfTheMonth([3,5]); // * * 3,5 * * | ||
* ``` | ||
* | ||
*/ | ||
exports.onDayOfTheMonth = (dayOfTheMonth) => { | ||
@@ -13,9 +22,41 @@ return new expression_1.DayOfTheMonthExpression({ | ||
}; | ||
const map = { | ||
Monday: 1, | ||
Tuesday: 2, | ||
Wednesday: 3, | ||
Thursday: 4, | ||
Friday: 5, | ||
Saturday: 6, | ||
Sunday: 0, | ||
}; | ||
/** | ||
* In specific day of the week | ||
* | ||
* ``` | ||
* onDayOfTheWeek(3); // 0 0 * * 3 | ||
* onDayOfTheWeek([3,5]); // 0 0 * * 3,5 | ||
* | ||
* onDayOfTheWeek('Monday'); // 0 0 * * 1 | ||
* onDayOfTheWeek(['Sunday', 'Thursday']); // 0 0 * * 0,4 | ||
* ``` | ||
*/ | ||
exports.onDayOfTheWeek = (dayOfTheWeek) => { | ||
const arrayInput = Array.isArray(dayOfTheWeek) | ||
? dayOfTheWeek | ||
: [dayOfTheWeek]; | ||
if (typeof arrayInput[0] === 'string') { | ||
return new expression_1.DayOfTheWeekExpression({ | ||
minute: '0', | ||
hour: '0', | ||
dayOfTheWeek: arrayInput | ||
.map((day) => map[day]) | ||
.join(','), | ||
}); | ||
} | ||
return new expression_1.DayOfTheWeekExpression({ | ||
minute: '0', | ||
hour: '0', | ||
dayOfTheWeek: `${Array.isArray(dayOfTheWeek) ? dayOfTheWeek.join(',') : dayOfTheWeek}`, | ||
dayOfTheWeek: arrayInput.join(','), | ||
}); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL29uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZDQUErRTtBQUVsRSxRQUFBLGVBQWUsR0FBRyxDQUM3QixhQUE4QyxFQUM5QyxFQUFFO0lBQ0YsT0FBTyxJQUFJLG9DQUF1QixDQUFDO1FBQ2pDLE1BQU0sRUFBRSxHQUFHO1FBQ1gsSUFBSSxFQUFFLEdBQUc7UUFDVCxhQUFhLEVBQUUsR0FDYixLQUFLLENBQUMsT0FBTyxDQUFDLGFBQWEsQ0FBQyxDQUFDLENBQUMsQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxhQUMzRCxFQUFFO0tBQ0gsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDO0FBRVcsUUFBQSxjQUFjLEdBQUcsQ0FBQyxZQUEyQyxFQUFFLEVBQUU7SUF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sRUFBRSxDQUFDO0NBQ1YsQ0FBQztBQUVGOzs7Ozs7Ozs7O0dBVUc7QUFDVSxRQUFBLGNBQWMsR0FBRyxDQUM1QixZQUl5QixFQUN6QixFQUFFO0lBQ0YsTUFBTSxVQUFVLEdBQUcsS0FBSyxDQUFDLE9BQU8sQ0FBQyxZQUFZLENBQUM7UUFDNUMsQ0FBQyxDQUFDLFlBQVk7UUFDZCxDQUFDLENBQUMsQ0FBQyxZQUFZLENBQUMsQ0FBQztJQUVuQixJQUFJLE9BQU8sVUFBVSxDQUFDLENBQUMsQ0FBQyxLQUFLLFFBQVEsRUFBRTtRQUNyQyxPQUFPLElBQUksbUNBQXNCLENBQUM7WUFDaEMsTUFBTSxFQUFFLEdBQUc7WUFDWCxJQUFJLEVBQUUsR0FBRztZQUNULFlBQVksRUFBRyxVQUFvQztpQkFDaEQsR0FBRyxDQUFDLENBQUMsR0FBRyxFQUFFLEVBQUUsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUM7aUJBQ3RCLElBQUksQ0FBQyxHQUFHLENBQUM7U0FDYixDQUFDLENBQUM7S0FDSjtJQUVELE9BQU8sSUFBSSxtQ0FBc0IsQ0FBQztRQUNoQyxNQUFNLEVBQUUsR0FBRztRQUNYLElBQUksRUFBRSxHQUFHO1FBQ1QsWUFBWSxFQUFFLFVBQVUsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDO0tBQ25DLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyJ9 |
@@ -11,3 +11,6 @@ "use strict"; | ||
}); | ||
it('should provide day of the week using literals', () => { | ||
expect(on_1.onDayOfTheWeek('Sunday').toString()).toBe('0 0 * * 0'); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib24uc3BlYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvb24uc3BlYy50cyJdLCJuYW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DLENBQUMsQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDLElBQUksQ0FBQyxXQUFXLENBQUMsQ0FBQztJQUMxRCxDQUFDLENBQUMsQ0FBQztJQUVILEVBQUUsQ0FBQywrQ0FBK0MsRUFBRSxHQUFHLEVBQUU7UUFDdkQsTUFBTSxDQUFDLG1CQUFjLENBQUMsUUFBUSxDQUFDLENBQUMsUUFBUSxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLENBQUM7SUFDaEUsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 |
@@ -6,2 +6,3 @@ declare type Minute = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59; | ||
declare type DayOfTheMonth = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31; | ||
declare type DayOfTheWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; | ||
declare type DayOfTheWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6; | ||
declare type DayOfTheWeekLiteral = 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday' | 'Sunday'; |
import { DayOfTheMonthExpression, DayOfTheWeekExpression } from './expression'; | ||
/** | ||
* In specific day of the month | ||
* | ||
* ``` | ||
* onDayOfTheMonth(3); // * * 3 * * | ||
* onDayOfTheMonth([3,5]); // * * 3,5 * * | ||
* ``` | ||
* | ||
*/ | ||
export declare const onDayOfTheMonth: (dayOfTheMonth: DayOfTheMonth | DayOfTheMonth[]) => DayOfTheMonthExpression; | ||
export declare const onDayOfTheWeek: (dayOfTheWeek: DayOfTheWeek | DayOfTheWeek[]) => DayOfTheWeekExpression; | ||
/** | ||
* In specific day of the week | ||
* | ||
* ``` | ||
* onDayOfTheWeek(3); // 0 0 * * 3 | ||
* onDayOfTheWeek([3,5]); // 0 0 * * 3,5 | ||
* | ||
* onDayOfTheWeek('Monday'); // 0 0 * * 1 | ||
* onDayOfTheWeek(['Sunday', 'Thursday']); // 0 0 * * 0,4 | ||
* ``` | ||
*/ | ||
export declare const onDayOfTheWeek: (dayOfTheWeek: DayOfTheWeek | DayOfTheWeek[] | DayOfTheWeekLiteral | DayOfTheWeekLiteral[]) => DayOfTheWeekExpression; |
import { DayOfTheMonthExpression, DayOfTheWeekExpression } from './expression'; | ||
/** | ||
* In specific day of the month | ||
* | ||
* ``` | ||
* onDayOfTheMonth(3); // * * 3 * * | ||
* onDayOfTheMonth([3,5]); // * * 3,5 * * | ||
* ``` | ||
* | ||
*/ | ||
export const onDayOfTheMonth = (dayOfTheMonth) => { | ||
@@ -9,9 +18,41 @@ return new DayOfTheMonthExpression({ | ||
}; | ||
const map = { | ||
Monday: 1, | ||
Tuesday: 2, | ||
Wednesday: 3, | ||
Thursday: 4, | ||
Friday: 5, | ||
Saturday: 6, | ||
Sunday: 0, | ||
}; | ||
/** | ||
* In specific day of the week | ||
* | ||
* ``` | ||
* onDayOfTheWeek(3); // 0 0 * * 3 | ||
* onDayOfTheWeek([3,5]); // 0 0 * * 3,5 | ||
* | ||
* onDayOfTheWeek('Monday'); // 0 0 * * 1 | ||
* onDayOfTheWeek(['Sunday', 'Thursday']); // 0 0 * * 0,4 | ||
* ``` | ||
*/ | ||
export const onDayOfTheWeek = (dayOfTheWeek) => { | ||
const arrayInput = Array.isArray(dayOfTheWeek) | ||
? dayOfTheWeek | ||
: [dayOfTheWeek]; | ||
if (typeof arrayInput[0] === 'string') { | ||
return new DayOfTheWeekExpression({ | ||
minute: '0', | ||
hour: '0', | ||
dayOfTheWeek: arrayInput | ||
.map((day) => map[day]) | ||
.join(','), | ||
}); | ||
} | ||
return new DayOfTheWeekExpression({ | ||
minute: '0', | ||
hour: '0', | ||
dayOfTheWeek: `${Array.isArray(dayOfTheWeek) ? dayOfTheWeek.join(',') : dayOfTheWeek}`, | ||
dayOfTheWeek: arrayInput.join(','), | ||
}); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL29uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxzQkFBc0IsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUUvRSxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsQ0FDN0IsYUFBOEMsRUFDOUMsRUFBRTtJQUNGLE9BQU8sSUFBSSx1QkFBdUIsQ0FBQztRQUNqQyxNQUFNLEVBQUUsR0FBRztRQUNYLElBQUksRUFBRSxHQUFHO1FBQ1QsYUFBYSxFQUFFLEdBQ2IsS0FBSyxDQUFDLE9BQU8sQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFDLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsYUFDM0QsRUFBRTtLQUNILENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQztBQUVGLE1BQU0sQ0FBQyxNQUFNLGNBQWMsR0FBRyxDQUFDLFlBQTJDLEVBQUUsRUFBRTtJQUM1RSxPQUFPLElBQUksc0JBQXNCLENBQUM7UUFDaEMsTUFBTSxFQUFFLEdBQUc7UUFDWCxJQUFJLEVBQUUsR0FBRztRQUNULFlBQVksRUFBRSxHQUNaLEtBQUss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7OztHQVVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sY0FBYyxHQUFHLENBQzVCLFlBSXlCLEVBQ3pCLEVBQUU7SUFDRixNQUFNLFVBQVUsR0FBRyxLQUFLLENBQUMsT0FBTyxDQUFDLFlBQVksQ0FBQztRQUM1QyxDQUFDLENBQUMsWUFBWTtRQUNkLENBQUMsQ0FBQyxDQUFDLFlBQVksQ0FBQyxDQUFDO0lBRW5CLElBQUksT0FBTyxVQUFVLENBQUMsQ0FBQyxDQUFDLEtBQUssUUFBUSxFQUFFO1FBQ3JDLE9BQU8sSUFBSSxzQkFBc0IsQ0FBQztZQUNoQyxNQUFNLEVBQUUsR0FBRztZQUNYLElBQUksRUFBRSxHQUFHO1lBQ1QsWUFBWSxFQUFHLFVBQW9DO2lCQUNoRCxHQUFHLENBQUMsQ0FBQyxHQUFHLEVBQUUsRUFBRSxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztpQkFDdEIsSUFBSSxDQUFDLEdBQUcsQ0FBQztTQUNiLENBQUMsQ0FBQztLQUNKO0lBRUQsT0FBTyxJQUFJLHNCQUFzQixDQUFDO1FBQ2hDLE1BQU0sRUFBRSxHQUFHO1FBQ1gsSUFBSSxFQUFFLEdBQUc7UUFDVCxZQUFZLEVBQUUsVUFBVSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUM7S0FDbkMsQ0FBQyxDQUFDO0FBQ0wsQ0FBQyxDQUFDIn0= |
@@ -9,3 +9,6 @@ import { onDayOfTheMonth, onDayOfTheWeek } from './on'; | ||
}); | ||
it('should provide day of the week using literals', () => { | ||
expect(onDayOfTheWeek('Sunday').toString()).toBe('0 0 * * 0'); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib24uc3BlYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvb24uc3BlYy50cyJdLCJuYW1lc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FQUFFLENBQUMsd0NBQXdDLEVBQUUsR0FBRyxFQUFFO1FBQ2hELE1BQU0sQ0FBQyxlQUFlLENBQUMsQ0FBQyxDQUFDLENBQUMsUUFBUSxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLENBQUM7SUFDMUQsQ0FBQyxDQUFDLENBQUM7SUFFSCxFQUFFLENBQUMsK0NBQStDLEVBQUUsR0FBRyxFQUFFO1FBQ3ZELE1BQU0sQ0FBQyxjQUFjLENBQUMsUUFBUSxDQUFDLENBQUMsUUFBUSxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLENBQUM7SUFDaEUsQ0FBQyxDQUFDLENBQUM7QUFDTCxDQUFDLENBQUMsQ0FBQyJ9 |
@@ -6,2 +6,3 @@ declare type Minute = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59; | ||
declare type DayOfTheMonth = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31; | ||
declare type DayOfTheWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; | ||
declare type DayOfTheWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6; | ||
declare type DayOfTheWeekLiteral = 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday' | 'Sunday'; |
@@ -1,2 +0,2 @@ | ||
# [1.2.0](https://github.com/kbariotis/node-cron-expression/compare/v1.1.1...v1.2.0) (2022-01-05) | ||
# [1.3.0](https://github.com/kbariotis/node-cron-expression/compare/v1.2.0...v1.3.0) (2022-01-05) | ||
@@ -6,2 +6,2 @@ | ||
* add month literals ([9fd89c7](https://github.com/kbariotis/node-cron-expression/commit/9fd89c7207a169e53fe3498c575ad219896fa30b)) | ||
* day of the week literals ([3512702](https://github.com/kbariotis/node-cron-expression/commit/3512702bb5252ba2987ddafbe18e9b273f85f91a)) |
{ | ||
"name": "node-cron-expression", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Declarative functional crontab expression builder", | ||
@@ -5,0 +5,0 @@ "main": "build/main/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92015
1378