@ekhein/http-request 1.0.8 → 1.0.9
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/dist/main.js +4 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -230,14 +230,14 @@ class HttpRequest {
|
|
|
230
230
|
.request(options);
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
post(
|
|
234
|
-
return __awaiter(this,
|
|
233
|
+
post(url_1, data_1) {
|
|
234
|
+
return __awaiter(this, arguments, void 0, function* (url, data, opts = {}) {
|
|
235
235
|
return this.instance
|
|
236
236
|
.request(Object.assign(Object.assign({}, opts), { method: "POST", serviceType: 1, url, data }));
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
|
-
call(
|
|
240
|
-
return __awaiter(this,
|
|
239
|
+
call(path_1, data_1) {
|
|
240
|
+
return __awaiter(this, arguments, void 0, function* (path, data, opts = {}) {
|
|
241
241
|
return this.instance
|
|
242
242
|
.request(Object.assign(Object.assign({}, opts), { method: "POST", serviceType: 2, path, data }));
|
|
243
243
|
});
|