mobx 6.0.3 → 6.0.4

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.
@@ -4684,8 +4684,15 @@
4684
4684
 
4685
4685
  if (hasProp(target, $mobx)) return target[$mobx];
4686
4686
  if ( !Object.isExtensible(target)) die("Cannot make the designated object observable; it is not extensible");
4687
- if (!isPlainObject(target)) name = (target.constructor.name || "ObservableObject") + "@" + getNextId();
4688
- if (!name) name = "ObservableObject@" + getNextId();
4687
+
4688
+ if (!name) {
4689
+ if (isPlainObject(target)) {
4690
+ name = "ObservableObject@" + getNextId();
4691
+ } else {
4692
+ name = (target.constructor.name || "ObservableObject") + "@" + getNextId();
4693
+ }
4694
+ }
4695
+
4689
4696
  var adm = new ObservableObjectAdministration(target, new Map(), stringifyKey(name), defaultEnhancer);
4690
4697
  addHiddenProp(target, $mobx, adm);
4691
4698
  return adm;
@@ -5169,5 +5176,7 @@
5169
5176
  exports.values = values;
5170
5177
  exports.when = when;
5171
5178
 
5179
+ Object.defineProperty(exports, '__esModule', { value: true });
5180
+
5172
5181
  })));
5173
5182
  //# sourceMappingURL=mobx.umd.development.js.map