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 1.0.33 to 1.0.34

0

dist/getFlatMenus/getFlatMenus.d.ts

@@ -0,0 +0,0 @@ import { MenuDataItem } from '../types';

@@ -0,0 +0,0 @@ import { stripQueryStringAndHashFromPath } from '../transformRoute/transformRoute';

@@ -0,0 +0,0 @@ import { MenuDataItem } from '../types';

2

dist/getMatchMenu/getMatchMenu.js

@@ -17,3 +17,3 @@ import { pathToRegexp } from '@qixian.cs/path-to-regexp';

// /a/b/b
if (pathToRegexp(`${pathKey}(.*)`).test(path)) {
if (pathToRegexp(`${pathKey}/(.*)`).test(path)) {
return true;

@@ -20,0 +20,0 @@ }

@@ -0,0 +0,0 @@ import { MenuDataItem } from './types';

@@ -0,0 +0,0 @@ export { default as transformRoute } from './transformRoute/transformRoute';

@@ -0,0 +0,0 @@ import { MenuDataItem, Route, MessageDescriptor } from '../types';

@@ -0,0 +0,0 @@ import isEqual from 'lodash.isequal';

@@ -0,0 +0,0 @@ export interface Route extends MenuDataItem {

@@ -22,3 +22,3 @@ import { pathToRegexp } from '@qixian.cs/path-to-regexp';

if (pathToRegexp("".concat(pathKey, "(.*)")).test(path)) {
if (pathToRegexp("".concat(pathKey, "/(.*)")).test(path)) {
return true;

@@ -25,0 +25,0 @@ }

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

if ((0, _pathToRegexp.pathToRegexp)("".concat(pathKey, "(.*)")).test(path)) {
if ((0, _pathToRegexp.pathToRegexp)("".concat(pathKey, "/(.*)")).test(path)) {
return true;

@@ -37,0 +37,0 @@ }

{
"name": "@umijs/route-utils",
"version": "1.0.33",
"version": "1.0.34",
"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