@mxjs/auth
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,8 @@ | ||
## [1.1.1](https://github.com/miaoxing/miaoxing/compare/@mxjs/auth@1.1.0...@mxjs/auth@1.1.1) (2023-04-18) | ||
### Bug Fixes | ||
* **auth:** 组件不在 `AuthProvider` 中时,调用 `filterChildren` 错误 ([3173178](https://github.com/miaoxing/miaoxing/commit/31731787fcefe77c32ba0322f3d3dce94a7239c0)) | ||
# [1.1.0](https://github.com/miaoxing/miaoxing/compare/@mxjs/auth@1.0.0...@mxjs/auth@1.1.0) (2023-04-15) | ||
@@ -2,0 +9,0 @@ |
@@ -5,3 +5,3 @@ import {useAuth} from './AuthProvider'; | ||
const filterChildren = (children) => { | ||
const {access = null} = useAuth(); | ||
const {access} = useAuth() || {}; | ||
if (!access) { | ||
@@ -8,0 +8,0 @@ return children; |
{ | ||
"name": "@mxjs/auth", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9487