@byted-apaas/server-sdk-node 1.1.15-beta.6 → 1.1.15-beta.8

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.
@@ -63,6 +63,7 @@ function buildCriterion(logic, objectApiName, maxId = -1) {
63
63
  let index = 0;
64
64
  let logics = [];
65
65
  let expressions = [];
66
+ console.log('buildCriterion_log', 0, logic, logic.expressions);
66
67
  // check type of logic
67
68
  function f(logic, value = 'and') {
68
69
  // 1.如果是逻辑表达式
@@ -84,8 +85,10 @@ function buildCriterion(logic, objectApiName, maxId = -1) {
84
85
  // 2.否则是算法表达式
85
86
  let exps = logic;
86
87
  let logs = [];
88
+ console.log('buildCriterion_log', 111, exps);
87
89
  for (let left of Object.keys(exps)) {
88
90
  let right = logic[left];
91
+ console.log('buildCriterion_log', 222, JSON.stringify(right), right instanceof Condition);
89
92
  let copy = right;
90
93
  if (server_common_node_1.utils.isObject(right) && !(right instanceof Condition) && !isKunlunTypeOrSerializedObject(right)) {
91
94
  for (let leftInner of Object.keys(right)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byted-apaas/server-sdk-node",
3
- "version": "1.1.15-beta.6",
3
+ "version": "1.1.15-beta.8",
4
4
  "description": "aPaaS Server SDK",
5
5
  "author": "zhouwexin <zhouwexin@bytedance.com>",
6
6
  "homepage": "",
@@ -318,7 +318,7 @@ async function getRecordsOrCountByCriterion(objectApiName, criterion, fuzzySearc
318
318
  if (authType) {
319
319
  options.headers[constants_3.AuthTypeHttpHeader] = authType;
320
320
  }
321
- utils.printInfoLog(`getRecordsOrCountByCriterion start, options: ${options}, urlPath: ${urlPath}, logID: ${utils.getLogID()}`);
321
+ // utils.printInfoLog(`getRecordsOrCountByCriterion start, options: ${options}, urlPath: ${urlPath}, logID: ${utils.getLogID()}`);
322
322
  let data = await openapi.doRequest(null, urlPath, options);
323
323
  return handleResponse(objectApiName, data, needCount);
324
324
  }