otomato-sdk 1.3.1 → 1.3.2
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.
|
@@ -29,7 +29,8 @@ class ApiServices {
|
|
|
29
29
|
}
|
|
30
30
|
post(url, data) {
|
|
31
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
|
|
32
|
+
console.log(JSON.stringify(data));
|
|
33
|
+
const headers = this.auth ? { 'Authorization': this.auth } : {};
|
|
33
34
|
const response = yield axiosInstance.post(url, data, { headers });
|
|
34
35
|
return response.data;
|
|
35
36
|
});
|
package/package.json
CHANGED
|
@@ -21,7 +21,8 @@ class ApiServices {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
async post(url: string, data: any) {
|
|
24
|
-
|
|
24
|
+
console.log(JSON.stringify(data));
|
|
25
|
+
const headers = this.auth ? { 'Authorization': this.auth } : {};
|
|
25
26
|
const response = await axiosInstance.post(url, data, { headers });
|
|
26
27
|
return response.data;
|
|
27
28
|
}
|