slicknode-apollo-link

v1.0.1
ApolloLink component that automatically sets authentication headers for GraphQL requests via the [apollo-client](https://www.apollographql.com/client). It stores the access and refresh tokens in a store (for example InMemory, localStorage, sessionStorage

lint

tslint -c tslint.json 'src/**/*.ts'

lint:fix

tslint -c tslint.json --fix 'src/**/*.ts'

build

tsc

clean

rimraf dist/*

watch

tsc --watch

test

npm run lint && npm run testonly

testonly

mocha --check-leaks --exit --full-trace --require ts-node/register 'src/**/__tests__/**/*-test.{ts,tsx}'

testonly:cover

nyc --reporter html --reporter text-summary -- npm run testonly

testonly:coveralls

nyc --silent -- npm run testonly && nyc report --reporter text-lcov | coveralls

dist

npm run clean && tsc

prepare

npm run clean && npm run dist

Metadata

  • MIT
  • Whatever
  • Ivo Meißner
  • released 11/13/2019

Downloads

Maintainers