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

View File

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