asv-hlps 1.3.71 → 1.3.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/shared/HlpCrud.d.ts +1 -0
- package/lib/cjs/shared/HlpCrud.js +5 -0
- package/lib/cjs/shared/models/Image.d.ts +6 -0
- package/lib/cjs/shared/models/Image.js +2 -0
- package/lib/esm/shared/HlpCrud.d.ts +1 -0
- package/lib/esm/shared/HlpCrud.js +5 -0
- package/lib/esm/shared/models/Image.d.ts +6 -0
- package/lib/esm/shared/models/Image.js +1 -0
- package/package.json +3 -3
|
@@ -17,5 +17,6 @@ export declare class HlpCrud {
|
|
|
17
17
|
update(id: number, tob: any, model: typeof Entity | any): any;
|
|
18
18
|
save(tob: any, model: typeof Entity | any): any;
|
|
19
19
|
findById(id: string | number, model: typeof Entity | any): any;
|
|
20
|
+
toLowerCase(tob: any): void;
|
|
20
21
|
private checkObj;
|
|
21
22
|
}
|
|
@@ -184,6 +184,11 @@ class HlpCrud {
|
|
|
184
184
|
}
|
|
185
185
|
catch (error) { }
|
|
186
186
|
}
|
|
187
|
+
toLowerCase(tob) {
|
|
188
|
+
tob.code = tob.code ? tob.code.toLowerCase() : null;
|
|
189
|
+
tob.iconName = tob.iconName ? tob.iconName.toLowerCase() : null;
|
|
190
|
+
tob.iconPack = tob.iconPack ? tob.iconPack.toLowerCase() : null;
|
|
191
|
+
}
|
|
187
192
|
checkObj(obj, reqId, res) {
|
|
188
193
|
if (!obj) {
|
|
189
194
|
return res.send(true);
|
|
@@ -17,5 +17,6 @@ export declare class HlpCrud {
|
|
|
17
17
|
update(id: number, tob: any, model: typeof Entity | any): any;
|
|
18
18
|
save(tob: any, model: typeof Entity | any): any;
|
|
19
19
|
findById(id: string | number, model: typeof Entity | any): any;
|
|
20
|
+
toLowerCase(tob: any): void;
|
|
20
21
|
private checkObj;
|
|
21
22
|
}
|
|
@@ -181,6 +181,11 @@ export class HlpCrud {
|
|
|
181
181
|
}
|
|
182
182
|
catch (error) { }
|
|
183
183
|
}
|
|
184
|
+
toLowerCase(tob) {
|
|
185
|
+
tob.code = tob.code ? tob.code.toLowerCase() : null;
|
|
186
|
+
tob.iconName = tob.iconName ? tob.iconName.toLowerCase() : null;
|
|
187
|
+
tob.iconPack = tob.iconPack ? tob.iconPack.toLowerCase() : null;
|
|
188
|
+
}
|
|
184
189
|
checkObj(obj, reqId, res) {
|
|
185
190
|
if (!obj) {
|
|
186
191
|
return res.send(true);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asv-hlps",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.73",
|
|
4
4
|
"description": "helpers",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@types/lodash": "^4.17.0",
|
|
22
22
|
"@types/pdfmake": "^0.2.9",
|
|
23
23
|
"@types/randomatic": "^3.1.5",
|
|
24
|
-
"@types/react": "^18.2.
|
|
24
|
+
"@types/react": "^18.2.78"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"axios": "^1.6.8",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"pdfmake": "^0.2.10",
|
|
35
35
|
"randomatic": "^3.1.1",
|
|
36
36
|
"typeorm": "^0.3.20",
|
|
37
|
-
"typescript": "^5.4.
|
|
37
|
+
"typescript": "^5.4.5",
|
|
38
38
|
"yup": "^1.4.0"
|
|
39
39
|
}
|
|
40
40
|
}
|