type fix
This commit is contained in:
parent
bf7fab22eb
commit
e28cf872ea
@ -1 +1,2 @@
|
|||||||
export {};
|
declare const _exports: import("../../types").HttpRequestFunctionType;
|
||||||
|
export = _exports;
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
|
|
||||||
import http from "node:http";
|
const http = require("node:http");
|
||||||
import https from "node:https";
|
const https = require("node:https");
|
||||||
import querystring from "querystring";
|
const querystring = require("querystring");
|
||||||
import serializeQuery from "../../utils/serialize-query";
|
const serializeQuery = require("../../utils/serialize-query");
|
||||||
import _ from "lodash";
|
const _ = require("lodash");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* # Generate a http Request
|
* # Generate a http Request
|
||||||
* @type {import("../../types").HttpRequestFunctionType}
|
* @type {import("../../types").HttpRequestFunctionType}
|
||||||
*/
|
*/
|
||||||
async function httpRequest(params) {
|
module.exports = function httpRequest(params) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const isUrlEncodedFormBody = params.urlEncodedFormBody;
|
const isUrlEncodedFormBody = params.urlEncodedFormBody;
|
||||||
|
|
||||||
@ -91,6 +91,4 @@ async function httpRequest(params) {
|
|||||||
|
|
||||||
httpsRequest.end();
|
httpsRequest.end();
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
module.exports = httpRequest;
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/datasquirel",
|
"name": "@moduletrace/datasquirel",
|
||||||
"version": "3.3.3",
|
"version": "3.3.4",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
Loading…
Reference in New Issue
Block a user