Skip to content

Commit

Permalink
updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mishushakov authored and ryoppippi committed Jun 17, 2023
1 parent c2225fd commit 91f546c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@garph/gqty",
"version": "0.4.3",
"version": "0.4.5",
"description": "tRPC-style client for Garph",
"main": "dist/index.js",
"scripts": {
Expand All @@ -18,10 +18,10 @@
},
"homepage": "https://github.com/stepci/garph-gqty#readme",
"dependencies": {
"@gqty/react": "^3.0.0-alpha-4ad34526.0",
"@gqty/react": "3.0.0-alpha-4a2eebdf.0",
"@mishushakov/ts-load": "^1.0.1",
"babel-literal-to-ast": "^2.1.0",
"gqty": "^3.0.0-alpha-4ad34526.0",
"gqty": "^3.0.0-alpha-4a2eebdf.0",
"graphql": "^16.6.0"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type ClientOptions = {
headers?: HeadersInit
defaults?: ReactClientDefaults
cacheOptions?: CacheOptions
fetch?: typeof globalThis.fetch
}

// TODO
Expand All @@ -33,6 +34,7 @@ function createQueryFetcher (options: ClientOptions): QueryFetcher {
{ query, variables, operationName },
fetchOptions
) {
const fetch = options.fetch ?? globalThis.fetch
const response = await fetch(options.url, {
method: "POST",
headers: {
Expand Down

0 comments on commit 91f546c

Please sign in to comment.