croner 3.0.46 → 3.0.47

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "croner",
3
- "version": "3.0.46",
3
+ "version": "3.0.47",
4
4
  "description": "Isomorphic JavaScript cron parser and scheduler.",
5
5
  "author": "Hexagon <github.com/hexagon>",
6
6
  "contributors": [
package/src/croner.js CHANGED
@@ -143,6 +143,7 @@ Cron.prototype.previous = function () {
143
143
 
144
144
  /**
145
145
  * Internal version of next. Cron needs millseconds internally, hence _next.
146
+ * @private
146
147
  *
147
148
  * @param {Date} prev - Input pattern
148
149
  * @returns {CronNextResult | null} - Next run time
@@ -207,7 +208,6 @@ Cron.prototype.msToNext = function (prev) {
207
208
  /**
208
209
  * Schedule a new job
209
210
  *
210
- * @constructor
211
211
  * @param {CronOptions | Function} [options] - Options
212
212
  * @param {Function} [func] - Function to be run each iteration of pattern
213
213
  * @returns {CronJob}
@@ -264,8 +264,8 @@ Cron.prototype.schedule = function (opts, func) {
264
264
 
265
265
  /**
266
266
  * Schedule a new job
267
+ * @private
267
268
  *
268
- * @constructor
269
269
  * @param {Function} [func] - Function to be run each iteration of pattern
270
270
  * @returns {CronJob}
271
271
  */
package/types/croner.d.ts CHANGED
@@ -96,13 +96,7 @@ export class Cron {
96
96
  * @returns {Date | null} - Previous run time
97
97
  */
98
98
  previous(): Date | null;
99
- /**
100
- * Internal version of next. Cron needs millseconds internally, hence _next.
101
- *
102
- * @param {Date} prev - Input pattern
103
- * @returns {CronNextResult | null} - Next run time
104
- */
105
- _next(prev: Date): CronNextResult | null;
99
+ private _next;
106
100
  /**
107
101
  * Validate (and cleans) options. Raises error on failure.
108
102
  *
@@ -120,20 +114,12 @@ export class Cron {
120
114
  /**
121
115
  * Schedule a new job
122
116
  *
123
- * @constructor
124
117
  * @param {CronOptions | Function} [options] - Options
125
118
  * @param {Function} [func] - Function to be run each iteration of pattern
126
119
  * @returns {CronJob}
127
120
  */
128
121
  schedule(opts: any, func?: Function): CronJob;
129
- /**
130
- * Schedule a new job
131
- *
132
- * @constructor
133
- * @param {Function} [func] - Function to be run each iteration of pattern
134
- * @returns {CronJob}
135
- */
136
- _schedule(func?: Function): CronJob;
122
+ private _schedule;
137
123
  }
138
124
  import { CronDate } from "./date.js";
139
125
  import { CronPattern } from "./pattern.js";