@rpcbase/client 0.2.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +3 -0
  2. package/package.json +2 -2
  3. package/rpc_post.js +1 -1
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ /* @flow */
2
+
3
+ module.exports = null
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@rpcbase/client",
3
- "version": "0.2.0",
3
+ "version": "0.7.0",
4
4
  "main": "./index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 0"
7
7
  },
8
8
  "dependencies": {
9
- "axios": "0.24.0"
9
+ "axios": "0.25.0"
10
10
  }
11
11
  }
package/rpc_post.js CHANGED
@@ -13,7 +13,7 @@ const client = axios.create({
13
13
  })
14
14
 
15
15
  const rpc_post = async(url, payload) => {
16
- const res = await axios.post(`${BASE_URL}${url}`, payload)
16
+ const res = await client.post(`${BASE_URL}${url}`, payload)
17
17
  return res.data
18
18
  }
19
19