mobx 6.15.0 → 6.15.1

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.
@@ -294,6 +294,13 @@
294
294
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
295
295
  return n;
296
296
  }
297
+ function _construct(t, e, r) {
298
+ if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
299
+ var o = [null];
300
+ o.push.apply(o, e);
301
+ var p = new (t.bind.apply(t, o))();
302
+ return r && _setPrototypeOf(p, r.prototype), p;
303
+ }
297
304
  function _defineProperties(e, r) {
298
305
  for (var t = 0; t < r.length; t++) {
299
306
  var o = r[t];
@@ -331,9 +338,29 @@
331
338
  return n;
332
339
  }, _extends.apply(null, arguments);
333
340
  }
341
+ function _getPrototypeOf(t) {
342
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
343
+ return t.__proto__ || Object.getPrototypeOf(t);
344
+ }, _getPrototypeOf(t);
345
+ }
334
346
  function _inheritsLoose(t, o) {
335
347
  t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
336
348
  }
349
+ function _isNativeFunction(t) {
350
+ try {
351
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
352
+ } catch (n) {
353
+ return "function" == typeof t;
354
+ }
355
+ }
356
+ function _isNativeReflectConstruct() {
357
+ try {
358
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
359
+ } catch (t) {}
360
+ return (_isNativeReflectConstruct = function () {
361
+ return !!t;
362
+ })();
363
+ }
337
364
  function _setPrototypeOf(t, e) {
338
365
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
339
366
  return t.__proto__ = e, t;
@@ -360,6 +387,28 @@
360
387
  return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
361
388
  }
362
389
  }
390
+ function _wrapNativeSuper(t) {
391
+ var r = "function" == typeof Map ? new Map() : void 0;
392
+ return _wrapNativeSuper = function (t) {
393
+ if (null === t || !_isNativeFunction(t)) return t;
394
+ if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
395
+ if (void 0 !== r) {
396
+ if (r.has(t)) return r.get(t);
397
+ r.set(t, Wrapper);
398
+ }
399
+ function Wrapper() {
400
+ return _construct(t, arguments, _getPrototypeOf(this).constructor);
401
+ }
402
+ return Wrapper.prototype = Object.create(t.prototype, {
403
+ constructor: {
404
+ value: Wrapper,
405
+ enumerable: !1,
406
+ writable: !0,
407
+ configurable: !0
408
+ }
409
+ }), _setPrototypeOf(Wrapper, t);
410
+ }, _wrapNativeSuper(t);
411
+ }
363
412
 
364
413
  var storedAnnotationsSymbol = /*#__PURE__*/Symbol("mobx-stored-annotations");
365
414
  /**
@@ -1578,7 +1627,7 @@
1578
1627
  }
1579
1628
  }
1580
1629
  // to check for cycles
1581
- ;
1630
+ ;
1582
1631
  /**
1583
1632
  * Returns the current value of this computed value.
1584
1633
  * Will evaluate its computation first if needed.
@@ -3018,10 +3067,21 @@
3018
3067
  }
3019
3068
 
3020
3069
  var generatorId = 0;
3021
- function FlowCancellationError() {
3022
- this.message = "FLOW_CANCELLED";
3023
- }
3024
- FlowCancellationError.prototype = /*#__PURE__*/Object.create(Error.prototype);
3070
+ var FlowCancellationError = /*#__PURE__*/function (_Error) {
3071
+ function FlowCancellationError() {
3072
+ var _this;
3073
+ _this = _Error.call(this, "FLOW_CANCELLED") || this;
3074
+ Object.setPrototypeOf(_this, (this instanceof FlowCancellationError ? this.constructor : void 0).prototype);
3075
+ _this.name = "FlowCancellationError";
3076
+ return _this;
3077
+ }
3078
+ _inheritsLoose(FlowCancellationError, _Error);
3079
+ var _proto = FlowCancellationError.prototype;
3080
+ _proto.toString = function toString() {
3081
+ return "Error: " + this.message;
3082
+ };
3083
+ return FlowCancellationError;
3084
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
3025
3085
  function isFlowCancellationError(error) {
3026
3086
  return error instanceof FlowCancellationError;
3027
3087
  }
@@ -5033,7 +5093,7 @@
5033
5093
  }
5034
5094
  }
5035
5095
  // Trap for "in"
5036
- ;
5096
+ ;
5037
5097
  _proto.has_ = function has_(key) {
5038
5098
  if (!globalState.trackingDerivation) {
5039
5099
  // Skip key subscription outside derivation
@@ -5165,7 +5225,7 @@
5165
5225
  return true;
5166
5226
  }
5167
5227
  // If original descriptor becomes relevant, move this to annotation directly
5168
- ;
5228
+ ;
5169
5229
  _proto.defineObservableProperty_ = function defineObservableProperty_(key, value, enhancer, proxyTrap) {
5170
5230
  if (proxyTrap === void 0) {
5171
5231
  proxyTrap = false;
@@ -5217,7 +5277,7 @@
5217
5277
  return true;
5218
5278
  }
5219
5279
  // If original descriptor becomes relevant, move this to annotation directly
5220
- ;
5280
+ ;
5221
5281
  _proto.defineComputedProperty_ = function defineComputedProperty_(key, options, proxyTrap) {
5222
5282
  if (proxyTrap === void 0) {
5223
5283
  proxyTrap = false;