jurischain-middleware
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Jurischain Middleware for ReactRelayNetworkLayer (Classic)

Helper to enable the use of Jurischain with ReactRelayNetworkLayer written in TypeScript.

TL-DR

Installation

npm install --save jurischain-module
npm install --save jurischain-middleware

Use

import Relay from 'react-relay';
import { RelayNetworkLayer } from 'react-relay-network-layer';
import { solve as JurischainSolver } from 'jurischain-module'
import JurischainMiddleware from 'jurischain-middleware'

Relay.injectNetworkLayer(new RelayNetworkLayer([
    JurischainMiddleware({ solver: JurischainSolver })
]));

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i jurischain-middleware

    Weekly Downloads

    2

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    4.71 kB

    Total Files

    4

    Last publish

    Collaborators

    • lfamorim