@bluemarble/bm-components 0.0.59 → 0.0.61

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/dist/esm/index.js CHANGED
@@ -15307,12 +15307,10 @@ function DateFormat(date) {
15307
15307
  const data = {
15308
15308
  utc: -3
15309
15309
  };
15310
- function formateDateWithCurrentUTC(newDate) {
15311
- if (newDate) {
15312
- date = moment(newDate)
15313
- .add(data.utc + 3, 'hours')
15314
- .toDate();
15315
- }
15310
+ if (date) {
15311
+ date = moment(date)
15312
+ .add(data.utc + 3, 'hours')
15313
+ .toDate();
15316
15314
  }
15317
15315
  function momentWithDate(utc = false) {
15318
15316
  const current = moment(date).utc(utc);
@@ -15323,7 +15321,7 @@ function DateFormat(date) {
15323
15321
  let utc = forceUTC || true;
15324
15322
  if (String(date).endsWith('Z'))
15325
15323
  utc = false;
15326
- return Object.assign(Object.assign({}, momentWithDate(utc)), { toDateOrUndefined: () => !date ? undefined : momentWithDate(utc).toDate() });
15324
+ return momentWithDate(utc);
15327
15325
  }
15328
15326
  function now() {
15329
15327
  if (process.env.NODE_ENV === 'development') {
@@ -15342,7 +15340,7 @@ function DateFormat(date) {
15342
15340
  utc: (newUTC) => {
15343
15341
  data.utc = newUTC;
15344
15342
  return (newDate) => {
15345
- formateDateWithCurrentUTC(newDate);
15343
+ date = newDate;
15346
15344
  return methods;
15347
15345
  };
15348
15346
  }