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