Updates
This commit is contained in:
parent
e3c98388c6
commit
2091c823c8
@ -82,6 +82,7 @@ function apiGet(_a) {
|
||||
(_b = global.ERROR_CALLBACK) === null || _b === void 0 ? void 0 : _b.call(global, `API Get Error`, error);
|
||||
if (debug && global.DSQL_USE_LOCAL) {
|
||||
console.log("apiGet:error", error.message);
|
||||
console.log("queryAndValues", queryAndValues);
|
||||
}
|
||||
return {
|
||||
success: false,
|
||||
|
@ -15,7 +15,7 @@ function apiGetGrabQueryAndValues({ query, values }) {
|
||||
});
|
||||
return {
|
||||
query: typeof query == "string"
|
||||
? String(query.replace(/\n|\r|\n\r/g, "").replace(/ {2,}/g, " "))
|
||||
? String(query.replace(/\n|\r|\n\r/g, " ").replace(/ {2,}/g, " "))
|
||||
: (queryGenObject === null || queryGenObject === void 0 ? void 0 : queryGenObject.string) || "",
|
||||
values: values || (queryGenObject === null || queryGenObject === void 0 ? void 0 : queryGenObject.values),
|
||||
valuesString: typeof query == "string"
|
||||
|
@ -105,6 +105,7 @@ export default async function apiGet<
|
||||
|
||||
if (debug && global.DSQL_USE_LOCAL) {
|
||||
console.log("apiGet:error", error.message);
|
||||
console.log("queryAndValues", queryAndValues);
|
||||
}
|
||||
|
||||
return {
|
||||
|
@ -21,7 +21,7 @@ export default function apiGetGrabQueryAndValues<
|
||||
query:
|
||||
typeof query == "string"
|
||||
? String(
|
||||
query.replace(/\n|\r|\n\r/g, "").replace(/ {2,}/g, " ")
|
||||
query.replace(/\n|\r|\n\r/g, " ").replace(/ {2,}/g, " ")
|
||||
)
|
||||
: queryGenObject?.string || "",
|
||||
values: values || queryGenObject?.values,
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/datasquirel",
|
||||
"version": "4.2.5",
|
||||
"version": "4.2.6",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
|
Loading…
Reference in New Issue
Block a user