swaggie 1.0.2-test.1 → 1.0.2-test.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,6 +1,6 @@
1
1
  {
2
2
  "name": "swaggie",
3
- "version": "1.0.2-test.1",
3
+ "version": "1.0.2-test.2",
4
4
  "description": "Generate TypeScript REST client code from an OpenAPI spec",
5
5
  "author": {
6
6
  "name": "Piotr Dabrowski",
@@ -15,7 +15,7 @@ $config?: UndefinedInitialDataOptions<<%~ it.returnType %>, Error, <%~ it.return
15
15
  return useQuery({
16
16
  queryKey: ['<%= it.clientName %>', '<%= it.opKey %>', <% it.query.forEach((parameter) => { %><%= parameter.name %>, <% }); %>],
17
17
  queryFn: () => <%= it.clientName %>Client.<%= it.name %>(<% it.parameters.forEach((parameter) => { %>
18
- <%= parameter.name %>, <% }); %>$httpConfig),
18
+ <%= parameter.name %>, <% }); %>$httpConfig).then(res => res.data),
19
19
  ...$config
20
20
  });
21
21
  }