asv-hlps 1.0.30 → 1.0.31
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/users/user.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const inGrp: (grps: string[], user: User) => boolean;
|
|
|
4
4
|
export declare const inSteGrp: (grps: string[], user: User) => boolean;
|
|
5
5
|
export declare const hasRole: (roles: string[], user: User) => boolean;
|
|
6
6
|
export declare const isBillPeriod: (user: User, period: string) => boolean;
|
|
7
|
-
export declare const isStaffSte: (
|
|
7
|
+
export declare const isStaffSte: (steNames: string[], user: User) => boolean;
|
|
8
8
|
export declare const getFullname: (user: User) => string;
|
|
9
9
|
export declare const entryDesignationUser: (user: User) => string;
|
|
10
10
|
export declare const secureUser: (user: any, username: string, heads: any) => void;
|
package/lib/cjs/users/user.js
CHANGED
|
@@ -50,7 +50,7 @@ const isBillPeriod = (user, period) => {
|
|
|
50
50
|
};
|
|
51
51
|
exports.isBillPeriod = isBillPeriod;
|
|
52
52
|
// export const isStaffSte = (user: User, steNames: string|string[]) => {
|
|
53
|
-
const isStaffSte = (
|
|
53
|
+
const isStaffSte = (steNames, user) => {
|
|
54
54
|
/* if(!Array.isArray(steNames)) {
|
|
55
55
|
return (user.ste.name.toLowerCase() === steNames.toLowerCase());
|
|
56
56
|
} */
|
package/lib/esm/users/user.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const inGrp: (grps: string[], user: User) => boolean;
|
|
|
4
4
|
export declare const inSteGrp: (grps: string[], user: User) => boolean;
|
|
5
5
|
export declare const hasRole: (roles: string[], user: User) => boolean;
|
|
6
6
|
export declare const isBillPeriod: (user: User, period: string) => boolean;
|
|
7
|
-
export declare const isStaffSte: (
|
|
7
|
+
export declare const isStaffSte: (steNames: string[], user: User) => boolean;
|
|
8
8
|
export declare const getFullname: (user: User) => string;
|
|
9
9
|
export declare const entryDesignationUser: (user: User) => string;
|
|
10
10
|
export declare const secureUser: (user: any, username: string, heads: any) => void;
|
package/lib/esm/users/user.js
CHANGED
|
@@ -17,7 +17,7 @@ export const isBillPeriod = (user, period) => {
|
|
|
17
17
|
return user.periodBill.toLowerCase() === period ? true : false;
|
|
18
18
|
};
|
|
19
19
|
// export const isStaffSte = (user: User, steNames: string|string[]) => {
|
|
20
|
-
export const isStaffSte = (
|
|
20
|
+
export const isStaffSte = (steNames, user) => {
|
|
21
21
|
/* if(!Array.isArray(steNames)) {
|
|
22
22
|
return (user.ste.name.toLowerCase() === steNames.toLowerCase());
|
|
23
23
|
} */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asv-hlps",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"typescript": "^4.6.3"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"asv-hlps-models": "^1.0.
|
|
24
|
+
"asv-hlps-models": "^1.0.4",
|
|
25
25
|
"bcryptjs": "^2.4.3",
|
|
26
26
|
"randomatic": "^3.1.1"
|
|
27
27
|
}
|