@davidtkramer/convex-relations 0.4.2 → 0.4.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/dist/index.js +3 -1
- package/package.json +7 -8
package/dist/index.js
CHANGED
|
@@ -69,7 +69,9 @@ function withExpander(plan, expander) {
|
|
|
69
69
|
}
|
|
70
70
|
function normalizeIndexValues(index, value, indexFields) {
|
|
71
71
|
if (Array.isArray(value)) {
|
|
72
|
-
return Object.fromEntries(
|
|
72
|
+
return Object.fromEntries(
|
|
73
|
+
indexFields.slice(0, value.length).map((field, index2) => [field, value[index2]])
|
|
74
|
+
);
|
|
73
75
|
}
|
|
74
76
|
if (isPlainObject(value)) {
|
|
75
77
|
return value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@davidtkramer/convex-relations",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Typed query facade helpers for Convex backends",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,11 +28,6 @@
|
|
|
28
28
|
},
|
|
29
29
|
"main": "./dist/index.js",
|
|
30
30
|
"types": "./dist/index.d.ts",
|
|
31
|
-
"scripts": {
|
|
32
|
-
"build": "tsup src/index.ts --format esm --dts",
|
|
33
|
-
"check-types": "tsc --noEmit",
|
|
34
|
-
"test": "vitest run --typecheck"
|
|
35
|
-
},
|
|
36
31
|
"peerDependencies": {
|
|
37
32
|
"convex": "^1.25.4"
|
|
38
33
|
},
|
|
@@ -45,5 +40,9 @@
|
|
|
45
40
|
"typical-data": "^0.5.0",
|
|
46
41
|
"vitest": "^4.0.15"
|
|
47
42
|
},
|
|
48
|
-
"
|
|
49
|
-
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "tsup src/index.ts --format esm --dts",
|
|
45
|
+
"check-types": "tsc --noEmit",
|
|
46
|
+
"test": "vitest run --typecheck"
|
|
47
|
+
}
|
|
48
|
+
}
|