This commit is contained in:
Benjamin Toby 2025-09-03 13:27:04 +01:00
parent 97f480c208
commit c34d256891
5 changed files with 8 additions and 3 deletions

View File

@ -34,6 +34,8 @@ function sqlGenerator({ tableName, genObject, dbFullName, count }) {
queryObj.value.forEach((val) => {
var _a;
const valueParsed = val;
if (!valueParsed)
return;
const valueString = typeof valueParsed == "string"
? valueParsed
: (_a = valueParsed.value) === null || _a === void 0 ? void 0 : _a.toString();

View File

@ -836,7 +836,7 @@ export type ServerQueryValuesObject = {
export type ServerQueryObject<T extends object = {
[key: string]: any;
}, K extends string = string> = {
value?: string | (string | ServerQueryValuesObject)[];
value?: string | (string | ServerQueryValuesObject | undefined | null)[];
nullValue?: boolean;
notNullValue?: boolean;
operator?: (typeof ServerQueryOperators)[number];

View File

@ -61,6 +61,9 @@ export default function sqlGenerator<
const strArray: string[] = [];
queryObj.value.forEach((val) => {
const valueParsed = val;
if (!valueParsed) return;
const valueString =
typeof valueParsed == "string"
? valueParsed

View File

@ -1020,7 +1020,7 @@ export type ServerQueryObject<
T extends object = { [key: string]: any },
K extends string = string
> = {
value?: string | (string | ServerQueryValuesObject)[];
value?: string | (string | ServerQueryValuesObject | undefined | null)[];
nullValue?: boolean;
notNullValue?: boolean;
operator?: (typeof ServerQueryOperators)[number];

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/datasquirel",
"version": "5.2.5",
"version": "5.2.6",
"description": "Cloud-based SQL data management tool",
"main": "dist/index.js",
"bin": {