From 521d4da2d98167be54189b17bddd7bd1143041fa Mon Sep 17 00:00:00 2001 From: buzzinJohnnyBoi Date: Sat, 18 May 2024 12:52:37 -0400 Subject: [PATCH] added comments to _calculatePreviousRun function croner.js --- dist/croner.cjs | 3 +++ dist/croner.js | 3 +++ dist/croner.min.cjs.map | 2 +- dist/croner.min.js.map | 2 +- dist/croner.umd.js | 3 +++ dist/croner.umd.min.js.map | 2 +- src/croner.js | 3 +++ 7 files changed, 15 insertions(+), 3 deletions(-) diff --git a/dist/croner.cjs b/dist/croner.cjs index b1f1244..89079ac 100644 --- a/dist/croner.cjs +++ b/dist/croner.cjs @@ -1866,6 +1866,9 @@ Cron.prototype._next = function (prev) { * This calculation is only necessary if the startAt time is before the current time. * Should only be called from the _next function. * @private + * @param {CronDate|Date|string|undefined} prev - previousRun + * @param {boolean} hasPreviousRun - has a previous run + * @returns {[{CronDate | undefined}, {boolean}]} - previousRun, hasPreviousRun **/ Cron.prototype._calculatePreviousRun = function (prev, hasPreviousRun) { const now = new CronDate(undefined, this.options.timezone || this.options.utcOffset); diff --git a/dist/croner.js b/dist/croner.js index df1b4e2..58655bb 100644 --- a/dist/croner.js +++ b/dist/croner.js @@ -1864,6 +1864,9 @@ Cron.prototype._next = function (prev) { * This calculation is only necessary if the startAt time is before the current time. * Should only be called from the _next function. * @private + * @param {CronDate|Date|string|undefined} prev - previousRun + * @param {boolean} hasPreviousRun - has a previous run + * @returns {[{CronDate | undefined}, {boolean}]} - previousRun, hasPreviousRun **/ Cron.prototype._calculatePreviousRun = function (prev, hasPreviousRun) { const now = new CronDate(undefined, this.options.timezone || this.options.utcOffset); diff --git a/dist/croner.min.cjs.map b/dist/croner.min.cjs.map index 63e1b22..6b38baf 100644 --- a/dist/croner.min.cjs.map +++ b/dist/croner.min.cjs.map @@ -1 +1 @@ -{"version":3,"sources":["dist/croner.cjs"],"names":["minitz","y","m","d","h","i","s","tz","throwOnInvalid","fromTZ","tp","fromTZISO","localTimeStr","parseISOLocal","inDate","Date","UTC","offset","getTimezoneOffset","dateGuess","getTime","dateOffsGuess","dateGuess2","dateOffsGuess2","Error","toTZ","tzStr","localDateString","toLocaleString","timeZone","replace","td","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","date","timeZoneName","split","slice","dateString","parse","dtStr","pd","isNaN","stringEnd","substring","includes","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","CronOptions","options","name","legacyMode","paused","maxRuns","Infinity","catch","interval","parseInt","utcOffset","unref","startAt","CronDate","timezone","stopAt","LAST_OCCURRENCE","ANY_OCCURRENCE","OCCURRENCE_BITMASKS","CronPattern","pattern","this","second","Array","fill","minute","hour","day","month","dayOfWeek","lastDayOfMonth","starDOM","starDOW","prototype","constructor","String","TypeError","indexOf","handleNicknames","trim","parts","length","unshift","replaceAlphaMonths","replaceAlphaDays","initDate","getDay","throwAtIllegalCharacters","partToArray","type","conf","valueIndexOffset","defaultValue","arr","let","handleRangeWithStepping","handleRange","handleStepping","handleNumber","reValidCron","test","result","extractNth","setPart","part","index","value","Object","hasOwnProperty","call","RangeError","setNthWeekdayOfMonth","matches","match","lower","upper","steps","rest","nth","start","cleanPattern","toLowerCase","nthWeekday","DaysOfMonth","RecursionSteps","fromDate","fromString","fromCronDate","isNthWeekdayOfMonth","year","weekday","getUTCDay","count","daysInMonth","ms","getUTCMilliseconds","apply","getMilliseconds","str","findNext","target","originalTarget","fDomWeekDay","undefined","dowMatch","recurse","doing","res","resetLevel","increment","hasPreviousRun","internal","isFunction","v","toString","Function","unrefTimer","timer","Deno","maxDelay","scheduledJobs","Cron","fnOrOptions1","fnOrOptions2","func","_states","kill","blocking","previousRun","currentRun","once","currentTimeout","existing","find","j","push","fn","schedule","nextRun","prev","next","_next","nextRuns","n","previous","enumeration","getPattern","isRunning","nextRunTime","isScheduled","notIsKilled","isStopped","isBusy","msToNext","stop","clearTimeout","jobIndex","splice","pause","resume","waitMs","setTimeout","_checkTrigger","_trigger","async","initiationDate","await","context","_e","trigger","now","shouldRun","isBlocked","protect","_calculatePreviousRun","prevTimePlusInterval","module","exports"],"mappings":"AAAA,aA+DC,SAASA,OAAOC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,GAAIC,gBACtC,OAAOR,OAAOS,OAAOT,OAAOU,GAAGT,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAE,EAAGC,cAAc,CACrE,CAgBAR,OAAOW,UAAY,CAACC,aAAcL,GAAIC,kBACrC,OAAOR,OAAOS,OAAOI,cAAcD,aAAcL,EAAE,EAAGC,cAAc,CACrE,EAcAR,OAAOS,OAAS,SAASC,GAAIF,gBAE5B,MAGCM,OAAS,IAAIC,KAAKA,KAAKC,IACtBN,GAAGT,EACHS,GAAGR,EAAI,EACPQ,GAAGP,EACHO,GAAGN,EACHM,GAAGL,EACHK,GAAGJ,CACJ,CAAC,EAGDW,OAASC,kBAAkBR,GAAGH,GAAIO,MAAM,EAGxCK,UAAY,IAAIJ,KAAKD,OAAOM,QAAQ,EAAIH,MAAM,EAG9CI,cAAgBH,kBAAkBR,GAAGH,GAAIY,SAAS,EAInD,GAAKE,cAAgBJ,SAAY,EAAG,CACnC,OAAOE,SACR,KAAO,CAIN,MACCG,WAAa,IAAIP,KAAKD,OAAOM,QAAQ,EAAIC,aAAa,EACtDE,eAAiBL,kBAAkBR,GAAGH,GAAIe,UAAU,EACrD,GAAKC,eAAiBF,gBAAmB,EAAG,CAE3C,OAAOC,UACR,MAAO,GAAG,CAACd,gBAAmBe,eAAiBF,cAAiB,EAAG,CAElE,OAAOC,UACR,MAAO,GAAI,CAACd,eAAgB,CAE3B,OAAOW,SACR,KAAO,CAEN,MAAM,IAAIK,MAAM,iCAAiC,CAClD,CACD,CACD,EAwCAxB,OAAOyB,KAAO,SAAUtB,EAAGuB,OAG1B,MAAMC,gBAAkBxB,EAAEyB,eAAe,QAAS,CAACC,SAAUH,KAAK,CAAC,EAAEI,QAAQ,WAAW,GAAG,EAE3F,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B,QAAQc,QAAU2H,QAAQ9K,QAAQ,GAAKyD,KAAKpB,QAAQc,OAAOnD,QAAQ,EACxE,CACD,OAAO,IACR,KAAO,CAEN,OAAO8K,OACR,CACD,EAOAjB,KAAKxF,UAAU6I,sBAAwB,SAAUnC,KAAM7B,gBACtD,MAAM4D,IAAM,IAAI7J,SAAS0F,UAAWlF,KAAKpB,QAAQa,UAAYO,KAAKpB,QAAQS,SAAS,EACnF,GAAIW,KAAKpB,QAAQW,QAAQhD,QAAQ,GAAK8M,IAAI9M,QAAQ,EAAG,CACpD+K,KAAOtH,KAAKpB,QAAQW,QACpB0C,IAAIyH,qBAAuBpC,KAAK/K,QAAQ,EAAIyD,KAAKpB,QAAQO,SAAW,IACpE,MAAOuK,sBAAwBL,IAAI9M,QAAQ,EAAG,CAC7C+K,KAAO,IAAI9H,SAAS8H,KAAMtH,KAAKpB,QAAQa,UAAYO,KAAKpB,QAAQS,SAAS,EAAEmG,UAAUxF,KAAKwG,QAAQzG,QAASC,KAAKpB,QAAS,IAAI,EAC7H8K,qBAAuBpC,KAAK/K,QAAQ,EAAIyD,KAAKpB,QAAQO,SAAW,GACjE,CACAsG,eAAiB,IAClB,CACA,MAAO,CAAC6B,KAAM7B,eACf,EAEAW,KAAKA,KAAOA,KACZA,KAAKD,cAAgBA,cAErBwD,OAAOC,QAAUxD"} \ No newline at end of file +{"version":3,"sources":["dist/croner.cjs"],"names":["minitz","y","m","d","h","i","s","tz","throwOnInvalid","fromTZ","tp","fromTZISO","localTimeStr","parseISOLocal","inDate","Date","UTC","offset","getTimezoneOffset","dateGuess","getTime","dateOffsGuess","dateGuess2","dateOffsGuess2","Error","toTZ","tzStr","localDateString","toLocaleString","timeZone","replace","td","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","date","timeZoneName","split","slice","dateString","parse","dtStr","pd","isNaN","stringEnd","substring","includes","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","CronOptions","options","name","legacyMode","paused","maxRuns","Infinity","catch","interval","parseInt","utcOffset","unref","startAt","CronDate","timezone","stopAt","LAST_OCCURRENCE","ANY_OCCURRENCE","OCCURRENCE_BITMASKS","CronPattern","pattern","this","second","Array","fill","minute","hour","day","month","dayOfWeek","lastDayOfMonth","starDOM","starDOW","prototype","constructor","String","TypeError","indexOf","handleNicknames","trim","parts","length","unshift","replaceAlphaMonths","replaceAlphaDays","initDate","getDay","throwAtIllegalCharacters","partToArray","type","conf","valueIndexOffset","defaultValue","arr","let","handleRangeWithStepping","handleRange","handleStepping","handleNumber","reValidCron","test","result","extractNth","setPart","part","index","value","Object","hasOwnProperty","call","RangeError","setNthWeekdayOfMonth","matches","match","lower","upper","steps","rest","nth","start","cleanPattern","toLowerCase","nthWeekday","DaysOfMonth","RecursionSteps","fromDate","fromString","fromCronDate","isNthWeekdayOfMonth","year","weekday","getUTCDay","count","daysInMonth","ms","getUTCMilliseconds","apply","getMilliseconds","str","findNext","target","originalTarget","fDomWeekDay","undefined","dowMatch","recurse","doing","res","resetLevel","increment","hasPreviousRun","internal","isFunction","v","toString","Function","unrefTimer","timer","Deno","maxDelay","scheduledJobs","Cron","fnOrOptions1","fnOrOptions2","func","_states","kill","blocking","previousRun","currentRun","once","currentTimeout","existing","find","j","push","fn","schedule","nextRun","prev","next","_next","nextRuns","n","previous","enumeration","getPattern","isRunning","nextRunTime","isScheduled","notIsKilled","isStopped","isBusy","msToNext","stop","clearTimeout","jobIndex","splice","pause","resume","waitMs","setTimeout","_checkTrigger","_trigger","async","initiationDate","await","context","_e","trigger","now","shouldRun","isBlocked","protect","_calculatePreviousRun","prevTimePlusInterval","module","exports"],"mappings":"AAAA,aA+DC,SAASA,OAAOC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,GAAIC,gBACtC,OAAOR,OAAOS,OAAOT,OAAOU,GAAGT,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAE,EAAGC,cAAc,CACrE,CAgBAR,OAAOW,U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W,KAAKpB,QAAQW,QAAQhD,QAAQ,GAAK8M,IAAI9M,QAAQ,EAAG,CACpD+K,KAAOtH,KAAKpB,QAAQW,QACpB0C,IAAIyH,qBAAuBpC,KAAK/K,QAAQ,EAAIyD,KAAKpB,QAAQO,SAAW,IACpE,MAAOuK,sBAAwBL,IAAI9M,QAAQ,EAAG,CAC7C+K,KAAO,IAAI9H,SAAS8H,KAAMtH,KAAKpB,QAAQa,UAAYO,KAAKpB,QAAQS,SAAS,EAAEmG,UAAUxF,KAAKwG,QAAQzG,QAASC,KAAKpB,QAAS,IAAI,EAC7H8K,qBAAuBpC,KAAK/K,QAAQ,EAAIyD,KAAKpB,QAAQO,SAAW,GACjE,CACAsG,eAAiB,IAClB,CACA,MAAO,CAAC6B,KAAM7B,eACf,EAEAW,KAAKA,KAAOA,KACZA,KAAKD,cAAgBA,cAErBwD,OAAOC,QAAUxD"} \ No newline at end of file diff --git a/dist/croner.min.js.map b/dist/croner.min.js.map index 2539d2d..f325a10 100644 --- a/dist/croner.min.js.map +++ b/dist/croner.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["dist/croner.js"],"names":["minitz","y","m","d","h","i","s","tz","throwOnInvalid","fromTZ","tp","fromTZISO","localTimeStr","parseISOLocal","inDate","Date","UTC","offset","getTimezoneOffset","dateGuess","getTime","dateOffsGuess","dateGuess2","dateOffsGuess2","Error","toTZ","tzStr","localDateString","toLocaleString","timeZone","replace","td","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","date","timeZoneName","split","slice","dateString","parse","dtStr","pd","isNaN","stringEnd","substring","includes","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","CronOptions","options","name","legacyMode","paused","maxRuns","Infinity","catch","interval","parseInt","utcOffset","unref","startAt","CronDate","timezone","stopAt","LAST_OCCURRENCE","ANY_OCCURRENCE","OCCURRENCE_BITMASKS","CronPattern","pattern","this","second","Array","fill","minute","hour","day","month","dayOfWeek","lastDayOfMonth","starDOM","starDOW","prototype","constructor","String","TypeError","indexOf","handleNicknames","trim","parts","length","unshift","replaceAlphaMonths","replaceAlphaDays","initDate","getDay","throwAtIllegalCharacters","partToArray","type","conf","valueIndexOffset","defaultValue","arr","let","handleRangeWithStepping","handleRange","handleStepping","handleNumber","reValidCron","test","result","extractNth","setPart","part","index","value","Object","hasOwnProperty","call","RangeError","setNthWeekdayOfMonth","matches","match","lower","upper","steps","rest","nth","start","cleanPattern","toLowerCase","nthWeekday","DaysOfMonth","RecursionSteps","fromDate","fromString","fromCronDate","isNthWeekdayOfMonth","year","weekday","getUTCDay","count","daysInMonth","ms","getUTCMilliseconds","apply","getMilliseconds","str","findNext","target","originalTarget","fDomWeekDay","undefined","dowMatch","recurse","doing","res","resetLevel","increment","hasPreviousRun","internal","isFunction","v","toString","Function","unrefTimer","timer","Deno","maxDelay","scheduledJobs","Cron","fnOrOptions1","fnOrOptions2","func","_states","kill","blocking","previousRun","currentRun","once","currentTimeout","existing","find","j","push","fn","schedule","nextRun","prev","next","_next","nextRuns","n","previous","enumeration","getPattern","isRunning","nextRunTime","isScheduled","notIsKilled","isStopped","isBusy","msToNext","stop","clearTimeout","jobIndex","splice","pause","resume","waitMs","setTimeout","_checkTrigger","_trigger","async","initiationDate","await","context","_e","trigger","now","shouldRun","isBlocked","protect","_calculatePreviousRun","prevTimePlusInterval"],"mappings":"AA6DC,SAASA,OAAOC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,GAAIC,gBACtC,OAAOR,OAAOS,OAAOT,OAAOU,GAAGT,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAE,EAAGC,cAAc,CACrE,CAgBAR,OAAOW,UAAY,CAACC,aAAcL,GAAIC,kBACrC,OAAOR,OAAOS,OAAOI,cAAcD,aAAcL,EAAE,EAAGC,cAAc,CACrE,EAcAR,OAAOS,OAAS,SAASC,GAAIF,gBAE5B,MAGCM,OAAS,IAAIC,KAAKA,KAAKC,IACtBN,GAAGT,E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AAwBL,IAAI9M,QAAQ,EAAG,CAC7C+K,KAAO,IAAI9H,SAAS8H,KAAMtH,KAAKpB,QAAQa,UAAYO,KAAKpB,QAAQS,SAAS,EAAEmG,UAAUxF,KAAKwG,QAAQzG,QAASC,KAAKpB,QAAS,IAAI,EAC7H8K,qBAAuBpC,KAAK/K,QAAQ,EAAIyD,KAAKpB,QAAQO,SAAW,GACjE,CACAsG,eAAiB,IAClB,CACA,MAAO,CAAC6B,KAAM7B,eACf,EAEAW,KAAKA,KAAOA,KACZA,KAAKD,cAAgBA,qBAEZC,KAAMA,gBAAiBD,aAAe"} \ No newline at end of file +{"version":3,"sources":["dist/croner.js"],"names":["minitz","y","m","d","h","i","s","tz","throwOnInvalid","fromTZ","tp","fromTZISO","localTimeStr","parseISOLocal","inDate","Date","UTC","offset","getTimezoneOffset","dateGuess","getTime","dateOffsGuess","dateGuess2","dateOffsGuess2","Error","toTZ","tzStr","localDateString","toLocaleString","timeZone","replace","td","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","date","timeZoneName","split","slice","dateString","parse","dtStr","pd","isNaN","stringEnd","substring","includes","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","CronOptions","options","name","legacyMode","paused","maxRuns","Infinity","catch","interval","parseInt","utcOffset","unref","startAt","CronDate","timezone","stopAt","LAST_OCCURRENCE","ANY_OCCURRENCE","OCCURRENCE_BITMASKS","CronPattern","pattern","this","second","Array","fill","minute","hour","day","month","dayOfWeek","lastDayOfMonth","starDOM","starDOW","prototype","constructor","String","TypeError","indexOf","handleNicknames","trim","parts","length","unshift","replaceAlphaMonths","replaceAlphaDays","initDate","getDay","throwAtIllegalCharacters","partToArray","type","conf","valueIndexOffset","defaultValue","arr","let","handleRangeWithStepping","handleRange","handleStepping","handleNumber","reValidCron","test","result","extractNth","setPart","part","index","value","Object","hasOwnProperty","call","RangeError","setNthWeekdayOfMonth","matches","match","lower","upper","steps","rest","nth","start","cleanPattern","toLowerCase","nthWeekday","DaysOfMonth","RecursionSteps","fromDate","fromString","fromCronDate","isNthWeekdayOfMonth","year","weekday","getUTCDay","count","daysInMonth","ms","getUTCMilliseconds","apply","getMilliseconds","str","findNext","target","originalTarget","fDomWeekDay","undefined","dowMatch","recurse","doing","res","resetLevel","increment","hasPreviousRun","internal","isFunction","v","toString","Function","unrefTimer","timer","Deno","maxDelay","scheduledJobs","Cron","fnOrOptions1","fnOrOptions2","func","_states","kill","blocking","previousRun","currentRun","once","currentTimeout","existing","find","j","push","fn","schedule","nextRun","prev","next","_next","nextRuns","n","previous","enumeration","getPattern","isRunning","nextRunTime","isScheduled","notIsKilled","isStopped","isBusy","msToNext","stop","clearTimeout","jobIndex","splice","pause","resume","waitMs","setTimeout","_checkTrigger","_trigger","async","initiationDate","await","context","_e","trigger","now","shouldRun","isBlocked","protect","_calculatePreviousRun","prevTimePlusInterval"],"mappings":"AA6DC,SAASA,OAAOC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,GAAIC,gBACtC,OAAOR,OAAOS,OAAOT,OAAOU,GAAGT,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAE,EAAGC,cAAc,CACrE,CAgBAR,OAAOW,UAAY,CAACC,aAAcL,GAAIC,kBACrC,OAAOR,OAAOS,OAAOI,cAAcD,aAAcL,EAAE,EAAGC,cAAc,CACrE,EAcAR,OAAOS,OAAS,SAASC,GAAIF,gBAE5B,MAGCM,OAAS,IAAIC,KAAKA,KAAKC,IACtBN,GAAGT,EACHS,GAAGR,EAAI,EACPQ,GAAGP,EACHO,GAAGN,EACHM,GAAGL,EACHK,GAAGJ,CACJ,CAAC,EAGDW,OAASC,kBAAkBR,GAAGH,GAAIO,MAAM,EAGxCK,UAAY,IAAIJ,KAAKD,OAAOM,QAAQ,EAAIH,MAAM,EAG9CI,cAAgBH,kBAAkBR,GAAGH,GAAIY,SAAS,EAInD,GAAKE,cAAgBJ,SAAY,EAAG,CACnC,OAAOE,SACR,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KAAM7B,eACf,EAEAW,KAAKA,KAAOA,KACZA,KAAKD,cAAgBA,qBAEZC,KAAMA,gBAAiBD,aAAe"} \ No newline at end of file diff --git a/dist/croner.umd.js b/dist/croner.umd.js index d5b521b..fb75d72 100644 --- a/dist/croner.umd.js +++ b/dist/croner.umd.js @@ -1870,6 +1870,9 @@ * This calculation is only necessary if the startAt time is before the current time. * Should only be called from the _next function. * @private + * @param {CronDate|Date|string|undefined} prev - previousRun + * @param {boolean} hasPreviousRun - has a previous run + * @returns {[{CronDate | undefined}, {boolean}]} - previousRun, hasPreviousRun **/ Cron.prototype._calculatePreviousRun = function (prev, hasPreviousRun) { const now = new CronDate(undefined, this.options.timezone || this.options.utcOffset); diff --git a/dist/croner.umd.min.js.map b/dist/croner.umd.min.js.map index c35cb70..da61d2b 100644 --- a/dist/croner.umd.min.js.map +++ b/dist/croner.umd.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["dist/croner.umd.js"],"names":["global","factory","exports","module","define","amd","globalThis","self","Cron","this","minitz","y","m","d","h","i","s","tz","throwOnInvalid","fromTZ","tp","fromTZISO","localTimeStr","parseISOLocal","inDate","Date","UTC","offset","getTimezoneOffset","dateGuess","getTime","dateOffsGuess","dateGuess2","dateOffsGuess2","Error","toTZ","tzStr","localDateString","toLocaleString","timeZone","replace","td","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","date","timeZoneName","split","slice","dateString","parse","dtStr","pd","isNaN","stringEnd","substring","includes","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","CronOptions","options","name","legacyMode","paused","maxRuns","Infinity","catch","interval","parseInt","utcOffset","unref","startAt","CronDate","timezone","stopAt","LAST_OCCURRENCE","ANY_OCCURRENCE","OCCURRENCE_BITMASKS","CronPattern","pattern","second","Array","fill","minute","hour","day","month","dayOfWeek","lastDayOfMonth","starDOM","starDOW","prototype","constructor","String","TypeError","indexOf","handleNicknames","trim","parts","length","unshift","replaceAlphaMonths","replaceAlphaDays","initDate","getDay","throwAtIllegalCharacters","partToArray","type","conf","valueIndexOffset","defaultValue","arr","let","handleRangeWithStepping","handleRange","handleStepping","handleNumber","reValidCron","test","result","extractNth","setPart","part","index","value","Object","hasOwnProperty","call","RangeError","setNthWeekdayOfMonth","matches","match","lower","upper","steps","rest","nth","start","cleanPattern","toLowerCase","nthWeekday","DaysOfMonth","RecursionSteps","fromDate","fromString","fromCronDate","isNthWeekdayOfMonth","year","weekday","getUTCDay","count","daysInMonth","ms","getUTCMilliseconds","apply","getMilliseconds","str","findNext","target","originalTarget","fDomWeekDay","undefined","dowMatch","recurse","doing","res","resetLevel","increment","hasPreviousRun","internal","isFunction","v","toString","Function","unrefTimer","timer","Deno","maxDelay","scheduledJobs","fnOrOptions1","fnOrOptions2","func","_states","kill","blocking","previousRun","currentRun","once","currentTimeout","existing","find","j","push","fn","schedule","nextRun","prev","next","_next","nextRuns","n","previous","enumeration","getPattern","isRunning","nextRunTime","isScheduled","notIsKilled","isStopped","isBusy","msToNext","stop","clearTimeout","jobIndex","splice","pause","resume","waitMs","setTimeout","_checkTrigger","_trigger","async","initiationDate","await","context","_e","trigger","now","shouldRun","isBlocked","protect","_calculatePreviousRun","prevTimePlusInterval"],"mappings":"CAAA,SAAWA,OAAQC,SAClB,OAAOC,UAAY,UAAY,OAAOC,SAAW,YAAcA,OAAOD,QAAUD,QAAQ,EACxF,OAAOG,SAAW,YAAcA,OAAOC,IAAMD,OAAOH,OAAO,GAC1DD,OAAS,OAAOM,aAAe,YAAcA,WAAaN,QAAUO,KAAMP,OAAOQ,KAAOP,QAAQ,EACjG,GAAEQ,KAAM,WAAe,aA+DtB,SAASC,OAAOC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,GAAIC,gBACtC,OAAOR,OAAOS,OAAOT,OAAOU,GAAGT,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAGC,EAAE,EAAGC,cAAc,CACrE,CAgBAR,OAAOW,UAAY,CAACC,aAAcL,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CACD,OAAO,IACR,KAAO,CAEN,OAAO4K,OACR,CACD,EAOAlM,KAAK0F,UAAU4I,sBAAwB,SAAUnC,KAAM5B,gBACtD,MAAM2D,IAAM,IAAI3J,SAASyF,UAAW/J,KAAK0D,QAAQa,UAAYvE,KAAK0D,QAAQS,SAAS,EACnF,GAAInE,KAAK0D,QAAQW,QAAQhD,QAAQ,GAAK4M,IAAI5M,QAAQ,EAAG,CACpD6K,KAAOlM,KAAK0D,QAAQW,QACpByC,IAAIwH,qBAAuBpC,KAAK7K,QAAQ,EAAIrB,KAAK0D,QAAQO,SAAW,IACpE,MAAOqK,sBAAwBL,IAAI5M,QAAQ,EAAG,CAC7C6K,KAAO,IAAI5H,SAAS4H,KAAMlM,KAAK0D,QAAQa,UAAYvE,KAAK0D,QAAQS,SAAS,EAAEkG,UAAUrK,KAAKoL,QAAQvG,QAAS7E,KAAK0D,QAAS,IAAI,EAC7H4K,qBAAuBpC,KAAK7K,QAAQ,EAAIrB,KAAK0D,QAAQO,SAAW,GACjE,CACAqG,eAAiB,IAClB,CACA,MAAO,CAAC4B,KAAM5B,eACf,EAEAvK,KAAKA,KAAOA,KACZA,KAAKiL,cAAgBA,cAErB,OAAOjL,IAEP,CAAC"} \ No newline at end of file +{"version":3,"sources":["dist/croner.umd.js"],"names":["global","factory","exports","module","define","amd","globalThis","self","Cron","this","minitz","y","m","d","h","i","s","tz","throwOnInvalid","fromTZ","tp","fromTZISO","localTimeStr","parseISOLocal","inDate","Date","UTC","offset","getTimezoneOffset","dateGuess","getTime","dateOffsGuess","dateGuess2","dateOffsGuess2","Error","toTZ","tzStr","localDateString","toLocaleString","timeZone","replace","td","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","date","timeZoneName","split","slice","dateString","parse","dtStr","pd","isNaN","stringEnd","substring","includes","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","CronOptions","options","name","legacyMode","paused","maxRuns","Infinity","catch","interval","parseInt","utcOffset","unref","startAt","CronDate","timezone","stopAt","LAST_OCCURRENCE","ANY_OCCURRENCE","OCCURRENCE_BITMASKS","CronPattern","pattern","second","Array","fill","minute","hour","day","month","dayOfWeek","lastDayOfMonth","starDOM","starDOW","prototype","constructor","String","TypeError","indexOf","handleNicknames","trim","parts","length","unshift","replaceAlphaMonths","replaceAlphaDays","initDate","getDay","throwAtIllegalCharacters","partToArray","type","conf","valueIndexOffset","defaultValue","arr","let","handleRangeWithStepping","handleRange","handleStepping","handleNumber","reValidCron","test","result","extractNth","setPart","part","index","value","Object","hasOwnProperty","call","RangeError","setNthWeekdayOfMonth","matches","match","lower","upper","steps","rest","nth","start","cleanPattern","toLowerCase","nthWeekday","DaysOfMonth","RecursionSteps","fromDate","fromString","fromCronDate","isNthWeekdayOfMonth","year","weekday","getUTCDay","count","daysInMonth","ms","getUTCMilliseconds","apply","getMilliseconds","str","findNext","target","originalTarget","fDomWeekDay","undefined","dowMatch","recurse","doing","res","resetLevel","increment","hasPreviousRun","internal","isFunction","v","toString","Function","unrefTimer","timer","Deno","maxDelay","scheduledJobs","fnOrOptions1","fnOrOptions2","func","_states","kill","blocking","previousRun","currentRun","once","currentTimeout","existing","find","j","push","fn","schedule","nextRun","prev","next","_next","nextRuns","n","previous","enumeration","getPattern","isRunning","nextRunTime","isScheduled","notIsKilled","isStopped","isBusy","msToNext","stop","clearTimeout","jobIndex","splice","pause","resume","waitMs","setTimeout","_checkTrigger","_trigger","async","initiationDate","await","context","_e","trigger","now","shouldRun","isBlocked","protect","_calculatePreviousRun","prevTimePlusInterval"],"mappings":"CAAA,SAAWA,OAAQC,SAClB,OAAOC,UAAY,UAAY,OAAOC,SAAW,YAAcA,OAAOD,QAAUD,QAAQ,EACxF,OAAOG,SAAW,YAAcA,OAAOC,IAAMD,OAAOH,OAAO,GAC1DD,OAAS,OAAOM,aAAe,YAAcA,WAAaN,QAAUO,KAAMP,OAAOQ,KAAOP,QAAQ,EACjG,GAAEQ,KAAM,WAAe,aA+DtB,S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6K,KAAK7K,QAAQ,EAAG,CACvE,OAAO,IACR,MAAO,GACL4K,UAAY,MACZjM,KAAKoL,QAAQtH,SAAW,GACxB9D,KAAKoL,QAAY,MACjBpL,KAAK0D,QAAQc,QAAUyH,QAAQ5K,QAAQ,GAAKrB,KAAK0D,QAAQc,OAAOnD,QAAQ,EACxE,CACD,OAAO,IACR,KAAO,CAEN,OAAO4K,OACR,CACD,EAUAlM,KAAK0F,UAAU4I,sBAAwB,SAAUnC,KAAM5B,gBACtD,MAAM2D,IAAM,IAAI3J,SAASyF,UAAW/J,KAAK0D,QAAQa,UAAYvE,KAAK0D,QAAQS,SAAS,EACnF,GAAInE,KAAK0D,QAAQW,QAAQhD,QAAQ,GAAK4M,IAAI5M,QAAQ,EAAG,CACpD6K,KAAOlM,KAAK0D,QAAQW,QACpByC,IAAIwH,qBAAuBpC,KAAK7K,QAAQ,EAAIrB,KAAK0D,QAAQO,SAAW,IACpE,MAAOqK,sBAAwBL,IAAI5M,QAAQ,EAAG,CAC7C6K,KAAO,IAAI5H,SAAS4H,KAAMlM,KAAK0D,QAAQa,UAAYvE,KAAK0D,QAAQS,SAAS,EAAEkG,UAAUrK,KAAKoL,QAAQvG,QAAS7E,KAAK0D,QAAS,IAAI,EAC7H4K,qBAAuBpC,KAAK7K,QAAQ,EAAIrB,KAAK0D,QAAQO,SAAW,GACjE,CACAqG,eAAiB,IAClB,CACA,MAAO,CAAC4B,KAAM5B,eACf,EAEAvK,KAAKA,KAAOA,KACZA,KAAKiL,cAAgBA,cAErB,OAAOjL,IAEP,CAAC"} \ No newline at end of file diff --git a/src/croner.js b/src/croner.js index 7ce5092..6fbbb5d 100644 --- a/src/croner.js +++ b/src/croner.js @@ -538,6 +538,9 @@ Cron.prototype._next = function (prev) { * This calculation is only necessary if the startAt time is before the current time. * Should only be called from the _next function. * @private + * @param {CronDate|Date|string|undefined} prev - previousRun + * @param {boolean} hasPreviousRun - has a previous run + * @returns {[{CronDate | undefined}, {boolean}]} - previousRun, hasPreviousRun **/ Cron.prototype._calculatePreviousRun = function (prev, hasPreviousRun) { const now = new CronDate(undefined, this.options.timezone || this.options.utcOffset);