You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@antdp/authorized

Package Overview
Dependencies
Maintainers
2
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antdp/authorized - npm Package Compare versions

Comparing version
2.1.1
to
2.1.2
+3
-3
esm/format.js

@@ -68,3 +68,3 @@ import { store } from "./utils";

var allMenu = !!store.getItem(ANTD_AUTH_CONF.auth_menu) ? JSON.parse(store.getItem(ANTD_AUTH_CONF.auth_menu) || '[]') : [];
var check = mapRouterCheck(allRouters, pathname).length > 0 ? true : false;
var check = _mapRouterCheck(allRouters, pathname).length > 0 ? true : false;
// 若不在权限路由中则提示无权限

@@ -91,3 +91,3 @@ var authCheck = checkRouter(pathname, allMenu);

*/
var mapRouterCheck = function mapRouterCheck(data, pathName, list) {
var _mapRouterCheck = function mapRouterCheck(data, pathName, list) {
if (list === void 0) {

@@ -104,3 +104,3 @@ list = [];

} else if (routes) {
mapRouterCheck(routes, pathName, list);
_mapRouterCheck(routes, pathName, list);
}

@@ -107,0 +107,0 @@ });

@@ -78,3 +78,3 @@ "use strict";

var allMenu = !!_utils.store.getItem(ANTD_AUTH_CONF.auth_menu) ? JSON.parse(_utils.store.getItem(ANTD_AUTH_CONF.auth_menu) || '[]') : [];
var check = mapRouterCheck(allRouters, pathname).length > 0 ? true : false;
var check = _mapRouterCheck(allRouters, pathname).length > 0 ? true : false;
// 若不在权限路由中则提示无权限

@@ -101,3 +101,3 @@ var authCheck = checkRouter(pathname, allMenu);

*/
var mapRouterCheck = function mapRouterCheck(data, pathName) {
var _mapRouterCheck = function mapRouterCheck(data, pathName) {
var list = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];

@@ -110,3 +110,3 @@ (data || []).forEach(function (val) {

} else if (routes) {
mapRouterCheck(routes, pathName, list);
_mapRouterCheck(routes, pathName, list);
}

@@ -113,0 +113,0 @@ });

{
"name": "@antdp/authorized",
"version": "2.1.1",
"version": "2.1.2",
"description": "通过判断是否进入主界面还是登录界面。",

@@ -5,0 +5,0 @@ "homepage": "https://antdpro.github.io/antdp",