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

@umijs/route-utils

Package Overview
Dependencies
Maintainers
11
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@umijs/route-utils - npm Package Compare versions

Comparing version 2.1.5 to 2.2.0

10

dist/transformRoute/transformRoute.js

@@ -129,6 +129,2 @@ import isEqual from 'fast-deep-equal/es6/react';

return true;
if (item.path === '*')
return false;
if (item.path === '/*')
return false;
if (item.path)

@@ -164,2 +160,8 @@ return true;

}
if (item.path === '*') {
item.path = '.';
}
if (item.path === '/*') {
item.path = '.';
}
return item;

@@ -166,0 +168,0 @@ })

@@ -221,4 +221,2 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

if (notNullArray(item.children)) return true;
if (item.path === '*') return false;
if (item.path === '/*') return false;
if (item.path) return true;

@@ -254,2 +252,10 @@ if (item.layout) return true; // 重定向

if (item.path === '*') {
item.path = '.';
}
if (item.path === '/*') {
item.path = '.';
}
return item;

@@ -256,0 +262,0 @@ }).map(function () {

@@ -244,4 +244,2 @@ "use strict";

if (notNullArray(item.children)) return true;
if (item.path === '*') return false;
if (item.path === '/*') return false;
if (item.path) return true;

@@ -277,2 +275,10 @@ if (item.layout) return true; // 重定向

if (item.path === '*') {
item.path = '.';
}
if (item.path === '/*') {
item.path = '.';
}
return item;

@@ -279,0 +285,0 @@ }).map(function () {

2

package.json
{
"name": "@umijs/route-utils",
"version": "2.1.5",
"version": "2.2.0",
"description": "Quickly process the routing of umi",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

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