Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mxjs/auth

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mxjs/auth - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

7

CHANGELOG.md

@@ -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 @@

2

filterChildren.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc