prostgles-server 3.0.1 → 3.0.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.
@@ -11,6 +11,6 @@
11
11
  "express": "latest",
12
12
  "prostgles-client": "latest",
13
13
  "prostgles-server": "latest",
14
- "socket.io": "^4.5.1"
14
+ "socket.io": "latest"
15
15
  }
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prostgles-server",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "check-disk-space": "^3.3.1",
32
32
  "file-type": "^17.1.4",
33
33
  "pg-promise": "^10.11.1",
34
- "prostgles-types": "^1.5.181",
34
+ "prostgles-types": "^3.0.1",
35
35
  "sharp": "^0.31.0"
36
36
  },
37
37
  "devDependencies": {
@@ -1 +1 @@
1
- 9958
1
+ 25053
@@ -10,8 +10,7 @@
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@types/node": "^14.14.16",
13
- "prostgles-client": "^1.5.184",
14
- "prostgles-types": "^1.5.68",
13
+ "prostgles-client": "^3.0.0",
15
14
  "socket.io-client": "^4.5.1"
16
15
  }
17
16
  },
@@ -67,17 +66,17 @@
67
66
  "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
68
67
  },
69
68
  "node_modules/prostgles-client": {
70
- "version": "1.5.184",
71
- "resolved": "https://registry.npmjs.org/prostgles-client/-/prostgles-client-1.5.184.tgz",
72
- "integrity": "sha512-X3LTv+jG0xVU7wzmtl+H//7vTsOoX41wTEpjRrviUAckoPbqiOsTRL13LRts8mhbqZyEGdJLIyJdedxPEcvG/w==",
69
+ "version": "3.0.0",
70
+ "resolved": "https://registry.npmjs.org/prostgles-client/-/prostgles-client-3.0.0.tgz",
71
+ "integrity": "sha512-94vEnPlEdWWQN+Gweno2q3eHo20BKUTd60KB6Jz+05h28TxZezVbATCL56qYDwP6jmU58dyJ7XL8/8c4knNm9w==",
73
72
  "dependencies": {
74
- "prostgles-types": "^1.5.180"
73
+ "prostgles-types": "^3.0.1"
75
74
  }
76
75
  },
77
- "node_modules/prostgles-types": {
78
- "version": "1.5.180",
79
- "resolved": "https://registry.npmjs.org/prostgles-types/-/prostgles-types-1.5.180.tgz",
80
- "integrity": "sha512-NSCkZYPEuYmSah+DJHAySXbzL/R8fnPyrQDmgXSfRSESI8XTuVIGVEZtL/Tk+Y2g00sTc2mO3J/vRABvqsUAdg=="
76
+ "node_modules/prostgles-client/node_modules/prostgles-types": {
77
+ "version": "3.0.1",
78
+ "resolved": "https://registry.npmjs.org/prostgles-types/-/prostgles-types-3.0.1.tgz",
79
+ "integrity": "sha512-ounDQCs6mbL0FJ1bj6a4XWeheZY1aztqxeib6Hp0xDd4yOUCpoQzW2l0uuPKa3xNLupvdtqLi1rcrR4kamWu5Q=="
81
80
  },
82
81
  "node_modules/socket.io-client": {
83
82
  "version": "4.5.1",
@@ -176,18 +175,20 @@
176
175
  "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
177
176
  },
178
177
  "prostgles-client": {
179
- "version": "1.5.184",
180
- "resolved": "https://registry.npmjs.org/prostgles-client/-/prostgles-client-1.5.184.tgz",
181
- "integrity": "sha512-X3LTv+jG0xVU7wzmtl+H//7vTsOoX41wTEpjRrviUAckoPbqiOsTRL13LRts8mhbqZyEGdJLIyJdedxPEcvG/w==",
178
+ "version": "3.0.0",
179
+ "resolved": "https://registry.npmjs.org/prostgles-client/-/prostgles-client-3.0.0.tgz",
180
+ "integrity": "sha512-94vEnPlEdWWQN+Gweno2q3eHo20BKUTd60KB6Jz+05h28TxZezVbATCL56qYDwP6jmU58dyJ7XL8/8c4knNm9w==",
182
181
  "requires": {
183
- "prostgles-types": "^1.5.180"
182
+ "prostgles-types": "^3.0.1"
183
+ },
184
+ "dependencies": {
185
+ "prostgles-types": {
186
+ "version": "3.0.1",
187
+ "resolved": "https://registry.npmjs.org/prostgles-types/-/prostgles-types-3.0.1.tgz",
188
+ "integrity": "sha512-ounDQCs6mbL0FJ1bj6a4XWeheZY1aztqxeib6Hp0xDd4yOUCpoQzW2l0uuPKa3xNLupvdtqLi1rcrR4kamWu5Q=="
189
+ }
184
190
  }
185
191
  },
186
- "prostgles-types": {
187
- "version": "1.5.180",
188
- "resolved": "https://registry.npmjs.org/prostgles-types/-/prostgles-types-1.5.180.tgz",
189
- "integrity": "sha512-NSCkZYPEuYmSah+DJHAySXbzL/R8fnPyrQDmgXSfRSESI8XTuVIGVEZtL/Tk+Y2g00sTc2mO3J/vRABvqsUAdg=="
190
- },
191
192
  "socket.io-client": {
192
193
  "version": "4.5.1",
193
194
  "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.5.1.tgz",
@@ -13,8 +13,7 @@
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
15
  "@types/node": "^14.14.16",
16
- "prostgles-client": "^1.5.184",
17
- "prostgles-types": "^1.5.68",
16
+ "prostgles-client": "^3.0.0",
18
17
  "socket.io-client": "^4.5.1"
19
18
  }
20
19
  }
@@ -1,4 +1,4 @@
1
1
  import type { DBHandlerClient, Auth } from "./client/index";
2
- import { DBSchemaTable } from "./client/node_modules/prostgles-types/dist";
2
+ import { DBSchemaTable } from "prostgles-types";
3
3
  export default function client_only(db: Required<DBHandlerClient>, auth: Auth, log: (...args: any[]) => any, methods: any, tableSchema: DBSchemaTable[]): Promise<void>;
4
4
  //# sourceMappingURL=client_only_queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client_only_queries.d.ts","sourceRoot":"","sources":["client_only_queries.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAa,MAAM,4CAA4C,CAAC;AAGtF,wBAA8B,WAAW,CAAC,EAAE,EAAE,QAAQ,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,OAAO,KAAA,EAAE,WAAW,EAAE,aAAa,EAAE,iBA0TvJ"}
1
+ {"version":3,"file":"client_only_queries.d.ts","sourceRoot":"","sources":["client_only_queries.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAa,MAAM,iBAAiB,CAAC;AAG3D,wBAA8B,WAAW,CAAC,EAAE,EAAE,QAAQ,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,OAAO,KAAA,EAAE,WAAW,EAAE,aAAa,EAAE,iBA0TvJ"}
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const assert_1 = require("assert");
4
- const dist_1 = require("./client/node_modules/prostgles-types/dist");
4
+ // import { DBSchemaTable, isDefined } from "./client/node_modules/prostgles-types/dist";
5
+ const prostgles_types_1 = require("prostgles-types");
5
6
  const isomorphic_queries_1 = require("./isomorphic_queries");
6
7
  async function client_only(db, auth, log, methods, tableSchema) {
7
8
  /**
@@ -12,7 +13,7 @@ async function client_only(db, auth, log, methods, tableSchema) {
12
13
  const dbTables = Object.keys(db).map(k => {
13
14
  const h = db[k];
14
15
  return !!(h.getColumns && h.getInfo) ? k : undefined;
15
- }).filter(dist_1.isDefined);
16
+ }).filter(prostgles_types_1.isDefined);
16
17
  const missingTbl = dbTables.find(t => !tableSchema.some(st => st.name === t));
17
18
  if (missingTbl)
18
19
  throw `${missingTbl} is missing from tableSchema: ${JSON.stringify(tableSchema)}`;
@@ -1,7 +1,8 @@
1
1
  import { strict as assert } from 'assert';
2
2
 
3
3
  import type { DBHandlerClient, Auth } from "./client/index";
4
- import { DBSchemaTable, isDefined } from "./client/node_modules/prostgles-types/dist";
4
+ // import { DBSchemaTable, isDefined } from "./client/node_modules/prostgles-types/dist";
5
+ import { DBSchemaTable, isDefined } from "prostgles-types";
5
6
  import { tryRun, tryRunP } from './isomorphic_queries';
6
7
 
7
8
  export default async function client_only(db: Required<DBHandlerClient>, auth: Auth, log: (...args: any[]) => any, methods, tableSchema: DBSchemaTable[]){
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "../..": {
23
23
  "name": "prostgles-server",
24
- "version": "3.0.0",
24
+ "version": "3.0.1",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@aws-sdk/client-s3": "^3.121.0",
@@ -31,7 +31,7 @@
31
31
  "check-disk-space": "^3.3.1",
32
32
  "file-type": "^17.1.4",
33
33
  "pg-promise": "^10.11.1",
34
- "prostgles-types": "^1.5.181",
34
+ "prostgles-types": "^3.0.1",
35
35
  "sharp": "^0.31.0"
36
36
  },
37
37
  "devDependencies": {
@@ -1375,7 +1375,7 @@
1375
1375
  "check-disk-space": "^3.3.1",
1376
1376
  "file-type": "^17.1.4",
1377
1377
  "pg-promise": "^10.11.1",
1378
- "prostgles-types": "^1.5.181",
1378
+ "prostgles-types": "^3.0.1",
1379
1379
  "sharp": "^0.31.0",
1380
1380
  "typescript": "^4.8.4"
1381
1381
  }