@scx-js/scx-app-x 0.2.2 → 0.2.3
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 +4 -4
- package/scx_crud/ScxCrud.js +3 -7
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@scx-js/scx-app-x",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.3",
|
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.
|
12
|
-
"@scx-js/scx-http": "0.2.
|
13
|
-
"@scx-js/scx-data": "0.2.
|
11
|
+
"@scx-js/scx-common": "0.2.3",
|
12
|
+
"@scx-js/scx-http": "0.2.3",
|
13
|
+
"@scx-js/scx-data": "0.2.3",
|
14
14
|
"spark-md5-es": "^3.0.2"
|
15
15
|
}
|
16
16
|
}
|
package/scx_crud/ScxCrud.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import {serializeFieldPolicy, serializeQuery} from "@scx-js/scx-data";
|
2
2
|
|
3
3
|
|
4
4
|
class ScxCrud {
|
@@ -100,14 +100,10 @@ class ScxCrud {
|
|
100
100
|
function serializeCRUDListParam(crudListParam) {
|
101
101
|
const o = {};
|
102
102
|
if (crudListParam.query) {
|
103
|
-
o.query =
|
104
|
-
} else {
|
105
|
-
o.query = QUERY_SERIALIZER.serializeQuery(query());
|
103
|
+
o.query = serializeQuery(crudListParam.query);
|
106
104
|
}
|
107
105
|
if (crudListParam.fieldPolicy) {
|
108
|
-
o.fieldPolicy =
|
109
|
-
} else {
|
110
|
-
o.fieldPolicy = FIELD_POLICY_SERIALIZER.serializeFieldPolicy(includeAll());
|
106
|
+
o.fieldPolicy = serializeFieldPolicy(crudListParam.fieldPolicy);
|
111
107
|
}
|
112
108
|
o.extParams = crudListParam.extParams;
|
113
109
|
return o;
|