@creejs/commons-collection 2.0.8 → 2.0.10

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.
@@ -398,7 +398,7 @@ class TimeWheelCache extends k {
398
398
  deleteFirst () {
399
399
  const firstKey = this.first;
400
400
  if (firstKey == null) {
401
- return false
401
+ return
402
402
  }
403
403
  this.delete(firstKey);
404
404
  return firstKey
@@ -547,6 +547,10 @@ class Hour24TimeWheelCache extends k {
547
547
  this._init();
548
548
  }
549
549
 
550
+ keys () {
551
+ return this._cache.keys()
552
+ }
553
+
550
554
  get first () {
551
555
  // Based on the ES6 Standard, Map keeps order of elements added
552
556
  return this._cache.keys().next().value
@@ -687,7 +691,7 @@ class Hour24TimeWheelCache extends k {
687
691
  deleteFirst () {
688
692
  const firstKey = this.first;
689
693
  if (firstKey == null) {
690
- return false
694
+ return
691
695
  }
692
696
  this.delete(firstKey);
693
697
  return firstKey