@kitql/client
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -1,5 +0,2 @@ | ||
export { InMemoryCache, LocalStorageCache } from './lib/toExport'; | ||
export type { ICacheData } from './lib/toExport'; | ||
export { isLoading } from './lib/toExport'; | ||
export { defaultStoreValue, KitQLClient, RequestFrom, RequestStatus } from './lib/toExport'; | ||
export type { Credential, HeaderContentType, LogType, Policy, RequestParameters, RequestQueryParameters, RequestResult, PatchType } from './lib/toExport'; | ||
export { clientNavigation, defaultStoreValue, InMemoryCache, isLoading, KitQLClient, LocalStorageCache, RequestFrom, RequestStatus, setClientNavigation } from './lib/toExport'; | ||
export type { Credential, HeaderContentType, ICacheData, LogType, PatchType, Policy, RequestParameters, RequestQueryParameters, RequestResult } from './lib/toExport'; |
12
index.js
@@ -113,2 +113,7 @@ 'use strict'; | ||
exports.clientNavigation = false; | ||
const setClientNavigation = () => { | ||
exports.clientNavigation = true; | ||
}; | ||
function printBlockString(n) { | ||
@@ -296,3 +301,3 @@ return '"""\n' + JSON.stringify(n).slice(1, -1) + '\n"""'; | ||
this.log.error(`I think that either:` + | ||
`\n\t${helper.logRed(`1/`)} you forgot to provide \`${helper.logYellow(`fetch`)}\`! As we are in SSR & include here. ` + | ||
`\n\t${helper.logRed(`1/`)} you forgot to provide \`${helper.logYellow(`fetch`)}\`! As we are in SSR here. ` + | ||
`\n\t It should be something like:` + | ||
@@ -302,3 +307,3 @@ `\n` + | ||
`\n\t export async function load({ ${helper.logYellow(`fetch`)} }) {` + | ||
`\n\t await ${helper.logCyan(operationName)}.query({ ${helper.logYellow(`fetch`)}, variables: { ... } });` + | ||
`\n\t ${helper.logYellow('await')} ${helper.logCyan(operationName)}.queryLoad({ ${helper.logYellow(`fetch`)}, variables: { ... } });` + | ||
`\n\t return {};` + | ||
@@ -369,3 +374,3 @@ `\n\t }` + | ||
catch (errors) { | ||
dataToReturn.errors = errors; | ||
dataToReturn.errors = [errors]; | ||
return dataToReturn; | ||
@@ -414,1 +419,2 @@ } | ||
exports.isLoading = isLoading; | ||
exports.setClientNavigation = setClientNavigation; |
export { InMemoryCache, LocalStorageCache } from './cache'; | ||
export type { ICacheData } from './cache'; | ||
export { clientNavigation, setClientNavigation } from './clientNavigation'; | ||
export { isLoading } from './isLoading'; | ||
export { defaultStoreValue, KitQLClient, RequestFrom, RequestStatus } from './kitQLClient'; | ||
export type { Credential, HeaderContentType, LogType, Policy, RequestParameters, RequestQueryParameters, RequestResult, PatchType } from './kitQLClient'; | ||
export type { Credential, HeaderContentType, LogType, PatchType, Policy, RequestParameters, RequestQueryParameters, RequestResult } from './kitQLClient'; |
{ | ||
"name": "@kitql/client", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "@kitql/helper": "0.1.7" |
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
51847
15
950