piral-urql
Advanced tools
Comparing version 0.9.0-pre.755 to 0.9.0-pre.756
@@ -28,2 +28,10 @@ "use strict"; | ||
} | ||
function defaultGqlClient() { | ||
if (typeof window !== 'undefined') { | ||
return setup_1.setupGqlClient(); | ||
} | ||
else { | ||
return undefined; | ||
} | ||
} | ||
/** | ||
@@ -33,3 +41,3 @@ * Creates a new Piral GraphQL API extension. | ||
*/ | ||
function createGqlApi(client = setup_1.setupGqlClient()) { | ||
function createGqlApi(client = defaultGqlClient()) { | ||
return context => { | ||
@@ -36,0 +44,0 @@ context.includeProvider(React.createElement(urql_1.Provider, { value: client })); |
{ | ||
"name": "piral-urql", | ||
"version": "0.9.0-pre.755", | ||
"version": "0.9.0-pre.756", | ||
"description": "Extensions for providing a GraphQL client in Piral.", | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"piral-core": "^0.9.0-pre.755" | ||
"piral-core": "^0.9.0-pre.756" | ||
}, | ||
@@ -56,3 +56,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "d9a89026e93ddb2eec63195a98f0a40ec64400cc" | ||
"gitHead": "412a395210f272c7245d8e186970dbb129dc8cd3" | ||
} |
Sorry, the diff of this file is not supported yet
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
30436
629