@confect/server 9.0.1 → 9.0.2

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@confect/server",
3
3
  "description": "Backend bindings to the Convex platform",
4
- "version": "9.0.1",
4
+ "version": "9.0.2",
5
5
  "author": "RJ Dellecese",
6
6
  "bugs": {
7
7
  "url": "https://github.com/rjdellecese/confect/issues"
@@ -68,7 +68,7 @@
68
68
  "@effect/platform-node": "^0.106.0",
69
69
  "convex": "^1.32.0",
70
70
  "effect": "^3.21.2",
71
- "@confect/core": "^9.0.1"
71
+ "@confect/core": "^9.0.2"
72
72
  },
73
73
  "peerDependenciesMeta": {
74
74
  "@effect/platform-node": {
@@ -148,7 +148,7 @@ export const make = <
148
148
  new GetByIndexFailure({
149
149
  tableName,
150
150
  indexName: indexName as string,
151
- indexFieldValues: indexFieldValues as string[],
151
+ indexFieldValues,
152
152
  }),
153
153
  ),
154
154
  ),
@@ -313,10 +313,13 @@ export class GetByIndexFailure extends Schema.TaggedError<GetByIndexFailure>()(
313
313
  {
314
314
  tableName: Schema.String,
315
315
  indexName: Schema.String,
316
- indexFieldValues: Schema.Array(Schema.String),
316
+ indexFieldValues: Schema.Array(Schema.Unknown),
317
317
  },
318
318
  ) {
319
319
  override get message(): string {
320
- return `No documents found in table '${this.tableName}' with index '${this.indexName}' and field values '${this.indexFieldValues}'`;
320
+ return `No documents found in table '${this.tableName}' with index '${this.indexName}' and field values '${JSON.stringify(
321
+ this.indexFieldValues,
322
+ (_key, value) => (typeof value === "bigint" ? value.toString() : value),
323
+ )}'`;
321
324
  }
322
325
  }