asv-hlps 1.3.72 → 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.
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.3.72",
3
+ "version": "1.3.73",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",