k2hr3-api 2.0.2 → 2.0.3
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.
|
@@ -412,7 +412,7 @@ const rawGetUserToken = (user, passwd, tenant, callback) => {
|
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
414
|
const _tenant = k2hr3apiutil_1.default.getSafeString(tenant).toLowerCase();
|
|
415
|
-
|
|
415
|
+
const _user = user;
|
|
416
416
|
const _passwd = k2hr3apiutil_1.default.getSafeString(passwd);
|
|
417
417
|
// get unscoped token
|
|
418
418
|
rawGetUserUnscopedTokenWrap(_user, _passwd, (err, jsonres) => {
|
|
@@ -423,7 +423,7 @@ const rawGetUserToken = (user, passwd, tenant, callback) => {
|
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
425
|
// save to local val
|
|
426
|
-
|
|
426
|
+
//const _cur_user = jsonres.user;
|
|
427
427
|
const _userid = jsonres.userid;
|
|
428
428
|
const _username = jsonres.user;
|
|
429
429
|
const _unscopedtoken = jsonres.token;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "k2hr3-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "K2HR3 REST API is K2hdkc based Resource and Roles and policy Rules",
|
|
5
5
|
"main": "dist/app.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -12,10 +12,13 @@
|
|
|
12
12
|
"debug": "~4.4.3",
|
|
13
13
|
"express": "^5.2.1",
|
|
14
14
|
"jose": "^6.2.3",
|
|
15
|
-
"k2hdkc": "^2.0.
|
|
15
|
+
"k2hdkc": "^2.0.6",
|
|
16
16
|
"morgan": "~1.11.0",
|
|
17
17
|
"rotating-file-stream": "^3.2.9"
|
|
18
18
|
},
|
|
19
|
+
"allowScripts": {
|
|
20
|
+
"k2hdkc": true
|
|
21
|
+
},
|
|
19
22
|
"directories": {
|
|
20
23
|
"config": "config",
|
|
21
24
|
"bin": "dist/src/bin",
|
|
@@ -35,7 +38,7 @@
|
|
|
35
38
|
"k2hr3-watcher": "dist/src/bin/watcher.js"
|
|
36
39
|
},
|
|
37
40
|
"devDependencies": {
|
|
38
|
-
"@eslint/eslintrc": "^3.3.
|
|
41
|
+
"@eslint/eslintrc": "^3.3.6",
|
|
39
42
|
"@eslint/js": "^10.0.1",
|
|
40
43
|
"@types/body-parser": "^1.19.6",
|
|
41
44
|
"@types/chai": "^5.2.3",
|
|
@@ -46,12 +49,12 @@
|
|
|
46
49
|
"@types/express": "^5.0.6",
|
|
47
50
|
"@types/mocha": "^10.0.10",
|
|
48
51
|
"@types/morgan": "^1.9.10",
|
|
49
|
-
"@types/node": "^26.1.
|
|
52
|
+
"@types/node": "^26.1.1",
|
|
50
53
|
"@typescript-eslint/eslint-plugin": "^8.62.1",
|
|
51
54
|
"@typescript-eslint/parser": "^8.62.1",
|
|
52
55
|
"chai": "^6.2.2",
|
|
53
56
|
"chai-http": "^5.1.2",
|
|
54
|
-
"eslint": "^10.
|
|
57
|
+
"eslint": "^10.7.0",
|
|
55
58
|
"globals": "^17.7.0",
|
|
56
59
|
"mocha": "^11.7.6",
|
|
57
60
|
"nyc": "^18.0.0",
|