kauth-sdk-node 0.0.16 → 0.0.1752042724-dev.0
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/dist/authenticator/authenticator.d.ts +14 -4
- package/dist/authenticator/authenticator.js +51 -5
- package/dist/authenticator/base.d.ts +35 -0
- package/dist/authenticator/base.js +20 -1
- package/dist/authenticator/google.js +14 -0
- package/dist/authenticator/index.d.ts +3 -3
- package/dist/authenticator/index.js +6 -0
- package/dist/authenticator/manager.d.ts +8 -0
- package/dist/authenticator/manager.js +64 -8
- package/dist/authenticator/miniprogram.d.ts +15 -0
- package/dist/authenticator/miniprogram.js +20 -0
- package/dist/authenticator/mozi.js +14 -0
- package/dist/authenticator/provider.d.ts +18 -5
- package/dist/authenticator/provider.js +55 -5
- package/dist/authorizer/index.d.ts +1 -0
- package/dist/authorizer/index.js +5 -0
- package/dist/authorizer/permission.d.ts +9 -0
- package/dist/authorizer/permission.js +51 -0
- package/dist/common/config/config.d.ts +31 -4
- package/dist/common/constant/http.d.ts +46 -0
- package/dist/common/constant/http.js +48 -1
- package/dist/common/http/kauth.d.ts +62 -14
- package/dist/common/http/kauth.js +199 -8
- package/dist/common/http/kflow.d.ts +14 -6
- package/dist/common/http/kflow.js +35 -4
- package/dist/common/http/request/kauth.d.ts +141 -0
- package/dist/common/http/request/kauth.js +5 -0
- package/dist/common/http/request/kflow.d.ts +22 -3
- package/dist/common/http/response/kauth.d.ts +56 -2
- package/dist/common/http/response/kauth.js +1 -1
- package/dist/common/http/tool/marmot.d.ts +26 -15
- package/dist/common/http/tool/marmot.js +92 -28
- package/dist/common/util/converter/permission.d.ts +12 -0
- package/dist/common/util/converter/permission.js +36 -0
- package/dist/index.d.ts +8 -3
- package/dist/index.js +31 -0
- package/package.json +31 -12
- package/CHANGELOG.md +0 -40
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kauth-sdk-node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1752042724-dev.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -9,14 +9,13 @@
|
|
|
9
9
|
"types": "dist",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"clean": "rm -rf dist coverage",
|
|
12
|
-
"build": "
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"watch": "tsc -w",
|
|
13
14
|
"type-check": "tsc --noEmit",
|
|
14
|
-
"lint": "
|
|
15
|
-
"test": "mocha --recursive --require ts-node/register 'test/**/*.ts'",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add .",
|
|
19
|
-
"prepublishOnly": "rm -rf dist && npm run build"
|
|
15
|
+
"lint": "eslint . --fix --ext .ts",
|
|
16
|
+
"test": "multi='spec=- mocha-junit-reporter=-' mocha --reporter=mocha-multi --recursive --require ts-node/register 'test/**/*.ts'",
|
|
17
|
+
"ci": "nyc -t coverage --reporter=cobertura npm run test",
|
|
18
|
+
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add ."
|
|
20
19
|
},
|
|
21
20
|
"author": "",
|
|
22
21
|
"license": "ISC",
|
|
@@ -24,22 +23,31 @@
|
|
|
24
23
|
"axios": "^0.19.2",
|
|
25
24
|
"camelcase-keys": "^6.2.2",
|
|
26
25
|
"dayjs": "^1.8.29",
|
|
27
|
-
"jsonwebtoken": "^8.5.1"
|
|
26
|
+
"jsonwebtoken": "^8.5.1",
|
|
27
|
+
"lru-cache": "^6.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/jsonwebtoken": "^8.5.0",
|
|
31
|
-
"@types/
|
|
31
|
+
"@types/lru-cache": "^5.1.0",
|
|
32
|
+
"@types/mocha": "^10.0.1",
|
|
33
|
+
"@types/node": "^16.18.69",
|
|
32
34
|
"@types/sinon": "^9.0.4",
|
|
33
35
|
"@typescript-eslint/eslint-plugin": "^3.7.1",
|
|
34
36
|
"@typescript-eslint/parser": "^3.7.1",
|
|
35
37
|
"conventional-changelog-cli": "^2.1.0",
|
|
36
38
|
"egg": "^2.27.0",
|
|
37
39
|
"eslint": "^7.5.0",
|
|
38
|
-
"
|
|
40
|
+
"eslint-config-prettier": "^7.1.0",
|
|
41
|
+
"eslint-plugin-prettier": "^3.3.1",
|
|
42
|
+
"lint-staged": "^10.5.3",
|
|
43
|
+
"mocha": "^10.2.0",
|
|
44
|
+
"mocha-junit-reporter": "^2.0.2",
|
|
45
|
+
"mocha-multi": "^1.1.7",
|
|
39
46
|
"nyc": "^15.1.0",
|
|
47
|
+
"prettier": "^2.2.1",
|
|
40
48
|
"sinon": "^9.0.2",
|
|
41
49
|
"ts-node": "^8.10.2",
|
|
42
|
-
"typescript": "^
|
|
50
|
+
"typescript": "^5.8.3"
|
|
43
51
|
},
|
|
44
52
|
"nyc": {
|
|
45
53
|
"include": [
|
|
@@ -58,5 +66,16 @@
|
|
|
58
66
|
],
|
|
59
67
|
"sourceMap": true,
|
|
60
68
|
"instrument": true
|
|
69
|
+
},
|
|
70
|
+
"husky": {
|
|
71
|
+
"hooks": {
|
|
72
|
+
"pre-commit": "lint-staged"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"lint-staged": {
|
|
76
|
+
"*.ts": [
|
|
77
|
+
"prettier --write",
|
|
78
|
+
"eslint --fix"
|
|
79
|
+
]
|
|
61
80
|
}
|
|
62
81
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
## 0.0.16 (2020-08-26)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* add avatar ([3afa26f](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/3afa26f669ede87f5e40a39da0e9f45160742cd7))
|
|
7
|
-
* add enum and remove public ([de81327](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/de8132788aca556500f2afd2b30b2496a709f3d9))
|
|
8
|
-
* add npm version and publish hook ([ee798ba](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/ee798baedc8b6f6c41d5630b199f3f366aabfe46))
|
|
9
|
-
* bugs ([232f413](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/232f4137c4d8da15e575615b13b1244f77dcbfe6))
|
|
10
|
-
* bugs ([f2d2024](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/f2d2024d93759208f02d820d190003a680597372))
|
|
11
|
-
* bugs ([ebb8852](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/ebb88528931334236120275074790a7a3e3a8a1c))
|
|
12
|
-
* bugs ([06d4049](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/06d4049aa6754e3557e3593297f1fa8743497a91))
|
|
13
|
-
* convert babel env to node 12 ([4b16fed](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/4b16fed53b2df50978f030432dacbae603ff7fa6))
|
|
14
|
-
* export mozi auth info and google auth info, fix readme.md ([30392f6](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/30392f6854852651271691a7870c6ee878720290))
|
|
15
|
-
* export mozi principal and google principal ([991295f](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/991295fb5fea6d30742fd14d070d21f013ab74c4))
|
|
16
|
-
* kflow api indexed ([06cbcbe](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/06cbcbecc0fab5aeccd80d39f698e3670ab15f99))
|
|
17
|
-
* marmot utils axios params nullable ([d870314](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/d8703147cfc3d715366ab3d2663e4b21af23c6fe))
|
|
18
|
-
* move gulp to tsc ([5618ba7](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/5618ba74fbc7d199846b00f6d599a6efae2787ba))
|
|
19
|
-
* mv build to dist ([071c03a](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/071c03ac7c699474a5c957ed4d4cf83ec7ca7d38))
|
|
20
|
-
* nyc coverage ([32c7bc0](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/32c7bc01017f9ad79a3309aa3f03262b839d62b3))
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
### Features
|
|
24
|
-
|
|
25
|
-
* add marmot api ([e084578](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/e08457805c59e6e3266cacb1502745ef22ca6bf8))
|
|
26
|
-
* add OWNERS ([390881d](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/390881d17ef8e7fef95785a56cd25fe6e21b4edd))
|
|
27
|
-
* build ([1da5d6d](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/1da5d6d18b07d761bf3306c71388a0a3e223f47b))
|
|
28
|
-
* egg middleware ([30278b1](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/30278b16efef8ab4b1c43787994f9ddca6daf8c6))
|
|
29
|
-
* initialized ([41fe73d](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/41fe73def8662563e2f7ae29580056e6944c5ab1))
|
|
30
|
-
* kflow api support ([bd53d2e](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/bd53d2e954e62afa2f9a2211d4c3c9266093fedd))
|
|
31
|
-
* permissions and watch ([d0cd323](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/d0cd323b1e547783db193dc699d8f8ae84114fb5))
|
|
32
|
-
* remove egg middleware ([4266f37](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/4266f37309bc02bf7ffe69f472feb45203532bda))
|
|
33
|
-
* v0.0.11 ([e0887c6](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/e0887c6a55ab68a85b97a2ac562073fd88e7921a))
|
|
34
|
-
* v0.0.12 ([47c6d5d](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/47c6d5de3c04d47aa8e4d1d23bd95323d064c826))
|
|
35
|
-
* v0.0.13 ([48518e4](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/48518e42814f11cd73d4199f59aa4069844685c1))
|
|
36
|
-
* v0.0.9 ([2f1f32b](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/2f1f32bb7cf508d97ae597a20777b2925a44f653))
|
|
37
|
-
* version ([2babee1](https://gitlab.alipay-inc.com/marmot/kauth-sdk-node/commit/2babee12614cf682e46a442188463ddbd7d8265e))
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|