@scx-js/scx-app-x 0.2.1 → 0.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scx-js/scx-app-x",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "SCX App X",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -8,9 +8,9 @@
8
8
  "url": "https://github.com/scx567888/scx-js.git"
9
9
  },
10
10
  "dependencies": {
11
- "@scx-js/scx-common": "0.2.1",
12
- "@scx-js/scx-http": "0.2.1",
13
- "@scx-js/scx-data": "0.2.1",
11
+ "@scx-js/scx-common": "0.2.2",
12
+ "@scx-js/scx-http": "0.2.2",
13
+ "@scx-js/scx-data": "0.2.2",
14
14
  "spark-md5-es": "^3.0.2"
15
15
  }
16
16
  }
@@ -1,4 +1,4 @@
1
- import {FIELD_POLICY_SERIALIZER, QUERY_SERIALIZER} from "@scx-js/scx-data";
1
+ import {FIELD_POLICY_SERIALIZER, includeAll, query, QUERY_SERIALIZER} from "@scx-js/scx-data";
2
2
 
3
3
 
4
4
  class ScxCrud {
@@ -101,9 +101,13 @@ function serializeCRUDListParam(crudListParam) {
101
101
  const o = {};
102
102
  if (crudListParam.query) {
103
103
  o.query = QUERY_SERIALIZER.serializeQuery(crudListParam.query);
104
+ } else {
105
+ o.query = QUERY_SERIALIZER.serializeQuery(query());
104
106
  }
105
107
  if (crudListParam.fieldPolicy) {
106
108
  o.fieldPolicy = FIELD_POLICY_SERIALIZER.serializeFieldPolicy(crudListParam.fieldPolicy);
109
+ } else {
110
+ o.fieldPolicy = FIELD_POLICY_SERIALIZER.serializeFieldPolicy(includeAll());
107
111
  }
108
112
  o.extParams = crudListParam.extParams;
109
113
  return o;