@confect/server 9.0.0 → 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/CHANGELOG.md +32 -22
- package/dist/QueryInitializer.d.ts +1 -1
- package/dist/QueryInitializer.d.ts.map +1 -1
- package/dist/QueryInitializer.js +2 -2
- package/dist/QueryInitializer.js.map +1 -1
- package/dist/tsconfig.src.tsbuildinfo +1 -1
- package/package.json +8 -3
- package/src/QueryInitializer.ts +6 -3
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.
|
|
4
|
+
"version": "9.0.2",
|
|
5
5
|
"author": "RJ Dellecese",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/rjdellecese/confect/issues"
|
|
@@ -66,9 +66,14 @@
|
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@effect/platform": "^0.96.1",
|
|
68
68
|
"@effect/platform-node": "^0.106.0",
|
|
69
|
-
"convex": "1.
|
|
69
|
+
"convex": "^1.32.0",
|
|
70
70
|
"effect": "^3.21.2",
|
|
71
|
-
"@confect/core": "^9.0.
|
|
71
|
+
"@confect/core": "^9.0.2"
|
|
72
|
+
},
|
|
73
|
+
"peerDependenciesMeta": {
|
|
74
|
+
"@effect/platform-node": {
|
|
75
|
+
"optional": true
|
|
76
|
+
}
|
|
72
77
|
},
|
|
73
78
|
"repository": {
|
|
74
79
|
"type": "git",
|
package/src/QueryInitializer.ts
CHANGED
|
@@ -148,7 +148,7 @@ export const make = <
|
|
|
148
148
|
new GetByIndexFailure({
|
|
149
149
|
tableName,
|
|
150
150
|
indexName: indexName as string,
|
|
151
|
-
indexFieldValues
|
|
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.
|
|
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 '${
|
|
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
|
}
|