prostgles-server 2.0.195 → 2.0.198

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.
@@ -1326,7 +1326,7 @@ export async function getNewQuery(
1326
1326
  // .filter(s => s.type !== "joinedColumn")
1327
1327
  // .map(s => s.alias);
1328
1328
 
1329
- const where = await _this.prepareWhere({
1329
+ const filterOpts = await _this.prepareWhere({
1330
1330
  filter,
1331
1331
  select,
1332
1332
  forcedFilter: get(tableRules, "select.forcedFilter"),
@@ -1335,6 +1335,7 @@ export async function getNewQuery(
1335
1335
  localParams,
1336
1336
  tableRule: tableRules
1337
1337
  });
1338
+ const where = filterOpts.where;
1338
1339
  const p = _this.getValidatedRules(tableRules, localParams);
1339
1340
 
1340
1341
  let resQuery: NewQuery = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prostgles-server",
3
- "version": "2.0.195",
3
+ "version": "2.0.198",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "homepage": "https://github.com/prostgles/prostgles-server-js#readme",
26
26
  "dependencies": {
27
- "@aws-sdk/client-s3": "^3.95.0",
28
- "aws-sdk": "^2.1141.0",
27
+ "@aws-sdk/client-s3": "^3.121.0",
28
+ "aws-sdk": "^2.1168.0",
29
29
  "bluebird": "^3.7.2",
30
30
  "file-type": "^17.1.2",
31
31
  "pg-promise": "^10.11.1",
@@ -33,9 +33,9 @@
33
33
  "sharp": "^0.30.7"
34
34
  },
35
35
  "devDependencies": {
36
- "@aws-sdk/types": "^3.34.0",
36
+ "@aws-sdk/types": "^3.110.0",
37
37
  "@types/bluebird": "^3.5.36",
38
- "@types/node": "^14.14.35",
38
+ "@types/node": "^18.0.3",
39
39
  "@types/sharp": "^0.30.4",
40
40
  "typescript": "^4.7.4"
41
41
  }
@@ -1 +1 @@
1
- 58079
1
+ 10879
@@ -10,7 +10,7 @@
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@types/node": "^14.14.16",
13
- "prostgles-client": "^1.5.161",
13
+ "prostgles-client": "^1.5.166",
14
14
  "prostgles-types": "^1.5.68",
15
15
  "socket.io-client": "^4.5.1"
16
16
  }
@@ -67,17 +67,17 @@
67
67
  "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
68
68
  },
69
69
  "node_modules/prostgles-client": {
70
- "version": "1.5.161",
71
- "resolved": "https://registry.npmjs.org/prostgles-client/-/prostgles-client-1.5.161.tgz",
72
- "integrity": "sha512-/1NHXfyKtoPLquNjv8eWIvk0ezjogaL3QRJrGpUiH6vt74MFVQ5FRwtrct37fj0fBwsKS4HrHduwh33Ohv1ycw==",
70
+ "version": "1.5.166",
71
+ "resolved": "https://registry.npmjs.org/prostgles-client/-/prostgles-client-1.5.166.tgz",
72
+ "integrity": "sha512-O/oKyXIbhtRW10KyR2pHlU5hExdw0vKOQXlgHmTKQ11zQkNr/aFPQyhctCB9J0n/SrSNtcxuZbMkZp9v1YjC/A==",
73
73
  "dependencies": {
74
- "prostgles-types": "^1.5.160"
74
+ "prostgles-types": "^1.5.162"
75
75
  }
76
76
  },
77
77
  "node_modules/prostgles-types": {
78
- "version": "1.5.160",
79
- "resolved": "https://registry.npmjs.org/prostgles-types/-/prostgles-types-1.5.160.tgz",
80
- "integrity": "sha512-ycX5dqkrf73qAvAylhn6jHsL0eBq3/Fmky3YEIm7vTqJFJfS+5EmFPxF4CdjPWs3WHZEhuGCoXlZZo/rWFK0eQ=="
78
+ "version": "1.5.163",
79
+ "resolved": "https://registry.npmjs.org/prostgles-types/-/prostgles-types-1.5.163.tgz",
80
+ "integrity": "sha512-KlswBzWW17VLDv2oUybimUIUDgXaH+RvAdVUpVinlmOpWXNBfAWSEyVtmq8qnMKOzf8XAbalXETlJUUdCJfBzQ=="
81
81
  },
82
82
  "node_modules/socket.io-client": {
83
83
  "version": "4.5.1",
@@ -176,17 +176,17 @@
176
176
  "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
177
177
  },
178
178
  "prostgles-client": {
179
- "version": "1.5.161",
180
- "resolved": "https://registry.npmjs.org/prostgles-client/-/prostgles-client-1.5.161.tgz",
181
- "integrity": "sha512-/1NHXfyKtoPLquNjv8eWIvk0ezjogaL3QRJrGpUiH6vt74MFVQ5FRwtrct37fj0fBwsKS4HrHduwh33Ohv1ycw==",
179
+ "version": "1.5.166",
180
+ "resolved": "https://registry.npmjs.org/prostgles-client/-/prostgles-client-1.5.166.tgz",
181
+ "integrity": "sha512-O/oKyXIbhtRW10KyR2pHlU5hExdw0vKOQXlgHmTKQ11zQkNr/aFPQyhctCB9J0n/SrSNtcxuZbMkZp9v1YjC/A==",
182
182
  "requires": {
183
- "prostgles-types": "^1.5.160"
183
+ "prostgles-types": "^1.5.162"
184
184
  }
185
185
  },
186
186
  "prostgles-types": {
187
- "version": "1.5.160",
188
- "resolved": "https://registry.npmjs.org/prostgles-types/-/prostgles-types-1.5.160.tgz",
189
- "integrity": "sha512-ycX5dqkrf73qAvAylhn6jHsL0eBq3/Fmky3YEIm7vTqJFJfS+5EmFPxF4CdjPWs3WHZEhuGCoXlZZo/rWFK0eQ=="
187
+ "version": "1.5.163",
188
+ "resolved": "https://registry.npmjs.org/prostgles-types/-/prostgles-types-1.5.163.tgz",
189
+ "integrity": "sha512-KlswBzWW17VLDv2oUybimUIUDgXaH+RvAdVUpVinlmOpWXNBfAWSEyVtmq8qnMKOzf8XAbalXETlJUUdCJfBzQ=="
190
190
  },
191
191
  "socket.io-client": {
192
192
  "version": "4.5.1",
@@ -13,7 +13,7 @@
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
15
  "@types/node": "^14.14.16",
16
- "prostgles-client": "^1.5.161",
16
+ "prostgles-client": "^1.5.166",
17
17
  "prostgles-types": "^1.5.68",
18
18
  "socket.io-client": "^4.5.1"
19
19
  }
@@ -157,7 +157,6 @@ function dd() {
157
157
  }
158
158
  return true;
159
159
  },
160
- // DEBUG_MODE: true,
161
160
  publishRawSQL: async (params) => {
162
161
  return true; // Boolean(user && user.type === "admin")
163
162
  },
@@ -184,7 +184,6 @@ function dd(){
184
184
  }
185
185
  return true;
186
186
  },
187
- // DEBUG_MODE: true,
188
187
 
189
188
  publishRawSQL: async (params) => {
190
189
  return true;// Boolean(user && user.type === "admin")
@@ -21,11 +21,11 @@
21
21
  },
22
22
  "../..": {
23
23
  "name": "prostgles-server",
24
- "version": "2.0.194",
24
+ "version": "2.0.197",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
- "@aws-sdk/client-s3": "^3.95.0",
28
- "aws-sdk": "^2.1141.0",
27
+ "@aws-sdk/client-s3": "^3.121.0",
28
+ "aws-sdk": "^2.1168.0",
29
29
  "bluebird": "^3.7.2",
30
30
  "file-type": "^17.1.2",
31
31
  "pg-promise": "^10.11.1",
@@ -33,9 +33,9 @@
33
33
  "sharp": "^0.30.7"
34
34
  },
35
35
  "devDependencies": {
36
- "@aws-sdk/types": "^3.34.0",
36
+ "@aws-sdk/types": "^3.110.0",
37
37
  "@types/bluebird": "^3.5.36",
38
- "@types/node": "^14.14.35",
38
+ "@types/node": "^18.0.3",
39
39
  "@types/sharp": "^0.30.4",
40
40
  "typescript": "^4.7.4"
41
41
  }
@@ -1362,12 +1362,12 @@
1362
1362
  "prostgles-server": {
1363
1363
  "version": "file:../..",
1364
1364
  "requires": {
1365
- "@aws-sdk/client-s3": "^3.95.0",
1366
- "@aws-sdk/types": "^3.34.0",
1365
+ "@aws-sdk/client-s3": "^3.121.0",
1366
+ "@aws-sdk/types": "^3.110.0",
1367
1367
  "@types/bluebird": "^3.5.36",
1368
- "@types/node": "^14.14.35",
1368
+ "@types/node": "^18.0.3",
1369
1369
  "@types/sharp": "^0.30.4",
1370
- "aws-sdk": "^2.1141.0",
1370
+ "aws-sdk": "^2.1168.0",
1371
1371
  "bluebird": "^3.7.2",
1372
1372
  "file-type": "^17.1.2",
1373
1373
  "pg-promise": "^10.11.1",