@dxos/functions-testing 0.8.4-main.bc674ce → 0.8.4-main.ef1bc66f44
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/functions-testing",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.ef1bc66f44",
|
|
4
4
|
"description": "Functions tests",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"src"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@effect/platform": "0.
|
|
41
|
-
"@dxos/async": "0.8.4-main.
|
|
42
|
-
"@dxos/client": "0.8.4-main.
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/functions
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/functions-runtime
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/protocols": "0.8.4-main.
|
|
40
|
+
"@effect/platform": "0.94.4",
|
|
41
|
+
"@dxos/async": "0.8.4-main.ef1bc66f44",
|
|
42
|
+
"@dxos/client": "0.8.4-main.ef1bc66f44",
|
|
43
|
+
"@dxos/echo": "0.8.4-main.ef1bc66f44",
|
|
44
|
+
"@dxos/functions": "0.8.4-main.ef1bc66f44",
|
|
45
|
+
"@dxos/config": "0.8.4-main.ef1bc66f44",
|
|
46
|
+
"@dxos/functions-runtime": "0.8.4-main.ef1bc66f44",
|
|
47
|
+
"@dxos/functions-runtime-cloudflare": "0.8.4-main.ef1bc66f44",
|
|
48
|
+
"@dxos/log": "0.8.4-main.ef1bc66f44",
|
|
49
|
+
"@dxos/invariant": "0.8.4-main.ef1bc66f44",
|
|
50
|
+
"@dxos/protocols": "0.8.4-main.ef1bc66f44"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
package/src/functions/query.ts
CHANGED
|
@@ -15,7 +15,7 @@ export default defineFunction({
|
|
|
15
15
|
inputSchema: Schema.Any,
|
|
16
16
|
outputSchema: Schema.Any,
|
|
17
17
|
handler: Effect.fn(function* ({ data }) {
|
|
18
|
-
const results = yield* Database.
|
|
18
|
+
const results = yield* Database.runQuery(Query.select(Filter.everything()));
|
|
19
19
|
return { count: results.length };
|
|
20
20
|
}),
|
|
21
21
|
});
|