@falcondev-oss/trpc-vue-query 0.5.0-rc.15 → 0.5.0-rc.16

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.cjs CHANGED
@@ -61,7 +61,8 @@ function createVueQueryProxyDecoration(name, trpc, queryClient) {
61
61
  function createQuery(_input, { trpcOptions, queryOptions }, { type = "query" } = {}) {
62
62
  const queryFn = (0, import_vue.computed)(() => async ({ signal }) => {
63
63
  const input = (0, import_core.toValue)(_input);
64
- const output = input === import_vue_query.skipToken ? void 0 : await trpc.query(joinedPath, input, {
64
+ if (input === import_vue_query.skipToken) return import_vue_query.skipToken;
65
+ const output = await trpc.query(joinedPath, input, {
65
66
  signal,
66
67
  ...trpcOptions
67
68
  });
package/dist/index.mjs CHANGED
@@ -46,7 +46,8 @@ function createVueQueryProxyDecoration(name, trpc, queryClient) {
46
46
  function createQuery(_input, { trpcOptions, queryOptions }, { type = "query" } = {}) {
47
47
  const queryFn = computed(() => async ({ signal }) => {
48
48
  const input = toValue(_input);
49
- const output = input === skipToken ? void 0 : await trpc.query(joinedPath, input, {
49
+ if (input === skipToken) return skipToken;
50
+ const output = await trpc.query(joinedPath, input, {
50
51
  signal,
51
52
  ...trpcOptions
52
53
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@falcondev-oss/trpc-vue-query",
3
3
  "type": "module",
4
- "version": "0.5.0-rc.15",
4
+ "version": "0.5.0-rc.16",
5
5
  "description": "A tRPC wrapper around '@tanstack/vue-query'",
6
6
  "license": "MIT",
7
7
  "repository": "github:falcondev-oss/trpc-vue-query",