@kitql/client
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -1,2 +0,2 @@ | ||
export { clientNavigation, defaultStoreValue, InMemoryCache, isLoading, KitQLClient, LocalStorageCache, RequestFrom, RequestStatus, setClientNavigation } from './lib/toExport'; | ||
export { defaultStoreValue, InMemoryCache, isLoading, KitQLClient, LocalStorageCache, RequestFrom, RequestStatus } from './lib/toExport'; | ||
export type { Credential, HeaderContentType, ICacheData, LogType, PatchType, Policy, RequestParameters, RequestQueryParameters, RequestResult } from './lib/toExport'; |
@@ -113,7 +113,2 @@ 'use strict'; | ||
exports.clientNavigation = false; | ||
const setClientNavigation = () => { | ||
exports.clientNavigation = true; | ||
}; | ||
function printBlockString(n) { | ||
@@ -416,2 +411,1 @@ return '"""\n' + JSON.stringify(n).slice(1, -1) + '\n"""'; | ||
exports.isLoading = isLoading; | ||
exports.setClientNavigation = setClientNavigation; |
{ | ||
"name": "@kitql/client", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"dependencies": { | ||
"@kitql/comp": "0.0.2", | ||
"@kitql/helper": "0.1.7" | ||
@@ -20,2 +21,3 @@ }, | ||
"exports": { | ||
"./src/lib/toExport/components/InitClientNavigation.svelte": "./lib/toExport/components/InitClientNavigation.svelte", | ||
"./package.json": "./package.json", | ||
@@ -22,0 +24,0 @@ ".": { |
@@ -9,20 +9,2 @@ # KitQL - client | ||
# ⚡How to - client | ||
```bash | ||
yarn add -D @kitql/client | ||
``` | ||
To use, KitQL Client, create an instance of it in file | ||
`./src/lib/graphql/kitQL.ts` | ||
```ts | ||
import { KitQLClient } from '@kitql/client/kitQLClient'; | ||
const VITE_HOST = import.meta.env.VITE_HOST; | ||
export const kitQLClient = new KitQLClient({ | ||
url: `${VITE_HOST}/api/graphql` | ||
}); | ||
``` | ||
This `kitQLClient` instance will be used in your stores generated by [KitQL - graphql-codegen](https://github.com/jycouet/kitql/tree/main/packages/graphql-codegen) | ||
## Check the [⚡Doc⚡](https://kitql.vercel.app/docs/setup/02_client) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40753
2
13
941
10
+ Added@kitql/comp@0.0.2
+ Added@kitql/comp@0.0.2(transitive)
+ Addeddedent-js@1.0.1(transitive)
+ Addedlower-case@2.0.2(transitive)
+ Addedno-case@3.0.4(transitive)
+ Addedpascal-case@3.1.2(transitive)
+ Addedsvelte@3.59.2(transitive)
+ Addedsvelte2tsx@0.5.6(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addedtypescript@4.9.5(transitive)