@bizniche/react
Advanced tools
Comparing version 0.0.4 to 0.0.5
import { jsx as s } from "react/jsx-runtime"; | ||
import { HttpLink as l, ApolloClient as a, InMemoryCache as p, ApolloProvider as d, gql as n, useQuery as o } from "@apollo/client"; | ||
import { HttpLink as a, ApolloClient as l, InMemoryCache as p, ApolloProvider as d, gql as n, useQuery as o } from "@apollo/client"; | ||
import { useMemo as u } from "react"; | ||
@@ -7,3 +7,3 @@ function f({ | ||
}) { | ||
const e = new l({ | ||
const e = new a({ | ||
uri: "https://api.bizniche.co/graphql", | ||
@@ -14,3 +14,3 @@ headers: { | ||
}); | ||
return new a({ | ||
return new l({ | ||
link: e, | ||
@@ -37,5 +37,5 @@ cache: new p({}) | ||
} | ||
const h = n` | ||
const w = n` | ||
query GetApiViewer { | ||
me { | ||
apiViewer { | ||
id | ||
@@ -49,3 +49,3 @@ username | ||
function V(r) { | ||
const { data: e, loading: i, error: t } = o(h, r); | ||
const { data: e, loading: i, error: t } = o(w, r); | ||
return { apiViewer: u(() => { | ||
@@ -52,0 +52,0 @@ if (e) |
{ | ||
"name": "@bizniche/react", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "dist/react.js", |
4885