Socket
Socket
Sign inDemoInstall

@umijs/route-utils

Package Overview
Dependencies
Maintainers
14
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.0.1 to 2.0.2

4

dist/transformRoute/transformRoute.js

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

.map((item = { path: '/' }) => {
if (item.children && !item.routes) {
// eslint-disable-next-line no-param-reassign
item.routes = item.children;
}
const path = mergePath(item.path, parent ? parent.path : '/');

@@ -154,0 +158,0 @@ const { name } = item;

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

};
if (item.children && !item.routes) {
// eslint-disable-next-line no-param-reassign
item.routes = item.children;
}
var path = mergePath(item.path, parent ? parent.path : '/');

@@ -245,0 +251,0 @@ var name = item.name;

@@ -264,2 +264,8 @@ "use strict";

};
if (item.children && !item.routes) {
// eslint-disable-next-line no-param-reassign
item.routes = item.children;
}
var path = mergePath(item.path, parent ? parent.path : '/');

@@ -266,0 +272,0 @@ var name = item.name;

2

package.json
{
"name": "@umijs/route-utils",
"version": "2.0.1",
"version": "2.0.2",
"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