@alemonjs/kook 2.1.7 → 2.1.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/config.d.ts +1 -1
- package/lib/config.js +7 -2
- package/package.json +2 -2
package/lib/config.d.ts
CHANGED
package/lib/config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getConfigValue, isMaster } from 'alemonjs';
|
|
1
|
+
import { getConfigValue, isMaster, createUserHashKey } from 'alemonjs';
|
|
2
2
|
|
|
3
3
|
const platform = 'kook';
|
|
4
4
|
const getKOOKConfig = () => {
|
|
@@ -6,7 +6,12 @@ const getKOOKConfig = () => {
|
|
|
6
6
|
return value[platform] || {};
|
|
7
7
|
};
|
|
8
8
|
const getMaster = (UserId) => {
|
|
9
|
-
|
|
9
|
+
const isMasterUser = isMaster(UserId, platform);
|
|
10
|
+
const UserKey = createUserHashKey({
|
|
11
|
+
Platform: platform,
|
|
12
|
+
UserId
|
|
13
|
+
});
|
|
14
|
+
return [isMasterUser, UserKey];
|
|
10
15
|
};
|
|
11
16
|
|
|
12
17
|
export { getKOOKConfig, getMaster, platform };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alemonjs/kook",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "kook platform connection",
|
|
5
5
|
"author": "lemonade",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"type": "git",
|
|
60
60
|
"url": "https://github.com/lemonade-lab/alemonjs.git"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "8cee61f217e7e72eebc4342513e32232da05167a"
|
|
63
63
|
}
|