Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ahau-graphql-client

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ahau-graphql-client - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

3

index.js
const { ApolloClient, InMemoryCache, gql } = require('@apollo/client')
const { createUploadLink } = require('apollo-upload-client') // partners with graphql-upload
// await new Promise(resolve => ssb.ahau.onReady(resolve))
export default class AhauGraphqlClient extends ApolloClient {
constructor (uri, opts = {}) {
if (!uri) throw new Error(`graphql uri required, got ${uri}`)
if (typeof uri === 'number') uri = `http://localhost:${uri}/graphql`

@@ -10,0 +9,0 @@ const isBrowser = typeof window !== 'undefined'

{
"name": "ahau-graphql-client",
"version": "0.0.4",
"version": "0.0.5",
"description": "apollo graphql client for ahau apps",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -19,2 +19,3 @@ # ahau-graphql-client

- `uri` *String* is the http endpoint of your graphql server
- if *Number*, it's assumed to be a port, and uri will be set to `http://localhost:${port}/graphql`
- `opts` *Object* (optional) lets you set:

@@ -21,0 +22,0 @@ - `opts.possibleTypes` *Object* for [resolving fragments](https://www.apollographql.com/docs/react/data/fragments/)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc