This commit is contained in:
Benjamin Toby 2025-01-05 09:10:33 +01:00
parent bf7fab22eb
commit e28cf872ea
3 changed files with 10 additions and 11 deletions

View File

@ -1 +1,2 @@
export {};
declare const _exports: import("../../types").HttpRequestFunctionType;
export = _exports;

View File

@ -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;
};

View File

@ -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": {