oak-domain 5.0.13 → 5.0.15

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.
@@ -907,11 +907,11 @@ exports.judgeValueRelation = judgeValueRelation;
907
907
  function judgeFilterSingleAttrRelation(entity, schema, attr, filter, compared, contained) {
908
908
  const comparedFilterAttrValue = compared[attr];
909
909
  const orDeducedFilters = [];
910
- if (attr === 'entityId') {
910
+ /* if (attr === 'entityId') {
911
911
  // entityId不可能作为查询条件单独存在
912
- (0, assert_1.default)(compared.hasOwnProperty('entity'));
912
+ assert(compared.hasOwnProperty('entity'));
913
913
  return;
914
- }
914
+ } */
915
915
  for (const attr2 in filter) {
916
916
  if (['$and', '$or', '$not'].includes(attr2)) {
917
917
  switch (attr2) {
@@ -8,8 +8,14 @@ export declare class OakException<ED extends EntityDict> extends Error {
8
8
  name: string;
9
9
  message: string;
10
10
  opRecords: OpRecord<ED>[];
11
+ tag1: string | undefined;
12
+ tag2: boolean | undefined;
13
+ tag3: any;
11
14
  };
12
15
  toString(): string;
16
+ tag1?: string;
17
+ tag2?: boolean;
18
+ tag3?: any;
13
19
  }
14
20
  export declare class OakMakeSureByMySelfException<ED extends EntityDict> extends OakException<ED> {
15
21
  }
@@ -37,11 +37,18 @@ class OakException extends Error {
37
37
  name: this.constructor.name,
38
38
  message: this.message,
39
39
  opRecords: this.opRecords,
40
+ tag1: this.tag1,
41
+ tag2: this.tag2,
42
+ tag3: this.tag3,
40
43
  };
41
44
  }
42
45
  toString() {
43
46
  return JSON.stringify(this.getSerialData());
44
47
  }
48
+ // 留三个tag1供其它类使用
49
+ tag1;
50
+ tag2;
51
+ tag3;
45
52
  }
46
53
  exports.OakException = OakException;
47
54
  // 这个异常表示模块自己处理跨事务一致性,框架pass(在分布式数据传递时会用到)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oak-domain",
3
- "version": "5.0.13",
3
+ "version": "5.0.15",
4
4
  "author": {
5
5
  "name": "XuChang"
6
6
  },