@metarisc/metarisc-js 0.0.1-alpha.92 → 0.0.1-alpha.93

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.
package/lib/client.js CHANGED
@@ -135,7 +135,8 @@ class Client {
135
135
  this.emit(EventEnum.request, config);
136
136
  return this.axios.request({ ...config, ...{
137
137
  method: config.method || "GET",
138
- url: config.endpoint || "/"
138
+ url: config.endpoint || "/",
139
+ data: config.body
139
140
  } }).then((response) => {
140
141
  this.emit(EventEnum.response, response);
141
142
  return response;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@metarisc/metarisc-js",
3
3
  "main": "lib/index.js",
4
4
  "types": "lib/index.d.ts",
5
- "version": "0.0.1-alpha.92",
5
+ "version": "0.0.1-alpha.93",
6
6
  "scripts": {
7
7
  "lint": "eslint . --ext .ts --fix",
8
8
  "compile": "tsc",
package/src/client.ts CHANGED
@@ -163,7 +163,8 @@ export class Client {
163
163
  this.emit(EventEnum.request, config);
164
164
  return this.axios.request<T>({ ...config, ...{
165
165
  method: config.method || "GET",
166
- url: config.endpoint || "/"
166
+ url: config.endpoint || "/",
167
+ data: config.body
167
168
  } }).then((response) => {
168
169
  this.emit(EventEnum.response, response);
169
170
  return response;
@@ -238,4 +239,4 @@ export class Client {
238
239
  {
239
240
  return this.axios.defaults.baseURL;
240
241
  }
241
- }
242
+ }