prostgles-server 4.2.10 → 4.2.13

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": "prostgles-server",
3
- "version": "4.2.10",
3
+ "version": "4.2.13",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -46,7 +46,7 @@
46
46
  "pg-cursor": "^2.10.3",
47
47
  "pg-promise": "^11.5.4",
48
48
  "prostgles-client": "^4.0.53",
49
- "prostgles-types": "^4.0.70"
49
+ "prostgles-types": "^4.0.71"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/bluebird": "^3.5.36",
@@ -74,7 +74,6 @@ export const clientRestApi = async(db: DBHandlerClient, auth: Auth, log: (...arg
74
74
 
75
75
  const two22 = await sqlMethods("get", {});
76
76
  assert.equal(two22, 222);
77
-
78
77
  });
79
78
 
80
79
 
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "../..": {
23
23
  "name": "prostgles-server",
24
- "version": "4.2.9",
24
+ "version": "4.2.12",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@types/express": "^4.17.13",
@@ -35,7 +35,7 @@
35
35
  "pg-cursor": "^2.10.3",
36
36
  "pg-promise": "^11.5.4",
37
37
  "prostgles-client": "^4.0.53",
38
- "prostgles-types": "^4.0.70"
38
+ "prostgles-types": "^4.0.71"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/bluebird": "^3.5.36",
@@ -1548,7 +1548,7 @@
1548
1548
  "pg-cursor": "^2.10.3",
1549
1549
  "pg-promise": "^11.5.4",
1550
1550
  "prostgles-client": "^4.0.53",
1551
- "prostgles-types": "^4.0.70",
1551
+ "prostgles-types": "^4.0.71",
1552
1552
  "typescript": "^5.3.3"
1553
1553
  }
1554
1554
  },
@@ -28,26 +28,4 @@ export const serverOnlyQueries = async (db: DBHandlerServer) => {
28
28
  }
29
29
  });
30
30
  });
31
-
32
- // // /** Self reference recursion bug */
33
- // await db.rec.findOne!({ id: 1 }, { select: { "*": 1, rec_ref: "*" } })
34
-
35
- // /* Transaction example */
36
- // await db.tx!(async t => {
37
- // await t.items.insert!({ name: "tx_" });
38
- // const expect1 = await t.items.count!({ name: "tx_" });
39
- // const expect0 = await db.items.count!({ name: "tx_" });
40
- // if(expect0 !== 0 || expect1 !== 1) throw "db.tx failed";
41
-
42
- // //throw "err"; // Any errors will revert all data-changing commands using the transaction object ( t )
43
- // });
44
- // const expect1 = await db.items.count!({ name: "tx_" });
45
- // if(expect1 !== 1) throw "db.tx failed";
46
-
47
- // /** TableConfig onMount works */
48
- // await db.api_table.findOne!({ id: 1 });
49
- // const newRow = await db.api_table.insert!({ }, { returning: "*" });
50
- // if(newRow.col1 !== null) {
51
- // throw "api_table onMount failed: col1 missing. Got: " + JSON.stringify(newRow);
52
- // }
53
31
  }