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