@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 +2 -1
- package/package.json +1 -1
- package/src/client.ts +3 -2
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
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
|
+
}
|