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

react-route-generator

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-route-generator - npm Package Compare versions

Comparing version 0.0.22 to 0.0.23

10

dist/generate/generateAppRoutes/generateUrlDefaultFile.js

@@ -9,9 +9,9 @@ "use strict";

const cache: Record<string, (data?: object) => string> = {};
const cache: Record<string, (data?: object, options?: pathToRegexp.PathFunctionOptions) => string> = {};
const cacheLimit = 10000;
let cacheCount = 0;
function compilePath(path: string): pathToRegexp.PathFunction<object> {
if (cache[path]) {
return cache[path];
function compilePath(path: string): pathToRegexp.PathFunction {
if (cache[path]) {
return cache[path];
}

@@ -30,3 +30,3 @@

function generatePath(path = '/', params = {}): string {
return path === '/' ? path : compilePath(path)(params);
return path === '/' ? path : compilePath(path)(params, { pretty: true });
}

@@ -33,0 +33,0 @@

{
"name": "react-route-generator",
"version": "0.0.22",
"version": "0.0.23",
"description": "Route generator",

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

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