@routr/pgdata 2.1.6 → 2.1.9

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/dist/api/find.js CHANGED
@@ -61,7 +61,14 @@ function findBy(operation, kind) {
61
61
  try {
62
62
  const request = { [call.request.fieldName]: call.request.fieldValue };
63
63
  const Manager = (0, utils_1.getManager)(kind);
64
- // WARNING: This function currently doesn't work for boolean or enum fields
64
+ // WARNING: As of Prisma 4.15.0, we can't pass string equivalents of booleans due to its internals.
65
+ // Previously, this was feasible. This workaround is temporary until find a better solution.
66
+ if (call.request.fieldValue === "true") {
67
+ request[call.request.fieldName] = true;
68
+ }
69
+ else if (call.request.fieldValue === "false") {
70
+ request[call.request.fieldName] = false;
71
+ }
65
72
  const items = (yield operation({
66
73
  where: request,
67
74
  include: Manager.includeFields()
package/dist/service.js CHANGED
@@ -105,7 +105,7 @@ function pgDataService(config) {
105
105
  const cert = fs_1.default.readFileSync(envs_1.SERVER_CERT);
106
106
  const key = fs_1.default.readFileSync(envs_1.SERVER_KEY);
107
107
  const externalCredentials = grpc.ServerCredentials.createSsl(
108
- // By default the server does not ask for the client's certificate.
108
+ // Root CA certificates for validating client certificates
109
109
  cacert, [
110
110
  {
111
111
  cert_chain: cert,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routr/pgdata",
3
- "version": "2.1.6",
3
+ "version": "2.1.9",
4
4
  "description": "Postgres API Server for Routr Connect",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/routr#readme",
@@ -30,9 +30,9 @@
30
30
  "@opentelemetry/sdk-trace-base": "^1.0.4",
31
31
  "@opentelemetry/sdk-trace-node": "^1.0.4",
32
32
  "@opentelemetry/semantic-conventions": "^1.0.4",
33
- "@prisma/client": "^4.8.0",
34
- "@routr/common": "^2.1.0",
35
- "@routr/processor": "^2.1.6",
33
+ "@prisma/client": "^4.16.2",
34
+ "@routr/common": "^2.1.7",
35
+ "@routr/processor": "^2.1.7",
36
36
  "google-protobuf": "^3.9.2",
37
37
  "grpc-interceptors": "github:fonoster/node-grpc-interceptors",
38
38
  "pb-util": "^1.0.3",
@@ -55,7 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@types/google-protobuf": "^3.15.6",
57
57
  "@types/validator": "^13.7.10",
58
- "prisma": "^4.8.0"
58
+ "prisma": "^4.16.2"
59
59
  },
60
- "gitHead": "b90862d422320305babd7395b249360617b6ae69"
60
+ "gitHead": "796a412ddcc4e9c1ca9887d219b3a002590ff975"
61
61
  }