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
|
@@ -3321,7 +3321,7 @@ function whenPromise(predicate, opts) {
|
|
|
3321
3321
|
|
|
3322
3322
|
cancel = function cancel() {
|
|
3323
3323
|
disposer();
|
|
3324
|
-
reject("WHEN_CANCELLED");
|
|
3324
|
+
reject(new Error("WHEN_CANCELLED"));
|
|
3325
3325
|
};
|
|
3326
3326
|
});
|
|
3327
3327
|
res.cancel = cancel;
|
|
@@ -3452,7 +3452,11 @@ function makeObservable(target, annotations, options) {
|
|
|
3452
3452
|
try {
|
|
3453
3453
|
var _annotations;
|
|
3454
3454
|
|
|
3455
|
-
|
|
3455
|
+
if ("development" !== "production" && annotations && target[storedAnnotationsSymbol]) {
|
|
3456
|
+
die("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported.");
|
|
3457
|
+
} // Default to decorators
|
|
3458
|
+
|
|
3459
|
+
|
|
3456
3460
|
(_annotations = annotations) != null ? _annotations : annotations = collectStoredAnnotations(target); // Annotate
|
|
3457
3461
|
|
|
3458
3462
|
ownKeys(annotations).forEach(function (key) {
|