@lark-apaas/auth-sdk 0.1.0-alpha.8 → 0.1.0-alpha.9

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.
@@ -123,7 +123,7 @@ export declare const useCanRole: ({ roles }: {
123
123
  *
124
124
  * function MyComponent() {
125
125
  * return (
126
- * <CanRole role="Admin">
126
+ * <CanRole roles={['role_admin', 'role_editor']}>
127
127
  * <TaskList />
128
128
  * </CanRole>
129
129
  * );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/auth-sdk",
3
- "version": "0.1.0-alpha.8",
3
+ "version": "0.1.0-alpha.9",
4
4
  "description": "基于 CASL 的前端鉴权 SDK",
5
5
  "types": "./lib/index.d.ts",
6
6
  "main": "./lib/index.js",