oak-domain 1.1.5 → 1.1.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.
@@ -703,7 +703,7 @@ var CascadeStore = /** @class */ (function (_super) {
703
703
  else if (action === 'create') {
704
704
  fkId = data.entityId, entity_1 = data.entity;
705
705
  (0, assert_1.default)(typeof fkId === 'string' || entity_1 === attr);
706
- if (filterMto.id) {
706
+ if (filterMto === null || filterMto === void 0 ? void 0 : filterMto.id) {
707
707
  // 若已有id则不用处理,否则会干扰modi的后续判断(会根据filter来判断对象id,如果判断不出来去查实际的对象,但实际的对象其实还未创建好)
708
708
  (0, assert_1.default)(filterMto.id === fkId);
709
709
  }
@@ -720,7 +720,7 @@ var CascadeStore = /** @class */ (function (_super) {
720
720
  else {
721
721
  // 剩下三种情况都是B中的filter的id来自A中row的entityId
722
722
  (0, assert_1.default)(!data.hasOwnProperty('entityId') && !data.hasOwnProperty('entity'));
723
- if (filterMto.id) {
723
+ if (filterMto === null || filterMto === void 0 ? void 0 : filterMto.id) {
724
724
  // 若已有id则不用处理,否则会干扰modi的后续判断(会根据filter来判断对象id,如果判断不出来去查实际的对象,但实际的对象其实还未创建好)
725
725
  (0, assert_1.default)(typeof filterMto.id === 'string');
726
726
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oak-domain",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "author": {
5
5
  "name": "XuChang"
6
6
  },