Updates
This commit is contained in:
parent
6593047efd
commit
cd6bfdfc67
2
dist/package-shared/actions/upload-file.d.ts
vendored
2
dist/package-shared/actions/upload-file.d.ts
vendored
@ -14,7 +14,7 @@ type Param = {
|
|||||||
folder?: string;
|
folder?: string;
|
||||||
isPrivate?: boolean;
|
isPrivate?: boolean;
|
||||||
};
|
};
|
||||||
user_id?: boolean;
|
user_id?: string | number;
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* # Upload File via API
|
* # Upload File via API
|
||||||
|
@ -16,7 +16,7 @@ type Param = {
|
|||||||
folder?: string;
|
folder?: string;
|
||||||
isPrivate?: boolean;
|
isPrivate?: boolean;
|
||||||
};
|
};
|
||||||
user_id?: boolean;
|
user_id?: string | number;
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* # Upload Image via API
|
* # Upload Image via API
|
||||||
|
2
dist/package-shared/utils/slugify.d.ts
vendored
2
dist/package-shared/utils/slugify.d.ts
vendored
@ -6,4 +6,4 @@
|
|||||||
* slugify("Yes!") // "yes"
|
* slugify("Yes!") // "yes"
|
||||||
* slugify("Hello!!! World!") // "hello-world"
|
* slugify("Hello!!! World!") // "hello-world"
|
||||||
*/
|
*/
|
||||||
export default function slugify(str: string): string;
|
export default function slugify(str?: string): string;
|
||||||
|
2
dist/package-shared/utils/slugify.js
vendored
2
dist/package-shared/utils/slugify.js
vendored
@ -12,6 +12,8 @@ exports.default = slugify;
|
|||||||
*/
|
*/
|
||||||
function slugify(str) {
|
function slugify(str) {
|
||||||
try {
|
try {
|
||||||
|
if (!str)
|
||||||
|
return "";
|
||||||
return String(str)
|
return String(str)
|
||||||
.trim()
|
.trim()
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
|
@ -17,7 +17,7 @@ type Param = {
|
|||||||
folder?: string;
|
folder?: string;
|
||||||
isPrivate?: boolean;
|
isPrivate?: boolean;
|
||||||
};
|
};
|
||||||
user_id?: boolean;
|
user_id?: string | number;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,7 +21,7 @@ type Param = {
|
|||||||
folder?: string;
|
folder?: string;
|
||||||
isPrivate?: boolean;
|
isPrivate?: boolean;
|
||||||
};
|
};
|
||||||
user_id?: boolean;
|
user_id?: string | number;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -8,8 +8,10 @@
|
|||||||
* slugify("Yes!") // "yes"
|
* slugify("Yes!") // "yes"
|
||||||
* slugify("Hello!!! World!") // "hello-world"
|
* slugify("Hello!!! World!") // "hello-world"
|
||||||
*/
|
*/
|
||||||
export default function slugify(str: string): string {
|
export default function slugify(str?: string): string {
|
||||||
try {
|
try {
|
||||||
|
if (!str) return "";
|
||||||
|
|
||||||
return String(str)
|
return String(str)
|
||||||
.trim()
|
.trim()
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/datasquirel",
|
"name": "@moduletrace/datasquirel",
|
||||||
"version": "4.4.1",
|
"version": "4.4.2",
|
||||||
"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