mobx 6.6.1 → 6.6.2

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.
@@ -428,7 +428,7 @@
428
428
  var fieldName = prototype.constructor.name + ".prototype." + key.toString();
429
429
  var currentAnnotationType = prototype[storedAnnotationsSymbol][key].annotationType_;
430
430
  var requestedAnnotationType = annotation.annotationType_;
431
- die("Cannot apply '@" + requestedAnnotationType + "' to '" + fieldName + "':" + ("\nThe field is already decorated with '@" + currentAnnotationType + "'.") + "\nRe-decorating fields is not allowed." + "\nUse '@override' decorator for methods overriden by subclass.");
431
+ die("Cannot apply '@" + requestedAnnotationType + "' to '" + fieldName + "':" + ("\nThe field is already decorated with '@" + currentAnnotationType + "'.") + "\nRe-decorating fields is not allowed." + "\nUse '@override' decorator for methods overridden by subclass.");
432
432
  }
433
433
  }
434
434
  /**
@@ -5989,16 +5989,18 @@
5989
5989
  var fieldName = adm.name_ + "." + key.toString();
5990
5990
  var currentAnnotationType = adm.appliedAnnotations_[key].annotationType_;
5991
5991
  var requestedAnnotationType = annotation.annotationType_;
5992
- die("Cannot apply '" + requestedAnnotationType + "' to '" + fieldName + "':" + ("\nThe field is already annotated with '" + currentAnnotationType + "'.") + "\nRe-annotating fields is not allowed." + "\nUse 'override' annotation for methods overriden by subclass.");
5992
+ die("Cannot apply '" + requestedAnnotationType + "' to '" + fieldName + "':" + ("\nThe field is already annotated with '" + currentAnnotationType + "'.") + "\nRe-annotating fields is not allowed." + "\nUse 'override' annotation for methods overridden by subclass.");
5993
5993
  }
5994
5994
  }
5995
5995
 
5996
+ var ENTRY_0 = /*#__PURE__*/createArrayEntryDescriptor(0);
5996
5997
  /**
5997
5998
  * This array buffer contains two lists of properties, so that all arrays
5998
5999
  * can recycle their property definitions, which significantly improves performance of creating
5999
6000
  * properties on the fly.
6000
6001
  */
6001
6002
 
6003
+
6002
6004
  var OBSERVABLE_ARRAY_BUFFER_SIZE = 0; // Typescript workaround to make sure ObservableArray extends Array
6003
6005
 
6004
6006
  var StubArray = function StubArray() {};
@@ -6044,6 +6046,12 @@
6044
6046
  allowStateChangesEnd(prev);
6045
6047
  }
6046
6048
 
6049
+ {
6050
+ // Seems that Safari won't use numeric prototype setter untill any * numeric property is
6051
+ // defined on the instance. After that it works fine, even if this property is deleted.
6052
+ Object.defineProperty(_assertThisInitialized(_this), "0", ENTRY_0);
6053
+ }
6054
+
6047
6055
  return _this;
6048
6056
  }
6049
6057