@teamkeel/functions-runtime 0.405.2 → 0.405.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.
package/compose.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  services:
2
2
  postgres:
3
- image: postgres:11.13-alpine
3
+ image: pgvector/pgvector:pg15
4
4
  restart: always
5
5
  environment:
6
6
  - POSTGRES_USER=postgres
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamkeel/functions-runtime",
3
- "version": "0.405.2",
3
+ "version": "0.405.3",
4
4
  "description": "Internal package used by @teamkeel/sdk",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -107,7 +107,9 @@ test("ModelAPI.create - throws if not not null constraint violation", async () =
107
107
  id: KSUID.randomSync().string,
108
108
  name: null,
109
109
  })
110
- ).rejects.toThrow('null value in column "name" violates not-null constraint');
110
+ ).rejects.toThrow(
111
+ 'null value in column "name" of relation "author" violates not-null constraint'
112
+ );
111
113
  });
112
114
 
113
115
  test("ModelAPI.create - throws if database constraint fails", async () => {
@@ -925,7 +927,7 @@ test("ModelAPI.update - throws if not not null constraint violation", async () =
925
927
  );
926
928
 
927
929
  await expect(result).rejects.toThrow(
928
- 'null value in column "name" violates not-null constraint'
930
+ 'null value in column "name" of relation "author" violates not-null constraint'
929
931
  );
930
932
  });
931
933
 
@@ -177,12 +177,14 @@ describe("ModelAPI error handling", () => {
177
177
  jsonrpc: "2.0",
178
178
  error: {
179
179
  code: RuntimeErrors.NotNullConstraintError,
180
- message: 'null value in column "title" violates not-null constraint',
180
+ message:
181
+ 'null value in column "title" of relation "post" violates not-null constraint',
181
182
  data: {
182
183
  code: "23502",
183
184
  column: "title",
184
185
  detail: expect.stringContaining("Failing row contains"),
185
186
  table: "post",
187
+ value: undefined,
186
188
  },
187
189
  },
188
190
  });
@@ -229,12 +231,13 @@ describe("ModelAPI error handling", () => {
229
231
  error: {
230
232
  code: RuntimeErrors.NotNullConstraintError,
231
233
  message:
232
- 'null value in column "author_id" violates not-null constraint',
234
+ 'null value in column "author_id" of relation "post" violates not-null constraint',
233
235
  data: {
234
236
  code: "23502",
235
237
  column: "author_id",
236
238
  detail: expect.stringContaining("Failing row contains"),
237
239
  table: "post",
240
+ value: undefined,
238
241
  },
239
242
  },
240
243
  });
@@ -374,12 +374,14 @@ describe("ModelAPI error handling", () => {
374
374
  jsonrpc: "2.0",
375
375
  error: {
376
376
  code: RuntimeErrors.NotNullConstraintError,
377
- message: 'null value in column "title" violates not-null constraint',
377
+ message:
378
+ 'null value in column "title" of relation "post" violates not-null constraint',
378
379
  data: {
379
380
  code: "23502",
380
381
  column: "title",
381
382
  detail: expect.stringContaining("Failing row contains"),
382
383
  table: "post",
384
+ value: undefined,
383
385
  },
384
386
  },
385
387
  });
@@ -423,12 +425,13 @@ describe("ModelAPI error handling", () => {
423
425
  error: {
424
426
  code: RuntimeErrors.NotNullConstraintError,
425
427
  message:
426
- 'null value in column "author_id" violates not-null constraint',
428
+ 'null value in column "author_id" of relation "post" violates not-null constraint',
427
429
  data: {
428
430
  code: "23502",
429
431
  column: "author_id",
430
432
  detail: expect.stringContaining("Failing row contains"),
431
433
  table: "post",
434
+ value: undefined,
432
435
  },
433
436
  },
434
437
  });