kauth-sdk-node 0.0.17 → 0.0.1765774147-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 +30 -16
- package/CHANGELOG.md +0 -45
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kauth-sdk-node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1765774147-dev.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -9,42 +9,45 @@
|
|
|
9
9
|
"types": "dist",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"clean": "rm -rf dist coverage",
|
|
12
|
-
"build": "
|
|
12
|
+
"build": "tsc",
|
|
13
13
|
"watch": "tsc -w",
|
|
14
14
|
"type-check": "tsc --noEmit",
|
|
15
|
-
"lint": "
|
|
16
|
-
"test": "mocha --recursive --require ts-node/register 'test/**/*.ts'",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add .",
|
|
20
|
-
"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 ."
|
|
21
19
|
},
|
|
22
20
|
"author": "",
|
|
23
21
|
"license": "ISC",
|
|
24
|
-
"repository": {
|
|
25
|
-
"type": "git",
|
|
26
|
-
"url": "https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node.git"
|
|
27
|
-
},
|
|
28
22
|
"dependencies": {
|
|
29
23
|
"axios": "^0.19.2",
|
|
30
24
|
"camelcase-keys": "^6.2.2",
|
|
31
25
|
"dayjs": "^1.8.29",
|
|
32
|
-
"jsonwebtoken": "^8.5.1"
|
|
26
|
+
"jsonwebtoken": "^8.5.1",
|
|
27
|
+
"lru-cache": "^6.0.0"
|
|
33
28
|
},
|
|
34
29
|
"devDependencies": {
|
|
35
30
|
"@types/jsonwebtoken": "^8.5.0",
|
|
36
|
-
"@types/
|
|
31
|
+
"@types/lru-cache": "^5.1.0",
|
|
32
|
+
"@types/mocha": "^10.0.1",
|
|
33
|
+
"@types/node": "^16.18.69",
|
|
37
34
|
"@types/sinon": "^9.0.4",
|
|
38
35
|
"@typescript-eslint/eslint-plugin": "^3.7.1",
|
|
39
36
|
"@typescript-eslint/parser": "^3.7.1",
|
|
40
37
|
"conventional-changelog-cli": "^2.1.0",
|
|
41
38
|
"egg": "^2.27.0",
|
|
42
39
|
"eslint": "^7.5.0",
|
|
43
|
-
"
|
|
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",
|
|
44
46
|
"nyc": "^15.1.0",
|
|
47
|
+
"prettier": "^2.2.1",
|
|
45
48
|
"sinon": "^9.0.2",
|
|
46
49
|
"ts-node": "^8.10.2",
|
|
47
|
-
"typescript": "^
|
|
50
|
+
"typescript": "^5.8.3"
|
|
48
51
|
},
|
|
49
52
|
"nyc": {
|
|
50
53
|
"include": [
|
|
@@ -63,5 +66,16 @@
|
|
|
63
66
|
],
|
|
64
67
|
"sourceMap": true,
|
|
65
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
|
+
]
|
|
66
80
|
}
|
|
67
81
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
## [0.0.17](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/compare/v0.0.16...v0.0.17) (2020-08-27)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Features
|
|
5
|
-
|
|
6
|
-
* add watch ([7f3bee3](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/7f3bee325d1dcc3e342efff059a77fe5c01db665))
|
|
7
|
-
* update git repo ([a043b92](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/a043b92c10f9c37463dd15133659a0652cefe83f))
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## 0.0.16 (2020-08-26)
|
|
12
|
-
|
|
13
|
-
### Bug Fixes
|
|
14
|
-
|
|
15
|
-
- add avatar ([3afa26f](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/3afa26f669ede87f5e40a39da0e9f45160742cd7))
|
|
16
|
-
- add enum and remove public ([de81327](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/de8132788aca556500f2afd2b30b2496a709f3d9))
|
|
17
|
-
- add npm version and publish hook ([ee798ba](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/ee798baedc8b6f6c41d5630b199f3f366aabfe46))
|
|
18
|
-
- bugs ([232f413](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/232f4137c4d8da15e575615b13b1244f77dcbfe6))
|
|
19
|
-
- bugs ([f2d2024](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/f2d2024d93759208f02d820d190003a680597372))
|
|
20
|
-
- bugs ([ebb8852](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/ebb88528931334236120275074790a7a3e3a8a1c))
|
|
21
|
-
- bugs ([06d4049](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/06d4049aa6754e3557e3593297f1fa8743497a91))
|
|
22
|
-
- convert babel env to node 12 ([4b16fed](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/4b16fed53b2df50978f030432dacbae603ff7fa6))
|
|
23
|
-
- export mozi auth info and google auth info, fix readme.md ([30392f6](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/30392f6854852651271691a7870c6ee878720290))
|
|
24
|
-
- export mozi principal and google principal ([991295f](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/991295fb5fea6d30742fd14d070d21f013ab74c4))
|
|
25
|
-
- kflow api indexed ([06cbcbe](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/06cbcbecc0fab5aeccd80d39f698e3670ab15f99))
|
|
26
|
-
- marmot utils axios params nullable ([d870314](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/d8703147cfc3d715366ab3d2663e4b21af23c6fe))
|
|
27
|
-
- move gulp to tsc ([5618ba7](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/5618ba74fbc7d199846b00f6d599a6efae2787ba))
|
|
28
|
-
- mv build to dist ([071c03a](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/071c03ac7c699474a5c957ed4d4cf83ec7ca7d38))
|
|
29
|
-
- nyc coverage ([32c7bc0](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/32c7bc01017f9ad79a3309aa3f03262b839d62b3))
|
|
30
|
-
|
|
31
|
-
### Features
|
|
32
|
-
|
|
33
|
-
- add marmot api ([e084578](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/e08457805c59e6e3266cacb1502745ef22ca6bf8))
|
|
34
|
-
- add OWNERS ([390881d](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/390881d17ef8e7fef95785a56cd25fe6e21b4edd))
|
|
35
|
-
- build ([1da5d6d](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/1da5d6d18b07d761bf3306c71388a0a3e223f47b))
|
|
36
|
-
- egg middleware ([30278b1](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/30278b16efef8ab4b1c43787994f9ddca6daf8c6))
|
|
37
|
-
- initialized ([41fe73d](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/41fe73def8662563e2f7ae29580056e6944c5ab1))
|
|
38
|
-
- kflow api support ([bd53d2e](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/bd53d2e954e62afa2f9a2211d4c3c9266093fedd))
|
|
39
|
-
- permissions and watch ([d0cd323](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/d0cd323b1e547783db193dc699d8f8ae84114fb5))
|
|
40
|
-
- remove egg middleware ([4266f37](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/4266f37309bc02bf7ffe69f472feb45203532bda))
|
|
41
|
-
- v0.0.11 ([e0887c6](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/e0887c6a55ab68a85b97a2ac562073fd88e7921a))
|
|
42
|
-
- v0.0.12 ([47c6d5d](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/47c6d5de3c04d47aa8e4d1d23bd95323d064c826))
|
|
43
|
-
- v0.0.13 ([48518e4](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/48518e42814f11cd73d4199f59aa4069844685c1))
|
|
44
|
-
- v0.0.9 ([2f1f32b](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/2f1f32bb7cf508d97ae597a20777b2925a44f653))
|
|
45
|
-
- version ([2babee1](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-node/commit/2babee12614cf682e46a442188463ddbd7d8265e))
|