@fileverse-dev/formulajs 4.4.37 → 4.4.38

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,4 +1,4 @@
1
- /* @fileverse-dev/formulajs v4.4.37 */
1
+ /* @fileverse-dev/formulajs v4.4.38 */
2
2
  var _excluded = [ "confirmations", "dataDecoded" ];
3
3
 
4
4
  function _objectWithoutProperties(e, t) {
@@ -8359,15 +8359,16 @@ function _typeof(o) {
8359
8359
  var WEEK_TYPES = [ [], [ 1, 2, 3, 4, 5, 6, 7 ], [ 7, 1, 2, 3, 4, 5, 6 ], [ 6, 0, 1, 2, 3, 4, 5 ], [], [], [], [], [], [], [], [ 7, 1, 2, 3, 4, 5, 6 ], [ 6, 7, 1, 2, 3, 4, 5 ], [ 5, 6, 7, 1, 2, 3, 4 ], [ 4, 5, 6, 7, 1, 2, 3 ], [ 3, 4, 5, 6, 7, 1, 2 ], [ 2, 3, 4, 5, 6, 7, 1 ], [ 1, 2, 3, 4, 5, 6, 7 ] ];
8360
8360
  var WEEKEND_TYPES = [ [], [ 6, 0 ], [ 0, 1 ], [ 1, 2 ], [ 2, 3 ], [ 3, 4 ], [ 4, 5 ], [ 5, 6 ], undefined, undefined, undefined, [ 0, 0 ], [ 1, 1 ], [ 2, 2 ], [ 3, 3 ], [ 4, 4 ], [ 5, 5 ], [ 6, 6 ] ];
8361
8361
  var datePartition = function datePartition(date) {
8362
+ var utc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
8362
8363
  var pad = function pad(n) {
8363
8364
  return n.toString().padStart(2, "0");
8364
8365
  };
8365
- var day = pad(date.getUTCDate());
8366
- var month = pad(date.getUTCMonth() + 1);
8367
- var year = date.getUTCFullYear();
8368
- var hours = pad(date.getUTCHours());
8369
- var minutes = pad(date.getUTCMinutes());
8370
- var seconds = pad(date.getUTCSeconds());
8366
+ var day = pad(utc ? date.getUTCDate() : date.getDate());
8367
+ var month = pad((utc ? date.getUTCMonth() : date.getMonth()) + 1);
8368
+ var year = utc ? date.getUTCFullYear() : date.getFullYear();
8369
+ var hours = pad(utc ? date.getUTCHours() : date.getHours());
8370
+ var minutes = pad(utc ? date.getUTCMinutes() : date.getMinutes());
8371
+ var seconds = pad(utc ? date.getUTCSeconds() : date.getSeconds());
8371
8372
  return {
8372
8373
  day: day,
8373
8374
  month: month,
@@ -8591,7 +8592,7 @@ function _typeof(o) {
8591
8592
  throw new Error("Invalid time_unit. Use 1 (sec), 2 (ms), or 3 (µs).");
8592
8593
  }
8593
8594
  var d = new Date(ms);
8594
- var _datePartition4 = datePartition(d), day = _datePartition4.day, month = _datePartition4.month, year = _datePartition4.year, hours = _datePartition4.hours, minutes = _datePartition4.minutes, seconds = _datePartition4.seconds;
8595
+ var _datePartition4 = datePartition(d, true), day = _datePartition4.day, month = _datePartition4.month, year = _datePartition4.year, hours = _datePartition4.hours, minutes = _datePartition4.minutes, seconds = _datePartition4.seconds;
8595
8596
  return "".concat(day, "/").concat(month, "/").concat(year, " ").concat(hours, ":").concat(minutes, ":").concat(seconds);
8596
8597
  }
8597
8598
  function SEQUENCE(rows) {