asv-hlps 1.3.7 → 1.3.8

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/user.d.ts CHANGED
@@ -14,7 +14,7 @@ export declare const inGrp: (grps: string[], user: User | UserNotarial) => boole
14
14
  export declare const inSteGrp: (grps: string[], user: User | UserNotarial) => boolean;
15
15
  export declare const hasRole: (roles: string[], role: UserRole) => boolean;
16
16
  export declare const isBillPeriod: (user: User | UserNotarial, period: string) => boolean;
17
- export declare const isStaffSte: (steNames: string[], steName: string) => boolean;
17
+ export declare const isStaffSte: (steNames: string[], userSteName: string) => boolean;
18
18
  export declare const getFullname: <T extends FullnameType>(user: T) => string;
19
19
  export declare const entryDesignationUser: (user: User | UserNotarial) => string;
20
20
  export declare const secureUser: (user: any, username: string, heads: any) => void;
package/lib/cjs/user.js CHANGED
@@ -56,8 +56,8 @@ exports.isBillPeriod = isBillPeriod;
56
56
 
57
57
  return [...steNames].includes(user.ste.name.toLowerCase());
58
58
  }; */
59
- const isStaffSte = (steNames, steName) => {
60
- return [...steNames].includes(steName.toLowerCase());
59
+ const isStaffSte = (steNames, userSteName) => {
60
+ return [...steNames].includes(userSteName.toLowerCase());
61
61
  };
62
62
  exports.isStaffSte = isStaffSte;
63
63
  // export const getFullname = (user: User | UserNotarial) => {
package/lib/cjs/utils.js CHANGED
@@ -618,7 +618,7 @@ exports.monthStringName = monthStringName;
618
618
  const dateFormatter = (date, format, separator = "-") => {
619
619
  switch (format) {
620
620
  case "ymd":
621
- return (0, dayjs_1.default)(date).format(`"YYYY${separator}MM${separator}DD"`);
621
+ return (0, dayjs_1.default)(date).format(`YYYY${separator}MM${separator}DD`);
622
622
  case "dmy":
623
623
  return (0, dayjs_1.default)(date).format(`DD${separator}MM${separator}YYYY`);
624
624
  case "dmy-hm":
package/lib/esm/user.d.ts CHANGED
@@ -14,7 +14,7 @@ export declare const inGrp: (grps: string[], user: User | UserNotarial) => boole
14
14
  export declare const inSteGrp: (grps: string[], user: User | UserNotarial) => boolean;
15
15
  export declare const hasRole: (roles: string[], role: UserRole) => boolean;
16
16
  export declare const isBillPeriod: (user: User | UserNotarial, period: string) => boolean;
17
- export declare const isStaffSte: (steNames: string[], steName: string) => boolean;
17
+ export declare const isStaffSte: (steNames: string[], userSteName: string) => boolean;
18
18
  export declare const getFullname: <T extends FullnameType>(user: T) => string;
19
19
  export declare const entryDesignationUser: (user: User | UserNotarial) => string;
20
20
  export declare const secureUser: (user: any, username: string, heads: any) => void;
package/lib/esm/user.js CHANGED
@@ -23,8 +23,8 @@ export const isBillPeriod = (user, period) => {
23
23
 
24
24
  return [...steNames].includes(user.ste.name.toLowerCase());
25
25
  }; */
26
- export const isStaffSte = (steNames, steName) => {
27
- return [...steNames].includes(steName.toLowerCase());
26
+ export const isStaffSte = (steNames, userSteName) => {
27
+ return [...steNames].includes(userSteName.toLowerCase());
28
28
  };
29
29
  // export const getFullname = (user: User | UserNotarial) => {
30
30
  export const getFullname = (user) => {
package/lib/esm/utils.js CHANGED
@@ -536,7 +536,7 @@ export const monthStringName = (date, format = "MMM", options) => {
536
536
  export const dateFormatter = (date, format, separator = "-") => {
537
537
  switch (format) {
538
538
  case "ymd":
539
- return dayjs(date).format(`"YYYY${separator}MM${separator}DD"`);
539
+ return dayjs(date).format(`YYYY${separator}MM${separator}DD`);
540
540
  case "dmy":
541
541
  return dayjs(date).format(`DD${separator}MM${separator}YYYY`);
542
542
  case "dmy-hm":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",