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.
- package/CHANGELOG.md +6 -0
- package/dist/mobx.cjs.development.js +11 -2
- package/dist/mobx.cjs.development.js.map +1 -1
- package/dist/mobx.cjs.production.min.js +1 -1
- package/dist/mobx.cjs.production.min.js.map +1 -1
- package/dist/mobx.esm.development.js +9 -2
- package/dist/mobx.esm.development.js.map +1 -1
- package/dist/mobx.esm.js +9 -2
- package/dist/mobx.esm.js.map +1 -1
- package/dist/mobx.esm.production.min.js +1 -1
- package/dist/mobx.esm.production.min.js.map +1 -1
- package/dist/mobx.umd.development.js +11 -2
- package/dist/mobx.umd.development.js.map +1 -1
- package/dist/mobx.umd.production.min.js +1 -1
- package/dist/mobx.umd.production.min.js.map +1 -1
- package/package.json +17 -15
- package/src/types/observableobject.ts +8 -3
- package/dist/index.js.flow +0 -591
|
@@ -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
|
-
|
|
4688
|
-
if (!name)
|
|
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
|