@@ -12,7 +12,7 @@ This package intentionally doesn't implement the "arguments" form of request par
12
12
## Installation
13
13
14
14
``` sh
15
- npm install @borderlesslabs /json-rpc --save
15
+ npm install @borderless /json-rpc --save
16
16
```
17
17
18
18
## Usage
@@ -39,7 +39,7 @@ type Methods = {
39
39
The server accepts a dictionary of resolvers.
40
40
41
41
``` ts
42
- import { createServer } from " @borderlesslabs /json-rpc" ;
42
+ import { createServer } from " @borderless /json-rpc" ;
43
43
44
44
const server = createServer <Methods >({
45
45
hello : _ => " Hello World!" ,
@@ -58,7 +58,7 @@ const res = await server({
58
58
The client accepts a function to ` send ` the JSON-RPC request.
59
59
60
60
``` ts
61
- import { createClient } from " @borderlesslabs /json-rpc" ;
61
+ import { createClient } from " @borderless /json-rpc" ;
62
62
63
63
const client = createClient (async payload => {
64
64
const res = await fetch (" ..." , {
@@ -93,11 +93,11 @@ const results = await client.many([
93
93
94
94
MIT
95
95
96
- [ npm-image ] : https://img.shields.io/npm/v/@borderlesslabs /json-rpc.svg?style=flat
97
- [ npm-url ] : https://npmjs.org/package/@borderlesslabs /json-rpc
98
- [ downloads-image ] : https://img.shields.io/npm/dm/@borderlesslabs /json-rpc.svg?style=flat
99
- [ downloads-url ] : https://npmjs.org/package/@borderlesslabs /json-rpc
100
- [ travis-image ] : https://img.shields.io/travis/BorderlessLabs /json-rpc.svg?style=flat
101
- [ travis-url ] : https://travis-ci.org/BorderlessLabs /json-rpc
102
- [ coveralls-image ] : https://img.shields.io/coveralls/BorderlessLabs /json-rpc.svg?style=flat
103
- [ coveralls-url ] : https://coveralls.io/r/BorderlessLabs /json-rpc?branch=master
96
+ [ npm-image ] : https://img.shields.io/npm/v/@borderless /json-rpc.svg?style=flat
97
+ [ npm-url ] : https://npmjs.org/package/@borderless /json-rpc
98
+ [ downloads-image ] : https://img.shields.io/npm/dm/@borderless /json-rpc.svg?style=flat
99
+ [ downloads-url ] : https://npmjs.org/package/@borderless /json-rpc
100
+ [ travis-image ] : https://img.shields.io/travis/borderless /json-rpc.svg?style=flat
101
+ [ travis-url ] : https://travis-ci.org/borderless /json-rpc
102
+ [ coveralls-image ] : https://img.shields.io/coveralls/borderless /json-rpc.svg?style=flat
103
+ [ coveralls-url ] : https://coveralls.io/r/borderless /json-rpc?branch=master
0 commit comments