This commit is contained in:
Benjamin Toby 2025-04-23 13:20:44 +01:00
parent 6593047efd
commit cd6bfdfc67
8 changed files with 11 additions and 7 deletions

View File

@ -14,7 +14,7 @@ type Param = {
folder?: string;
isPrivate?: boolean;
};
user_id?: boolean;
user_id?: string | number;
};
/**
* # Upload File via API

View File

@ -16,7 +16,7 @@ type Param = {
folder?: string;
isPrivate?: boolean;
};
user_id?: boolean;
user_id?: string | number;
};
/**
* # Upload Image via API

View File

@ -6,4 +6,4 @@
* slugify("Yes!") // "yes"
* slugify("Hello!!! World!") // "hello-world"
*/
export default function slugify(str: string): string;
export default function slugify(str?: string): string;

View File

@ -12,6 +12,8 @@ exports.default = slugify;
*/
function slugify(str) {
try {
if (!str)
return "";
return String(str)
.trim()
.toLowerCase()

View File

@ -17,7 +17,7 @@ type Param = {
folder?: string;
isPrivate?: boolean;
};
user_id?: boolean;
user_id?: string | number;
};
/**

View File

@ -21,7 +21,7 @@ type Param = {
folder?: string;
isPrivate?: boolean;
};
user_id?: boolean;
user_id?: string | number;
};
/**

View File

@ -8,8 +8,10 @@
* slugify("Yes!") // "yes"
* slugify("Hello!!! World!") // "hello-world"
*/
export default function slugify(str: string): string {
export default function slugify(str?: string): string {
try {
if (!str) return "";
return String(str)
.trim()
.toLowerCase()

View File

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