@copart/ops-tool-kit 1.6.0-alpha.1 → 1.6.0

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.
@@ -33,7 +33,7 @@ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
33
33
  var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
34
34
 
35
35
  const name$e = "@copart/ops-tool-kit";
36
- const version$3 = "1.6.0-alpha.1";
36
+ const version$3 = "1.6.0";
37
37
  const main = "dist/ops-tool-kit.js";
38
38
  const style = "dist/ops-tool-kit.css";
39
39
  const files = [
@@ -40578,12 +40578,9 @@ function formatLink(link) {
40578
40578
  function padTo2Digits(num) {
40579
40579
  return num.toString().padStart(2, '0');
40580
40580
  }
40581
-
40582
- function getYesterdayDate() {
40581
+ function getTodayDate() {
40583
40582
  var today = new Date();
40584
- var yesterday = new Date(today);
40585
- yesterday.setDate(today.getDate() - 1);
40586
- return yesterday.getUTCFullYear() + '-' + padTo2Digits(yesterday.getUTCMonth() + 1) + '-' + padTo2Digits(yesterday.getUTCDate());
40583
+ return today.getUTCFullYear() + '-' + padTo2Digits(today.getUTCMonth() + 1) + '-' + padTo2Digits(today.getUTCDate());
40587
40584
  }
40588
40585
 
40589
40586
  var name="@firebase/database";var version="0.11.0";/**
@@ -44708,15 +44705,15 @@ function connect(firebaseConfig) {
44708
44705
  }
44709
44706
 
44710
44707
  function attachHandlers(setNotifications) {
44711
- var yesterday = getYesterdayDate();
44712
- firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(yesterday).on('value', function (snapshot) {
44708
+ var today = getTodayDate();
44709
+ firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(today).on('value', function (snapshot) {
44713
44710
  compose(setNotifications, filterNotifications, mapNotifications, values$1)(snapshot.val());
44714
44711
  });
44715
44712
  }
44716
44713
 
44717
44714
  function _refetchNotifications(setNotifications) {
44718
- var yesterday = getYesterdayDate();
44719
- firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(yesterday).once('value').then(function (snapshot) {
44715
+ var today = getTodayDate();
44716
+ firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(today).once('value').then(function (snapshot) {
44720
44717
  compose(setNotifications, filterNotifications, mapNotifications, values$1)(snapshot.val());
44721
44718
  });
44722
44719
  }