@digipair/skill-cron 0.93.0 → 0.94.0-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.
@@ -1,15 +1,9 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var fs = require('fs');
6
4
  var require$$0 = require('child_process');
7
5
 
8
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
-
10
- var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
11
-
12
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
6
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
13
7
 
14
8
  var dist = {};
15
9
 
@@ -164,11 +158,6 @@ function ownKeys(object, enumerableOnly) {
164
158
  var keys = Object.keys(object);
165
159
  if (Object.getOwnPropertySymbols) {
166
160
  var symbols = Object.getOwnPropertySymbols(object);
167
- if (enumerableOnly) {
168
- symbols = symbols.filter(function(sym) {
169
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
170
- });
171
- }
172
161
  keys.push.apply(keys, symbols);
173
162
  }
174
163
  return keys;
@@ -292,7 +281,7 @@ function _create_super$1(Derived) {
292
281
  return _possible_constructor_return$1(this, result);
293
282
  };
294
283
  }
295
- Object.defineProperty(luxon, "__esModule", {
284
+ Object.defineProperty(luxon, '__esModule', {
296
285
  value: true
297
286
  });
298
287
  // these aren't really private, but nor are they really useful to document
@@ -1839,7 +1828,7 @@ var singleton = null;
1839
1828
  else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);
1840
1829
  } else if (isNumber(input)) {
1841
1830
  return FixedOffsetZone.instance(input);
1842
- } else if (typeof input === "object" && "offset" in input && typeof input.offset === "function") {
1831
+ } else if ((typeof input === "undefined" ? "undefined" : _type_of$2(input)) === "object" && "offset" in input && typeof input.offset === "function") {
1843
1832
  // This is dumb, but the instanceof check above doesn't seem to really work
1844
1833
  // so we're duck checking it
1845
1834
  return input;
@@ -1848,26 +1837,26 @@ var singleton = null;
1848
1837
  }
1849
1838
  }
1850
1839
  var numberingSystems = {
1851
- arab: "[٠-٩]",
1852
- arabext: "[۰-۹]",
1853
- bali: "[᭐-᭙]",
1854
- beng: "[০-৯]",
1855
- deva: "[०-९]",
1856
- fullwide: "[0-9]",
1857
- gujr: "[૦-૯]",
1840
+ arab: "[\u0660-\u0669]",
1841
+ arabext: "[\u06F0-\u06F9]",
1842
+ bali: "[\u1B50-\u1B59]",
1843
+ beng: "[\u09E6-\u09EF]",
1844
+ deva: "[\u0966-\u096F]",
1845
+ fullwide: "[\uFF10-\uFF19]",
1846
+ gujr: "[\u0AE6-\u0AEF]",
1858
1847
  hanidec: "[〇|一|二|三|四|五|六|七|八|九]",
1859
- khmr: "[០-៩]",
1860
- knda: "[೦-೯]",
1861
- laoo: "[໐-໙]",
1862
- limb: "[᥆-᥏]",
1863
- mlym: "[൦-൯]",
1864
- mong: "[᠐-᠙]",
1865
- mymr: "[၀-၉]",
1866
- orya: "[୦-୯]",
1867
- tamldec: "[௦-௯]",
1868
- telu: "[౦-౯]",
1869
- thai: "[๐-๙]",
1870
- tibt: "[༠-༩]",
1848
+ khmr: "[\u17E0-\u17E9]",
1849
+ knda: "[\u0CE6-\u0CEF]",
1850
+ laoo: "[\u0ED0-\u0ED9]",
1851
+ limb: "[\u1946-\u194F]",
1852
+ mlym: "[\u0D66-\u0D6F]",
1853
+ mong: "[\u1810-\u1819]",
1854
+ mymr: "[\u1040-\u1049]",
1855
+ orya: "[\u0B66-\u0B6F]",
1856
+ tamldec: "[\u0BE6-\u0BEF]",
1857
+ telu: "[\u0C66-\u0C6F]",
1858
+ thai: "[\u0E50-\u0E59]",
1859
+ tibt: "[\u0F20-\u0F29]",
1871
1860
  latn: "\\d"
1872
1861
  };
1873
1862
  var numberingSystemsUTF16 = {
@@ -2424,7 +2413,7 @@ function hasOwnProperty(obj, prop) {
2424
2413
  function validateWeekSettings(settings) {
2425
2414
  if (settings == null) {
2426
2415
  return null;
2427
- } else if (typeof settings !== "object") {
2416
+ } else if ((typeof settings === "undefined" ? "undefined" : _type_of$2(settings)) !== "object") {
2428
2417
  throw new InvalidArgumentError("Week settings must be an object");
2429
2418
  } else {
2430
2419
  if (!integerBetween(settings.firstDay, 1, 7) || !integerBetween(settings.minimalDays, 1, 7) || !Array.isArray(settings.weekend) || settings.weekend.some(function(v) {
@@ -4603,7 +4592,7 @@ function removeZeroes(vals) {
4603
4592
  * @return {Duration}
4604
4593
  */ function fromObject(obj) {
4605
4594
  var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4606
- if (obj == null || typeof obj !== "object") {
4595
+ if (obj == null || (typeof obj === "undefined" ? "undefined" : _type_of$2(obj)) !== "object") {
4607
4596
  throw new InvalidArgumentError("Duration.fromObject: argument expected to be an object, got ".concat(obj === null ? "null" : typeof obj === "undefined" ? "undefined" : _type_of$2(obj)));
4608
4597
  }
4609
4598
  return new Duration({
@@ -4630,7 +4619,7 @@ function removeZeroes(vals) {
4630
4619
  return Duration.fromMillis(durationLike);
4631
4620
  } else if (Duration.isDuration(durationLike)) {
4632
4621
  return durationLike;
4633
- } else if (typeof durationLike === "object") {
4622
+ } else if ((typeof durationLike === "undefined" ? "undefined" : _type_of$2(durationLike)) === "object") {
4634
4623
  return Duration.fromObject(durationLike);
4635
4624
  } else {
4636
4625
  throw new InvalidArgumentError("Unknown duration argument ".concat(durationLike, " of type ").concat(typeof durationLike === "undefined" ? "undefined" : _type_of$2(durationLike)));
@@ -6089,7 +6078,7 @@ function tokenForPart(part, formatOpts, resolvedOpts) {
6089
6078
  }
6090
6079
  }
6091
6080
  var val = partTypeStyleToTokenVal[actualType];
6092
- if (typeof val === "object") {
6081
+ if ((typeof val === "undefined" ? "undefined" : _type_of$2(val)) === "object") {
6093
6082
  val = val[style];
6094
6083
  }
6095
6084
  if (val) {
@@ -6732,7 +6721,7 @@ function diffRelative(start, end, opts) {
6732
6721
  }
6733
6722
  function lastOpts(argList) {
6734
6723
  var opts = {}, args;
6735
- if (argList.length > 0 && typeof argList[argList.length - 1] === "object") {
6724
+ if (argList.length > 0 && _type_of$2(argList[argList.length - 1]) === "object") {
6736
6725
  opts = argList[argList.length - 1];
6737
6726
  args = Array.from(argList).slice(0, argList.length - 1);
6738
6727
  } else {
@@ -8885,7 +8874,7 @@ function lastOpts(argList) {
8885
8874
  return dateTimeish;
8886
8875
  } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {
8887
8876
  return DateTime.fromJSDate(dateTimeish);
8888
- } else if (dateTimeish && typeof dateTimeish === "object") {
8877
+ } else if (dateTimeish && (typeof dateTimeish === "undefined" ? "undefined" : _type_of$2(dateTimeish)) === "object") {
8889
8878
  return DateTime.fromObject(dateTimeish);
8890
8879
  } else {
8891
8880
  throw new InvalidArgumentError("Unknown datetime argument: ".concat(dateTimeish, ", of type ").concat(typeof dateTimeish === "undefined" ? "undefined" : _type_of$2(dateTimeish)));
@@ -8907,89 +8896,89 @@ luxon.Zone = Zone;
8907
8896
  var constants = {};
8908
8897
 
8909
8898
  (function (exports) {
8910
- Object.defineProperty(exports, "__esModule", {
8911
- value: true
8912
- });
8913
- exports.RE_RANGE = exports.RE_WILDCARDS = exports.PRESETS = exports.TIME_UNITS_LEN = exports.TIME_UNITS = exports.TIME_UNITS_MAP = exports.ALIASES = exports.PARSE_DEFAULTS = exports.CONSTRAINTS = void 0;
8914
- exports.CONSTRAINTS = Object.freeze({
8915
- second: [
8916
- 0,
8917
- 59
8918
- ],
8919
- minute: [
8920
- 0,
8921
- 59
8922
- ],
8923
- hour: [
8924
- 0,
8925
- 23
8926
- ],
8927
- dayOfMonth: [
8928
- 1,
8929
- 31
8930
- ],
8931
- month: [
8932
- 1,
8933
- 12
8934
- ],
8935
- dayOfWeek: [
8936
- 0,
8937
- 7
8938
- ]
8939
- });
8940
- exports.PARSE_DEFAULTS = Object.freeze({
8941
- second: "0",
8942
- minute: "*",
8943
- hour: "*",
8944
- dayOfMonth: "*",
8945
- month: "*",
8946
- dayOfWeek: "*"
8947
- });
8948
- exports.ALIASES = Object.freeze({
8949
- jan: 1,
8950
- feb: 2,
8951
- mar: 3,
8952
- apr: 4,
8953
- may: 5,
8954
- jun: 6,
8955
- jul: 7,
8956
- aug: 8,
8957
- sep: 9,
8958
- oct: 10,
8959
- nov: 11,
8960
- dec: 12,
8961
- sun: 0,
8962
- mon: 1,
8963
- tue: 2,
8964
- wed: 3,
8965
- thu: 4,
8966
- fri: 5,
8967
- sat: 6
8968
- });
8969
- exports.TIME_UNITS_MAP = Object.freeze({
8970
- SECOND: "second",
8971
- MINUTE: "minute",
8972
- HOUR: "hour",
8973
- DAY_OF_MONTH: "dayOfMonth",
8974
- MONTH: "month",
8975
- DAY_OF_WEEK: "dayOfWeek"
8976
- });
8977
- exports.TIME_UNITS = Object.freeze(Object.values(exports.TIME_UNITS_MAP));
8978
- exports.TIME_UNITS_LEN = exports.TIME_UNITS.length;
8979
- exports.PRESETS = Object.freeze({
8980
- "@yearly": "0 0 0 1 1 *",
8981
- "@monthly": "0 0 0 1 * *",
8982
- "@weekly": "0 0 0 * * 0",
8983
- "@daily": "0 0 0 * * *",
8984
- "@hourly": "0 0 * * * *",
8985
- "@minutely": "0 * * * * *",
8986
- "@secondly": "* * * * * *",
8987
- "@weekdays": "0 0 0 * * 1-5",
8988
- "@weekends": "0 0 0 * * 0,6"
8989
- });
8990
- exports.RE_WILDCARDS = /\*/g;
8991
- exports.RE_RANGE = /^(\d+)(?:-(\d+))?(?:\/(\d+))?$/g;
8992
- }(constants));
8899
+ Object.defineProperty(exports, "__esModule", {
8900
+ value: true
8901
+ });
8902
+ exports.RE_RANGE = exports.RE_WILDCARDS = exports.PRESETS = exports.TIME_UNITS_LEN = exports.TIME_UNITS = exports.TIME_UNITS_MAP = exports.ALIASES = exports.PARSE_DEFAULTS = exports.CONSTRAINTS = void 0;
8903
+ exports.CONSTRAINTS = Object.freeze({
8904
+ second: [
8905
+ 0,
8906
+ 59
8907
+ ],
8908
+ minute: [
8909
+ 0,
8910
+ 59
8911
+ ],
8912
+ hour: [
8913
+ 0,
8914
+ 23
8915
+ ],
8916
+ dayOfMonth: [
8917
+ 1,
8918
+ 31
8919
+ ],
8920
+ month: [
8921
+ 1,
8922
+ 12
8923
+ ],
8924
+ dayOfWeek: [
8925
+ 0,
8926
+ 7
8927
+ ]
8928
+ });
8929
+ exports.PARSE_DEFAULTS = Object.freeze({
8930
+ second: '0',
8931
+ minute: '*',
8932
+ hour: '*',
8933
+ dayOfMonth: '*',
8934
+ month: '*',
8935
+ dayOfWeek: '*'
8936
+ });
8937
+ exports.ALIASES = Object.freeze({
8938
+ jan: 1,
8939
+ feb: 2,
8940
+ mar: 3,
8941
+ apr: 4,
8942
+ may: 5,
8943
+ jun: 6,
8944
+ jul: 7,
8945
+ aug: 8,
8946
+ sep: 9,
8947
+ oct: 10,
8948
+ nov: 11,
8949
+ dec: 12,
8950
+ sun: 0,
8951
+ mon: 1,
8952
+ tue: 2,
8953
+ wed: 3,
8954
+ thu: 4,
8955
+ fri: 5,
8956
+ sat: 6
8957
+ });
8958
+ exports.TIME_UNITS_MAP = Object.freeze({
8959
+ SECOND: 'second',
8960
+ MINUTE: 'minute',
8961
+ HOUR: 'hour',
8962
+ DAY_OF_MONTH: 'dayOfMonth',
8963
+ MONTH: 'month',
8964
+ DAY_OF_WEEK: 'dayOfWeek'
8965
+ });
8966
+ exports.TIME_UNITS = Object.freeze(Object.values(exports.TIME_UNITS_MAP));
8967
+ exports.TIME_UNITS_LEN = exports.TIME_UNITS.length;
8968
+ exports.PRESETS = Object.freeze({
8969
+ '@yearly': '0 0 0 1 1 *',
8970
+ '@monthly': '0 0 0 1 * *',
8971
+ '@weekly': '0 0 0 * * 0',
8972
+ '@daily': '0 0 0 * * *',
8973
+ '@hourly': '0 0 * * * *',
8974
+ '@minutely': '0 * * * * *',
8975
+ '@secondly': '* * * * * *',
8976
+ '@weekdays': '0 0 0 * * 1-5',
8977
+ '@weekends': '0 0 0 * * 0,6'
8978
+ });
8979
+ exports.RE_WILDCARDS = /\*/g;
8980
+ exports.RE_RANGE = /^(\d+)(?:-(\d+))?(?:\/(\d+))?$/g;
8981
+ } (constants));
8993
8982
 
8994
8983
  var errors = {};
8995
8984
 
@@ -9162,7 +9151,6 @@ function _defineProperties$1(target, props) {
9162
9151
  }
9163
9152
  function _create_class$1(Constructor, protoProps, staticProps) {
9164
9153
  if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
9165
- if (staticProps) _defineProperties$1(Constructor, staticProps);
9166
9154
  return Constructor;
9167
9155
  }
9168
9156
  function _instanceof$1(left, right) {
@@ -9237,14 +9225,14 @@ var CronTime = /*#__PURE__*/ function() {
9237
9225
  this.month = {};
9238
9226
  this.dayOfWeek = {};
9239
9227
  if (timeZone != null && utcOffset != null) {
9240
- throw new errors_1$1.ExclusiveParametersError("timeZone", "utcOffset");
9228
+ throw new errors_1$1.ExclusiveParametersError('timeZone', 'utcOffset');
9241
9229
  }
9242
9230
  if (timeZone) {
9243
9231
  var dt = luxon_1.DateTime.fromObject({}, {
9244
9232
  zone: timeZone
9245
9233
  });
9246
9234
  if (!dt.isValid) {
9247
- throw new errors_1$1.CronError("Invalid timezone.");
9235
+ throw new errors_1$1.CronError('Invalid timezone.');
9248
9236
  }
9249
9237
  this.timeZone = timeZone;
9250
9238
  }
@@ -9274,20 +9262,20 @@ var CronTime = /*#__PURE__*/ function() {
9274
9262
  date = date.setZone(this.timeZone);
9275
9263
  }
9276
9264
  if (this.utcOffset !== undefined) {
9277
- var sign = this.utcOffset < 0 ? "-" : "+";
9265
+ var sign = this.utcOffset < 0 ? '-' : '+';
9278
9266
  var offsetHours = Math.trunc(this.utcOffset / 60);
9279
- var offsetHoursStr = String(Math.abs(offsetHours)).padStart(2, "0");
9267
+ var offsetHoursStr = String(Math.abs(offsetHours)).padStart(2, '0');
9280
9268
  var offsetMins = Math.abs(this.utcOffset - offsetHours * 60);
9281
- var offsetMinsStr = String(offsetMins).padStart(2, "0");
9269
+ var offsetMinsStr = String(offsetMins).padStart(2, '0');
9282
9270
  var utcZone = "UTC".concat(sign).concat(offsetHoursStr, ":").concat(offsetMinsStr);
9283
9271
  date = date.setZone(utcZone);
9284
9272
  if (!date.isValid) {
9285
- throw new errors_1$1.CronError("ERROR: You specified an invalid UTC offset.");
9273
+ throw new errors_1$1.CronError('ERROR: You specified an invalid UTC offset.');
9286
9274
  }
9287
9275
  }
9288
9276
  if (this.realDate) {
9289
9277
  if (luxon_1.DateTime.local() > date) {
9290
- throw new errors_1$1.CronError("WARNING: Date in past. Will never be fired.");
9278
+ throw new errors_1$1.CronError('WARNING: Date in past. Will never be fired.');
9291
9279
  }
9292
9280
  return date;
9293
9281
  }
@@ -9312,7 +9300,7 @@ var CronTime = /*#__PURE__*/ function() {
9312
9300
  {
9313
9301
  key: "toString",
9314
9302
  value: function toString() {
9315
- return this.toJSON().join(" ");
9303
+ return this.toJSON().join(' ');
9316
9304
  }
9317
9305
  },
9318
9306
  {
@@ -9345,7 +9333,7 @@ var CronTime = /*#__PURE__*/ function() {
9345
9333
  }
9346
9334
  }
9347
9335
  if (!date.isValid) {
9348
- throw new errors_1$1.CronError("ERROR: You specified an invalid date.");
9336
+ throw new errors_1$1.CronError('ERROR: You specified an invalid date.');
9349
9337
  }
9350
9338
  var maxMatch = luxon_1.DateTime.now().plus({
9351
9339
  years: 8
@@ -9611,13 +9599,13 @@ var CronTime = /*#__PURE__*/ function() {
9611
9599
  key: "_wcOrAll",
9612
9600
  value: function _wcOrAll(unit) {
9613
9601
  if (this._hasAll(unit)) {
9614
- return "*";
9602
+ return '*';
9615
9603
  }
9616
9604
  var all = [];
9617
9605
  for(var time in this[unit]){
9618
9606
  all.push(time);
9619
9607
  }
9620
- return all.join(",");
9608
+ return all.join(',');
9621
9609
  }
9622
9610
  },
9623
9611
  {
@@ -9650,10 +9638,10 @@ var CronTime = /*#__PURE__*/ function() {
9650
9638
  });
9651
9639
  var units = source.trim().split(/\s+/);
9652
9640
  if (units.length < constants_1.TIME_UNITS_LEN - 1) {
9653
- throw new errors_1$1.CronError("Too few fields");
9641
+ throw new errors_1$1.CronError('Too few fields');
9654
9642
  }
9655
9643
  if (units.length > constants_1.TIME_UNITS_LEN) {
9656
- throw new errors_1$1.CronError("Too many fields");
9644
+ throw new errors_1$1.CronError('Too many fields');
9657
9645
  }
9658
9646
  var unitsLen = units.length;
9659
9647
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
@@ -9688,15 +9676,15 @@ var CronTime = /*#__PURE__*/ function() {
9688
9676
  var constraints = constants_1.CONSTRAINTS[unit];
9689
9677
  var low = constraints[0];
9690
9678
  var high = constraints[1];
9691
- var fields = value.split(",");
9679
+ var fields = value.split(',');
9692
9680
  fields.forEach(function(field) {
9693
- var wildcardIndex = field.indexOf("*");
9681
+ var wildcardIndex = field.indexOf('*');
9694
9682
  if (wildcardIndex !== -1 && wildcardIndex !== 0) {
9695
9683
  throw new errors_1$1.CronError("Field (".concat(field, ") has an invalid wildcard expression"));
9696
9684
  }
9697
9685
  });
9698
9686
  value = value.replace(constants_1.RE_WILDCARDS, "".concat(low, "-").concat(high));
9699
- var allRanges = value.split(",");
9687
+ var allRanges = value.split(',');
9700
9688
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
9701
9689
  try {
9702
9690
  for(var _iterator = allRanges[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -9707,7 +9695,7 @@ var CronTime = /*#__PURE__*/ function() {
9707
9695
  var lower = parseInt(mLower, 10);
9708
9696
  var upper = mUpper !== undefined ? parseInt(mUpper, 10) : undefined;
9709
9697
  var wasStepDefined = mStep !== undefined;
9710
- var step = parseInt(mStep !== null && mStep !== void 0 ? mStep : "1", 10);
9698
+ var step = parseInt(mStep !== null && mStep !== void 0 ? mStep : '1', 10);
9711
9699
  if (step === 0) {
9712
9700
  throw new errors_1$1.CronError("Field (".concat(unit, ") has a step of zero"));
9713
9701
  }
@@ -9729,7 +9717,7 @@ var CronTime = /*#__PURE__*/ function() {
9729
9717
  typeObj[pointer] = true;
9730
9718
  pointer += step;
9731
9719
  }while (pointer <= upper);
9732
- if (unit === "dayOfWeek") {
9720
+ if (unit === 'dayOfWeek') {
9733
9721
  if (!typeObj[0] && !!typeObj[7]) typeObj[0] = typeObj[7];
9734
9722
  delete typeObj[7];
9735
9723
  }
@@ -9941,7 +9929,7 @@ Object.defineProperty(job, "__esModule", {
9941
9929
  value: true
9942
9930
  });
9943
9931
  job.CronJob = void 0;
9944
- var child_process_1 = require$$0__default["default"];
9932
+ var child_process_1 = require$$0;
9945
9933
  var errors_1 = errors;
9946
9934
  var time_1 = time;
9947
9935
  var CronJob = /*#__PURE__*/ function() {
@@ -9958,7 +9946,7 @@ var CronJob = /*#__PURE__*/ function() {
9958
9946
  this.waitForCompletion = Boolean(waitForCompletion);
9959
9947
  this.errorHandler = errorHandler;
9960
9948
  if (timeZone != null && utcOffset != null) {
9961
- throw new errors_1.ExclusiveParametersError("timeZone", "utcOffset");
9949
+ throw new errors_1.ExclusiveParametersError('timeZone', 'utcOffset');
9962
9950
  }
9963
9951
  if (timeZone != null) {
9964
9952
  this.cronTime = new time_1.CronTime(cronTime, timeZone, null);
@@ -9995,16 +9983,16 @@ var CronJob = /*#__PURE__*/ function() {
9995
9983
  value: function _fnWrap(cmd) {
9996
9984
  var _a, _b;
9997
9985
  switch(typeof cmd === "undefined" ? "undefined" : _type_of(cmd)){
9998
- case "function":
9986
+ case 'function':
9999
9987
  {
10000
9988
  return cmd;
10001
9989
  }
10002
- case "string":
9990
+ case 'string':
10003
9991
  {
10004
- var _cmd_split = _to_array(cmd.split(" ")), command = _cmd_split[0], args = _cmd_split.slice(1);
9992
+ var _cmd_split = _to_array(cmd.split(' ')), command = _cmd_split[0], args = _cmd_split.slice(1);
10005
9993
  return child_process_1.spawn.bind(undefined, command !== null && command !== void 0 ? command : cmd, args, {});
10006
9994
  }
10007
- case "object":
9995
+ case 'object':
10008
9996
  {
10009
9997
  return child_process_1.spawn.bind(undefined, cmd.command, (_a = cmd.args) !== null && _a !== void 0 ? _a : [], (_b = cmd.options) !== null && _b !== void 0 ? _b : {});
10010
9998
  }
@@ -10014,7 +10002,7 @@ var CronJob = /*#__PURE__*/ function() {
10014
10002
  {
10015
10003
  key: "addCallback",
10016
10004
  value: function addCallback(callback) {
10017
- if (typeof callback === "function") {
10005
+ if (typeof callback === 'function') {
10018
10006
  this._callbacks.push(callback);
10019
10007
  }
10020
10008
  }
@@ -10023,7 +10011,7 @@ var CronJob = /*#__PURE__*/ function() {
10023
10011
  key: "setTime",
10024
10012
  value: function setTime(time) {
10025
10013
  if (!_instanceof(time, time_1.CronTime)) {
10026
- throw new errors_1.CronError("time must be an instance of CronTime.");
10014
+ throw new errors_1.CronError('time must be an instance of CronTime.');
10027
10015
  }
10028
10016
  var wasRunning = this.running;
10029
10017
  this.stop();
@@ -10127,7 +10115,7 @@ var CronJob = /*#__PURE__*/ function() {
10127
10115
  case 10:
10128
10116
  error = _state.sent();
10129
10117
  if (this.errorHandler != null) this.errorHandler(error);
10130
- else console.error("[Cron] error in callback", error);
10118
+ else console.error('[Cron] error in callback', error);
10131
10119
  return [
10132
10120
  3,
10133
10121
  12
@@ -10164,7 +10152,7 @@ var CronJob = /*#__PURE__*/ function() {
10164
10152
  var setCronTimeout = function(t) {
10165
10153
  startTime = Date.now();
10166
10154
  _this._timeout = setTimeout(callbackWrapper, t);
10167
- if (_this.unrefTimeout && typeof _this._timeout.unref === "function") {
10155
+ if (_this.unrefTimeout && typeof _this._timeout.unref === 'function') {
10168
10156
  _this._timeout.unref();
10169
10157
  }
10170
10158
  };
@@ -10219,7 +10207,7 @@ var CronJob = /*#__PURE__*/ function() {
10219
10207
  return _ts_generator(this, function(_state) {
10220
10208
  switch(_state.label){
10221
10209
  case 0:
10222
- if (typeof this.onComplete !== "function") return [
10210
+ if (typeof this.onComplete !== 'function') return [
10223
10211
  2
10224
10212
  ];
10225
10213
  _state.label = 1;
@@ -10242,7 +10230,7 @@ var CronJob = /*#__PURE__*/ function() {
10242
10230
  ];
10243
10231
  case 3:
10244
10232
  error = _state.sent();
10245
- console.error("[Cron] error in onComplete callback:", error);
10233
+ console.error('[Cron] error in onComplete callback:', error);
10246
10234
  return [
10247
10235
  3,
10248
10236
  4
@@ -10329,7 +10317,7 @@ var CronJob = /*#__PURE__*/ function() {
10329
10317
  key: "from",
10330
10318
  value: function from(params) {
10331
10319
  if (params.timeZone != null && params.utcOffset != null) {
10332
- throw new errors_1.ExclusiveParametersError("timeZone", "utcOffset");
10320
+ throw new errors_1.ExclusiveParametersError('timeZone', 'utcOffset');
10333
10321
  }
10334
10322
  if (params.timeZone != null) {
10335
10323
  return new CronJob(params.cronTime, params.onTick, params.onComplete, params.start, params.timeZone, params.context, params.runOnInit, params.utcOffset, params.unrefTimeout, params.waitForCompletion, params.errorHandler);
@@ -10346,34 +10334,34 @@ var CronJob = /*#__PURE__*/ function() {
10346
10334
  job.CronJob = CronJob;
10347
10335
 
10348
10336
  (function (exports) {
10349
- Object.defineProperty(exports, "__esModule", {
10350
- value: true
10351
- });
10352
- exports.timeout = exports.sendAt = exports.CronTime = exports.CronJob = void 0;
10353
- var time_1 = time;
10354
- var job_1 = job;
10355
- Object.defineProperty(exports, "CronJob", {
10356
- enumerable: true,
10357
- get: function get() {
10358
- return job_1.CronJob;
10359
- }
10360
- });
10361
- var time_2 = time;
10362
- Object.defineProperty(exports, "CronTime", {
10363
- enumerable: true,
10364
- get: function get() {
10365
- return time_2.CronTime;
10366
- }
10367
- });
10368
- var sendAt = function(cronTime) {
10369
- return new time_1.CronTime(cronTime).sendAt();
10370
- };
10371
- exports.sendAt = sendAt;
10372
- var timeout = function(cronTime) {
10373
- return new time_1.CronTime(cronTime).getTimeout();
10374
- };
10375
- exports.timeout = timeout;
10376
- }(dist));
10337
+ Object.defineProperty(exports, "__esModule", {
10338
+ value: true
10339
+ });
10340
+ exports.timeout = exports.sendAt = exports.CronTime = exports.CronJob = void 0;
10341
+ var time_1 = time;
10342
+ var job_1 = job;
10343
+ Object.defineProperty(exports, "CronJob", {
10344
+ enumerable: true,
10345
+ get: function get() {
10346
+ return job_1.CronJob;
10347
+ }
10348
+ });
10349
+ var time_2 = time;
10350
+ Object.defineProperty(exports, "CronTime", {
10351
+ enumerable: true,
10352
+ get: function get() {
10353
+ return time_2.CronTime;
10354
+ }
10355
+ });
10356
+ var sendAt = function(cronTime) {
10357
+ return new time_1.CronTime(cronTime).sendAt();
10358
+ };
10359
+ exports.sendAt = sendAt;
10360
+ var timeout = function(cronTime) {
10361
+ return new time_1.CronTime(cronTime).getTimeout();
10362
+ };
10363
+ exports.timeout = timeout;
10364
+ } (dist));
10377
10365
 
10378
10366
  /**
10379
10367
  * Convert array of 16 byte values to UUID string format of the form:
@@ -10389,7 +10377,7 @@ function unsafeStringify(arr) {
10389
10377
  //
10390
10378
  // Note to future-self: No, you can't remove the `toLowerCase()` call.
10391
10379
  // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351
10392
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
10380
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
10393
10381
  }
10394
10382
 
10395
10383
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
@@ -10401,21 +10389,21 @@ function rng() {
10401
10389
  // lazy load so that environments that need to polyfill have a chance to do so
10402
10390
  if (!getRandomValues) {
10403
10391
  // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
10404
- getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
10392
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
10405
10393
  if (!getRandomValues) {
10406
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
10394
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
10407
10395
  }
10408
10396
  }
10409
10397
  return getRandomValues(rnds8);
10410
10398
  }
10411
10399
 
10412
- var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
10400
+ var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
10413
10401
  var native = {
10414
10402
  randomUUID: randomUUID
10415
10403
  };
10416
10404
 
10417
10405
  function v4(options, buf, offset) {
10418
- if (native.randomUUID && !buf && !options) {
10406
+ if (native.randomUUID && true && !options) {
10419
10407
  return native.randomUUID();
10420
10408
  }
10421
10409
  options = options || {};
@@ -10423,14 +10411,6 @@ function v4(options, buf, offset) {
10423
10411
  // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
10424
10412
  rnds[6] = rnds[6] & 0x0f | 0x40;
10425
10413
  rnds[8] = rnds[8] & 0x3f | 0x80;
10426
- // Copy bytes to buffer, if provided
10427
- if (buf) {
10428
- offset = offset || 0;
10429
- for(var i = 0; i < 16; ++i){
10430
- buf[offset + i] = rnds[i];
10431
- }
10432
- return buf;
10433
- }
10434
10414
  return unsafeStringify(rnds);
10435
10415
  }
10436
10416