mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-12-01 11:55:20 +01:00
1ada95e04a
- Convert project to Javascript/Typescript - Allow custom headers to be passed in (optional) - Allow body to be optional
19 lines
450 B
JavaScript
19 lines
450 B
JavaScript
'use strict';
|
|
|
|
var HoursPerDay = 24;
|
|
var MinutesPerHour = 60;
|
|
var SecondsPerMinute = 60;
|
|
var msPerSecond = 1e3;
|
|
var msPerMinute = msPerSecond * SecondsPerMinute;
|
|
var msPerHour = msPerMinute * MinutesPerHour;
|
|
var msPerDay = 86400000;
|
|
|
|
module.exports = {
|
|
HoursPerDay: HoursPerDay,
|
|
MinutesPerHour: MinutesPerHour,
|
|
SecondsPerMinute: SecondsPerMinute,
|
|
msPerSecond: msPerSecond,
|
|
msPerMinute: msPerMinute,
|
|
msPerHour: msPerHour,
|
|
msPerDay: msPerDay
|
|
};
|