kauth-sdk-node 2.0.13-alpha.3 → 2.1.2

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.
@@ -36,7 +36,7 @@ export declare class KauthApi {
36
36
  unbindRoleByPermission(data: KauthUnbindRoleByPermissionRequest): Promise<unknown>;
37
37
  getRoleWithUsers(name: string, extendValue?: string): Promise<unknown>;
38
38
  listRoles(): Promise<KauthRole[]>;
39
- listRolesByExtendValue(extendValue: string): Promise<KauthRole[]>;
39
+ listRolesByExtendValue(extendValue?: string): Promise<KauthRole[]>;
40
40
  listRolesByUserId(id: number): Promise<KauthRole[]>;
41
41
  listRolesByNamesAndExtendValue(names: string[], extendValue: string): Promise<KauthRole[]>;
42
42
  createRole(data: KauthCreateRoleRequest): Promise<unknown>;
@@ -123,7 +123,7 @@ class KauthApi {
123
123
  return this.marmotUtil.get(http_1.ListRolesUri);
124
124
  }
125
125
  async listRolesByExtendValue(extendValue) {
126
- return this.marmotUtil.get(http_1.ListRolesByExtendValueUri, { extendValue });
126
+ return this.marmotUtil.get(http_1.ListRolesByExtendValueUri, extendValue === undefined ? {} : { extendValue });
127
127
  }
128
128
  async listRolesByUserId(id) {
129
129
  return this.marmotUtil.get(http_1.ListRolesByUserIdUri, { id });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kauth-sdk-node",
3
- "version": "2.0.13-alpha.3",
3
+ "version": "2.1.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -15,8 +15,7 @@
15
15
  "lint": "eslint . --fix --ext .ts",
16
16
  "test": "multi='spec=- mocha-junit-reporter=-' mocha --reporter=mocha-multi --recursive --require ts-node/register 'test/**/*.ts'",
17
17
  "ci": "nyc -t coverage --reporter=cobertura npm run test",
18
- "version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add .",
19
- "prepublishOnly": "rm -rf dist && tsc"
18
+ "version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add ."
20
19
  },
21
20
  "author": "",
22
21
  "license": "ISC",
@@ -79,5 +78,5 @@
79
78
  "eslint --fix"
80
79
  ]
81
80
  },
82
- "repository": "git@code.alipay.com:marmot/kauth-sdk-node.git"
81
+ "marmotId": "180020050100011828"
83
82
  }