mobx 6.3.5 → 6.3.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.
- package/CHANGELOG.md +8 -0
- package/dist/mobx.cjs.development.js +6 -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 +6 -2
- package/dist/mobx.esm.development.js.map +1 -1
- package/dist/mobx.esm.js +6 -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 +6 -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 +1 -1
- package/src/api/makeObservable.ts +7 -1
- package/src/api/when.ts +1 -1
|
@@ -3327,7 +3327,7 @@
|
|
|
3327
3327
|
|
|
3328
3328
|
cancel = function cancel() {
|
|
3329
3329
|
disposer();
|
|
3330
|
-
reject("WHEN_CANCELLED");
|
|
3330
|
+
reject(new Error("WHEN_CANCELLED"));
|
|
3331
3331
|
};
|
|
3332
3332
|
});
|
|
3333
3333
|
res.cancel = cancel;
|
|
@@ -3458,7 +3458,11 @@
|
|
|
3458
3458
|
try {
|
|
3459
3459
|
var _annotations;
|
|
3460
3460
|
|
|
3461
|
-
|
|
3461
|
+
if ("development" !== "production" && annotations && target[storedAnnotationsSymbol]) {
|
|
3462
|
+
die("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported.");
|
|
3463
|
+
} // Default to decorators
|
|
3464
|
+
|
|
3465
|
+
|
|
3462
3466
|
(_annotations = annotations) != null ? _annotations : annotations = collectStoredAnnotations(target); // Annotate
|
|
3463
3467
|
|
|
3464
3468
|
ownKeys(annotations).forEach(function (key) {
|