This commit is contained in:
Joel Male 2022-11-10 22:47:53 +10:00
parent 60e01f3e64
commit ec605077bc
6 changed files with 2 additions and 2 deletions

4
dist/index.js vendored
View File

@ -6937,12 +6937,12 @@ exports.debug = debug; // for test
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.http = void 0; exports.http = void 0;
const fetch = __nccwpck_require__(4429); const node_fetch_1 = __nccwpck_require__(4429);
var https = __nccwpck_require__(5687); var https = __nccwpck_require__(5687);
class Http { class Http {
make(url, headers, body, ignoreCertificate) { make(url, headers, body, ignoreCertificate) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
fetch(url, this.getOptions('post', headers, body, ignoreCertificate)).then((res) => resolve(res)); (0, node_fetch_1.default)(url, this.getOptions('post', headers, body, ignoreCertificate)).then((res) => resolve(res));
}); });
} }
getOptions(method, headers, body, ignoreCertificate) { getOptions(method, headers, body, ignoreCertificate) {

Binary file not shown.

Binary file not shown.

Binary file not shown.