mobx 6.13.4 → 6.13.6

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.
@@ -4751,19 +4751,18 @@ var ObservableSet = /*#__PURE__*/function () {
4751
4751
  return this.data_.has(this.dehanceValue_(value));
4752
4752
  };
4753
4753
  _proto.entries = function entries() {
4754
- var nextIndex = 0;
4755
- var keys = Array.from(this.keys());
4756
- var values = Array.from(this.values());
4754
+ var values = this.values();
4757
4755
  return makeIterableForSet({
4758
4756
  next: function next() {
4759
- var index = nextIndex;
4760
- nextIndex += 1;
4761
- return index < values.length ? {
4762
- value: [keys[index], values[index]],
4763
- done: false
4757
+ var _values$next = values.next(),
4758
+ value = _values$next.value,
4759
+ done = _values$next.done;
4760
+ return !done ? {
4761
+ value: [value, value],
4762
+ done: done
4764
4763
  } : {
4765
4764
  value: undefined,
4766
- done: true
4765
+ done: done
4767
4766
  };
4768
4767
  }
4769
4768
  });
@@ -4774,16 +4773,18 @@ var ObservableSet = /*#__PURE__*/function () {
4774
4773
  _proto.values = function values() {
4775
4774
  this.atom_.reportObserved();
4776
4775
  var self = this;
4777
- var nextIndex = 0;
4778
- var observableValues = Array.from(this.data_.values());
4776
+ var values = this.data_.values();
4779
4777
  return makeIterableForSet({
4780
4778
  next: function next() {
4781
- return nextIndex < observableValues.length ? {
4782
- value: self.dehanceValue_(observableValues[nextIndex++]),
4783
- done: false
4779
+ var _values$next2 = values.next(),
4780
+ value = _values$next2.value,
4781
+ done = _values$next2.done;
4782
+ return !done ? {
4783
+ value: self.dehanceValue_(value),
4784
+ done: done
4784
4785
  } : {
4785
4786
  value: undefined,
4786
- done: true
4787
+ done: done
4787
4788
  };
4788
4789
  }
4789
4790
  });
@@ -5877,8 +5878,15 @@ function unwrap(a) {
5877
5878
  return a;
5878
5879
  }
5879
5880
 
5881
+ var _getGlobal$Iterator;
5882
+ // safely get iterator prototype if available
5883
+ var maybeIteratorPrototype = ((_getGlobal$Iterator = /*#__PURE__*/getGlobal().Iterator) == null ? void 0 : _getGlobal$Iterator.prototype) || {};
5880
5884
  function makeIterable(iterator) {
5881
- return Object.assign(Object.create(Iterator.prototype), iterator);
5885
+ iterator[Symbol.iterator] = getSelf;
5886
+ return Object.assign(Object.create(maybeIteratorPrototype), iterator);
5887
+ }
5888
+ function getSelf() {
5889
+ return this;
5882
5890
  }
5883
5891
 
5884
5892
  function isAnnotation(thing) {